[Mlir-commits] [mlir] [mlir][EmitC] Allow further ops within expressions (PR #84284)

Simon Camphausen llvmlistbot at llvm.org
Thu Mar 7 05:15:11 PST 2024


================
@@ -72,8 +72,16 @@ inline LogicalResult interleaveCommaWithError(const Container &c,
 static FailureOr<int> getOperatorPrecedence(Operation *operation) {
   return llvm::TypeSwitch<Operation *, FailureOr<int>>(operation)
       .Case<emitc::AddOp>([&](auto op) { return 11; })
----------------
simon-camp wrote:

```suggestion
      .Case<emitc::AddOp>([&](auto op) { return 12; })
```

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


More information about the Mlir-commits mailing list