aboutsummaryrefslogtreecommitdiffhomepage
path: root/llvm_zluda/src/lib.cpp
blob: 3da88fb49f30c7f15ae20e4ea81d60771300f577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <llvm-c/Core.h>
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Type.h"

LLVM_C_EXTERN_C_BEGIN

LLVMValueRef LLVMZludaBuildAlloca(LLVMBuilderRef B, LLVMTypeRef Ty, unsigned AddrSpace,
                                  const char *Name)
{
    return llvm::wrap(llvm::unwrap(B)->CreateAlloca(llvm::unwrap(Ty), AddrSpace, nullptr, Name));
}

LLVM_C_EXTERN_C_END