Lines Matching refs:Create
86 // Create a wrapper function with type Ty that calls F (which may have a
112 Function *Wrapper = Function::Create(Ty, Function::PrivateLinkage,
114 BasicBlock *BB = BasicBlock::Create(M->getContext(), "body", Wrapper);
168 CallInst *Call = CallInst::Create(F, Args, "", BB);
174 ReturnInst::Create(M->getContext(), BB);
177 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB);
179 ReturnInst::Create(M->getContext(), Call, BB);
185 ReturnInst::Create(M->getContext(), Cast, BB);
200 // Create a new wrapper that simply contains `unreachable`.
202 Wrapper = Function::Create(Ty, Function::PrivateLinkage,
204 BasicBlock *BB = BasicBlock::Create(M->getContext(), "body", Wrapper);
258 CallMain = CallInst::Create(MainTy, Main, Args, "call_main");