search for: r174808

Displaying 2 results from an estimated 2 matches for "r174808".

2013 Feb 09
0
[LLVMdev] C-to-PTX compilation issues
...est (int x, int y) { b[0] = (255 - b[x]) + b[y]; // now it works! // b[0] = (255 - b[0]) + b[1]; // works b[1] = x - y; b[2] = x * y; return b[0]; } // end here If you compile LLVM in debug mode, you would have seen a failure about an unknown address space. I just committed a change in r174808 that emits a user-visible error for address space issues. I understand that there is a lack of documentation on the proper use of this back-end, and this is something I am working on rectifying. GPU targets place additional restrictions and conventions on compilers, and they often require some le...
2013 Feb 09
2
[LLVMdev] C-to-PTX compilation issues
Hi all, i'm trying to compile some small ANSI C benchmarks to PTX assembly. For this purpose, I'm using the NVPTX backend, introduced in the LLVM 3.2 release. It appears that certain LLVM constructs cannot be compiled to PTX. The problems mostly deal with handling of arrays. I also don't get any debug info when these problems. I use "llc" for compiling regular .ll