Displaying 3 results from an estimated 3 matches for "createbarfunct".
2008 Feb 13
3
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
..."llvm/ExecutionEngine/GenericValue.h"
#include "llvm/System/DynamicLibrary.h"
#include "llvm/CallingConv.h"
#include <iostream>
#include <stdio.h>
using namespace llvm;
void bar(int i)
{
printf("the int is %i\n",i);
}
Function* createBarFunction(Module* M)
{
Function* pBarF = cast<Function>(M->getOrInsertFunction("bar", Type::VoidTy, Type::Int32Ty, NULL));
return pBarF;
}
Function* createFooFunction(Module* M)
{
Function* pBarF = createBarFunction(M),
* pFooF;
pFooF = cast<...
2008 Feb 15
0
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
...ot;
> #include "llvm/System/DynamicLibrary.h"
> #include "llvm/CallingConv.h"
> #include <iostream>
> #include <stdio.h>
> using namespace llvm;
>
> void bar(int i)
> {
> printf("the int is %i\n",i);
> }
>
> Function* createBarFunction(Module* M)
> {
> Function* pBarF = cast<Function>(M->getOrInsertFunction("bar",
> Type::VoidTy, Type::Int32Ty, NULL));
> return pBarF;
> }
>
> Function* createFooFunction(Module* M)
> {
> Function* pBarF = createBarFunction(M),
>...
2008 Feb 15
1
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
..."llvm/ExecutionEngine/GenericValue.h"
#include "llvm/System/DynamicLibrary.h"
#include "llvm/CallingConv.h"
#include <iostream>
#include <stdio.h>
using namespace llvm;
void bar(int i)
{
printf("the int is %i\n",i);
}
Function* createBarFunction(Module* M)
{
Function* pBarF = cast<Function>(M->getOrInsertFunction("bar", Type::VoidTy, Type::Int32Ty, NULL));
return pBarF;
}
Function* createFooFunction(Module* M)
{
Function* pBarF = createBarFunction(M),
* pFooF;
pFooF = cast<...