mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 08:29:05 +03:00
Silence LLVM warnings on Linux
This commit is contained in:
@ -1,7 +1,10 @@
|
|||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
#include <llvm-c/Core.h>
|
#include <llvm-c/Core.h>
|
||||||
#include <llvm/IR/IRBuilder.h>
|
#include <llvm/IR/IRBuilder.h>
|
||||||
#include <llvm/IR/Type.h>
|
#include <llvm/IR/Type.h>
|
||||||
#include <llvm/IR/Instructions.h>
|
#include <llvm/IR/Instructions.h>
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -189,7 +192,8 @@ void LLVMZludaBuildFence(LLVMBuilderRef B, LLVMAtomicOrdering Ordering,
|
|||||||
auto builder = llvm::unwrap(B);
|
auto builder = llvm::unwrap(B);
|
||||||
LLVMContext &context = builder->getContext();
|
LLVMContext &context = builder->getContext();
|
||||||
builder->CreateFence(mapFromLLVMOrdering(Ordering),
|
builder->CreateFence(mapFromLLVMOrdering(Ordering),
|
||||||
context.getOrInsertSyncScopeID(scope));
|
context.getOrInsertSyncScopeID(scope),
|
||||||
|
Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVM_C_EXTERN_C_END
|
LLVM_C_EXTERN_C_END
|
Reference in New Issue
Block a user