Author: Zibi Sarbinowski
Date: 2026-06-12T09:23:38-04:00
New Revision: fc15b715917aea09851c41a0c5406d820709d35b

URL: 
https://github.com/llvm/llvm-project/commit/fc15b715917aea09851c41a0c5406d820709d35b
DIFF: 
https://github.com/llvm/llvm-project/commit/fc15b715917aea09851c41a0c5406d820709d35b.diff

LOG: [SystemZ] Rename GetSingleElementType to getSingleElementType (#203078)

# Refactor: Rename GetSingleElementType to getSingleElementType in
SystemZ ABI

## Summary
This PR refactors the SystemZ ABI code to follow LLVM coding standards
by renaming `GetSingleElementType` to `getSingleElementType` (camelCase
convention).

## Motivation
Rename to avoid having 'GetSingleElementType` in one class and
`getSingleElementType` in another one.

Added: 
    

Modified: 
    clang/lib/CodeGen/Targets/SystemZ.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/Targets/SystemZ.cpp 
b/clang/lib/CodeGen/Targets/SystemZ.cpp
index 5c7485ed0944f..37f6b3017f776 100644
--- a/clang/lib/CodeGen/Targets/SystemZ.cpp
+++ b/clang/lib/CodeGen/Targets/SystemZ.cpp
@@ -32,7 +32,7 @@ class SystemZABIInfo : public ABIInfo {
   bool isCompoundType(QualType Ty) const;
   bool isVectorArgumentType(QualType Ty) const;
   llvm::Type *getFPArgumentType(QualType Ty, uint64_t Size) const;
-  QualType GetSingleElementType(QualType Ty) const;
+  QualType getSingleElementType(QualType Ty) const;
 
   ABIArgInfo classifyReturnType(QualType RetTy) const;
   ABIArgInfo classifyArgumentType(QualType ArgTy) const;
@@ -207,7 +207,7 @@ llvm::Type *SystemZABIInfo::getFPArgumentType(QualType Ty,
   return nullptr;
 }
 
-QualType SystemZABIInfo::GetSingleElementType(QualType Ty) const {
+QualType SystemZABIInfo::getSingleElementType(QualType Ty) const {
   const auto *RD = Ty->getAsRecordDecl();
   if (RD && RD->isStructureOrClass()) {
     QualType Found;
@@ -224,7 +224,7 @@ QualType SystemZABIInfo::GetSingleElementType(QualType Ty) 
const {
 
           if (!Found.isNull())
             return Ty;
-          Found = GetSingleElementType(Base);
+          Found = getSingleElementType(Base);
         }
 
     // Check the fields.
@@ -241,7 +241,7 @@ QualType SystemZABIInfo::GetSingleElementType(QualType Ty) 
const {
       // Nested structures still do though.
       if (!Found.isNull())
         return Ty;
-      Found = GetSingleElementType(FD->getType());
+      Found = getSingleElementType(FD->getType());
     }
 
     // Unlike isSingleElementStruct(), trailing padding is allowed.
@@ -439,7 +439,7 @@ ABIArgInfo SystemZABIInfo::classifyArgumentType(QualType 
Ty) const {
   // as opposed to float-like structure types, we do not allow any
   // padding for vector-like structures, so verify the sizes match.
   uint64_t Size = getContext().getTypeSize(Ty);
-  QualType SingleElementTy = GetSingleElementType(Ty);
+  QualType SingleElementTy = getSingleElementType(Ty);
   if (isVectorArgumentType(SingleElementTy) &&
       getContext().getTypeSize(SingleElementTy) == Size)
     return ABIArgInfo::getDirect(CGT.ConvertType(SingleElementTy));
@@ -506,7 +506,7 @@ bool SystemZTargetCodeGenInfo::isVectorTypeBased(const Type 
*Ty,
     // be passed via "hidden" pointer where any extra alignment is not
     // required (per GCC).
     const Type *SingleEltTy = getABIInfo<SystemZABIInfo>()
-                                  .GetSingleElementType(QualType(Ty, 0))
+                                  .getSingleElementType(QualType(Ty, 0))
                                   .getTypePtr();
     bool SingleVecEltStruct = SingleEltTy != Ty && SingleEltTy->isVectorType() 
&&
       Ctx.getTypeSize(SingleEltTy) == Ctx.getTypeSize(Ty);


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to