Hi All,<div><br></div><div>I am trying to use Clang (trunk version) to compile some OpenCL kernels.</div><div><br></div><div>I'm confused about how the the OpenCL address space is handled.</div><div>The test case "clang/test/CodeGenOpenCL/<a href="http://address-spaces.cl">address-spaces.cl</a>" uses "-ffake-address-space-map" and it can pass when I use llvm-lit.</div>
<div><br></div><div>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.</div>
<div><br></div><div>Can someone give me some advice?</div><div>Or maybe point me to the right documentation.</div><div><br></div><div>Thanks in advance!</div><div>-- <br>Regards,<div>Dongrui</div><br>
</div>