[clang] [CIR] Upstream Unary Inc/Dec for ComplexType (PR #149162)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 18 04:34:43 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) {
----------------
xlauko wrote:

I know this is already merged, but it would be nicer to pass `cir::UnaryOpKind` as second argument instead of ambiguous bool. @AmrDeveloper  can you fix this in additional PR please?

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


More information about the cfe-commits mailing list