diff options
author | Mon P Wang <wangmp@apple.com> | 2009-02-24 23:17:49 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2009-02-24 23:17:49 +0000 |
commit | 0d52ff1f7b993750a74a5d4432273092de9af069 (patch) | |
tree | 06eeb3bc80811d1d3161e8587d4da8db368da646 /lib/VMCore/Function.cpp | |
parent | d8e880c670699bd56dc3968647a4b963793d201d (diff) |
Added support to have TableGen provide information if an intrinsic (core
or target) can be overloaded or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index bc3b611820..cff4457a41 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -356,6 +356,16 @@ const FunctionType *Intrinsic::getType(ID id, const Type **Tys, return FunctionType::get(ResultTy, ArgTys, IsVarArg); } +bool Intrinsic::isOverloaded(ID id) { + const bool OTable[] = { + false, +#define GET_INTRINSIC_OVERLOAD_TABLE +#include "llvm/Intrinsics.gen" +#undef GET_INTRINSIC_OVERLOAD_TABLE + }; + return OTable[id]; +} + /// This defines the "Intrinsic::getAttributes(ID id)" method. #define GET_INTRINSIC_ATTRIBUTES #include "llvm/Intrinsics.gen" |