• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/

Lines Matching refs:call_inst

28 bool isRSAPICall(llvm::Module &module, llvm::CallInst *call_inst) {
32 const auto func_name = call_inst->getCalledFunction()->getName();
36 if (call_inst->getCalledFunction()->isIntrinsic())
42 bool isRSLargeReturnCall(llvm::Module &module, llvm::CallInst *call_inst) {
54 if (!call_inst || !call_inst->getCalledFunction())
57 return call_inst->getCalledFunction()
71 bool isRSAllocationTyCallSite(llvm::Module &module, llvm::CallInst *call_inst) {
73 if (!call_inst->hasByValArgument())
75 for (const auto *param : call_inst->operand_values())
81 llvm::FunctionType *cloneToStructRetFnTy(llvm::CallInst *call_inst) {
91 assert(call_inst && "no CallInst");
92 llvm::Function *orig = call_inst->getCalledFunction();
134 llvm::CallInst *call_inst =
136 if (!call_inst || !call_inst->getCalledFunction())
139 if (isRSAPICall(module, call_inst) && predicate(module, call_inst)) {
140 rs_callsites.insert(call_inst);
156 for (auto call_inst : rs_callsites) {
157 llvm::FunctionType *new_func_type = cloneToStructRetFnTy(call_inst);
161 llvm::CallSite call_site(call_inst);
162 llvm::Function *func = call_inst->getCalledFunction();
174 call_inst);
186 "new_func_ptr", call_inst);
188 (new llvm::StoreInst(new_func_cast, new_func_ptr, call_inst))
192 new llvm::LoadInst(new_func_ptr, "load_func_pointer", call_inst);
196 "new_func_call", call_inst);
197 new_call_inst->setCallingConv(call_inst->getCallingConv());
198 new_call_inst->setTailCall(call_inst->isTailCall());
200 new llvm::LoadInst(return_value_alloc, "save_return_val", call_inst);
203 call_inst->replaceAllUsesWith(lldb_save_result_address);
204 call_inst->eraseFromParent();
231 for (auto call_inst : rs_callsites) {
234 rs_functions.insert(call_inst->getCalledFunction());
237 llvm::AttributeList call_attribs = call_inst->getAttributes();
245 call_inst->removeAttribute(I, llvm::Attribute::ByVal);