aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-08-14 06:09:32 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-08-14 06:09:32 +0000
commitbf3c4cfaad706db21ac82a4376e1899d0d7f0935 (patch)
tree0554aebd575c26ce52252d94d08c2c151dc7ffbf /include/llvm
parent1d3fa21cdd115b48241ff031f01e6b489b077abf (diff)
downloadexternal_llvm-bf3c4cfaad706db21ac82a4376e1899d0d7f0935.zip
external_llvm-bf3c4cfaad706db21ac82a4376e1899d0d7f0935.tar.gz
external_llvm-bf3c4cfaad706db21ac82a4376e1899d0d7f0935.tar.bz2
Factory methods for function passes now return type FunctionPass *.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/InstrScheduling.h4
-rw-r--r--include/llvm/CodeGen/InstrSelection.h4
-rw-r--r--include/llvm/CodeGen/PeepholeOpts.h4
-rw-r--r--include/llvm/CodeGen/RegisterAllocation.h4
-rw-r--r--include/llvm/Transforms/Scalar.h4
5 files changed, 10 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/InstrScheduling.h b/include/llvm/CodeGen/InstrScheduling.h
index e01dfe7..1e9c0dc 100644
--- a/include/llvm/CodeGen/InstrScheduling.h
+++ b/include/llvm/CodeGen/InstrScheduling.h
@@ -8,7 +8,7 @@
#ifndef LLVM_CODEGEN_INSTR_SCHEDULING_H
#define LLVM_CODEGEN_INSTR_SCHEDULING_H
-class Pass;
+class FunctionPass;
class TargetMachine;
//---------------------------------------------------------------------------
@@ -21,6 +21,6 @@ class TargetMachine;
// are still in SSA form.
//---------------------------------------------------------------------------
-Pass *createInstructionSchedulingWithSSAPass(const TargetMachine &Target);
+FunctionPass *createInstructionSchedulingWithSSAPass(const TargetMachine &Target);
#endif
diff --git a/include/llvm/CodeGen/InstrSelection.h b/include/llvm/CodeGen/InstrSelection.h
index 03999db..03e9af4 100644
--- a/include/llvm/CodeGen/InstrSelection.h
+++ b/include/llvm/CodeGen/InstrSelection.h
@@ -15,7 +15,7 @@ class MachineInstr;
class InstructionNode;
class TargetMachine;
class MachineCodeForInstruction;
-class Pass;
+class FunctionPass;
//===--------------------- Required Functions ---------------------------------
// Target-dependent functions that MUST be implemented for each target.
@@ -43,7 +43,7 @@ extern bool ThisIsAChainRule (int eruleno);
// Return a pass that performs machine dependant instruction selection.
//---------------------------------------------------------------------------
-Pass *createInstructionSelectionPass(TargetMachine &Target);
+FunctionPass *createInstructionSelectionPass(TargetMachine &Target);
//************************ Exported Data Types *****************************/
diff --git a/include/llvm/CodeGen/PeepholeOpts.h b/include/llvm/CodeGen/PeepholeOpts.h
index fc3254d..2cbc778 100644
--- a/include/llvm/CodeGen/PeepholeOpts.h
+++ b/include/llvm/CodeGen/PeepholeOpts.h
@@ -8,8 +8,8 @@
#define LLVM_CODEGEN_PEEPHOLE_OPTS_H
class TargetMachine;
-class Pass;
+class FunctionPass;
-Pass *createPeepholeOptsPass(TargetMachine &Target);
+FunctionPass *createPeepholeOptsPass(TargetMachine &Target);
#endif
diff --git a/include/llvm/CodeGen/RegisterAllocation.h b/include/llvm/CodeGen/RegisterAllocation.h
index a0e5da8..572c325 100644
--- a/include/llvm/CodeGen/RegisterAllocation.h
+++ b/include/llvm/CodeGen/RegisterAllocation.h
@@ -7,13 +7,13 @@
#ifndef LLVM_CODEGEN_REGISTERALLOCATION_H
#define LLVM_CODEGEN_REGISTERALLOCATION_H
-class Pass;
+class FunctionPass;
class TargetMachine;
//----------------------------------------------------------------------------
// Entry point for register allocation for a module
//----------------------------------------------------------------------------
-Pass *getRegisterAllocator(TargetMachine &T);
+FunctionPass *getRegisterAllocator(TargetMachine &T);
#endif
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 2ee3c46..58dcd42 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -72,7 +72,7 @@ Pass *createScalarReplAggregatesPass();
// index of [0]).
// This pass decomposes all multi-dimensional references in a function.
-Pass *createDecomposeMultiDimRefsPass();
+FunctionPass *createDecomposeMultiDimRefsPass();
// This function decomposes a single instance of such a reference.
// Return value: true if the instruction was replaced; false otherwise.
@@ -238,7 +238,7 @@ extern const PassInfo *LoopPreheadersID;
// These two passes convert malloc and free instructions to and from %malloc &
// %free function calls.
//
-Pass *createLowerAllocationsPass();
+FunctionPass *createLowerAllocationsPass();
Pass *createRaiseAllocationsPass();
//===----------------------------------------------------------------------===//