[Mlir-commits] [mlir] [mlir][ArmSVE] Add convert_to/from_svbool ops	(PR #68586)
    Benjamin Maxwell 
    llvmlistbot at llvm.org
       
    Tue Oct 10 05:39:24 PDT 2023
    
    
  
================
@@ -236,6 +243,66 @@ def UmmlaOp : ArmSVE_Op<"ummla",
     "$acc `,` $src1 `,` $src2 attr-dict `:` type($src1) `to` type($dst)";
 }
 
+
+class SvboolTypeContraint<string lhsArg, string rhsArg> : TypesMatchWith<
+      "expected corresponding svbool type widened to [16]xi1",
+      lhsArg, rhsArg,
+      "VectorType(VectorType::Builder(::llvm::cast<VectorType>($_self)).setDim(::llvm::cast<VectorType>($_self).getRank() - 1, 16))">;
----------------
MacDue wrote:
This is how all `TypesMatchWith` constraints are, `$lhsArg` would not be valid (it just does ` !subst("$_self", lhsArg ...)`. 
https://github.com/llvm/llvm-project/pull/68586
    
    
More information about the Mlir-commits
mailing list