[LLVMdev] volatiles
Chris Lattner
sabre at nondot.org
Tue Sep 11 23:01:36 PDT 2007
On Sep 11, 2007, at 3:49 PM, John Regehr wrote:
> The attached file contains some simple functions that manipulate
> volatile
> varibles. The functions near the top of the file should turn into
> code
> that loads from x and then stores to it. The LLVM version on the
> web (not
> sure if it's the latest...) gets most of these wrong.
Hi John,
This appears to work with mainline llvm. The web page is from LLVM
2.0. When LLVM 2.1 is released we'll update it. For reference, here
is the output of mainline, please let me know if you see any problems:
$ llvm-gcc test_volatile.c -emit-llvm -O3 -S -o test_volatile.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_volatile.ll
Type: application/octet-stream
Size: 17432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070911/bc78985d/attachment.obj>
-------------- next part --------------
Thanks!
-Chris
More information about the llvm-dev
mailing list