[Mlir-commits] [mlir] [MLIR][AMDGPU] Switch to code object version 5 (PR #79144)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jan 23 06:42:03 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Saiyedul Islam (saiislam)

<details>
<summary>Changes</summary>

As AMDGPU backend has moved to cov5 as default, mlir should also switch to it.

---
Full diff: https://github.com/llvm/llvm-project/pull/79144.diff


1 Files Affected:

- (modified) mlir/lib/Target/LLVM/ROCDL/Target.cpp (+1-1) 


``````````diff
diff --git a/mlir/lib/Target/LLVM/ROCDL/Target.cpp b/mlir/lib/Target/LLVM/ROCDL/Target.cpp
index a589e5cbbb6198..cdcef1d6b459c6 100644
--- a/mlir/lib/Target/LLVM/ROCDL/Target.cpp
+++ b/mlir/lib/Target/LLVM/ROCDL/Target.cpp
@@ -238,7 +238,7 @@ void SerializeGPUModuleBase::addControlVariables(
   addControlVariable("__oclc_wavefrontsize64", wave64);
 
   llvm::Type *i32Ty = llvm::Type::getInt32Ty(module.getContext());
-  int abi = 400;
+  int abi = 500;
   abiVer.getAsInteger(0, abi);
   llvm::GlobalVariable *abiVersion = new llvm::GlobalVariable(
       module, i32Ty, true, llvm::GlobalValue::LinkageTypes::LinkOnceODRLinkage,

``````````

</details>


https://github.com/llvm/llvm-project/pull/79144


More information about the Mlir-commits mailing list