Lines Matching refs:module
28 bool isRSAPICall(llvm::Module &module, llvm::CallInst *call_inst) {
31 (void)module;
42 bool isRSLargeReturnCall(llvm::Module &module, llvm::CallInst *call_inst) {
53 (void)module;
71 bool isRSAllocationTyCallSite(llvm::Module &module, llvm::CallInst *call_inst) {
72 (void)module;
126 bool findRSCallSites(llvm::Module &module,
131 for (auto &func : module.getFunctionList())
139 if (isRSAPICall(module, call_inst) && predicate(module, call_inst)) {
147 bool fixupX86StructRetCalls(llvm::Module &module) {
153 if (!findRSCallSites(module, rs_callsites, isRSLargeReturnCall))
171 const llvm::DataLayout &DL = module.getDataLayout();
210 bool fixupRSAllocationStructByValCalls(llvm::Module &module) {
225 if (!findRSCallSites(module, rs_callsites, isRSAllocationTyCallSite))
268 bool fixupX86FunctionCalls(llvm::Module &module) {
269 return fixupX86StructRetCalls(module);
272 bool fixupX86_64FunctionCalls(llvm::Module &module) {
274 changed |= fixupX86StructRetCalls(module);
275 changed |= fixupRSAllocationStructByValCalls(module);