Skip to content

Commit

Permalink
Merging LLVM compatibility patches
Browse files Browse the repository at this point in the history
Supporting LLVM trunk revision 476047bf8e720f3dc359cf75d1241e13f8ba2350
  • Loading branch information
Build Automation authored and igcbot committed Feb 12, 2025
1 parent 625aef7 commit 7d5e641
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 38 deletions.
4 changes: 2 additions & 2 deletions IGC/WrapperLLVM/include/llvmWrapper/IR/LLVMContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace IGCLLVM
inline void setOpaquePointers(llvm::LLVMContext* Ctx, const bool Enable)
{
IGC_ASSERT_MESSAGE(Ctx, "Null LLVMContext pointer!");
#if (LLVM_VERSION_MAJOR == 14) || defined(IGC_LLVM_TRUNK_REVISION)
#if LLVM_VERSION_MAJOR == 14
if (Enable)
Ctx->enableOpaquePointers();
#elif LLVM_VERSION_MAJOR >= 15
Expand All @@ -35,7 +35,7 @@ namespace IGC
IGC_ASSERT_MESSAGE(Ctx, "Null LLVMContext pointer!");
#if LLVM_VERSION_MAJOR < 14
return false;
#elif (LLVM_VERSION_MAJOR == 14) || defined(IGC_LLVM_TRUNK_REVISION)
#elif LLVM_VERSION_MAJOR == 14
// With LLVM 14, we invoke a proper check for the -opaque-pointers CL
// option. Regardless of whether it's false by LLVM 14's default, or
// through an explicit setting, we deem it acceptable for IGC to
Expand Down

This file was deleted.

0 comments on commit 7d5e641

Please sign in to comment.