[clang] [CIR] Implement Unary inc for VectorType of int (PR #202707)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 9 22:23:35 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;
----------------
AmrDeveloper wrote:
I will do that, also, I found that we have IncOp/DecOp that we can be used for a vector of ints, I will check it, not sure if it will fold if the operand is ConstVector 🤔
https://github.com/llvm/llvm-project/pull/202707
More information about the cfe-commits
mailing list