[Mlir-commits] [mlir] 6aedf1c - [MLIR][XeGPU] Add more OCP micro scaling format types. (#177613)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jan 23 11:55:30 PST 2026
Author: Sang Ik Lee
Date: 2026-01-23T11:55:25-08:00
New Revision: 6aedf1cfd0d245901dff71b664f0d35ccb939276
URL: https://github.com/llvm/llvm-project/commit/6aedf1cfd0d245901dff71b664f0d35ccb939276
DIFF: https://github.com/llvm/llvm-project/commit/6aedf1cfd0d245901dff71b664f0d35ccb939276.diff
LOG: [MLIR][XeGPU] Add more OCP micro scaling format types. (#177613)
Add fp4 - e2m1 and fp8 - e8m0 data type.
Added:
Modified:
mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
index d9a785c869c3c..c50bd25df2742 100644
--- a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
+++ b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
@@ -15,7 +15,8 @@ include "mlir/IR/BuiltinTypes.td"
def XeGPU_IntType : AnyTypeOf<[I1, I<4>, I8, I16, I32, I64, SI1, SI8, SI16,
SI32, SI64, UI1, UI8, UI16, UI32, UI64]>;
-def XeGPU_FloatType : AnyTypeOf<[F8E4M3FN, F8E5M2, F16, F32, F64, BF16, TF32]>;
+def XeGPU_FloatType : AnyTypeOf<[F4E2M1FN, F8E4M3FN, F8E5M2, F8E8M0FNU, F16,
+ F32, F64, BF16, TF32]>;
def XeGPU_ScalarType: AnyTypeOf<[XeGPU_IntType, XeGPU_FloatType]>;
def XeGPU_PointerType : AnyTypeOf<[UI64, UI32, I64, I32]>;
def XeGPU_BaseAddrType
More information about the Mlir-commits
mailing list