llvm-6502/test
Nick Lewycky fad4d40f37 Teach GlobalOpt to handle atomic accesses to globals.
* Most of the transforms come through intact by having each transformed load or
store copy the ordering and synchronization scope of the original.
 * The transform that turns a global only accessed in main() into an alloca
(since main is non-recursive) with a store of the initial value uses an
unordered store, since it's guaranteed to be the first thing to happen in main.
(Threads may have started before main (!) but they can't have the address of a
function local before the point in the entry block we insert our code.)
 * The heap-SRoA transforms are disabled in the face of atomic operations. This
can probably be improved; it seems odd to have atomic accesses to an alloca
that doesn't have its address taken.

AnalyzeGlobal keeps track of the strongest ordering found in any use of the
global. This is more information than we need right now, but it's cheap to
compute and likely to be useful.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149847 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-05 19:56:38 +00:00
..
Analysis Change CaptureTracking to pass a Use* instead of a Value* when a value is 2011-12-28 23:24:21 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen Testcase for commit 149833 (use of an uninitialized variable noticed 2012-02-05 19:27:57 +00:00
DebugInfo Fix the testcases for the previous patch. 2012-01-24 10:11:49 +00:00
ExecutionEngine Remove "XFAIL: arm" from test/ExecutionEngine/test-return.ll 2012-01-17 18:21:05 +00:00
Feature
Instrumentation/AddressSanitizer [asan] enable asan only for the functions that have Attribute::AddressSafety 2012-01-24 19:34:43 +00:00
Integer
lib
Linker Link symbols with different visibilities according to the rules in the 2012-01-05 23:02:01 +00:00
MC Fixed a crash in llvm-mc for Mach-O when a symbol difference expression uses a 2012-01-31 23:02:57 +00:00
Object
Other Update test to new EH model. 2012-01-31 02:04:20 +00:00
Scripts
TableGen Add an (interleave A, B, ...) SetTheory operator. 2012-01-24 18:06:05 +00:00
Transforms Teach GlobalOpt to handle atomic accesses to globals. 2012-02-05 19:56:38 +00:00
Unit
Verifier
CMakeLists.txt CMake: Promote the testing targets out of folders on IDE. 2012-01-30 03:15:47 +00:00
lit.cfg Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
site.exp.in
TestRunner.sh