Skip to content

Commit 7aab427

Browse files
ViacheslavRbigcbot
authored andcommitted
Reduce usage of pointer element types (31).
This change replaces calls to getNonOpaquePtrEltTy with element type information got through other means. This change is part of the effort to support opaque pointers in newer LLVM versions.
1 parent 4563745 commit 7aab427

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

IGC/WrapperLLVM/include/llvmWrapper/IR/IRBuilder.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ namespace IGCLLVM
215215

216216
#if LLVM_VERSION_MAJOR >= 13
217217

218-
// This wrapper function is deprecated because it uses typed pointer and
219-
// should no longer be used in LLVM 14+ compatible code.
220-
inline llvm::LoadInst* CreateLoad(llvm::Value* Ptr, const char *Name)
221-
{
222-
llvm::Type* ptrType = IGCLLVM::getNonOpaquePtrEltTy(Ptr->getType());
223-
return llvm::IRBuilder<T, InserterTyDef()>::CreateLoad(ptrType, Ptr, Name);
224-
}
225-
226218
// This wrapper function is deprecated because it uses typed pointer and
227219
// should no longer be used in LLVM 14+ compatible code.
228220
inline llvm::LoadInst* CreateLoad(llvm::Value* Ptr, const llvm::Twine &Name = "")

0 commit comments

Comments
 (0)