Lines Matching refs:Function
44 /// function in the program. Later, the entries for these functions are
45 /// removed if the function is found to call an external function (in which
50 /// function.
65 /// FunctionEffect - Capture whether or not this function reads or writes to
86 /// FunctionInfo - For each function, keep track of what globals are
88 std::map<const Function*, FunctionRecord> FunctionInfo;
120 /// getModRefBehavior - Return the behavior of the specified function if
122 /// case the most generic behavior of this function should be returned.
123 ModRefBehavior getModRefBehavior(const Function *F) {
136 /// getModRefBehavior - Return the behavior of the specified function if
138 /// case the most generic behavior of this function should be returned.
142 if (const Function* F = CS.getCalledFunction())
168 /// getFunctionInfo - Return the function info for the function, or null if
170 FunctionRecord *getFunctionInfo(const Function *F) {
171 std::map<const Function*, FunctionRecord>::iterator I =
180 bool AnalyzeUsesOfPointer(Value *V, std::vector<Function*> &Readers,
181 std::vector<Function*> &Writers,
203 std::vector<Function*> Readers, Writers;
245 std::vector<Function*> &Readers,
246 std::vector<Function*> &Writers,
268 // Make sure that this is just the function being called, not that it is
269 // passing into the function.
273 // Make sure that this is just the function being called, not that it is
274 // passing into the function.
315 // storing the loaded pointer somewhere else or passing to a function.
316 std::vector<Function*> ReadersWriters;
334 Function *F = CI->getCalledFunction();
343 std::vector<Function*> ReadersWriters;
368 /// function.
379 // function records (may have been created when scanning globals).
393 Function *F = SCC[i]->getFunction();
400 // Try to get mod/ref behaviour from function attributes.
406 // This function might call back into the module and read a global -
407 // consider every global as possibly being read by this function.
420 if (Function *Callee = CI->second->getFunction()) {
422 // Propagate function effect up.
451 // Scan the function bodies for explicit loads or stores.
479 // information to each function in the SCC.
556 if (const Function *F = CS.getCalledFunction())