Home | History | Annotate | Download | only in IPO

Lines Matching refs:Function

44     bool PropagateConstantsIntoArguments(Function &F);
45 bool PropagateConstantReturn(Function &F);
77 /// function. If all uses are direct call sites, and all pass a particular
80 bool IPCP::PropagateConstantsIntoArguments(Function &F) {
94 // Used by a non-instruction, or not the callee of a function, do not
106 Function::arg_iterator Arg = F.arg_begin();
123 // give up on this function.
134 Function::arg_iterator AI = F.arg_begin();
151 // Check to see if this function returns one or more constants. If so, replace
156 // Additionally if a function always returns one of its arguments directly,
159 bool IPCP::PropagateConstantReturn(Function &F) {
163 // If this function could be overridden later in the link stage, we can't
168 // Check to see if this function returns a constant.
178 for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
219 // If we got here, the function returns at least one constant value. Loop