[clang] [CIR] Add binary operators (PR #132420)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 12:06:06 PDT 2025


================
@@ -35,6 +83,22 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
   ScalarExprEmitter(CIRGenFunction &cgf, CIRGenBuilderTy &builder)
       : cgf(cgf), builder(builder) {}
 
+  //===--------------------------------------------------------------------===//
+  //                               Utilities
+  //===--------------------------------------------------------------------===//
+
+  mlir::Value emitPromotedValue(mlir::Value result, QualType promotionType) {
+    cgf.cgm.errorNYI(result.getLoc(), "floating cast for promoted value");
+    return nullptr;
----------------
andykaylor wrote:

```suggestion
    return {};
```

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


More information about the cfe-commits mailing list