Skip to content

Commit

Permalink
Reduce usage of pointer element types (31).
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ViacheslavRb authored and igcbot committed Nov 13, 2024
1 parent 4563745 commit 7aab427
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions IGC/WrapperLLVM/include/llvmWrapper/IR/IRBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,6 @@ namespace IGCLLVM

#if LLVM_VERSION_MAJOR >= 13

// This wrapper function is deprecated because it uses typed pointer and
// should no longer be used in LLVM 14+ compatible code.
inline llvm::LoadInst* CreateLoad(llvm::Value* Ptr, const char *Name)
{
llvm::Type* ptrType = IGCLLVM::getNonOpaquePtrEltTy(Ptr->getType());
return llvm::IRBuilder<T, InserterTyDef()>::CreateLoad(ptrType, Ptr, Name);
}

// This wrapper function is deprecated because it uses typed pointer and
// should no longer be used in LLVM 14+ compatible code.
inline llvm::LoadInst* CreateLoad(llvm::Value* Ptr, const llvm::Twine &Name = "")
Expand Down

0 comments on commit 7aab427

Please sign in to comment.