Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Function

11 // optimizations for calls to specific well-known function calls (e.g. runtime
13 // "replace call to library function with simpler code that provides the same
49 Function *Caller;
62 virtual Value *CallOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B)
105 bool runOnFunction(Function &F);
107 void setDoesNotAccessMemory(Function &F);
108 void setOnlyReadsMemory(Function &F);
109 void setDoesNotThrow(Function &F);
110 void setDoesNotCapture(Function &F, unsigned n);
111 void setDoesNotAlias(Function &F, unsigned n);
114 void inferPrototypeAttributes(Function &F);
153 bool SimplifyLibCalls::runOnFunction(Function &F) {
164 for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
171 Function *Callee = CI->getCalledFunction();
213 void SimplifyLibCalls::setDoesNotAccessMemory(Function &F) {
220 void SimplifyLibCalls::setOnlyReadsMemory(Function &F) {
227 void SimplifyLibCalls::setDoesNotThrow(Function &F) {
234 void SimplifyLibCalls::setDoesNotCapture(Function &F, unsigned n) {
241 void SimplifyLibCalls::setDoesNotAlias(Function &F, unsigned n) {
250 void SimplifyLibCalls::inferPrototypeAttributes(Function &F) {
803 // May throw; places call through function pointer.
895 Function &F = *I;