Lines Matching refs:module

27 bool isRSAPICall(llvm::Module &module, llvm::CallInst *call_inst) {  in isRSAPICall()  argument
30 (void)module; in isRSAPICall()
41 bool isRSLargeReturnCall(llvm::Module &module, llvm::CallInst *call_inst) { in isRSLargeReturnCall() argument
52 (void)module; in isRSLargeReturnCall()
70 bool isRSAllocationTyCallSite(llvm::Module &module, llvm::CallInst *call_inst) { in isRSAllocationTyCallSite() argument
71 (void)module; in isRSAllocationTyCallSite()
125 bool findRSCallSites(llvm::Module &module, in findRSCallSites() argument
130 for (auto &func : module.getFunctionList()) in findRSCallSites()
138 if (isRSAPICall(module, call_inst) && predicate(module, call_inst)) { in findRSCallSites()
146 bool fixupX86StructRetCalls(llvm::Module &module) { in fixupX86StructRetCalls() argument
152 if (!findRSCallSites(module, rs_callsites, isRSLargeReturnCall)) in fixupX86StructRetCalls()
169 const llvm::DataLayout &DL = module.getDataLayout(); in fixupX86StructRetCalls()
210 bool fixupRSAllocationStructByValCalls(llvm::Module &module) { in fixupRSAllocationStructByValCalls() argument
225 if (!findRSCallSites(module, rs_callsites, isRSAllocationTyCallSite)) in fixupRSAllocationStructByValCalls()
268 bool fixupX86FunctionCalls(llvm::Module &module) { in fixupX86FunctionCalls() argument
269 return fixupX86StructRetCalls(module); in fixupX86FunctionCalls()
272 bool fixupX86_64FunctionCalls(llvm::Module &module) { in fixupX86_64FunctionCalls() argument
274 changed |= fixupX86StructRetCalls(module); in fixupX86_64FunctionCalls()
275 changed |= fixupRSAllocationStructByValCalls(module); in fixupX86_64FunctionCalls()