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 | acd78d50921c32db8b82603c66a0d56555b286cb (patch) | |
| tree | 4e5d11a0941f6e98249794846d2d2e2a32e6089d /llvm/lib/Target/MBlaze | |
| parent | d18cd186d0280043415f3102b206b219f184d1e8 (diff) | |
| download | bcm5719-llvm-acd78d50921c32db8b82603c66a0d56555b286cb.tar.gz bcm5719-llvm-acd78d50921c32db8b82603c66a0d56555b286cb.zip | |
Emit the "is an intrinsic overloaded" table as a bitfield.
llvm-svn: 151792
Diffstat (limited to 'llvm/lib/Target/MBlaze')
| -rw-r--r-- | llvm/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp b/llvm/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp index b3651158a37..91aaf940e62 100644 --- a/llvm/lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp +++ b/llvm/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. |

