[PATCH] D46235: [bindings/go] Add Go bindings for volatile loads/stores

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 4 08:17:58 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331530: [bindings/go] Add Go bindings for volatile loads/stores (authored by xbolva00, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46235?vs=144468&id=145200#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46235

Files:
  llvm/trunk/bindings/go/llvm/ir.go


Index: llvm/trunk/bindings/go/llvm/ir.go
===================================================================
--- llvm/trunk/bindings/go/llvm/ir.go
+++ llvm/trunk/bindings/go/llvm/ir.go
@@ -1037,6 +1037,8 @@
 func (v Value) SetThreadLocal(tl bool)    { C.LLVMSetThreadLocal(v.C, boolToLLVMBool(tl)) }
 func (v Value) IsGlobalConstant() bool    { return C.LLVMIsGlobalConstant(v.C) != 0 }
 func (v Value) SetGlobalConstant(gc bool) { C.LLVMSetGlobalConstant(v.C, boolToLLVMBool(gc)) }
+func (v Value) IsVolatile() bool          { return C.LLVMGetVolatile(v.C) != 0 }
+func (v Value) SetVolatile(volatile bool) { C.LLVMSetVolatile(v.C, boolToLLVMBool(volatile)) }
 
 // Operations on aliases
 func AddAlias(m Module, t Type, aliasee Value, name string) (v Value) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46235.145200.patch
Type: text/x-patch
Size: 762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180504/11d0a785/attachment.bin>


More information about the llvm-commits mailing list