llvm-project/llvm/test/CodeGen/XCore
Fangrui Song 961f31d8ad [TargetMachine] Don't imply dso_local on global variable declarations in Reloc::Static model
clang/lib/CodeGen/CodeGenModule sets dso_local on applicable global variables,
we don't need to duplicate the work in TargetMachine:shouldAssumeDSOLocal.
(Actually the long-term goal (started by r324535) is to remove as much
additional implied dso_local in TargetMachine:shouldAssumeDSOLocal as possible.)

By not implying dso_local, we will respect dso_local/dso_preemptable specifiers
set by the frontend. This allows the proposed -fno-direct-access-external-data
option to work with -fno-pic and prevent copy relocations.

This patch should be NFC in terms of the Clang behavior because the case we
don't set dso_local is a case Clang sets dso_local. However, some tests don't
set dso_local on some `external global` and expose some differences. Most tests
have been fixed to be more robust in previous commits.
2020-12-04 19:03:41 -08:00
..
2008-11-17-Shl64.ll
2009-01-08-Crash.ll
2009-01-14-Remat-Crash.ll
2009-03-27-v2f64-param.ll
2009-07-15-store192.ll
2010-02-25-LSR-Crash.ll
2011-01-31-DAGCombineBug.ll
2011-08-01-DynamicAllocBug.ll
DbgValueOtherTargets.test
addsub64.ll
aliases.ll
align.ll
alignment.ll
ashr.ll
atomic.ll
basictest.ll
bigstructret.ll
bitrev.ll
byVal.ll
call.ll
codemodel.ll
constants.ll
dwarf_debug.ll
epilogue_prologue.ll
events.ll
exception.ll
float-intrinsics.ll
fneg.ll
getid.ll
globals.ll
indirectbr.ll
inline-asm.ll
inlineasm-output-template.ll
ladd_lsub_combine.ll
licm-ldwcp.ll
linkage.ll
lit.local.cfg
llvm-intrinsics.ll
load.ll
memcpy.ll
misc-intrinsics.ll
mkmsk.ll
mul64.ll
offset_folding.ll
private.ll
ps-intrinsics.ll
resources.ll
resources_combine.ll
scavenging.ll
section-name.ll
sext.ll
shedulingPreference.ll
sr-intrinsics.ll
store.ll
switch.ll
switch_long.ll
threads.ll [TargetMachine] Don't imply dso_local on global variable declarations in Reloc::Static model 2020-12-04 19:03:41 -08:00
tls.ll
trampoline.ll
trap.ll
unaligned_load.ll
unaligned_store.ll
unaligned_store_combine.ll
varargs.ll
zext.ll
zextfree.ll