[PATCH] D26157: [OpenCL] always use SPIR address spaces for kernel_arg_addr_space MD
Alexey Bader via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 2 04:21:47 PDT 2016
bader added a comment.
@pekka.jaaskelainen, I have related question: what is the problem with retaining OpenCL address space information in LLVM IR?
My understanding is that target CodeGen can ignore this information for the machines with 'flat' address space model.
On the other hand I would expect this information be useful for the Optimizer to resolve pointer aliasing.
Does it make any sense to keep OpenCL address space information in LLVM IR generated for the machines with 'flat' address space (e.g. CPU)?
More information about the cfe-commits