aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaiyedul Islam <Saiyedul.Islam@amd.com>2024-01-23 20:30:44 +0530
committerGitHub <noreply@github.com>2024-01-23 20:30:44 +0530
commit9edd1c4daeba59b3db3390d449543b71c73f161b (patch)
tree59b09ca944a306a256e6b23b86dab1eca63649bb
parentc173a5bdc422ed457a04b68ec7c136add9eee11c (diff)
downloadllvm-9edd1c4daeba59b3db3390d449543b71c73f161b.zip
llvm-9edd1c4daeba59b3db3390d449543b71c73f161b.tar.gz
llvm-9edd1c4daeba59b3db3390d449543b71c73f161b.tar.bz2
[MLIR][AMDGPU] Switch to code object version 5 (#79144)
As AMDGPU backend has moved to cov5 as default, mlir should also switch to it.
-rw-r--r--mlir/lib/Target/LLVM/ROCDL/Target.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Target/LLVM/ROCDL/Target.cpp b/mlir/lib/Target/LLVM/ROCDL/Target.cpp
index a589e5c..cdcef1d 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,