[llvm-dev] RFC: Complex in LLVM

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 2 01:37:41 PDT 2019


On Mon, 1 Jul 2019 at 19:56, David Greene via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> llvm.creal.* - Overloaded intrinsic to extract the real part of a
>                complex value
> declare float  @llvm.creal.c32(c32 %Val)
> declare double @llvm.creal.c64(c64 %Val)

What are your plans for the reverse? I assume we don't want the only
way to materialize a complex to be via memory so an insertvalue
equivalent (or maybe using insertvalue/extractvalue directly?) and a
literal value would probably be useful.

Cheers.

Tim.


More information about the llvm-dev mailing list