001    /*
002     *  This file is part of the Jikes RVM project (http://jikesrvm.org).
003     *
004     *  This file is licensed to You under the Eclipse Public License (EPL);
005     *  You may not use this file except in compliance with the License. You
006     *  may obtain a copy of the License at
007     *
008     *      http://www.opensource.org/licenses/eclipse-1.0.php
009     *
010     *  See the COPYRIGHT.txt file distributed with this work for information
011     *  regarding copyright ownership.
012     */
013    package org.jikesrvm.compilers.opt.mir2mc;
014    
015    import org.jikesrvm.compilers.opt.driver.OptimizationPlanAtomicElement;
016    import org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement;
017    import org.jikesrvm.compilers.opt.driver.OptimizationPlanElement;
018    
019    /**
020     * Convert an IR object from MIR to final Machinecode
021     */
022    public final class ConvertMIRtoMC extends OptimizationPlanCompositeElement {
023    
024      /**
025       * Create this phase element as a composite of other elements.
026       */
027      public ConvertMIRtoMC() {
028        super("Generate Machine Code", new OptimizationPlanElement[]{
029            // Step 1: Final MIR Expansion
030            new OptimizationPlanAtomicElement(new FinalMIRExpansionDriver()),
031            // Step 2: Assembly and map generation.
032            new OptimizationPlanAtomicElement(new AssemblerDriver())});
033      }
034    }