1 //===-- llvm/Analysis/Lint.h - LLVM IR Lint ---------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file defines lint interfaces that can be used for some sanity checking
10 // of input to the system, and for checking that transformations
11 // haven't done something bad. In contrast to the Verifier, the Lint checker
12 // checks for undefined behavior or constructions with likely unintended
15 // To see what specifically is checked, look at Lint.cpp
17 //===----------------------------------------------------------------------===//
19 #ifndef LLVM_ANALYSIS_LINT_H
20 #define LLVM_ANALYSIS_LINT_H
28 /// Create a lint pass.
30 /// Check a module or function.
31 FunctionPass
*createLintPass();
35 /// This should only be used for debugging, because it plays games with
36 /// PassManagers and stuff.
38 const Module
&M
///< The module to be checked
41 // lintFunction - Check a function.
43 const Function
&F
///< The function to be checked
46 } // End llvm namespace