aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/CallingConvEmitter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-08-03 08:13:56 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-08-03 08:13:56 +0000
commit4ab15535e7028a48d75c9d08ed57e9b3b05b1f53 (patch)
tree04cacd4a984c7366e7a609325d82533ab5f92ea9 /utils/TableGen/CallingConvEmitter.cpp
parent80cb8aa86282281ceef49638f11e07d62b0d2ee3 (diff)
downloadexternal_llvm-4ab15535e7028a48d75c9d08ed57e9b3b05b1f53.zip
external_llvm-4ab15535e7028a48d75c9d08ed57e9b3b05b1f53.tar.gz
external_llvm-4ab15535e7028a48d75c9d08ed57e9b3b05b1f53.tar.bz2
Add 'Indirect' LocInfo class and use to pass __m128 on win64. Also minore fixes here and there (mostly __m64).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CallingConvEmitter.cpp')
-rw-r--r--utils/TableGen/CallingConvEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/CallingConvEmitter.cpp b/utils/TableGen/CallingConvEmitter.cpp
index a14be0b..5879c41 100644
--- a/utils/TableGen/CallingConvEmitter.cpp
+++ b/utils/TableGen/CallingConvEmitter.cpp
@@ -186,6 +186,10 @@ void CallingConvEmitter::EmitAction(Record *Action,
Record *DestTy = Action->getValueAsDef("DestTy");
O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
O << IndentStr << "LocInfo = CCValAssign::BCvt;\n";
+ } else if (Action->isSubClassOf("CCPassIndirect")) {
+ Record *DestTy = Action->getValueAsDef("DestTy");
+ O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
+ O << IndentStr << "LocInfo = CCValAssign::Indirect;\n";
} else if (Action->isSubClassOf("CCPassByVal")) {
int Size = Action->getValueAsInt("Size");
int Align = Action->getValueAsInt("Align");