diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-15 23:02:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-15 23:02:17 +0000 |
commit | f60b91cbe333963c4a077972b3491429815314ee (patch) | |
tree | 848a92952cdc7aed6044041bdeb4eb5d93df0fdf /lib/Target/X86 | |
parent | 6a1e0e6c7bd8080ab429817aeeb278f281111f64 (diff) | |
download | external_llvm-f60b91cbe333963c4a077972b3491429815314ee.zip external_llvm-f60b91cbe333963c4a077972b3491429815314ee.tar.gz external_llvm-f60b91cbe333963c4a077972b3491429815314ee.tar.bz2 |
Disable the pattern isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/Makefile | 9 | ||||
-rw-r--r-- | lib/Target/X86/X86.h | 6 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelPattern.cpp | 7 | ||||
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 16 |
4 files changed, 13 insertions, 25 deletions
diff --git a/lib/Target/X86/Makefile b/lib/Target/X86/Makefile index 494b4a1..51208df 100644 --- a/lib/Target/X86/Makefile +++ b/lib/Target/X86/Makefile @@ -15,8 +15,7 @@ TARGET = X86 # Make sure that tblgen is run, first thing. $(SourceDepend): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \ X86GenRegisterInfo.inc X86GenInstrNames.inc \ - X86GenInstrInfo.inc X86GenAsmWriter.inc \ - X86GenInstrSelector.inc + X86GenInstrInfo.inc X86GenAsmWriter.inc TDFILES = $(SourceDir)/$(TARGET).td $(wildcard $(SourceDir)/*.td) \ $(SourceDir)/../Target.td @@ -45,9 +44,9 @@ $(TARGET)GenAsmWriter.inc:: $(TDFILES) $(TBLGEN) @echo "Building $(TARGET).td assembly writer with tblgen" $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-asm-writer -o $@ -$(TARGET)GenInstrSelector.inc:: $(TDFILES) $(TBLGEN) - @echo "Building $(TARGET).td instruction selector with tblgen" - $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@ +#$(TARGET)GenInstrSelector.inc:: $(TDFILES) $(TBLGEN) +# @echo "Building $(TARGET).td instruction selector with tblgen" +# $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@ clean:: $(VERB) rm -f *.inc diff --git a/lib/Target/X86/X86.h b/lib/Target/X86/X86.h index 54e2861..3b5360e 100644 --- a/lib/Target/X86/X86.h +++ b/lib/Target/X86/X86.h @@ -29,12 +29,6 @@ class IntrinsicLowering; /// FunctionPass *createX86SimpleInstructionSelector(TargetMachine &TM); -/// createX86PatternInstructionSelector - This pass converts an LLVM function -/// into a machine code representation using pattern matching and a machine -/// description file. -/// -FunctionPass *createX86PatternInstructionSelector(TargetMachine &TM); - /// createX86SSAPeepholeOptimizerPass - Create a pass to perform SSA-based X86 /// specific peephole optimizations. /// diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index 99a4f04..626d047 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -14,6 +14,11 @@ // //===----------------------------------------------------------------------===// +/// NOTE: This whole selector is completely disabled. This is only retained +/// for historical interest and future work. It will probably change +/// substantially in the future. +#if 0 + #include "X86.h" #include "llvm/Pass.h" #include "llvm/Function.h" @@ -122,3 +127,5 @@ void ISel::expandCall(SelectionDAG &SD, CallInst &CI) { FunctionPass *llvm::createX86PatternInstructionSelector(TargetMachine &TM) { return new ISel(TM); } + +#endif diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 0a965ec..51ba378 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -26,12 +26,6 @@ using namespace llvm; namespace { -#if 0 // FIXME: This will be used in the future. - cl::opt<bool> NoPatternISel("disable-pattern-isel", cl::init(true), - cl::desc("Use the 'simple' X86 instruction selector")); -#else - static const bool NoPatternISel = true; -#endif cl::opt<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true), cl::desc("Disable the ssa-based peephole optimizer " "(defaults to disabled)")); @@ -87,10 +81,7 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass()); - if (NoPatternISel) - PM.add(createX86SimpleInstructionSelector(*this)); - else - PM.add(createX86PatternInstructionSelector(*this)); + PM.add(createX86SimpleInstructionSelector(*this)); // Run optional SSA-based machine code optimizations next... if (!NoSSAPeephole) @@ -145,10 +136,7 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass()); - if (NoPatternISel) - PM.add(createX86SimpleInstructionSelector(TM)); - else - PM.add(createX86PatternInstructionSelector(TM)); + PM.add(createX86SimpleInstructionSelector(TM)); // Run optional SSA-based machine code optimizations next... if (!NoSSAPeephole) |