[Mlir-commits] [mlir] [MLIR][NVVM] Add new narrow FP convert Ops (PR #184291)
Srinivasa Ravi
llvmlistbot at llvm.org
Wed Mar 11 08:52:34 PDT 2026
================
@@ -347,6 +347,32 @@ LogicalResult ConvertF32x2ToF6x2Op::verify() {
return success();
}
+LogicalResult ConvertF16x2ToF6x2Op::verify() {
+ mlir::MLIRContext *ctx = getContext();
+
+ if (!llvm::isa<mlir::Float6E2M3FNType, mlir::Float6E3M2FNType>(getDstTy())) {
----------------
Wolfram70 wrote:
Used `TypeAttrOf<...>` to constrain the allowed types for the new Ops. We can update the other Ops to use this in another PR as well. Thanks!
https://github.com/llvm/llvm-project/pull/184291
More information about the Mlir-commits
mailing list