Lines Matching refs:Function
58 const Function *M = I->getParent() ? I->getParent()->getParent() : 0;
310 /// TheFunction - The function for which we are holding slot numbers.
311 const Function* TheFunction;
318 /// fMap - The slot map for the function level data.
328 /// Construct from a function, starting out in incorp state.
329 explicit SlotTracker(const Function *F);
337 /// If you'd like to deal with a function instead of just a module, use
339 void incorporateFunction(const Function *F) {
345 /// most recently incorporated function from the SlotTracker. This
356 /// This function does the actual initialization.
371 /// and function declarations, but not the contents of those functions.
401 if (const Function *Func = dyn_cast<Function>(V))
408 return new SlotTracker((Function *)0);
427 // Function level constructor. Causes the contents of the Module and the one
428 // function provided to be added to the slot table.
429 SlotTracker::SlotTracker(const Function *F)
474 // Process the arguments, basic blocks, and instructions of a function.
479 // Add all the function arguments with no names.
480 for(Function::const_arg_iterator AI = TheFunction->arg_begin(),
490 for (Function::const_iterator BB = TheFunction->begin(),
501 // llvm.foo function here, because the target may not be linked into the
504 if (Function *F = CI->getCalledFunction())
524 /// Clean up after incorporating a function. This is the only way to get out of
525 /// the function incorporation state that affects get*Slot/Create*Slot. Function
529 fMap.clear(); // Simply discard the function level map
556 /// getLocalSlot - Get the slot number for a value that is local to a function.
579 // G = Global, F = Function, A = Alias, o = other
581 (isa<Function>(V) ? 'F' :
592 // G = Global, F = Function, o = other
601 // Don't insert if N is a function-local metadata, these are always printed
1050 // from a different function. Translate it, as this can happen when using
1135 void printFunction(const Function *F);
1456 /// printFunction - Print all aspects of a function.
1458 void AssemblyWriter::printFunction(const Function *F) {
1508 for (Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end();
1516 // Otherwise, print the types from the function type.
1554 // Output all of the function's basic blocks.
1555 for (Function::const_iterator I = F->begin(), E = F->end(); I != E; ++I)
1565 /// the function. Simply print it out
1643 // This member is called for each Instruction in a function..
1804 // only do this if the first argument is a pointer to a nonvararg function,
1805 // and if the return type is not a pointer to a function.
1854 // only do this if the first argument is a pointer to a nonvararg function,
1855 // and if the return type is not a pointer to a function.
2063 const Function *F = I->getParent() ? I->getParent()->getParent() : 0;
2076 else if (const Function *F = dyn_cast<Function>(GV))
2081 const Function *F = N->getFunction();
2094 // Otherwise we don't know what it is. Call the virtual function to