llvm-project/llvm/test
Evan Cheng e62288fdd4 Optimize some common usage patterns of atomic built-ins __sync_add_and_fetch() and __sync_sub_and_fetch.
When the return value is not used (i.e. only care about the value in the memory), x86 does not have to use add to implement these. Instead, it can use add, sub, inc, dec instructions with the "lock" prefix.

This is currently implemented using a bit of instruction selection trick. The issue is the target independent pattern produces one output and a chain and we want to map it into one that just output a chain. The current trick is to select it into a merge_values with the first definition being an implicit_def. The proper solution is to add new ISD opcodes for the no-output variant. DAG combiner can then transform the node before it gets to target node selection.

Problem #2 is we are adding a whole bunch of x86 atomic instructions when in fact these instructions are identical to the non-lock versions. We need a way to add target specific information to target nodes and have this information carried over to machine instructions. Asm printer (or JIT) can use this information to add the "lock" prefix.

llvm-svn: 77582
2009-07-30 08:33:02 +00:00
..
Analysis Slightly reformat LDA tests to ease grepping. 2009-07-28 23:40:40 +00:00
Archive sabre brings to my attention that the 'tr' suffix is also obsolete 2008-05-20 21:00:03 +00:00
Assembler Add a new keyword 'inbounds' for use with getelementptr. See the 2009-07-27 21:53:46 +00:00
Bindings/Ocaml Nounwind is not valid for function return values. 2009-05-06 13:51:18 +00:00
Bitcode Don't remove aggregate-typed module level constants before encoding functions 2009-06-12 05:20:12 +00:00
BugPoint Fix regular expression. 2009-06-12 05:39:02 +00:00
CodeGen Optimize some common usage patterns of atomic built-ins __sync_add_and_fetch() and __sync_sub_and_fetch. 2009-07-30 08:33:02 +00:00
DebugInfo upgrade 2009-06-23 22:11:37 +00:00
ExecutionEngine remove tests for removed intrinsics. 2009-07-12 21:30:06 +00:00
Feature Read and write NamedMDNode. 2009-07-29 22:34:41 +00:00
FrontendAda Adjust this test for recent sroa improvements. 2009-03-12 11:56:12 +00:00
FrontendC remove this test. It is currently failing because we now emit the string 2009-07-25 07:31:51 +00:00
FrontendC++ xfail for now. 2009-07-29 17:40:28 +00:00
FrontendFortran These tests are x86 specific. 2009-04-22 10:39:51 +00:00
FrontendObjC This test should be run with -m32. 2009-07-19 22:44:03 +00:00
FrontendObjC++ This is an objective-c test, not an objective-c++ one. 2008-10-06 18:42:48 +00:00
Integer Converted a1.ll to unittests. 2009-03-24 21:36:09 +00:00
LLVMC The 'forward_as' property did not use its second argument. 2009-05-06 01:41:19 +00:00
Linker Reimplement the old and horrible bison parser for .ll files with a nice 2009-01-02 07:01:27 +00:00
MC/AsmParser llvm-mc: Implement .abort fully in the front end 2009-07-27 23:20:52 +00:00
Other Add new function attribute - noimplicitfloat 2009-06-05 21:57:13 +00:00
Scripts simplify shell syntax to work better on solaris, patch by 2008-06-25 16:03:42 +00:00
TableGen Add some tests of advanced TableGen list functionality. 2009-06-29 20:07:17 +00:00
Transforms Fix PR4645 which was fallout from the fix for PR4641. 2009-07-29 22:00:43 +00:00
Verifier Dan noticed that the verifier wasn't thoroughly checking uses of 2009-05-29 19:39:36 +00:00
lib In an XFAIL line, treat "XFAIL: foo*bar" as a regular expression to be matched 2009-06-12 05:18:32 +00:00
Makefile Fix ocaml tests for 64-bit MacOS systems. LLVM is currently built 2009-07-21 21:56:46 +00:00
Makefile.tests
TestRunner.sh Fix a bashism in TestRunner.sh. 2008-07-28 18:41:03 +00:00