[llvm-dev] RFC: Complex in LLVM

Chris Lattner via llvm-dev llvm-dev at lists.llvm.org
Wed Jul 3 18:06:00 PDT 2019



> On Jul 3, 2019, at 4:43 PM, Krzysztof Parzyszek via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> -----Original Message-----
> From: David Greene <dag at cray.com>
> Sent: Wednesday, July 3, 2019 2:44 PM
> To: Krzysztof Parzyszek via llvm-dev <llvm-dev at lists.llvm.org>
> Cc: Krzysztof Parzyszek <kparzysz at quicinc.com>
> Subject: [EXT] Re: [llvm-dev] RFC: Complex in LLVM
> 
> Krzysztof Parzyszek via llvm-dev <llvm-dev at lists.llvm.org> writes:
> 
>>> In addition to that, we shouldn't limit complex types to floating
>>> point only.  What we care about is keeping the "ac-bd" together, not
>>> what type a,b,c,d are.
>> 
>> Can you give some examples of non-FP types where a higher-level representation would be useful?
> 
> Hexagon has instructions to do complex multiplication on pairs i16 x i16 (plus variants like accumulate, conjugate, etc.).

How difficult are these to pattern match on scalar code?

-Chris


More information about the llvm-dev mailing list