[cfe-users] cfe-users Digest, Vol 67, Issue 13

Zhiguo Ge via cfe-users cfe-users at lists.llvm.org
Wed Aug 22 18:33:34 PDT 2018


Hiļ¼ŒBob

Thanks!
Sorry, It is data type complex int. I would like to implement custom
instruction for complex numbers e.g, do complex int shift in one
instruction. Currently, complex int number is implemented as a array of int
with two real int number in Clang.

 I am new to Clang and the implementation of the front end are very
complicated to me and there are very few debug information dump in Clang.
As a result, it is difficult for me to find out the location of the code
which cause the error.

Zhiguo


On Thursday, August 23, 2018, via cfe-users <cfe-
>
> -
>
> Message: 1
> Date: Tue, 21 Aug 2018 17:30:13 -0400
> From: rsherry8 via cfe-users <cfe-users at lists.llvm.org>
> To: cfe-users at lists.llvm.org
> Subject: Re: [cfe-users] How to make LLVM IR (SHIFT) in Clang to
>         support complex data type
> Message-ID: <5B7C8465.5030808 at comcast.net>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> In this case, does the class complex support the shift operator? I
> suspect it does not. If it does then I suspect you have found a bug in
> Clang.
>
> I am wondering why you need compiler support here. Could you not just
> add a shift operator to the class complex?
>
> Bob
> On 8/21/2018 12:16 PM, Zhiguo Ge via cfe-users wrote:
> > 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!
> >
> >
> > _______________________________________________
> > cfe-users mailing list
> > cfe-users at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
> crubbed...
> URL: <http://lists.llvm.org/pipermail/cfe-users/
> attachments/20180822/d959dcc7/attachment-0001.html>
>
> ------------
> An HTML attachment was scrubbed...
> URL: <http://lists.llvm.org/pipermail/cfe-users/
> attachments/20180822/18873ff4/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180823/7657f879/attachment.html>


More information about the cfe-users mailing list