HomePhabricator

[AMDGPU] Set the default globals address space to 1

Authored by arichardson on Jul 22 2020, 6:41 AM.

Description

[AMDGPU] Set the default globals address space to 1

This will ensure that passes that add new global variables will create them
in address space 1 once the passes have been updated to no longer default
to the implicit address space zero.
This also changes AutoUpgrade.cpp to add -G1 to the DataLayout if it wasn't
already to present to ensure bitcode backwards compatibility.

Reviewed by: arsenm

Differential Revision: https://reviews.llvm.org/D84345

Details

Committed
arichardsonNov 20 2020, 7:46 AM
Reviewer
arsenm
Differential Revision
D84345: [AMDGPU] Set the default globals address space to 1
Parents
rG3bc4157556b0: Add a default address space for globals to DataLayout
Branches
Unknown
Tags
Unknown