18#ifndef LLVM_ANALYSIS_LINT_H
19#define LLVM_ANALYSIS_LINT_H
38 const bool AbortOnError;
41 LintPass(
bool AbortOnError) : AbortOnError(AbortOnError) {}
This header defines various interfaces for pass management in LLVM.
LintPass(bool AbortOnError)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
void printPipeline(raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
A Module instance is used to store all the information related to an LLVM module.
A set of analyses that are preserved following a run of a transformation pass.
StringRef - Represent a constant reference to a string, i.e.
An efficient, type-erasing, non-owning reference to a callable.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
void lintModule(const Module &M, bool AbortOnError=false)
Lint a module.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
void lintFunction(const Function &F, bool AbortOnError=false)
lintFunction - Check a function for errors, printing messages on stderr.
A CRTP mix-in to automatically provide informational APIs needed for passes.