Lines Matching refs:Function
32 #include "llvm/Function.h"
182 // Only consider values with pointer types, and not function pointers.
203 static InstructionClass GetFunctionClass(const Function *F) {
204 Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end();
286 if (const Function *F = CI->getCalledFunction()) {
305 for (Function::const_arg_iterator AI = F->arg_begin(),
367 if (const Function *F = CI->getCalledFunction())
642 virtual ModRefBehavior getModRefBehavior(const Function *F);
728 ObjCARCAliasAnalysis::getModRefBehavior(const Function *F) {
787 virtual bool runOnFunction(Function &F);
817 bool ObjCARCExpand::runOnFunction(Function &F) {
992 /// provenance, is ever stored within the function (not counting callees).
1484 /// interesting runtine functions is in fact used in the current function.
1502 void OptimizeRetainCall(Function &F, Instruction *Retain);
1503 bool OptimizeRetainRVCall(Function &F, Instruction *RetainRV);
1504 void OptimizeAutoreleaseRVCall(Function &F, Instruction *AutoreleaseRV);
1505 void OptimizeIndividualCalls(Function &F);
1516 bool Visit(Function &F,
1532 void OptimizeWeakCalls(Function &F);
1534 bool OptimizeSequences(Function &F);
1536 void OptimizeReturns(Function &F);
1540 virtual bool runOnFunction(Function &F);
1780 /// function only tests dependencies relevant for removing pairs of calls.
1878 // If we've reached the function entry, produce a null dependence.
1930 ObjCARCOpt::OptimizeRetainCall(Function &F, Instruction *Retain) {
1954 ObjCARCOpt::OptimizeRetainRVCall(Function &F, Instruction *RetainRV) {
1992 ObjCARCOpt::OptimizeAutoreleaseRVCall(Function &F, Instruction *AutoreleaseRV) {
2017 void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
2029 // Delete no-op casts. These function calls have special semantics, but
2139 // are actually present in this function.
2664 // Visit - Visit the function both top-down and bottom-up.
2666 ObjCARCOpt::Visit(Function &F,
2674 // function exit point.
2678 for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) {
2701 typedef ReversePostOrderTraversal<Function *> RPOTType;
3008 void ObjCARCOpt::OptimizeWeakCalls(Function &F) {
3153 bool ObjCARCOpt::OptimizeSequences(Function &F) {
3161 /// BBStates, This is used during the traversal of the function to track the
3165 // Analyze the CFG of the function, and all instructions.
3188 void ObjCARCOpt::OptimizeReturns(Function &F) {
3194 for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE; ++FI) {
3312 bool ObjCARCOpt::runOnFunction(Function &F) {
3401 bool ContractAutorelease(Function &F, Instruction *Autorelease,
3413 virtual bool runOnFunction(Function &F);
3499 ObjCARCContract::ContractAutorelease(Function &F, Instruction *Autorelease,
3632 bool ObjCARCContract::runOnFunction(Function &F) {