Skip to content

Commit

Permalink
IR: move the declaration of VerifyDomInfo (NFC)
Browse files Browse the repository at this point in the history
This moves the declaration of `VerifyDomInfo` into
`llvm/IR/Dominators.h` from `llvm/Support/Debug.h`.  Although this is a
debugging utility, the definition of the symbol is in LLVMIR, not in
LLVMSupport.  This moves the declaration to the containing modules'
header.

Reviewed By: rnk, mehdhi_amini

Differential Revision: https://reviews.llvm.org/D109395
  • Loading branch information
compnerd committed Sep 8, 2021
1 parent d2189b5 commit 480a5a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions llvm/include/llvm/IR/Dominators.h
Expand Up @@ -277,6 +277,12 @@ struct DominatorTreeVerifierPass : PassInfoMixin<DominatorTreeVerifierPass> {
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
};

/// Enables verification of dominator trees.
///
/// This check is expensive and is disabled by default. `-verify-dom-info`
/// allows selectively enabling the check without needing to recompile.
extern bool VerifyDomInfo;

/// Legacy analysis pass which computes a \c DominatorTree.
class DominatorTreeWrapperPass : public FunctionPass {
DominatorTree DT;
Expand Down
4 changes: 0 additions & 4 deletions llvm/include/llvm/Support/Debug.h
Expand Up @@ -85,10 +85,6 @@ extern bool DebugFlag;
/// turning the checks on without need to recompile.
/// \{

/// Enables verification of dominator trees.
///
extern bool VerifyDomInfo;

/// Enables verification of loop info.
///
extern bool VerifyLoopInfo;
Expand Down

0 comments on commit 480a5a2

Please sign in to comment.