[Mlir-commits] [mlir] [mlir][emitc] Refactor ArithToEmitC: perform sign adaptation, type conversions / cast insertion in a single place (PR #95789)

Corentin Ferry llvmlistbot at llvm.org
Tue Jun 18 07:35:13 PDT 2024


================
@@ -288,6 +288,7 @@ def EmitC_CastOp : EmitC_Op<"cast",
   let arguments = (ins EmitCType:$source);
   let results = (outs EmitCType:$dest);
   let assemblyFormat = "$source attr-dict `:` type($source) `to` type($dest)";
+  let hasFolder = 1;
----------------
cferry-AMD wrote:

Good catch -- looks like this folder works. I don't know why it didn't happen during my tests... 

https://github.com/llvm/llvm-project/pull/95789


More information about the Mlir-commits mailing list