Issue 160568
Summary Make Complex Real & Imag Op visible on int/real
Labels ClangIR
Assignees AmrDeveloper
Reporter AmrDeveloper
    Currently, when performing `__imag__ <int/float>`, in CIR, we emit a const 0 directly, and we want to make it clear that it's ComplexImagOp, so we can use that also in the analysis.

CIR ComplexRealOp & ComplexImagOp should accept ComplexElement type (int/real) as a valid type and use those ops directly without emitting temp ComplexCreateOp

Ref: https://github.com/llvm/llvm-project/pull/159916#discussion_r2370653375
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to