Re: [cfe-users] Backend error

2018-08-22 Thread Jonas Toth via cfe-users
Could you please report this as a bug at
https://bugs.llvm.org/describecomponents.cgi?product=clang

Best, Jonas


Am 21.08.2018 um 08:01 schrieb Itaru Kitayama via cfe-users:
> Hi,
> I am seeing a application build error shown below:
>
> [  7%] Building CXX object sli/CMakeFiles/sli_lib.dir/filesystem.cc.o
> fatal error: error in backend: Cannot select: t42: i16,ch =
> AtomicLoad<(volatile load acquire 1 from `i8
>       addrspace(1)* bitcast (i64 addrspace(1)*
>      
> @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed
> to i8 addrspace(1)*)`, align 8,
>       addrspace 1)> t7:1, t46
>   t46: i64 = NVPTXISD::Wrapper TargetGlobalAddress:i64 addrspace(1)*
> @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed>
> 0
>     t45: i64 = TargetGlobalAddress @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed>
> 0
> In function:
> _ZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreter
> clang-8: error: clang frontend command failed with exit code 70 (use
> -v to see invocation)
> clang version 8.0.0 (https://github.com/llvm-mirror/clang
> e20516350f5e2062f0b5f49efb56acd94c83e5e4)
> (https://github.com/llvm-mirror/llvm
> c04ae04bb3ce0d715190819fa3f5c001c471d969)
> Target: powerpc64le-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /gpfs/work/pcp0/pcp0151/opt/llvm+clang-upstream/bin
> clang-8: note: diagnostic msg: PLEASE submit a bug report to
> https://bugs.llvm.org/ and include the crash backtrace, preprocessed
> source, and associated run script.
> clang-8: note: diagnostic msg: Error generating preprocessed source(s).
> make[2]: *** [sli/CMakeFiles/sli_lib.dir/filesystem.cc.o] Error 70
> make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2
> make: *** [all] Error 2
>
> The LLVM/Clang toolchain I'm using is the trunk clang-8.
>
>
> ___
> cfe-users mailing list
> cfe-users@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] Backend error

2018-08-22 Thread Itaru Kitayama via cfe-users
Hi,
Please see: https://bugs.llvm.org/show_bug.cgi?id=38667

On Wed, Aug 22, 2018 at 4:54 PM Jonas Toth 
wrote:

> Could you please report this as a bug at
> https://bugs.llvm.org/describecomponents.cgi?product=clang
>
> Best, Jonas
>
> Am 21.08.2018 um 08:01 schrieb Itaru Kitayama via cfe-users:
>
> Hi,
> I am seeing a application build error shown below:
>
> [  7%] Building CXX object sli/CMakeFiles/sli_lib.dir/filesystem.cc.o
> fatal error: error in backend: Cannot select: t42: i16,ch =
> AtomicLoad<(volatile load acquire 1 from `i8
>   addrspace(1)* bitcast (i64 addrspace(1)*
>
> @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed
> to i8 addrspace(1)*)`, align 8,
>   addrspace 1)> t7:1, t46
>   t46: i64 = NVPTXISD::Wrapper TargetGlobalAddress:i64 @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed>
> 0
> t45: i64 = TargetGlobalAddress @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed>
> 0
> In function:
> _ZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreter
> clang-8: error: clang frontend command failed with exit code 70 (use -v to
> see invocation)
> clang version 8.0.0 (https://github.com/llvm-mirror/clang
> e20516350f5e2062f0b5f49efb56acd94c83e5e4) (
> https://github.com/llvm-mirror/llvm
> c04ae04bb3ce0d715190819fa3f5c001c471d969)
> Target: powerpc64le-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /gpfs/work/pcp0/pcp0151/opt/llvm+clang-upstream/bin
> clang-8: note: diagnostic msg: PLEASE submit a bug report to
> https://bugs.llvm.org/ and include the crash backtrace, preprocessed
> source, and associated run script.
> clang-8: note: diagnostic msg: Error generating preprocessed source(s).
> make[2]: *** [sli/CMakeFiles/sli_lib.dir/filesystem.cc.o] Error 70
> make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2
> make: *** [all] Error 2
>
> The LLVM/Clang toolchain I'm using is the trunk clang-8.
>
>
> ___
> cfe-users mailing 
> listcfe-us...@lists.llvm.orghttp://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
>
>
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


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

2018-08-22 Thread Zhiguo Ge via cfe-users
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 
> -
>
> Message: 1
> Date: Tue, 21 Aug 2018 17:30:13 -0400
> From: rsherry8 via cfe-users 
> To: cfe-users@lists.llvm.org
> Subject: Re: [cfe-users] How to make LLVM IR (SHIFT) in Clang to
> support complex data type
> Message-ID: <5b7c8465.5030...@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@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@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
>
>
>
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users