|
LLVM
5.0.0
|
#include "llvm/IR/Verifier.h"#include "llvm/ADT/APFloat.h"#include "llvm/ADT/APInt.h"#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/MapVector.h"#include "llvm/ADT/Optional.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringMap.h"#include "llvm/ADT/StringRef.h"#include "llvm/ADT/Twine.h"#include "llvm/ADT/ilist.h"#include "llvm/BinaryFormat/Dwarf.h"#include "llvm/IR/Argument.h"#include "llvm/IR/Attributes.h"#include "llvm/IR/BasicBlock.h"#include "llvm/IR/CFG.h"#include "llvm/IR/CallSite.h"#include "llvm/IR/CallingConv.h"#include "llvm/IR/Comdat.h"#include "llvm/IR/Constant.h"#include "llvm/IR/ConstantRange.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/DebugInfo.h"#include "llvm/IR/DebugInfoMetadata.h"#include "llvm/IR/DebugLoc.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/DiagnosticInfo.h"#include "llvm/IR/Dominators.h"#include "llvm/IR/Function.h"#include "llvm/IR/GlobalAlias.h"#include "llvm/IR/GlobalValue.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/InlineAsm.h"#include "llvm/IR/InstVisitor.h"#include "llvm/IR/InstrTypes.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Metadata.h"#include "llvm/IR/Module.h"#include "llvm/IR/ModuleSlotTracker.h"#include "llvm/IR/PassManager.h"#include "llvm/IR/Statepoint.h"#include "llvm/IR/Type.h"#include "llvm/IR/Use.h"#include "llvm/IR/User.h"#include "llvm/IR/Value.h"#include "llvm/Pass.h"#include "llvm/Support/AtomicOrdering.h"#include "llvm/Support/Casting.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/Debug.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/MathExtras.h"#include "llvm/Support/raw_ostream.h"#include <algorithm>#include <cassert>#include <cstdint>#include <memory>#include <string>#include <utility>#include "llvm/IR/Metadata.def"Go to the source code of this file.
Classes | |
| struct | llvm::VerifierSupport |
Namespaces | |
| llvm | |
| Compute iterated dominance frontiers using a linear time algorithm. | |
Macros | |
| #define | HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS) void visit##CLASS(const CLASS &N); |
| #define | Assert(C,...) do { if (!(C)) { CheckFailed(__VA_ARGS__); return; } } while (false) |
| We know that cond should be true, if not print an error message. More... | |
| #define | AssertDI(C,...) do { if (!(C)) { DebugInfoCheckFailed(__VA_ARGS__); return; } } while (false) |
| We know that a debug info condition should be true, if not print an error message. More... | |
| #define | HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS) |
| #define | AssertTBAA(C,...) |
Functions | |
| static void | forEachUser (const Value *User, SmallPtrSet< const Value *, 32 > &Visited, llvm::function_ref< bool(const Value *)> Callback) |
| static bool | isType (const Metadata *MD) |
| static bool | isScope (const Metadata *MD) |
| static bool | isDINode (const Metadata *MD) |
| static bool | hasConflictingReferenceFlags (unsigned Flags) |
| static bool | isFuncOnlyAttr (Attribute::AttrKind Kind) |
| Return true if this attribute kind only applies to functions. More... | |
| static bool | isFuncOrArgAttr (Attribute::AttrKind Kind) |
| Return true if this is a function attribute that can also appear on arguments. More... | |
| static Instruction * | getSuccPad (TerminatorInst *Terminator) |
| static bool | isTypeCongruent (Type *L, Type *R) |
| Two types are "congruent" if they are identical, or if they are both pointer types with different pointee types and the same address space. More... | |
| static AttrBuilder | getParameterABIAttributes (int I, AttributeList Attrs) |
| static bool | isContiguous (const ConstantRange &A, const ConstantRange &B) |
| static Value * | getParentPad (Value *EHPad) |
| static DISubprogram * | getSubprogram (Metadata *LocalScope) |
| Carefully grab the subprogram from a local scope. More... | |
| static uint64_t | getVariableSize (const DILocalVariable &V) |
| static bool | IsRootTBAANode (const MDNode *MD) |
| static bool | IsScalarTBAANodeImpl (const MDNode *MD, SmallPtrSetImpl< const MDNode * > &Visited) |
Variables | |
| static cl::opt< bool > | VerifyDebugInfo ("verify-debug-info", cl::init(true)) |
We know that cond should be true, if not print an error message.
Definition at line 523 of file Verifier.cpp.
| #define AssertDI | ( | C, | |
| ... | |||
| ) | do { if (!(C)) { DebugInfoCheckFailed(__VA_ARGS__); return; } } while (false) |
We know that a debug info condition should be true, if not print an error message.
Definition at line 528 of file Verifier.cpp.
| #define AssertTBAA | ( | C, | |
| ... | |||
| ) |
Definition at line 4707 of file Verifier.cpp.
Referenced by llvm::TBAAVerifier::visitTBAAMetadata().
Definition at line 420 of file Verifier.cpp.
| #define HANDLE_SPECIALIZED_MDNODE_LEAF | ( | CLASS | ) |
Definition at line 420 of file Verifier.cpp.
|
static |
Definition at line 540 of file Verifier.cpp.
References llvm::SmallPtrSetImpl< PtrType >::insert(), and llvm::Value::materialized_users().
|
static |
Definition at line 2784 of file Verifier.cpp.
References llvm::AttrBuilder::addAlignmentAttr(), llvm::AttrBuilder::addAttribute(), llvm::AttributeList::getParamAlignment(), and llvm::AttributeList::hasParamAttribute().
Definition at line 3286 of file Verifier.cpp.
Referenced by llvm::calculateClrEHStateNumbers().
|
static |
Carefully grab the subprogram from a local scope.
This carefully grabs the subprogram from a local scope, avoiding the built-in assertions that would typically fire.
Definition at line 4415 of file Verifier.cpp.
References assert().
|
static |
Definition at line 1900 of file Verifier.cpp.
References llvm::BasicBlock::getFirstNonPHI(), and llvm::MCID::Terminator.
|
static |
Definition at line 4484 of file Verifier.cpp.
References llvm::DIVariable::getRawType().
Definition at line 902 of file Verifier.cpp.
|
static |
Definition at line 3032 of file Verifier.cpp.
References llvm::ConstantRange::getLower(), and llvm::ConstantRange::getUpper().
Definition at line 835 of file Verifier.cpp.
|
static |
Return true if this attribute kind only applies to functions.
Definition at line 1344 of file Verifier.cpp.
References llvm::CallingConv::Cold, llvm::MCID::Convergent, and llvm::ISD::JumpTable.
|
static |
Return true if this is a function attribute that can also appear on arguments.
Definition at line 1389 of file Verifier.cpp.
Definition at line 4814 of file Verifier.cpp.
References llvm::MDNode::getNumOperands().
Referenced by IsScalarTBAANodeImpl(), and llvm::TBAAVerifier::visitTBAAMetadata().
|
static |
Definition at line 4818 of file Verifier.cpp.
References llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::SmallPtrSetImpl< PtrType >::insert(), and IsRootTBAANode().
Definition at line 834 of file Verifier.cpp.
Definition at line 833 of file Verifier.cpp.
Two types are "congruent" if they are identical, or if they are both pointer types with different pointee types and the same address space.
Definition at line 2774 of file Verifier.cpp.
References llvm::dyn_cast(), llvm::PointerType::getAddressSpace(), L, and llvm::AArch64CC::PL.
1.8.6