llvm.org GIT mirror llvm / 3847aa0
[bindings/go] Add Go bindings for volatile loads/stores Reviewers: whitequark Reviewed By: whitequark Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D46235 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331530 91177308-0d34-0410-b5e6-96231b3b80d8 David Bolvansky 1 year, 5 months ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
10361036 func (v Value) SetThreadLocal(tl bool) { C.LLVMSetThreadLocal(v.C, boolToLLVMBool(tl)) }
10371037 func (v Value) IsGlobalConstant() bool { return C.LLVMIsGlobalConstant(v.C) != 0 }
10381038 func (v Value) SetGlobalConstant(gc bool) { C.LLVMSetGlobalConstant(v.C, boolToLLVMBool(gc)) }
1039 func (v Value) IsVolatile() bool { return C.LLVMGetVolatile(v.C) != 0 }
1040 func (v Value) SetVolatile(volatile bool) { C.LLVMSetVolatile(v.C, boolToLLVMBool(volatile)) }
10391041
10401042 // Operations on aliases
10411043 func AddAlias(m Module, t Type, aliasee Value, name string) (v Value) {