Displaying 1 result from an estimated 1 matches for "f_main".
Did you mean:
_main
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...(2, Type::getInt32Ty(Context)),
/*not vararg*/false);
Constant* c = inMod.getOrInsertFunction("gcd", FT);
Function* gcd = cast<Function>(c);
FunctionType *FT_Main = FunctionType::get(Type::getInt32Ty(Context),
/*not vararg*/false);
Function *F_Main = Function::Create(FT_Main,
Function::ExternalLinkage, "main", mod);
BasicBlock *BB = BasicBlock::Create(Context, "EntryBlock", F_Main);
IRBuilder<> builder(BB);
Value *Thirty = ConstantInt::get(Type::getInt32Ty(Context), 30);
Value *Fifty = ConstantInt::ge...