Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Function

50 #include "llvm/Function.h"
69 void visitFunction(Function &F);
115 virtual bool runOnFunction(Function &F);
170 // function.
172 bool Lint::runOnFunction(Function &F) {
183 void Lint::visitFunction(Function &F) {
185 // fairly common mistake to neglect to name a function.
187 "Unusual: Unnamed function with non-local linkage", &F);
199 if (Function *F = dyn_cast<Function>(findValue(Callee, /*OffsetOk=*/false))) {
219 Function::arg_iterator PI = F->arg_begin(), PE = F->arg_end();
315 "Undefined behavior: va_start called in a non-varargs function",
351 Function *F = I.getParent()->getParent();
353 "Unusual: Return statement in function with noreturn attribute",
364 // TODO: Check readnone/readonly function attributes.
389 Assert1(!isa<Function>(UnderlyingObject) &&
394 Assert1(!isa<Function>(UnderlyingObject),
395 "Unusual: Load from function body", &I);
636 /// lintFunction - Check a function for errors, printing messages on stderr.
638 void llvm::lintFunction(const Function &f) {
639 Function &F = const_cast<Function&>(f);