// does to emit statically compiled machine code.
bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
std::ostream &Out) {
- // FIXME: Implement the switch instruction in the instruction selector!
- PM.add(createLowerSwitchPass());
-
// FIXME: Implement the invoke/unwind instructions!
PM.add(createLowerInvokePass());
// unreachable basic blocks.
PM.add(createCFGSimplificationPass());
+ // FIXME: Implement the switch instruction in the instruction selector!
+ PM.add(createLowerSwitchPass());
+
if (NoPatternISel)
PM.add(createX86SimpleInstructionSelector(*this));
else
/// not supported for this target.
///
void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
- // FIXME: Implement the switch instruction in the instruction selector!
- PM.add(createLowerSwitchPass());
// FIXME: Implement the invoke/unwind instructions!
PM.add(createLowerInvokePass());
// unreachable basic blocks.
PM.add(createCFGSimplificationPass());
+ // FIXME: Implement the switch instruction in the instruction selector!
+ PM.add(createLowerSwitchPass());
+
if (NoPatternISel)
PM.add(createX86SimpleInstructionSelector(TM));
else