[llvm-commits] C & OCaml bindings for volatile loads and stores

John McCall rjmccall at apple.com
Sat Sep 17 14:24:57 PDT 2011


On Sep 16, 2011, at 4:58 AM, Wojciech Matyjewicz wrote:
> I've attached a patch that extends the C & OCaml bindings with the possibility of creating volatile load/store instructions.
> 
> The alternative approach would introduce setter/getter functions instead of new "constructors". However, since the volatile attribute is defined separately for LoadInst and StoreInst, it would require two pairs of setter & getter functions...

Wouldn't you need the two getter functions anyway?  I think you might as well add the two setters, too.

John.



More information about the llvm-commits mailing list