• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/

Lines Matching refs:Lint

1 //===-- Lint.cpp - Check for common errors in LLVM IR ---------------------===//
36 #include "llvm/Analysis/Lint.h"
91 class Lint : public FunctionPass, public InstVisitor<Lint> {
92 friend class InstVisitor<Lint>;
140 Lint() : FunctionPass(ID), MessagesStr(Messages) {
186 char Lint::ID = 0;
187 INITIALIZE_PASS_BEGIN(Lint, "lint", "Statically lint-checks LLVM IR",
193 INITIALIZE_PASS_END(Lint, "lint", "Statically lint-checks LLVM IR",
200 // Lint::run - This is the main Analysis entry point for a
203 bool Lint::runOnFunction(Function &F) {
216 void Lint::visitFunction(Function &F) {
225 void Lint::visitCallSite(CallSite CS) {
394 void Lint::visitCallInst(CallInst &I) {
398 void Lint::visitInvokeInst(InvokeInst &I) {
402 void Lint::visitReturnInst(ReturnInst &I) {
415 void Lint::visitMemoryReference(Instruction &I,
506 void Lint::visitLoadInst(LoadInst &I) {
512 void Lint::visitStoreInst(StoreInst &I) {
519 void Lint::visitXor(BinaryOperator &I) {
524 void Lint::visitSub(BinaryOperator &I) {
529 void Lint::visitLShr(BinaryOperator &I) {
536 void Lint::visitAShr(BinaryOperator &I) {
543 void Lint::visitShl(BinaryOperator &I) {
585 void Lint::visitSDiv(BinaryOperator &I) {
590 void Lint::visitUDiv(BinaryOperator &I) {
595 void Lint::visitSRem(BinaryOperator &I) {
600 void Lint::visitURem(BinaryOperator &I) {
605 void Lint::visitAllocaInst(AllocaInst &I) {
614 void Lint::visitVAArgInst(VAArgInst &I) {
619 void Lint::visitIndirectBrInst(IndirectBrInst &I) {
627 void Lint::visitExtractElementInst(ExtractElementInst &I) {
634 void Lint::visitInsertElementInst(InsertElementInst &I) {
641 void Lint::visitUnreachableInst(UnreachableInst &I) {
656 /// this Lint pass to be useful even on non-optimized IR.
657 Value *Lint::findValue(Value *V, bool OffsetOk) const {
663 Value *Lint::findValueImpl(Value *V, bool OffsetOk,
735 return new Lint();
745 Lint *V = new Lint();
754 Lint *V = new Lint();