summaryrefslogtreecommitdiffstats
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
commit8c14ba96ca24f881aeae80bc9fe368f453f48bdb (patch)
tree711f075557505342ced42855b70c90664df245d6
parent2cc4b9dd2c3458012dcd5e290c4c1d29acfbc58b (diff)
downloadbcm5719-llvm-8c14ba96ca24f881aeae80bc9fe368f453f48bdb.tar.gz
bcm5719-llvm-8c14ba96ca24f881aeae80bc9fe368f453f48bdb.zip
Factory methods for function passes now return type FunctionPass *.
llvm-svn: 7839
-rw-r--r--llvm/include/llvm/CodeGen/InstrScheduling.h4
-rw-r--r--llvm/include/llvm/CodeGen/InstrSelection.h4
-rw-r--r--llvm/include/llvm/CodeGen/PeepholeOpts.h4
-rw-r--r--llvm/include/llvm/CodeGen/RegisterAllocation.h4
-rw-r--r--llvm/include/llvm/Transforms/Scalar.h4
-rw-r--r--llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp2
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp2
-rw-r--r--llvm/lib/Target/Sparc/PrologEpilogCodeInserter.cpp2
-rw-r--r--llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp2
-rw-r--r--llvm/lib/Transforms/Scalar/LowerAllocations.cpp2
10 files changed, 15 insertions, 15 deletions
diff --git a/llvm/include/llvm/CodeGen/InstrScheduling.h b/llvm/include/llvm/CodeGen/InstrScheduling.h
index e01dfe70c9b..1e9c0dcf500 100644
--- a/llvm/include/llvm/CodeGen/InstrScheduling.h
+++ b/llvm/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/llvm/include/llvm/CodeGen/InstrSelection.h b/llvm/include/llvm/CodeGen/InstrSelection.h
index 03999db3d08..03e9af41676 100644
--- a/llvm/include/llvm/CodeGen/InstrSelection.h
+++ b/llvm/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/llvm/include/llvm/CodeGen/PeepholeOpts.h b/llvm/include/llvm/CodeGen/PeepholeOpts.h
index fc3254dc67b..2cbc7782f57 100644
--- a/llvm/include/llvm/CodeGen/PeepholeOpts.h
+++ b/llvm/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/llvm/include/llvm/CodeGen/RegisterAllocation.h b/llvm/include/llvm/CodeGen/RegisterAllocation.h
index a0e5da8a756..572c3256104 100644
--- a/llvm/include/llvm/CodeGen/RegisterAllocation.h
+++ b/llvm/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/llvm/include/llvm/Transforms/Scalar.h b/llvm/include/llvm/Transforms/Scalar.h
index 2ee3c46cba9..58dcd428acc 100644
--- a/llvm/include/llvm/Transforms/Scalar.h
+++ b/llvm/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();
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
index e8778220cba..a6222d62a07 100644
--- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
@@ -1491,6 +1491,6 @@ bool InstructionSchedulingWithSSA::runOnFunction(Function &F)
}
-Pass *createInstructionSchedulingWithSSAPass(const TargetMachine &tgt) {
+FunctionPass *createInstructionSchedulingWithSSAPass(const TargetMachine &tgt) {
return new InstructionSchedulingWithSSA(tgt);
}
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index fa81e9e33f6..6d40e1d0824 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -74,7 +74,7 @@ namespace {
};
}
-Pass *getRegisterAllocator(TargetMachine &T) {
+FunctionPass *getRegisterAllocator(TargetMachine &T) {
return new RegisterAllocator(T);
}
diff --git a/llvm/lib/Target/Sparc/PrologEpilogCodeInserter.cpp b/llvm/lib/Target/Sparc/PrologEpilogCodeInserter.cpp
index de04cb65175..b74c7df344f 100644
--- a/llvm/lib/Target/Sparc/PrologEpilogCodeInserter.cpp
+++ b/llvm/lib/Target/Sparc/PrologEpilogCodeInserter.cpp
@@ -167,6 +167,6 @@ void InsertPrologEpilogCode::InsertEpilogCode(MachineFunction &MF)
}
}
-Pass* UltraSparc::getPrologEpilogInsertionPass() {
+FunctionPass *UltraSparc::getPrologEpilogInsertionPass() {
return new InsertPrologEpilogCode();
}
diff --git a/llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp b/llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp
index 65cf465acd9..79b6aead20d 100644
--- a/llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp
+++ b/llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp
@@ -29,7 +29,7 @@ namespace {
RegisterOpt<DecomposePass> X("lowerrefs", "Decompose multi-dimensional "
"structure/array references");
-Pass
+FunctionPass
*createDecomposeMultiDimRefsPass()
{
return new DecomposePass();
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
index c5014b48e6a..53584d9d3e3 100644
--- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
@@ -47,7 +47,7 @@ namespace {
}
// createLowerAllocationsPass - Interface to this file...
-Pass *createLowerAllocationsPass() {
+FunctionPass *createLowerAllocationsPass() {
return new LowerAllocations();
}
OpenPOWER on IntegriCloud