summaryrefslogtreecommitdiff
path: root/utils/TableGen/IntrinsicEmitter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-08-16 21:57:19 +0000
committerDan Gohman <gohman@apple.com>2007-08-16 21:57:19 +0000
commit0fee3ff93ea0bf1ce6466fec1d8496514d76e289 (patch)
tree37f28a57b0b04823f5a4764a67421959da6a25ca /utils/TableGen/IntrinsicEmitter.cpp
parent4d13de4e3bfc5121207efd01e1b31caa6bb4e40b (diff)
downloadllvm-0fee3ff93ea0bf1ce6466fec1d8496514d76e289.tar.gz
llvm-0fee3ff93ea0bf1ce6466fec1d8496514d76e289.tar.bz2
llvm-0fee3ff93ea0bf1ce6466fec1d8496514d76e289.tar.xz
Add MVT::fAny for overloading intrinsics on floating-point types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index f5df933f2e..c3db273ce6 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -146,7 +146,7 @@ static void EmitTypeGenerate(std::ostream &OS, Record *ArgType,
unsigned Number = ArgType->getValueAsInt("Number");
assert(Number < ArgNo && "Invalid matching number!");
OS << "Tys[" << Number << "]";
- } else if (VT == MVT::iAny) {
+ } else if (VT == MVT::iAny || VT == MVT::fAny) {
// NOTE: The ArgNo variable here is not the absolute argument number, it is
// the index of the "arbitrary" type in the Tys array passed to the
// Intrinsic::getDeclaration function. Consequently, we only want to