summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-28 12:07:41 -0400
committerTom Stellard <[email protected]>2012-05-29 11:55:52 -0400
commit32b83e0366560a77798545880f980adc04b4361f (patch)
tree281cadf35323e916b152490928d56e12b3f6f24f
parent49fb99bd131a4ed89e6f55cf360f67618acafec4 (diff)
radeon/llvm: Remove AMDILIntrinsicInfo::GetDeclaration fuction body
This function was causing compile errors in the tablegen'd code for some intrinsic definitions. I don't think we really need this function, so I'm removing the function body just as a temporary solution. I'll look into removing the entire AMDILIntrinsicInfo class later.
-rw-r--r--src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp b/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp
index 566a91e48f3..651c0549413 100644
--- a/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp
+++ b/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp
@@ -146,26 +146,7 @@ AMDILIntrinsicInfo::getDeclaration(Module *M, unsigned IntrID,
Type **Tys,
unsigned numTys) const
{
- assert(!isOverloaded(IntrID) && "AMDIL intrinsics are not overloaded");
- AttrListPtr AList = getAttributes((AMDGPUIntrinsic::ID) IntrID);
- LLVMContext& Context = M->getContext();
- unsigned int id = IntrID;
- Type *ResultTy = NULL;
- std::vector<Type*> ArgTys;
- bool IsVarArg = false;
-
-#define GET_INTRINSIC_GENERATOR
-#include "AMDILGenIntrinsics.inc"
-#undef GET_INTRINSIC_GENERATOR
- // We need to add the resource ID argument for atomics.
- if (id >= AMDGPUIntrinsic::AMDIL_atomic_add_gi32
- && id <= AMDGPUIntrinsic::AMDIL_atomic_xor_ru32_noret) {
- ArgTys.push_back(IntegerType::get(Context, 32));
- }
-
- return cast<Function>(M->getOrInsertFunction(getName(IntrID),
- FunctionType::get(ResultTy, ArgTys, IsVarArg),
- AList));
+ assert(!"Not implemented");
}
/// Because the code generator has to support different SC versions,