mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user