[Mlir-commits] [mlir] [MLIR][GPUToLLVMSPV] Update ConvertGpuOpsToLLVMSPVOps's option (PR #118818)
Christian Ulmann
llvmlistbot at llvm.org
Wed Dec 11 22:52:14 PST 2024
================
@@ -553,9 +553,9 @@ def ConvertGpuOpsToLLVMSPVOps : Pass<"convert-gpu-to-llvm-spv", "gpu::GPUModuleO
"Generate LLVM operations to be ingested by a SPIR-V backend for gpu operations";
let dependentDialects = ["LLVM::LLVMDialect"];
let options = [
- Option<"indexBitwidth", "index-bitwidth", "unsigned",
- /*default=kDeriveIndexBitwidthFromDataLayout*/"0",
- "Bitwidth of the index type, 0 to use size of machine word">,
+ Option<"use64bitIndex", "use-64bit-index",
+ "bool", /*default=*/"false",
+ "Use 64-bit integers to convert index types">,
----------------
Dinistro wrote:
Thanks for elaborating on this design decision. Given that these are only pass options, and therefore not consumer facing, it's fine to keep this as is.
If we ever want to migrate away from the boolean option, this should be done in a separate effort that changes all related passes, but this is definitely not really important.
https://github.com/llvm/llvm-project/pull/118818
More information about the Mlir-commits
mailing list