[clang] [CIR] Upstream initial support for unary op (PR #131369)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 14 11:53:40 PDT 2025
================
@@ -468,6 +468,55 @@ def BrOp : CIR_Op<"br",
}];
}
+//===----------------------------------------------------------------------===//
+// UnaryOp
+//===----------------------------------------------------------------------===//
+
+def UnaryOpKind_Inc : I32EnumAttrCase<"Inc", 1, "inc">;
----------------
andykaylor wrote:
The pre/post semantics are captured in the CIR itself by where the `cir.unary` op appears in the control flow.
https://github.com/llvm/llvm-project/pull/131369
More information about the cfe-commits
mailing list