diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-02-07 00:43:21 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-02-07 00:43:21 +0000 |
commit | 8f844f39607f21daf7be93f7253d0e2eda83fb5f (patch) | |
tree | 145cea75c9b36a438397ad93de266ca2e9f23227 /llvm/lib/Analysis/LoopAnalysisManager.cpp | |
parent | c80bd0486d1b7e4e54b098b0f459b88e5f131f42 (diff) | |
download | bcm5719-llvm-8f844f39607f21daf7be93f7253d0e2eda83fb5f.tar.gz bcm5719-llvm-8f844f39607f21daf7be93f7253d0e2eda83fb5f.zip |
[AMDGPU] Lower null pointers in static variable initializer
For amdgcn target Clang generates addrspacecast to represent null pointers in private and local address spaces.
In LLVM codegen, the static variable initializer is lowered by virtual function AsmPrinter::lowerConstant which is target generic. Since addrspacecast is target specific, AsmPrinter::lowerConst
This patch overrides AsmPrinter::lowerConstant with AMDGPUAsmPrinter::lowerConstant, which is able to lower the target-specific addrspacecast in the null pointer representation so that -1 is co
Differential Revision: https://reviews.llvm.org/D29284
llvm-svn: 294265
Diffstat (limited to 'llvm/lib/Analysis/LoopAnalysisManager.cpp')
0 files changed, 0 insertions, 0 deletions