[cfe-users] How to make LLVM IR (SHIFT) in Clang to support complex data type

Zhiguo Ge via cfe-users cfe-users at lists.llvm.org
Tue Aug 21 09:16:30 PDT 2018


Hi, All

I want IR in Clang to such as SHIFT can support complex number.
I tried to write the following code:
   complex data1;
   complex data2 = data1 >> 4;
The Clang compiler said invalid operands in binary instructions.
I guess Clang do the data type check and report the error.

Can anyone help to explain how to make Clang support complex number for
SHIFT IR?

Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180822/bc633d91/attachment.html>


More information about the cfe-users mailing list