move llvm/Transforms/Pass.h to the top level llvm/Pass.h file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-10-18 20:19:09 +00:00
parent 9effd69ca2
commit 986fced5f9
12 changed files with 25 additions and 36 deletions

View File

@ -9,7 +9,7 @@
#ifndef LLVM_OPT_LEVELCHANGE_H #ifndef LLVM_OPT_LEVELCHANGE_H
#define LLVM_OPT_LEVELCHANGE_H #define LLVM_OPT_LEVELCHANGE_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
#include "llvm/Module.h" #include "llvm/Module.h"
#include "llvm/Method.h" #include "llvm/Method.h"

View File

@ -1,6 +1,6 @@
//===- llvm/Transforms/Pass.h - Base class for XForm Passes ------*- C++ -*--=// //===- llvm/Pass.h - Base class for XForm Passes -----------------*- C++ -*--=//
// //
// This file defines a marker class that indicates that a specified class is a // This file defines a base class that indicates that a specified class is a
// transformation pass implementation. // transformation pass implementation.
// //
// Pass's are designed this way so that it is possible to apply N passes to a // Pass's are designed this way so that it is possible to apply N passes to a
@ -30,8 +30,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_PASS_H #ifndef LLVM_PASS_H
#define LLVM_TRANSFORMS_PASS_H #define LLVM_PASS_H
#include "llvm/Module.h" #include "llvm/Module.h"
#include "llvm/Method.h" #include "llvm/Method.h"

View File

@ -10,7 +10,7 @@
#ifndef LLVM_TRANSFORMS_LOWERALLOCATIONS_H #ifndef LLVM_TRANSFORMS_LOWERALLOCATIONS_H
#define LLVM_TRANSFORMS_LOWERALLOCATIONS_H #define LLVM_TRANSFORMS_LOWERALLOCATIONS_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
class TargetData; class TargetData;
class LowerAllocations : public Pass { class LowerAllocations : public Pass {

View File

@ -7,7 +7,7 @@
#ifndef LLVM_OPT_METHOD_INLINING_H #ifndef LLVM_OPT_METHOD_INLINING_H
#define LLVM_OPT_METHOD_INLINING_H #define LLVM_OPT_METHOD_INLINING_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
#include "llvm/BasicBlock.h" #include "llvm/BasicBlock.h"
class CallInst; class CallInst;

View File

@ -9,12 +9,13 @@
#ifndef LLVM_TRANSFORMS_HOISTPHICONSTANTS_H #ifndef LLVM_TRANSFORMS_HOISTPHICONSTANTS_H
#define LLVM_TRANSFORMS_HOISTPHICONSTANTS_H #define LLVM_TRANSFORMS_HOISTPHICONSTANTS_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
struct HoistPHIConstants : public Pass { struct HoistPHIConstants : public Pass {
// doHoistPHIConstants - Hoist constants out of PHI instructions
//
static bool doHoistPHIConstants(Method *M); static bool doHoistPHIConstants(Method *M);
virtual bool doPerMethodWork(Method *M) { return doHoistPHIConstants(M); } virtual bool doPerMethodWork(Method *M) { return doHoistPHIConstants(M); }
}; };

View File

@ -17,7 +17,7 @@
#ifndef LLVM_TRANSFORMS_CONSTANTMERGE_H #ifndef LLVM_TRANSFORMS_CONSTANTMERGE_H
#define LLVM_TRANSFORMS_CONSTANTMERGE_H #define LLVM_TRANSFORMS_CONSTANTMERGE_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
#include <map> #include <map>
class ConstPoolVal; class ConstPoolVal;
class GlobalVariable; class GlobalVariable;

View File

@ -1,21 +1,14 @@
// $Id$ -*-c++-*- //===- llvm/Transforms/Instrumentation/TraceValues.h - Tracing ---*- C++ -*--=//
//*************************************************************************** //
// File: // Support for inserting LLVM code to print values at basic block and method
// TraceValues.h // exits.
// //
// Purpose: //===----------------------------------------------------------------------===//
// Support for inserting LLVM code to print values at basic block
// and method exits. Also exports functions to create a call
// "printf" instruction with one of the signatures listed below.
//
// History:
// 10/11/01 - Vikram Adve - Created
//**************************************************************************/
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
#define LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H #define LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
class InsertTraceCode : public Pass { class InsertTraceCode : public Pass {
bool TraceBasicBlockExits, TraceMethodExits; bool TraceBasicBlockExits, TraceMethodExits;
@ -30,13 +23,10 @@ public:
// //
// Inserts tracing code for all live values at basic block and/or method exits // Inserts tracing code for all live values at basic block and/or method exits
// as specified by `traceBasicBlockExits' and `traceMethodExits'. // as specified by `traceBasicBlockExits' and `traceMethodExits'.
//-------------------------------------------------------------------------- //
static bool doInsertTraceCode(Method *M, bool traceBasicBlockExits, static bool doInsertTraceCode(Method *M, bool traceBasicBlockExits,
bool traceMethodExits); bool traceMethodExits);
// doPerMethodWork - This method does the work. Always successful. // doPerMethodWork - This method does the work. Always successful.
// //
bool doPerMethodWork(Method *M) { bool doPerMethodWork(Method *M) {

View File

@ -8,7 +8,7 @@
#ifndef LLVM_TRANSFORMS_PRINTMODULE_H #ifndef LLVM_TRANSFORMS_PRINTMODULE_H
#define LLVM_TRANSFORMS_PRINTMODULE_H #define LLVM_TRANSFORMS_PRINTMODULE_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
#include "llvm/Assembly/Writer.h" #include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Writer.h" #include "llvm/Bytecode/Writer.h"
@ -61,6 +61,7 @@ public:
bool doPassFinalization(Module *M) { bool doPassFinalization(Module *M) {
WriteBytecodeToFile(M, *Out); WriteBytecodeToFile(M, *Out);
return false;
} }
}; };

View File

@ -7,7 +7,7 @@
#ifndef LLVM_OPT_CONSTANT_PROPOGATION_H #ifndef LLVM_OPT_CONSTANT_PROPOGATION_H
#define LLVM_OPT_CONSTANT_PROPOGATION_H #define LLVM_OPT_CONSTANT_PROPOGATION_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
class TerminatorInst; class TerminatorInst;
namespace opt { namespace opt {

View File

@ -8,7 +8,7 @@
#ifndef LLVM_OPT_DCE_H #ifndef LLVM_OPT_DCE_H
#define LLVM_OPT_DCE_H #define LLVM_OPT_DCE_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
namespace opt { namespace opt {

View File

@ -8,8 +8,7 @@
#ifndef LLVM_OPT_INDUCTION_VARS_H #ifndef LLVM_OPT_INDUCTION_VARS_H
#define LLVM_OPT_INDUCTION_VARS_H #define LLVM_OPT_INDUCTION_VARS_H
#include "llvm/Transforms/Pass.h" #include "llvm/Pass.h"
#include "llvm/Module.h"
namespace opt { namespace opt {

View File

@ -8,9 +8,7 @@
#ifndef LLVM_OPT_SYMBOL_STRIPPING_H #ifndef LLVM_OPT_SYMBOL_STRIPPING_H
#define LLVM_OPT_SYMBOL_STRIPPING_H #define LLVM_OPT_SYMBOL_STRIPPING_H
class Method; #include "llvm/Pass.h"
class Module;
#include "llvm/Transforms/Pass.h"
namespace opt { namespace opt {