Home | History | Annotate | Download | only in IPA

Lines Matching refs:Function

45   /// function in the program.  Later, the entries for these functions are
46 /// removed if the function is found to call an external function (in which
51 /// function.
66 /// FunctionEffect - Capture whether or not this function reads or writes to
87 /// FunctionInfo - For each function, keep track of what globals are
89 std::map<const Function*, FunctionRecord> FunctionInfo;
121 /// getModRefBehavior - Return the behavior of the specified function if
123 /// case the most generic behavior of this function should be returned.
124 ModRefBehavior getModRefBehavior(const Function *F) {
137 /// getModRefBehavior - Return the behavior of the specified function if
139 /// case the most generic behavior of this function should be returned.
143 if (const Function* F = CS.getCalledFunction())
169 /// getFunctionInfo - Return the function info for the function, or null if
171 FunctionRecord *getFunctionInfo(const Function *F) {
172 std::map<const Function*, FunctionRecord>::iterator I =
181 bool AnalyzeUsesOfPointer(Value *V, std::vector<Function*> &Readers,
182 std::vector<Function*> &Writers,
204 std::vector<Function*> Readers, Writers;
246 std::vector<Function*> &Readers,
247 std::vector<Function*> &Writers,
269 // Make sure that this is just the function being called, not that it is
270 // passing into the function.
274 // Make sure that this is just the function being called, not that it is
275 // passing into the function.
316 // storing the loaded pointer somewhere else or passing to a function.
317 std::vector<Function*> ReadersWriters;
337 std::vector<Function*> ReadersWriters;
362 /// function.
373 // function records (may have been created when scanning globals).
387 Function *F = SCC[i]->getFunction();
394 // Try to get mod/ref behaviour from function attributes.
400 // This function might call back into the module and read a global -
401 // consider every global as possibly being read by this function.
414 if (Function *Callee = CI->second->getFunction()) {
416 // Propagate function effect up.
445 // Scan the function bodies for explicit loads or stores.
465 Function *Callee = Intrinsic->getCalledFunction();
477 // information to each function in the SCC.
554 if (const Function *F = CS.getCalledFunction())