Reviewed-by: Roland Scheidegger <sroland@vmware.com>
SingleThread ? llvm::SynchronizationScope::SingleThread : llvm::SynchronizationScope::CrossThread));
}
#endif
+
+#if HAVE_LLVM < 0x305
+LLVMValueRef LLVMBuildFence(LLVMBuilderRef B,
+ LLVMAtomicOrdering ordering,
+ LLVMBool singleThread,
+ const char *Name)
+{
+ return llvm::wrap(llvm::unwrap(B)->CreateFence(mapFromLLVMOrdering(ordering),
+ singleThread ? llvm::SynchronizationScope::SingleThread : llvm::SynchronizationScope::CrossThread));
+}
+#endif
LLVMBool SingleThread);
#endif
+#if HAVE_LLVM < 0x305
+LLVMValueRef LLVMBuildFence(LLVMBuilderRef B,
+ LLVMAtomicOrdering ordering,
+ LLVMBool singleThread, const char *Name);
+#endif
#ifdef __cplusplus
}
#endif