diff options
| author | 2013-03-06 16:24:00 +0100 | |
|---|---|---|
| committer | 2013-03-06 16:29:42 +0100 | |
| commit | 4b2e0b05686857c9a8b34c5b2325634cca2fdeee (patch) | |
| tree | 224d160295cb294cd831a66b4d011ad9ce0df604 /src/compiler/llvm/compiler_llvm.cc | |
| parent | 4c1c283a7410784e9cab309f868248690b788a9c (diff) | |
Volatile support in Portable compiler.
Bug: 8209406
This CL adds volatile support in iget/iput/sget/sput instructions. For now,
we emit LLVM fence instructions at the right place. While it may not generate
the best code for each target, it provides correctness at least.
In the future, we'd like to replace the use of fence with atomic load/store
instructions. With the current state of LLVM, this should work for ARM and X86
but not on MIPS due to their atomic load/store implementation. We should track
this and once the MIPS target fits to our needs, replace the fences by atomic
load/store instructions.
Change-Id: I33fd688cf5a18619e0af102fb8fe749565be2a49
Diffstat (limited to 'src/compiler/llvm/compiler_llvm.cc')
0 files changed, 0 insertions, 0 deletions