================
@@ -3245,18 +3245,19 @@ def CIR_ComplexCreateOp : CIR_Op<"complex.create",
[Pure, SameTypeOperands]> {
def CIR_ComplexRealOp : CIR_Op<"complex.real", [Pure]> {
let summary = "Extract the real part of a complex value";
let description = [{
- `cir.complex.real` operation takes an operand of `!cir.complex` type and
- yields the real part of it.
+ `cir.complex.real` operation takes an operand of `!cir.complex` or scalar
+ type and yields the real part of it.
----------------
xlauko wrote:
This is a bit ambiguous as in constraints we define scalars to be bools and
pointers too.
Please explicitly stet that this can take integer or float.
https://github.com/llvm/llvm-project/pull/161080
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits