Hi All,
I am trying to use Clang (trunk version) to compile some OpenCL kernels.
I’m confused about how the the OpenCL address space is handled.
The test case “clang/test/CodeGenOpenCL/address-spaces.cl” uses “-ffake-address-space-map” and it can pass when I use llvm-lit.
But when I try to compile it, clang gives a warning that “-ffake-address-space-map” is not used, and in the generated IR, and it seems that all the pointers are treated as “normal” pointers.
Can someone give me some advice?
Or maybe point me to the right documentation.
Thanks in advance!