[PATCH] D27627: Allow target to specify default address space for codegen
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 12 08:47:27 PST 2016
yaxunl added a comment.
> Because, notably, if you do that, then an attempt to pass &x as an int* will fail, which means this isn't really C++ anymore... and yet that appears to be exactly what you want.
How about when generating alloca instruction, I insert addrspacecast to the default address space, then everything is in default address space.
More information about the cfe-commits