[llvm-commits] CVS: llvm/lib/Target/SparcV8/Makefile SparcV8TargetMachine.cpp SparcV8TargetMachine.h SparcV8CodeEmitter.cpp SparcV8JITInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 15 22:06:19 PST 2005
Changes in directory llvm/lib/Target/SparcV8:
Makefile updated: 1.9 -> 1.10
SparcV8TargetMachine.cpp updated: 1.31 -> 1.32
SparcV8TargetMachine.h updated: 1.8 -> 1.9
SparcV8CodeEmitter.cpp (r1.6) removed
SparcV8JITInfo.h (r1.2) removed
---
Log message:
Remove JIT support, which doesn't work.
---
Diffs of the changes: (+3 -63)
Makefile | 2 -
SparcV8TargetMachine.cpp | 55 +----------------------------------------------
SparcV8TargetMachine.h | 9 -------
3 files changed, 3 insertions(+), 63 deletions(-)
Index: llvm/lib/Target/SparcV8/Makefile
diff -u llvm/lib/Target/SparcV8/Makefile:1.9 llvm/lib/Target/SparcV8/Makefile:1.10
--- llvm/lib/Target/SparcV8/Makefile:1.9 Thu Dec 9 22:48:57 2004
+++ llvm/lib/Target/SparcV8/Makefile Fri Dec 16 00:06:07 2005
@@ -13,7 +13,7 @@
# Make sure that tblgen is run, first thing.
BUILT_SOURCES = SparcV8GenRegisterInfo.h.inc SparcV8GenRegisterNames.inc \
SparcV8GenRegisterInfo.inc SparcV8GenInstrNames.inc \
- SparcV8GenInstrInfo.inc SparcV8GenCodeEmitter.inc
+ SparcV8GenInstrInfo.inc
include $(LEVEL)/Makefile.common
Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.31 llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.32
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.31 Mon Nov 7 20:11:51 2005
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp Fri Dec 16 00:06:07 2005
@@ -34,11 +34,7 @@
IntrinsicLowering *IL,
const std::string &FS)
: TargetMachine("SparcV8", IL, false, 4, 4),
- FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0), JITInfo(*this) {
-}
-
-unsigned SparcV8TargetMachine::getJITMatchQuality() {
- return 0; // No JIT yet.
+ FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0) {
}
unsigned SparcV8TargetMachine::getModuleMatchQuality(const Module &M) {
@@ -57,7 +53,7 @@
M.getPointerSize() != Module::AnyPointerSize)
return 0; // Match for some other target
- return getJITMatchQuality()/2;
+ return 0;
}
/// addPassesToEmitFile - Add passes to the specified pass manager
@@ -120,50 +116,3 @@
return false;
}
-/// addPassesToJITCompile - Add passes to the specified pass manager to
-/// implement a fast dynamic compiler for this target.
-///
-void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
- // FIXME: Implement efficient support for garbage collection intrinsics.
- PM.add(createLowerGCPass());
-
- // Replace malloc and free instructions with library calls.
- PM.add(createLowerAllocationsPass());
-
- // FIXME: implement the switch instruction in the instruction selector.
- PM.add(createLowerSwitchPass());
-
- // FIXME: implement the invoke/unwind instructions!
- PM.add(createLowerInvokePass());
-
- // Make sure that no unreachable blocks are instruction selected.
- PM.add(createUnreachableBlockEliminationPass());
-
- // FIXME: implement the select instruction in the instruction selector.
- PM.add(createLowerSelectPass());
-
- // Print LLVM code input to instruction selector:
- if (PrintMachineCode)
- PM.add(new PrintFunctionPass());
-
- PM.add(createSparcV8SimpleInstructionSelector(TM));
-
- // Print machine instructions as they were initially generated.
- if (PrintMachineCode)
- PM.add(createMachineFunctionPrinterPass(&std::cerr));
-
- PM.add(createRegisterAllocator());
- PM.add(createPrologEpilogCodeInserter());
-
- // Print machine instructions after register allocation and prolog/epilog
- // insertion.
- if (PrintMachineCode)
- PM.add(createMachineFunctionPrinterPass(&std::cerr));
-
- PM.add(createSparcV8FPMoverPass(TM));
- PM.add(createSparcV8DelaySlotFillerPass(TM));
-
- // Print machine instructions after filling delay slots.
- if (PrintMachineCode)
- PM.add(createMachineFunctionPrinterPass(&std::cerr));
-}
Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.h
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.h:1.8 llvm/lib/Target/SparcV8/SparcV8TargetMachine.h:1.9
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.h:1.8 Mon Nov 7 20:11:51 2005
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.h Fri Dec 16 00:06:07 2005
@@ -18,7 +18,6 @@
#include "llvm/Target/TargetFrameInfo.h"
#include "llvm/PassManager.h"
#include "SparcV8InstrInfo.h"
-#include "SparcV8JITInfo.h"
namespace llvm {
@@ -28,7 +27,6 @@
class SparcV8TargetMachine : public TargetMachine {
SparcV8InstrInfo InstrInfo;
TargetFrameInfo FrameInfo;
- SparcV8JITInfo JITInfo;
public:
SparcV8TargetMachine(const Module &M, IntrinsicLowering *IL,
const std::string &FS);
@@ -38,15 +36,8 @@
virtual const MRegisterInfo *getRegisterInfo() const {
return &InstrInfo.getRegisterInfo();
}
- virtual TargetJITInfo *getJITInfo() {
- return &JITInfo;
- }
static unsigned getModuleMatchQuality(const Module &M);
- static unsigned getJITMatchQuality();
-
- virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
- MachineCodeEmitter &MCE);
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
CodeGenFileType FileType, bool Fast);
More information about the llvm-commits
mailing list