[PATCH] D46235: [bindings/go] Add Go bindings for volatile loads/stores
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 29 05:38:32 PDT 2018
aykevl created this revision.
aykevl added a reviewer: whitequark.
Repository:
rL LLVM
https://reviews.llvm.org/D46235
Files:
bindings/go/llvm/ir.go
Index: bindings/go/llvm/ir.go
===================================================================
--- bindings/go/llvm/ir.go
+++ 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.144468.patch
Type: text/x-patch
Size: 729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180429/92ff08c7/attachment-0001.bin>
More information about the llvm-commits
mailing list