Skip to content

Make Complex Real & Imag Op visible on int/real #160568

@AmrDeveloper

Description

@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: #159916 (comment)

Metadata

Metadata

Assignees

Labels

ClangIRAnything related to the ClangIR project

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions