Lines Matching refs:Create
259 // Create a clone for two reasons:
798 // Create a NEW `main' function with same type in the test module.
800 Function::Create(oldMain->getFunctionType(),
802 // Create an `oldmain' prototype in the test module, which will
804 Function *oldMainProto = Function::Create(oldMain->getFunctionType(),
818 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain);
819 CallInst *call = CallInst::Create(oldMainProto, args, "", BB);
822 ReturnInst::Create(Safe->getContext(), call, BB);
866 // Create a new global to hold the cached function pointer.
875 Function::Create(FuncTy, GlobalValue::InternalLinkage,
878 BasicBlock::Create(F->getContext(), "entry", FuncWrapper);
880 BasicBlock::Create(F->getContext(), "usecache", FuncWrapper);
882 BasicBlock::Create(F->getContext(), "lookupfp", FuncWrapper);
889 BranchInst::Create(LookupBB, DoCallBB, IsNull, EntryBB);
894 CallInst *Resolver = CallInst::Create(resolverFunc, ResolverArgs,
904 BranchInst::Create(DoCallBB, LookupBB);
907 PHINode::Create(NullPtr->getType(), 2, "fp", DoCallBB);
918 CallInst::Create(FuncTy, FuncPtr, Args, "", DoCallBB);
919 ReturnInst::Create(F->getContext(), DoCallBB);
922 CallInst::Create(FuncTy, FuncPtr, Args, "retval", DoCallBB);
923 ReturnInst::Create(F->getContext(), Call, DoCallBB);