diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-01 02:16:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-01 02:16:57 +0000 |
commit | 36a2138cce66a164f08a36c4c5820b133c4590fd (patch) | |
tree | 686522379a0b9d148193afba002feb1f27333a76 /lib/Target/MBlaze | |
parent | e9e520f23ec3e5dc26e0801ac0d8b9e6899e2626 (diff) | |
download | external_llvm-36a2138cce66a164f08a36c4c5820b133c4590fd.zip external_llvm-36a2138cce66a164f08a36c4c5820b133c4590fd.tar.gz external_llvm-36a2138cce66a164f08a36c4c5820b133c4590fd.tar.bz2 |
Emit the "is an intrinsic overloaded" table as a bitfield.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MBlaze')
-rw-r--r-- | lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp b/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp index b365115..91aaf94 100644 --- a/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp +++ b/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp @@ -74,16 +74,13 @@ lookupGCCName(const char *Name) const { } bool MBlazeIntrinsicInfo::isOverloaded(unsigned IntrID) const { - // Overload Table - const bool OTable[] = { + if (IntrID == 0) + return false; + + unsigned id = IntrID - Intrinsic::num_intrinsics + 1; #define GET_INTRINSIC_OVERLOAD_TABLE #include "MBlazeGenIntrinsics.inc" #undef GET_INTRINSIC_OVERLOAD_TABLE - }; - if (IntrID == 0) - return false; - else - return OTable[IntrID - Intrinsic::num_intrinsics]; } /// This defines the "getAttributes(ID id)" method. |