[Mlir-commits] [mlir] [mlir][emitc] Deferred emission as expressions (PR #159975)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Apr 24 13:52:22 PDT 2026
================
@@ -493,6 +494,15 @@ def EmitC_DereferenceOp : EmitC_Op<"dereference", [
$pointer `:` qualified(type($pointer)) attr-dict
}];
let hasVerifier = 1;
+
+ let extraClassDeclaration = [{
----------------
Jimmy2027 wrote:
would a mixin `AlwaysInlineCExpression` make sense here?
to set this in a single place:
```
bool hasSideEffects() { return false; }
bool alwaysInline() { return true; }
```
Something like `EmitC_UnaryOp` is doing
https://github.com/llvm/llvm-project/pull/159975
More information about the Mlir-commits
mailing list