[clang] [CIR] Upstream Unary Inc/Dec for ComplexType (PR #149162)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 18 12:09:25 PDT 2025
================
@@ -56,6 +56,26 @@ class ComplexExprEmitter : public StmtVisitor<ComplexExprEmitter, mlir::Value> {
mlir::Value VisitParenExpr(ParenExpr *e);
mlir::Value
VisitSubstNonTypeTemplateParmExpr(SubstNonTypeTemplateParmExpr *e);
+
+ mlir::Value VisitPrePostIncDec(const UnaryOperator *e, bool isInc,
+ bool isPre);
+
+ mlir::Value VisitUnaryPostDec(const UnaryOperator *e) {
----------------
AmrDeveloper wrote:
> You can assert to expect inc/dec?
Mmmmm, Yes, I will create a PR now
https://github.com/llvm/llvm-project/pull/149162
More information about the cfe-commits
mailing list