Volatile support in Portable compiler.
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
1 file changed