LLVM
8.0.1
|
Verify that the TBAA Metadatas are valid. More...
#include "llvm/IR/Verifier.h"
Public Member Functions | |
TBAAVerifier (VerifierSupport *Diagnostic=nullptr) | |
bool | visitTBAAMetadata (Instruction &I, const MDNode *MD) |
Visit an instruction and return true if it is valid, return false if an invalid TBAA is attached. More... | |
Verify that the TBAA Metadatas are valid.
Definition at line 40 of file Verifier.h.
|
inline |
Definition at line 76 of file Verifier.h.
References llvm::createVerifierPass(), F(), llvm::verifyFunction(), llvm::verifyModule(), and visitTBAAMetadata().
bool TBAAVerifier::visitTBAAMetadata | ( | Instruction & | I, |
const MDNode * | MD | ||
) |
Visit an instruction and return true if it is valid, return false if an invalid TBAA is attached.
Definition at line 5128 of file Verifier.cpp.
References AssertTBAA, llvm::VerifierSupport::CheckFailed(), llvm::APInt::getBitWidth(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), I, INITIALIZE_PASS, llvm::SmallPtrSetImpl< PtrType >::insert(), isNewFormatTBAATypeNode(), and IsRootTBAANode().
Referenced by TBAAVerifier().