Add atomic load/store
This commit is contained in:
parent
4d763680f6
commit
6ac0f3c369
6 changed files with 136 additions and 0 deletions
13
llvm/extra.h
13
llvm/extra.h
|
|
@ -45,6 +45,19 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Wraps IRBuilder::CreateLoad, setAtomic
|
||||
*/
|
||||
LLVMValueRef LLVMBuildAtomicLoad(LLVMBuilderRef builder, LLVMValueRef ptr,
|
||||
const char* ordering, int crossthread);
|
||||
/*
|
||||
* Wraps IRBuilder::CreateStore, setAtomic
|
||||
*/
|
||||
LLVMValueRef LLVMBuildAtomicStore(LLVMBuilderRef builder,
|
||||
LLVMValueRef ptr, LLVMValueRef val,
|
||||
const char* ordering, int crossthread);
|
||||
|
||||
/*
|
||||
* Wraps IRBuilder::CreateAtomicRMW
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue