[clang] [CIR] Upstream ComplexRealPtrOp for ComplexType (PR #144235)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 9 11:22:12 PDT 2025
AmrDeveloper wrote:
I updated the case `__real__ a + __real__ b` to be handled using `ComplexRealOp` because we actually need the value, and it aligned with ComplexDialect, but I think for cases like RValue `__real__ c = 10;` or `int* rp = &__real__ c` we want the result of the op to be pointer and i think it will be better to keep the Real and Imag Ptr Op and not load the value then try to get the address of it and use it as pointer
@bcardosolopes @andykaylor
https://github.com/llvm/llvm-project/pull/144235
More information about the cfe-commits
mailing list