[clang] [CIR] Implement Unary inc for VectorType of int (PR #202707)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 18:00:05 PDT 2026


================
@@ -614,6 +614,8 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
 
     mlir::Value value;
     mlir::Value input;
+    mlir::Location loc = cgf.getLoc(e->getSourceRange());
+    int amount = e->isIncrementOp() ? 1 : -1;
----------------
andykaylor wrote:

I'd be tempted to duplicate this code rather than have it so far from its uses.

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


More information about the cfe-commits mailing list