[clang] [CIR] Update CIR unary operations (PR #201727)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 08:29:00 PDT 2026
================
@@ -6062,6 +6088,34 @@ def CIR_ComplexDivOp : CIR_ComplexRangeBinOp<"complex.div"> {
}];
}
+//===----------------------------------------------------------------------===//
+// ComplexConjOp
+//===----------------------------------------------------------------------===//
+
+def CIR_ComplexConjOp
+ : CIR_Op<"complex.conj", [Pure, SameOperandsAndResultType]> {
+ let summary = "Complex conjugate";
+ let description = [{
+ The `cir.complex.conj` operation takes a complex number and returns its
+ complex conjugate, which is formed by negating the imaginary part.
----------------
erichkeane wrote:
ah, Conjugate!
https://github.com/llvm/llvm-project/pull/201727
More information about the cfe-commits
mailing list