search for: ft_main

Displaying 1 result from an estimated 1 matches for "ft_main".

Did you mean: f_main
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...td::vector<const llvm::Type*, std::allocator<const llvm::Type*> > (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 *Th...