aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-10-31 17:18:11 +0000
committerAndrew Trick <atrick@apple.com>2013-10-31 17:18:11 +0000
commit2e50b8a08d40ce72ae35c73528140d3ee25209e0 (patch)
treee15491d43320ca7a059db16deb2931bbaa63822a /utils
parentcf940ceff73f567876f1a1f62d3acbf67c43ea90 (diff)
downloadexternal_llvm-2e50b8a08d40ce72ae35c73528140d3ee25209e0.zip
external_llvm-2e50b8a08d40ce72ae35c73528140d3ee25209e0.tar.gz
external_llvm-2e50b8a08d40ce72ae35c73528140d3ee25209e0.tar.bz2
Enable variable arguments support for intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index cd4f0e6..6531dcb 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -261,7 +261,8 @@ enum IIT_Info {
IIT_EXTEND_VEC_ARG = 23,
IIT_TRUNC_VEC_ARG = 24,
IIT_ANYPTR = 25,
- IIT_V1 = 26
+ IIT_V1 = 26,
+ IIT_VARARG = 27
};
@@ -288,6 +289,8 @@ static void EncodeFixedValueType(MVT::SimpleValueType VT,
case MVT::x86mmx: return Sig.push_back(IIT_MMX);
// MVT::OtherVT is used to mean the empty struct type here.
case MVT::Other: return Sig.push_back(IIT_EMPTYSTRUCT);
+ // MVT::isVoid is used to represent varargs here.
+ case MVT::isVoid: return Sig.push_back(IIT_VARARG);
}
}