1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/lib
Philip Reames d32c9d5ac8 [IR] Add support for floating pointer atomic loads and stores
This patch allows atomic loads and stores of floating point to be specified in the IR and adds an adapter to allow them to be lowered via existing backend support for bitcast-to-equivalent-integer idiom.

Previously, the only way to specify a atomic float operation was to bitcast the pointer to a i32, load the value as an i32, then bitcast to a float. At it's most basic, this patch simply moves this expansion step to the point we start lowering to the backend.

This patch does not add canonicalization rules to convert the bitcast idioms to the appropriate atomic loads. I plan to do that in the future, but for now, let's simply add the support. I'd like to get instruction selection working through at least one backend (x86-64) without the bitcast conversion before canonicalizing into this form.

Similarly, I haven't yet added the target hooks to opt out of the lowering step I added to AtomicExpand. I figured it would more sense to add those once at least one backend (x86) was ready to actually opt out.

As you can see from the included tests, the generated code quality is not great. I plan on submitting some patches to fix this, but help from others along that line would be very welcome. I'm not super familiar with the backend and my ramp up time may be material.

Differential Revision: http://reviews.llvm.org/D15471

llvm-svn: 255737
2015-12-16 00:49:36 +00:00
..
Analysis Fix typo in r255720 2015-12-16 00:17:34 +00:00
AsmParser add fast-math-flags to 'call' instructions (PR21290) 2015-12-14 21:59:03 +00:00
Bitcode Use diagnostic handler in the LLVMContext 2015-12-14 23:17:03 +00:00
CodeGen [IR] Add support for floating pointer atomic loads and stores 2015-12-16 00:49:36 +00:00
DebugInfo [llvm-dwp] Retrieve the DWOID from the CU for the cu_index entry 2015-12-04 17:20:04 +00:00
ExecutionEngine [Orc] Rename IndirectStubsManagerBase to IndirectStubsManager. 2015-12-06 19:44:45 +00:00
Fuzzer [LibFuzzer] Introducing FUZZER_FLAG_UNSIGNED and using it for seeding. 2015-12-10 20:41:53 +00:00
IR [IR] Add support for floating pointer atomic loads and stores 2015-12-16 00:49:36 +00:00
IRReader
LibDriver
LineEditor
Linker Use diagnostic handler in the LLVMContext 2015-12-14 23:17:03 +00:00
LTO Use diagnostic handler in the LLVMContext 2015-12-14 23:17:03 +00:00
MC [X86][inline asm] support even directive 2015-12-13 17:07:23 +00:00
Object Use diagnostic handler in the LLVMContext 2015-12-14 23:17:03 +00:00
Option
Passes
ProfileData Initialize all bytes in vp data (msan error) 2015-12-15 21:57:08 +00:00
Support [x86] adding PKU feature flag 2015-12-15 13:35:29 +00:00
TableGen
Target [WinEH] Make llvm.x86.seh.recoverfp work on x64 2015-12-15 23:40:58 +00:00
Transforms Remove one of the void casts used to suppress unused variable warning. 2015-12-15 23:47:17 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile