2001-06-06 20:29:01 +00:00
|
|
|
//===-- llvm/Analysis/Verifier.h - Module Verifier ---------------*- C++ -*-==//
|
|
|
|
//
|
|
|
|
// This file defines the method verifier interface, that can be used for some
|
|
|
|
// sanity checking of input to the system.
|
|
|
|
//
|
|
|
|
// Note that this does not provide full 'java style' security and verifications,
|
|
|
|
// instead it just tries to ensure that code is well formed.
|
|
|
|
//
|
|
|
|
// To see what specifically is checked, look at the top of Verifier.cpp
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_ANALYSIS_VERIFIER_H
|
|
|
|
#define LLVM_ANALYSIS_VERIFIER_H
|
|
|
|
|
2002-02-20 17:54:35 +00:00
|
|
|
class Pass;
|
2001-06-06 20:29:01 +00:00
|
|
|
class Module;
|
2002-03-23 22:51:58 +00:00
|
|
|
class Function;
|
2001-06-06 20:29:01 +00:00
|
|
|
|
2002-02-20 17:54:35 +00:00
|
|
|
// createVerifierPass - Check a module or method for validity. If errors are
|
|
|
|
// detected, error messages corresponding to the problem are printed to stderr.
|
2001-06-06 20:29:01 +00:00
|
|
|
//
|
2002-02-20 17:54:35 +00:00
|
|
|
Pass *createVerifierPass();
|
|
|
|
|
|
|
|
// verifyModule - Check a module for errors, printing messages on stderr.
|
|
|
|
// Return true if the module is corrupt.
|
|
|
|
//
|
2002-02-26 21:38:48 +00:00
|
|
|
bool verifyModule(const Module *M);
|
|
|
|
|
|
|
|
// verifyMethod - Check a method for errors, useful for use when debugging a
|
|
|
|
// pass.
|
2002-03-23 22:51:58 +00:00
|
|
|
bool verifyMethod(const Function *M);
|
2001-06-06 20:29:01 +00:00
|
|
|
|
|
|
|
#endif
|