llvm.org GIT mirror llvm / 155e68f
Add support for the Switch instruction by running the lowerSwitch pass first git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5867 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
2 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
142142 //
143143 bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
144144 {
145 // FIXME: implement the switch instruction in the instruction selector.
146 PM.add(createLowerSwitchPass());
147
145148 // Construct and initialize the MachineFunction object for this fn.
146149 PM.add(createMachineCodeConstructionPass(*this));
147150
55
66 #include "X86TargetMachine.h"
77 #include "X86.h"
8 #include "llvm/PassManager.h"
89 #include "llvm/Target/TargetMachineImpls.h"
910 #include "llvm/CodeGen/MachineFunction.h"
1011 #include "llvm/CodeGen/Passes.h"
11 #include "llvm/PassManager.h"
12 #include "llvm/Transforms/Scalar.h"
1213 #include "Support/CommandLine.h"
1314 #include "Support/Statistic.h"
1415 #include
4445 /// not supported for this target.
4546 ///
4647 bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) {
48 // FIXME: Implement the switch instruction in the instruction selector!
49 PM.add(createLowerSwitchPass());
50
4751 PM.add(createSimpleX86InstructionSelector(*this));
4852
4953 // TODO: optional optimizations go here