search for: createfoofunct

Displaying 3 results from an estimated 3 matches for "createfoofunct".

2008 Feb 13
3
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
...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<Function>(M->getOrInsertFunction("foo", Type::VoidTy, Type::Int32Ty, NULL)); BasicBlock* pBody = new BasicBlock("body",pFooF); Argument* pArg = pFooF->a...
2008 Feb 15
0
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
...; { > 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<Function>(M->getOrInsertFunction("foo", > Type::VoidTy, Type::Int32Ty, NULL)); > BasicBlock* pBody = new BasicBlock("body",pFooF); >...
2008 Feb 15
1
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
...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<Function>(M->getOrInsertFunction("foo", Type::VoidTy, Type::Int32Ty, NULL)); BasicBlock* pBody = new BasicBlock("body",pFooF); Argument* pArg = pFooF->a...