[llvm-commits] [llvm-gcc-4.2] r46726 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
dpatel at apple.com
Sun Feb 10 21:21:17 PST 2008
On Feb 9, 2008, at 1:24 PM, Duncan Sands wrote:
> the current LLVM implementation means that anyone using threading
> to not do bitfield accesses, since the compiler generated code could
> cause trouble.
This is not handled by LLVM, this is handled by FE that is translating
source code into LLVM IR. Unless all front-ends enforce this, we can
not claim that LLVM guarantees bit-field thread safety (I do think, it
is convenient if tools support bit-field thread safety). If you are
suggesting to handle this some how inside LLVM itself then I mis-
understood your comment.
> Are you suggesting that users should roll their own
> bitfield code (I'm not saying that this is unreasonable)?
No. I'm merely stating current status quo.
More information about the llvm-commits