search for: bararg

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

Did you mean: vararg
2008 Feb 13
3
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
...oF; pFooF = cast<Function>(M->getOrInsertFunction("foo", Type::VoidTy, Type::Int32Ty, NULL)); BasicBlock* pBody = new BasicBlock("body",pFooF); Argument* pArg = pFooF->arg_begin(); pArg->setName("i"); std::vector<Value*> barArgs; barArgs.push_back(pArg); new CallInst(pBarF, barArgs.begin(), barArgs.end(), "", pBody); new ReturnInst(NULL, pBody); return pFooF; } int main(int argc, char **argv) { // Create some module to put our function into it. Module *M = new Module("test...
2008 Feb 15
0
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
...t<Function>(M->getOrInsertFunction("foo", > Type::VoidTy, Type::Int32Ty, NULL)); > BasicBlock* pBody = new BasicBlock("body",pFooF); > Argument* pArg = pFooF->arg_begin(); > pArg->setName("i"); > std::vector<Value*> barArgs; > barArgs.push_back(pArg); > new CallInst(pBarF, barArgs.begin(), barArgs.end(), "", pBody); > new ReturnInst(NULL, pBody); > return pFooF; > } > > int main(int argc, char **argv) { > // Create some module to put our function into it. >...
2008 Feb 15
1
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
...oF; pFooF = cast<Function>(M->getOrInsertFunction("foo", Type::VoidTy, Type::Int32Ty, NULL)); BasicBlock* pBody = new BasicBlock("body",pFooF); Argument* pArg = pFooF->arg_begin(); pArg->setName("i"); std::vector<Value*> barArgs; barArgs.push_back(pArg); new CallInst(pBarF, barArgs.begin(), barArgs.end(), "", pBody); new ReturnInst(NULL, pBody); return pFooF; } int main(int argc, char **argv) { // Create some module to put our function into it. Module *M = new Module("test...