[Mlir-commits] [mlir] [mlir][EmitC] Model lvalues as a type in EmitC (PR #91475)

Matthias Gehre llvmlistbot at llvm.org
Tue Jun 11 07:19:41 PDT 2024


================
@@ -1134,20 +1145,48 @@ std::string CppEmitter::getSubscriptName(emitc::SubscriptOp op) {
   return out;
 }
 
+LogicalResult CppEmitter::cacheDeferredOpResult(Operation *op) {
+  if (op->getNumResults() != 1)
+    return op->emitError("Adding deferred ops into value cahce only works for "
----------------
mgehre-amd wrote:

```suggestion
    return op->emitError("Adding deferred ops into value cache only works for "
```

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


More information about the Mlir-commits mailing list