]> granicus.if.org Git - clang/commit
Move setTargetAttributes after setGVProperties in SetFunctionAttributes
authorScott Linder <scott@scottlinder.com>
Tue, 23 Apr 2019 21:50:11 +0000 (21:50 +0000)
committerScott Linder <scott@scottlinder.com>
Tue, 23 Apr 2019 21:50:11 +0000 (21:50 +0000)
commitfe8b4c1fcb60d63990abaa3f3b26ab8892474351
tree04caf44fa8eaf3574c907ba8efc78bc7bd389091
parentf7cbf839e8a5a043c1bb83deae99a904735f89cb
Move setTargetAttributes after setGVProperties in SetFunctionAttributes

AMDGPU currently relies on global properties being set before
setTargetProperties is called. Existing targets like MIPS which rely on
setTargetProperties do not rely on the current behavior, so this patch
moves the call later in SetFunctionAttributes.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359039 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenOpenCL/visibility.cl