[llvm-dev] [RFC] BasicAA considers address spaces?

Matt Arsenault via llvm-dev
Sat, 08 Aug 2015 01:21:27 -0000

On 08/07/2015 06:13 PM, Hal Finkel wrote:
> But you seem to be implying that you'll use different address spaces
> at the IR level, but that these address spaces will be changed prior
> to the target seeing them? Or that the target will internally map them
> all to address space 0 (instead of aborting). If the target knows to
> do this mapping, it can also understand the aliasing, no?

clang performs the mapping from source address space to target address
space. See AddrSpaceMap in clang's TargetInfo