src/share/vm/opto/idealKit.hpp

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OPTO_IDEALKIT_HPP
  26 #define SHARE_VM_OPTO_IDEALKIT_HPP
  27 
  28 #include "opto/addnode.hpp"
  29 #include "opto/cfgnode.hpp"

  30 #include "opto/connode.hpp"
  31 #include "opto/divnode.hpp"
  32 #include "opto/graphKit.hpp"
  33 #include "opto/mulnode.hpp"
  34 #include "opto/phaseX.hpp"
  35 #include "opto/subnode.hpp"
  36 #include "opto/type.hpp"
  37 
  38 //-----------------------------------------------------------------------------
  39 //----------------------------IdealKit-----------------------------------------
  40 // Set of utilities for creating control flow and scalar SSA data flow.
  41 // Control:
  42 //    if_then(left, relop, right)
  43 //    else_ (optional)
  44 //    end_if
  45 //    loop(iv variable, initial, relop, limit)
  46 //       - sets iv to initial for first trip
  47 //       - exits when relation on limit is true
  48 //       - the values of initial and limit should be loop invariant
  49 //       - no increment, must be explicitly coded




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OPTO_IDEALKIT_HPP
  26 #define SHARE_VM_OPTO_IDEALKIT_HPP
  27 
  28 #include "opto/addnode.hpp"
  29 #include "opto/cfgnode.hpp"
  30 #include "opto/castnode.hpp"
  31 #include "opto/connode.hpp"
  32 #include "opto/divnode.hpp"
  33 #include "opto/graphKit.hpp"
  34 #include "opto/mulnode.hpp"
  35 #include "opto/phaseX.hpp"
  36 #include "opto/subnode.hpp"
  37 #include "opto/type.hpp"
  38 
  39 //-----------------------------------------------------------------------------
  40 //----------------------------IdealKit-----------------------------------------
  41 // Set of utilities for creating control flow and scalar SSA data flow.
  42 // Control:
  43 //    if_then(left, relop, right)
  44 //    else_ (optional)
  45 //    end_if
  46 //    loop(iv variable, initial, relop, limit)
  47 //       - sets iv to initial for first trip
  48 //       - exits when relation on limit is true
  49 //       - the values of initial and limit should be loop invariant
  50 //       - no increment, must be explicitly coded