[llvm-commits] CVS: llvm/utils/TableGen/CallingConvEmitter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Mar 7 08:25:52 PST 2007
Changes in directory llvm/utils/TableGen:
CallingConvEmitter.cpp updated: 1.5 -> 1.6
---
Log message:
Refactoring of formal parameter flags. Enable properly use of
zext/sext/aext stuff.
---
Diffs of the changes: (+6 -2)
CallingConvEmitter.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm/utils/TableGen/CallingConvEmitter.cpp
diff -u llvm/utils/TableGen/CallingConvEmitter.cpp:1.5 llvm/utils/TableGen/CallingConvEmitter.cpp:1.6
--- llvm/utils/TableGen/CallingConvEmitter.cpp:1.5 Tue Mar 6 02:12:33 2007
+++ llvm/utils/TableGen/CallingConvEmitter.cpp Wed Mar 7 10:25:09 2007
@@ -123,8 +123,12 @@
} else if (Action->isSubClassOf("CCPromoteToType")) {
Record *DestTy = Action->getValueAsDef("DestTy");
O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
- O << IndentStr << "LocInfo = (ArgFlags & SDISelParamFlags::Signed) ? \n"
- << IndentStr << IndentStr << "CCValAssign::SExt : CCValAssign::ZExt;\n";
+ O << IndentStr << "if (ArgFlags & ISD::ParamFlags::SExt)\n"
+ << IndentStr << IndentStr << "LocInfo = CCValAssign::SExt;\n"
+ << IndentStr << "else if (ArgFlags & ISD::ParamFlags::ZExt)\n"
+ << IndentStr << IndentStr << "LocInfo = CCValAssign::ZExt;\n"
+ << IndentStr << "else\n"
+ << IndentStr << IndentStr << "LocInfo = CCValAssign::AExt;\n";
} else {
Action->dump();
throw "Unknown CCAction!";
More information about the llvm-commits
mailing list