Displaying 2 results from an estimated 2 matches for "ea492052".
2014 May 26
3
[LLVMdev] Why can't atomic loads and stores handle floats?
...>> LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140526/ea492052/attachment.html>
2014 May 24
3
[LLVMdev] Why can't atomic loads and stores handle floats?
Looking through the documentation, I discovered that atomic loads and
stores are only supported for integer types. Can anyone provide some
background on this? Why is this true?
Currently, given code:
std::atomic<float> aFloat;
void foo() {
float f = atomic_load(&aFloat);
..
}
Clang generates code like:||
%"struct.std::atomic.2" = type { float }
@aFloat = global