[Mlir-commits] [mlir] [MLIR][XeVM] Update XeVM type converter (PR #189306)
Sang Ik Lee
llvmlistbot at llvm.org
Fri Apr 10 12:52:25 PDT 2026
================
@@ -1103,17 +1079,15 @@ struct ConvertXeGPUToXeVMPass
if (type.isScattered())
return {};
if (type.getRank() == 1)
- return IntegerType::get(&getContext(), 64);
- auto i32Type = IntegerType::get(&getContext(), 32);
+ return xevmIndexType;
return VectorType::get(8, i32Type);
});
// Convert MemDescType into i32 for SLM
- typeConverter.addConversion([&](xegpu::MemDescType type) -> Type {
- return IntegerType::get(&getContext(), 32);
- });
+ typeConverter.addConversion(
+ [&](xegpu::MemDescType type) -> Type { return i32Type; });
----------------
silee2 wrote:
Option of SLM index size will be introduced.
As mentioned above, should move away from user option and rely on DLTI which kind of a spec/documentation about data type size and alignment.
https://github.com/llvm/llvm-project/pull/189306
More information about the Mlir-commits
mailing list