[llvm] 2aa4830 - [Alignment][NFC] Migrate CallingConv tablegen code

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 00:09:33 PDT 2020


Author: Guillaume Chatelet
Date: 2020-06-08T06:58:02Z
New Revision: 2aa483016de0a8b3d61d15f4973293cccd65c378

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

LOG: [Alignment][NFC] Migrate CallingConv tablegen code

Summary: This is a follow up on D81196, fixing one more call site.

Reviewers: courbet

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81268

Added: 
    

Modified: 
    llvm/utils/TableGen/CallingConvEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/CallingConvEmitter.cpp b/llvm/utils/TableGen/CallingConvEmitter.cpp
index 90b0c035c1ce..b60dd079737a 100644
--- a/llvm/utils/TableGen/CallingConvEmitter.cpp
+++ b/llvm/utils/TableGen/CallingConvEmitter.cpp
@@ -199,9 +199,10 @@ void CallingConvEmitter::EmitAction(Record *Action,
       if (Align)
         O << "Align(" << Align << ")";
       else
-        O << "\n" << IndentStr
+        O << "\n"
+          << IndentStr
           << "  State.getMachineFunction().getDataLayout()."
-             "getABITypeAlignment(EVT(LocVT).getTypeForEVT(State.getContext()"
+             "getABITypeAlign(EVT(LocVT).getTypeForEVT(State.getContext()"
              "))";
       O << ");\n" << IndentStr
         << "State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset"


        


More information about the llvm-commits mailing list