Don't make atomic loads and stores volatile
This commit is contained in:
parent
c14b615534
commit
01112d1ac4
1 changed files with 0 additions and 2 deletions
|
@ -170,7 +170,6 @@ extern "C" LLVMValueRef LLVMBuildAtomicLoad(LLVMBuilderRef B,
|
||||||
AtomicOrdering order,
|
AtomicOrdering order,
|
||||||
unsigned alignment) {
|
unsigned alignment) {
|
||||||
LoadInst* li = new LoadInst(unwrap(source),0);
|
LoadInst* li = new LoadInst(unwrap(source),0);
|
||||||
li->setVolatile(true);
|
|
||||||
li->setAtomic(order);
|
li->setAtomic(order);
|
||||||
li->setAlignment(alignment);
|
li->setAlignment(alignment);
|
||||||
return wrap(unwrap(B)->Insert(li, Name));
|
return wrap(unwrap(B)->Insert(li, Name));
|
||||||
|
@ -182,7 +181,6 @@ extern "C" LLVMValueRef LLVMBuildAtomicStore(LLVMBuilderRef B,
|
||||||
AtomicOrdering order,
|
AtomicOrdering order,
|
||||||
unsigned alignment) {
|
unsigned alignment) {
|
||||||
StoreInst* si = new StoreInst(unwrap(val),unwrap(target));
|
StoreInst* si = new StoreInst(unwrap(val),unwrap(target));
|
||||||
si->setVolatile(true);
|
|
||||||
si->setAtomic(order);
|
si->setAtomic(order);
|
||||||
si->setAlignment(alignment);
|
si->setAlignment(alignment);
|
||||||
return wrap(unwrap(B)->Insert(si));
|
return wrap(unwrap(B)->Insert(si));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue