Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Function

48 #include "llvm/IR/Function.h"
70 void visitFunction(Function &F);
117 virtual bool runOnFunction(Function &F);
174 // function.
176 bool Lint::runOnFunction(Function &F) {
188 void Lint::visitFunction(Function &F) {
190 // fairly common mistake to neglect to name a function.
192 "Unusual: Unnamed function with non-local linkage", &F);
204 if (Function *F = dyn_cast<Function>(findValue(Callee, /*OffsetOk=*/false))) {
224 Function::arg_iterator PI = F->arg_begin(), PE = F->arg_end();
320 "Undefined behavior: va_start called in a non-varargs function",
356 Function *F = I.getParent()->getParent();
358 "Unusual: Return statement in function with noreturn attribute",
369 // TODO: Check readnone/readonly function attributes.
394 Assert1(!isa<Function>(UnderlyingObject) &&
399 Assert1(!isa<Function>(UnderlyingObject),
400 "Unusual: Load from function body", &I);
673 /// lintFunction - Check a function for errors, printing messages on stderr.
675 void llvm::lintFunction(const Function &f) {
676 Function &F = const_cast<Function&>(f);