summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitfebf946ea7591f01417c8dc735a96039dea4401c (patch)
treecc6eb2d545221e322b4de9cf1953d8a970d8f3f6 /llvm/utils/TableGen/IntrinsicEmitter.cpp
parentcdee44c12a3f5a381eeb06e5ac0c65f1dfe273aa (diff)
downloadbcm5719-llvm-febf946ea7591f01417c8dc735a96039dea4401c.tar.gz
bcm5719-llvm-febf946ea7591f01417c8dc735a96039dea4401c.zip
Add MVT::fAny for overloading intrinsics on floating-point types.
llvm-svn: 41128
Diffstat (limited to 'llvm/utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/IntrinsicEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index f5df933f2ea..c3db273ce60 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud