LLVM API Documentation
#include "llvm/Analysis/Lint.h"#include "llvm/ADT/STLExtras.h"#include "llvm/Analysis/AliasAnalysis.h"#include "llvm/Analysis/ConstantFolding.h"#include "llvm/Analysis/Dominators.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/Analysis/Loads.h"#include "llvm/Analysis/Passes.h"#include "llvm/Analysis/ValueTracking.h"#include "llvm/Assembly/Writer.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/Function.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/InstVisitor.h"#include "llvm/Pass.h"#include "llvm/PassManager.h"#include "llvm/Support/CallSite.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"#include "llvm/Target/TargetLibraryInfo.h"
Go to the source code of this file.
Namespaces | |
| namespace | MemRef |
Defines | |
| #define | Assert(C, M) do { if (!(C)) { CheckFailed(M); return; } } while (0) |
| #define | Assert1(C, M, V1) do { if (!(C)) { CheckFailed(M, V1); return; } } while (0) |
| #define | Assert2(C, M, V1, V2) do { if (!(C)) { CheckFailed(M, V1, V2); return; } } while (0) |
| #define | Assert3(C, M, V1, V2, V3) do { if (!(C)) { CheckFailed(M, V1, V2, V3); return; } } while (0) |
| #define | Assert4(C, M, V1, V2, V3, V4) do { if (!(C)) { CheckFailed(M, V1, V2, V3, V4); return; } } while (0) |
Functions | |
| INITIALIZE_PASS_BEGIN (Lint,"lint","Statically lint-checks LLVM IR", false, true) INITIALIZE_PASS_END(Lint | |
| static bool | isZero (Value *V, DataLayout *TD) |
Variables | |
| lint | |
| Statically lint checks LLVM | IR |
| Statically lint checks LLVM | false |
| #define Assert | ( | C, | |
| M | |||
| ) | do { if (!(C)) { CheckFailed(M); return; } } while (0) |
Definition at line 162 of file Lint.cpp.
Referenced by LowerEXTRACT_VECTOR_ELT_SSE4().
| #define Assert1 | ( | C, | |
| M, | |||
| V1 | |||
| ) | do { if (!(C)) { CheckFailed(M, V1); return; } } while (0) |
| #define Assert2 | ( | C, | |
| M, | |||
| V1, | |||
| V2 | |||
| ) | do { if (!(C)) { CheckFailed(M, V1, V2); return; } } while (0) |
| #define Assert3 | ( | C, | |
| M, | |||
| V1, | |||
| V2, | |||
| V3 | |||
| ) | do { if (!(C)) { CheckFailed(M, V1, V2, V3); return; } } while (0) |
| #define Assert4 | ( | C, | |
| M, | |||
| V1, | |||
| V2, | |||
| V3, | |||
| V4 | |||
| ) | do { if (!(C)) { CheckFailed(M, V1, V2, V3, V4); return; } } while (0) |
| static bool isZero | ( | Value * | V, |
| DataLayout * | TD | ||
| ) | [static] |
Definition at line 507 of file Lint.cpp.
References llvm::ComputeMaskedBits(), getBitWidth(), and llvm::Value::getType().
Referenced by buildGEP(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), and llvm::PPCTargetLowering::PerformDAGCombine().