src/share/vm/opto/phase.hpp

Wed, 10 Aug 2016 14:59:21 +0200

author
simonis
date
Wed, 10 Aug 2016 14:59:21 +0200
changeset 8608
0d78aecb0948
parent 8193
70649f10b88c
child 8604
04d83ba48607
permissions
-rw-r--r--

8152172: PPC64: Support AES intrinsics
Summary: Add support for AES intrinsics on PPC64.
Reviewed-by: kvn, mdoerr, simonis, zmajo
Contributed-by: Hiroshi H Horii <horii@jp.ibm.com>

duke@435 1 /*
mikael@6198 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
duke@435 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 *
duke@435 5 * This code is free software; you can redistribute it and/or modify it
duke@435 6 * under the terms of the GNU General Public License version 2 only, as
duke@435 7 * published by the Free Software Foundation.
duke@435 8 *
duke@435 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 * accompanied this code).
duke@435 14 *
duke@435 15 * You should have received a copy of the GNU General Public License version
duke@435 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
duke@435 22 *
duke@435 23 */
duke@435 24
stefank@2314 25 #ifndef SHARE_VM_OPTO_PHASE_HPP
stefank@2314 26 #define SHARE_VM_OPTO_PHASE_HPP
stefank@2314 27
stefank@2314 28 #include "libadt/port.hpp"
stefank@2314 29 #include "runtime/timer.hpp"
stefank@2314 30
duke@435 31 class Compile;
duke@435 32
duke@435 33 //------------------------------Phase------------------------------------------
duke@435 34 // Most optimizations are done in Phases. Creating a phase does any long
duke@435 35 // running analysis required, and caches the analysis in internal data
duke@435 36 // structures. Later the analysis is queried using transform() calls to
duke@435 37 // guide transforming the program. When the Phase is deleted, so is any
duke@435 38 // cached analysis info. This basic Phase class mostly contains timing and
duke@435 39 // memory management code.
duke@435 40 class Phase : public StackObj {
duke@435 41 public:
duke@435 42 enum PhaseNumber {
zmajo@8193 43 Compiler, // Top-level compiler phase
zmajo@8193 44 Parser, // Parse bytecodes
zmajo@8193 45 Remove_Useless, // Remove useless nodes
zmajo@8193 46 Remove_Useless_And_Renumber_Live, // First, remove useless nodes from the graph. Then, renumber live nodes.
zmajo@8193 47 Optimistic, // Optimistic analysis phase
zmajo@8193 48 GVN, // Pessimistic global value numbering phase
zmajo@8193 49 Ins_Select, // Instruction selection phase
zmajo@8193 50 CFG, // Build a CFG
zmajo@8193 51 BlockLayout, // Linear ordering of blocks
zmajo@8193 52 Register_Allocation, // Register allocation, duh
zmajo@8193 53 LIVE, // Dragon-book LIVE range problem
zmajo@8193 54 StringOpts, // StringBuilder related optimizations
zmajo@8193 55 Interference_Graph, // Building the IFG
zmajo@8193 56 Coalesce, // Coalescing copies
zmajo@8193 57 Ideal_Loop, // Find idealized trip-counted loops
zmajo@8193 58 Macro_Expand, // Expand macro nodes
zmajo@8193 59 Peephole, // Apply peephole optimizations
duke@435 60 last_phase
duke@435 61 };
duke@435 62 protected:
duke@435 63 enum PhaseNumber _pnum; // Phase number (for stat gathering)
duke@435 64
duke@435 65 #ifndef PRODUCT
duke@435 66 static int _total_bytes_compiled;
duke@435 67
duke@435 68 // accumulated timers
duke@435 69 static elapsedTimer _t_totalCompilation;
duke@435 70 static elapsedTimer _t_methodCompilation;
duke@435 71 static elapsedTimer _t_stubCompilation;
duke@435 72 #endif
duke@435 73
duke@435 74 // The next timers used for LogCompilation
duke@435 75 static elapsedTimer _t_parser;
duke@435 76 static elapsedTimer _t_optimizer;
kvn@3651 77 public:
kvn@3651 78 // ConnectionGraph can't be Phase since it is used after EA done.
kvn@3651 79 static elapsedTimer _t_escapeAnalysis;
kvn@3651 80 static elapsedTimer _t_connectionGraph;
kvn@3651 81 protected:
duke@435 82 static elapsedTimer _t_idealLoop;
duke@435 83 static elapsedTimer _t_ccp;
duke@435 84 static elapsedTimer _t_matcher;
duke@435 85 static elapsedTimer _t_registerAllocation;
duke@435 86 static elapsedTimer _t_output;
duke@435 87
duke@435 88 #ifndef PRODUCT
duke@435 89 static elapsedTimer _t_graphReshaping;
duke@435 90 static elapsedTimer _t_scheduler;
rasbold@853 91 static elapsedTimer _t_blockOrdering;
kvn@3651 92 static elapsedTimer _t_macroEliminate;
duke@435 93 static elapsedTimer _t_macroExpand;
duke@435 94 static elapsedTimer _t_peephole;
goetz@6478 95 static elapsedTimer _t_postalloc_expand;
duke@435 96 static elapsedTimer _t_codeGeneration;
duke@435 97 static elapsedTimer _t_registerMethod;
duke@435 98 static elapsedTimer _t_temporaryTimer1;
duke@435 99 static elapsedTimer _t_temporaryTimer2;
never@1356 100 static elapsedTimer _t_idealLoopVerify;
duke@435 101
duke@435 102 // Subtimers for _t_optimizer
duke@435 103 static elapsedTimer _t_iterGVN;
duke@435 104 static elapsedTimer _t_iterGVN2;
kvn@5110 105 static elapsedTimer _t_incrInline;
zmajo@8193 106 static elapsedTimer _t_renumberLive;
duke@435 107
duke@435 108 // Subtimers for _t_registerAllocation
duke@435 109 static elapsedTimer _t_ctorChaitin;
duke@435 110 static elapsedTimer _t_buildIFGphysical;
duke@435 111 static elapsedTimer _t_computeLive;
duke@435 112 static elapsedTimer _t_regAllocSplit;
duke@435 113 static elapsedTimer _t_postAllocCopyRemoval;
iveresov@7564 114 static elapsedTimer _t_mergeMultidefs;
duke@435 115 static elapsedTimer _t_fixupSpills;
duke@435 116
duke@435 117 // Subtimers for _t_output
duke@435 118 static elapsedTimer _t_instrSched;
duke@435 119 static elapsedTimer _t_buildOopMaps;
duke@435 120 #endif
duke@435 121 public:
duke@435 122 Compile * C;
duke@435 123 Phase( PhaseNumber pnum );
duke@435 124 #ifndef PRODUCT
duke@435 125 static void print_timers();
duke@435 126 #endif
duke@435 127 };
stefank@2314 128
stefank@2314 129 #endif // SHARE_VM_OPTO_PHASE_HPP

mercurial