Lines Matching defs:Lint
1 //===-- Lint.cpp - Check for common errors in LLVM IR ---------------------===//
36 #include "llvm/Analysis/Lint.h"
83 cl::desc("In the Lint pass, abort on errors."));
93 class Lint : public InstVisitor<Lint> {
94 friend class InstVisitor<Lint>;
136 Lint(Module *Mod, const DataLayout *DL, AliasAnalysis *AA,
181 void Lint::visitFunction(Function &F) {
190 void Lint::visitCallBase(CallBase &I) {
369 void Lint::visitReturnInst(ReturnInst &I) {
382 void Lint::visitMemoryReference(Instruction &I, const MemoryLocation &Loc,
471 void Lint::visitLoadInst(LoadInst &I) {
476 void Lint::visitStoreInst(StoreInst &I) {
481 void Lint::visitXor(BinaryOperator &I) {
486 void Lint::visitSub(BinaryOperator &I) {
491 void Lint::visitLShr(BinaryOperator &I) {
498 void Lint::visitAShr(BinaryOperator &I) {
505 void Lint::visitShl(BinaryOperator &I) {
549 void Lint::visitSDiv(BinaryOperator &I) {
554 void Lint::visitUDiv(BinaryOperator &I) {
559 void Lint::visitSRem(BinaryOperator &I) {
564 void Lint::visitURem(BinaryOperator &I) {
569 void Lint::visitAllocaInst(AllocaInst &I) {
578 void Lint::visitVAArgInst(VAArgInst &I) {
583 void Lint::visitIndirectBrInst(IndirectBrInst &I) {
591 void Lint::visitExtractElementInst(ExtractElementInst &I) {
600 void Lint::visitInsertElementInst(InsertElementInst &I) {
608 void Lint::visitUnreachableInst(UnreachableInst &I) {
623 /// this Lint pass to be useful even on non-optimized IR.
624 Value *Lint::findValue(Value *V, bool OffsetOk) const {
630 Value *Lint::findValueImpl(Value *V, bool OffsetOk,
701 Lint L(Mod, DL, AA, AC, DT, TLI);