Add memory fence
This commit is contained in:
parent
6ac0f3c369
commit
f479f85676
6 changed files with 54 additions and 2 deletions
|
|
@ -2070,6 +2070,11 @@ class Builder(object):
|
|||
inst.set_volatile(volatile)
|
||||
return inst
|
||||
|
||||
def fence(self, ordering, crossthread=True):
|
||||
inst = _make_value(_core.LLVMBuildFence(self.ptr, ordering.lower(),
|
||||
int(bool(crossthread))))
|
||||
return inst
|
||||
|
||||
#===----------------------------------------------------------------------===
|
||||
# Memory buffer
|
||||
#===----------------------------------------------------------------------===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue