mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
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.
This commit is contained in:
parent
49fb99bd13
commit
32b83e0366
1 changed files with 1 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue