Skip to content

Commit

Permalink
Assume isOpaque is true from LLVM 17 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
frasercrmck committed Mar 21, 2024
1 parent ec40c32 commit 25d319a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GenXIntrinsics/lib/GenXIntrinsics/AdaptorsCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ void legalizeParamAttributes(Function *F) {
continue;

#if VC_INTR_LLVM_VERSION_MAJOR >= 13
#if VC_INTR_LLVM_VERSION_MAJOR < 18
#if VC_INTR_LLVM_VERSION_MAJOR < 17
if (PTy->isOpaque())
#endif // VC_INTR_LLVM_VERSION_MAJOR < 18
#endif // VC_INTR_LLVM_VERSION_MAJOR < 17
continue;
#endif // VC_INTR_LLVM_VERSION_MAJOR >= 13

Expand Down
4 changes: 2 additions & 2 deletions GenXIntrinsics/lib/GenXIntrinsics/GenXIntrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ static std::string getMangledTypeStr(Type *Ty) {
if (PointerType *PTyp = dyn_cast<PointerType>(Ty)) {
Result += "p" + llvm::utostr(PTyp->getAddressSpace());
#if VC_INTR_LLVM_VERSION_MAJOR >= 13
#if VC_INTR_LLVM_VERSION_MAJOR < 18
#if VC_INTR_LLVM_VERSION_MAJOR < 17
if (PTyp->isOpaque())
#endif // VC_INTR_LLVM_VERSION_MAJOR < 18
#endif // VC_INTR_LLVM_VERSION_MAJOR < 17
return Result;
#endif // VC_INTR_LLVM_VERSION_MAJOR >= 13
Result += getMangledTypeStr(VCINTR::Type::getNonOpaquePtrEltTy(PTyp));
Expand Down

0 comments on commit 25d319a

Please sign in to comment.