diff options
| author | Johannes Doerfert <johannes@jdoerfert.de> | 2021-09-02 14:12:22 -0500 |
|---|---|---|
| committer | Johannes Doerfert <johannes@jdoerfert.de> | 2021-09-10 12:08:50 -0500 |
| commit | 7dbba3376f633cabcf4df568bc9ca95f44a35203 (patch) | |
| tree | 6da41325f7f370694f179993eedfba41eb5ebe1f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | ca134c3963d310c2868f08c211011d610b4eefb5 (diff) | |
[GlobalOpt][FIX] Do not embed initializers into AS!=0 globals
Not all address spaces support initializers for globals and we can
therefore not set them without checking if they are allowed. This
patch adds a hook into TTI to check if an AS allows non-undef
initializers. We disable it for all but address space 0 by default,
NVPTX and AMDGPU targets allow all but address space 3.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D109337
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
