src/hotspot/share/opto/matcher.hpp
author coleenp
Thu, 10 Jan 2019 15:13:51 -0500
changeset 53244 9807daeb47c4
parent 52627 e7d8ea5bfc8f
child 54780 f8d182aedc92
permissions -rw-r--r--
8216167: Update include guards to reflect correct directories Summary: Use script and some manual fixup to fix directores names in include guards. Reviewed-by: lfoltan, eosterlund, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52627
diff changeset
     2
 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5025
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5025
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5025
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52627
diff changeset
    25
#ifndef SHARE_OPTO_MATCHER_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52627
diff changeset
    26
#define SHARE_OPTO_MATCHER_HPP
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
    28
#include "libadt/vectset.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
    29
#include "memory/resourceArea.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
    30
#include "opto/node.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
    31
#include "opto/phaseX.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
    32
#include "opto/regmask.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
    33
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
class Compile;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
class Node;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
class MachNode;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
class MachTypeNode;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
class MachOper;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
//---------------------------Matcher-------------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
class Matcher : public PhaseTransform {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
  friend class VMStructs;
38286
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    43
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    44
public:
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    45
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    46
  // State and MStack class used in xform() and find_shared() iterative methods.
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    47
  enum Node_State { Pre_Visit,  // node has to be pre-visited
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    48
                    Visit,  // visit node
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    49
                    Post_Visit,  // post-visit node
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    50
                    Alt_Post_Visit   // alternative post-visit path
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    51
  };
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    52
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    53
  class MStack: public Node_Stack {
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    54
  public:
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    55
    MStack(int size) : Node_Stack(size) { }
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    56
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    57
    void push(Node *n, Node_State ns) {
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    58
      Node_Stack::push(n, (uint)ns);
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    59
    }
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    60
    void push(Node *n, Node_State ns, Node *parent, int indx) {
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    61
      ++_inode_top;
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    62
      if ((_inode_top + 1) >= _inode_max) grow();
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    63
      _inode_top->node = parent;
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    64
      _inode_top->indx = (uint)indx;
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    65
      ++_inode_top;
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    66
      _inode_top->node = n;
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    67
      _inode_top->indx = (uint)ns;
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    68
    }
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    69
    Node *parent() {
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    70
      pop();
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    71
      return node();
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    72
    }
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    73
    Node_State state() const {
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    74
      return (Node_State)index();
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    75
    }
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    76
    void set_state(Node_State ns) {
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    77
      set_index((uint)ns);
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    78
    }
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    79
  };
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    80
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
    81
private:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  // Private arena of State objects
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  ResourceArea _states_arena;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  VectorSet   _visited;         // Visit bits
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  // Used to control the Label pass
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  VectorSet   _shared;          // Shared Ideal Node
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  VectorSet   _dontcare;        // Nothing the matcher cares about
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  // Private methods which perform the actual matching and reduction
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  // Walks the label tree, generating machine nodes
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  MachNode *ReduceInst( State *s, int rule, Node *&mem);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  void ReduceInst_Chain_Rule( State *s, int rule, Node *&mem, MachNode *mach);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  uint ReduceInst_Interior(State *s, int rule, Node *&mem, MachNode *mach, uint num_opnds);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  void ReduceOper( State *s, int newrule, Node *&mem, MachNode *mach );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
  // If this node already matched using "rule", return the MachNode for it.
594
9f4474e5dbaf 6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops
kvn
parents: 1
diff changeset
    99
  MachNode* find_shared_node(Node* n, uint rule);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  // Convert a dense opcode number to an expanded rule number
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  const int *_reduceOp;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  const int *_leftOp;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  const int *_rightOp;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
  // Map dense opcode number to info on when rule is swallowed constant.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  const bool *_swallowed;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  // Map dense rule number to determine if this is an instruction chain rule
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  const uint _begin_inst_chain_rule;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  const uint _end_inst_chain_rule;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  // We want to clone constants and possible CmpI-variants.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  // If we do not clone CmpI, then we can have many instances of
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  // condition codes alive at once.  This is OK on some chips and
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  // bad on others.  Hence the machine-dependent table lookup.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  const char *_must_clone;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
  // Find shared Nodes, or Nodes that otherwise are Matcher roots
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  void find_shared( Node *n );
52627
e7d8ea5bfc8f 8213746: GC/C2 abstraction for C2 matcher
rkennke
parents: 47216
diff changeset
   121
  bool find_shared_visit(MStack& mstack, Node* n, uint opcode, bool& mem_op, int& mem_addr_idx);
e7d8ea5bfc8f 8213746: GC/C2 abstraction for C2 matcher
rkennke
parents: 47216
diff changeset
   122
  void find_shared_post_visit(Node* n, uint opcode);
e7d8ea5bfc8f 8213746: GC/C2 abstraction for C2 matcher
rkennke
parents: 47216
diff changeset
   123
23220
fc827339dc37 8031321: Support Intel bit manipulation instructions
iveresov
parents: 22911
diff changeset
   124
#ifdef X86
fc827339dc37 8031321: Support Intel bit manipulation instructions
iveresov
parents: 22911
diff changeset
   125
  bool is_bmi_pattern(Node *n, Node *m);
fc827339dc37 8031321: Support Intel bit manipulation instructions
iveresov
parents: 22911
diff changeset
   126
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  // Debug and profile information for nodes in old space:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
  GrowableArray<Node_Notes*>* _old_node_note_array;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
  // Node labeling iterator for instruction selection
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  Node *Label_Root( const Node *n, State *svec, Node *control, const Node *mem );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
  Node *transform( Node *dummy );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
19330
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   136
  Node_List _projection_list;        // For Machine nodes killing many values
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
594
9f4474e5dbaf 6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops
kvn
parents: 1
diff changeset
   138
  Node_Array _shared_nodes;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
  debug_only(Node_Array _old2new_map;)   // Map roots of ideal-trees to machine-roots
768
d0bebc7eefc2 6718676: putback for 6604014 is incomplete
never
parents: 762
diff changeset
   141
  debug_only(Node_Array _new2old_map;)   // Maps machine nodes back to ideal
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
  // Accessors for the inherited field PhaseTransform::_nodes:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  void   grow_new_node_array(uint idx_limit) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
    _nodes.map(idx_limit-1, NULL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  bool    has_new_node(const Node* n) const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
    return _nodes.at(n->_idx) != NULL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  Node*       new_node(const Node* n) const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
    assert(has_new_node(n), "set before get");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
    return _nodes.at(n->_idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  void    set_new_node(const Node* n, Node *nn) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
    assert(!has_new_node(n), "set only once");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
    _nodes.map(n->_idx, nn);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  // Make sure only new nodes are reachable from this node
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  void verify_new_nodes_only(Node* root);
762
1b26adb5fea1 6715633: when matching a memory node the adr_type should not change
kvn
parents: 594
diff changeset
   162
1b26adb5fea1 6715633: when matching a memory node the adr_type should not change
kvn
parents: 594
diff changeset
   163
  Node* _mem_node;   // Ideal memory node consumed by mach node
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
2573
b5002ef26155 6709742: find_base_for_derived's use of Ideal NULL is unsafe causing crashes during register allocation
kvn
parents: 1495
diff changeset
   166
  // Mach node for ConP #NULL
b5002ef26155 6709742: find_base_for_derived's use of Ideal NULL is unsafe causing crashes during register allocation
kvn
parents: 1495
diff changeset
   167
  MachNode* _mach_null;
b5002ef26155 6709742: find_base_for_derived's use of Ideal NULL is unsafe causing crashes during register allocation
kvn
parents: 1495
diff changeset
   168
30300
4b12a5b40064 8069191: moving predicate out of loops may cause array accesses to bypass null check
roland
parents: 28372
diff changeset
   169
  void handle_precedence_edges(Node* n, MachNode *mach);
4b12a5b40064 8069191: moving predicate out of loops may cause array accesses to bypass null check
roland
parents: 28372
diff changeset
   170
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
  int LabelRootDepth;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
  // Convert ideal machine register to a register mask for spill-loads
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
  static const RegMask *idealreg2regmask[];
4566
b363f6ef4068 6829187: compiler optimizations required for JSR 292
twisti
parents: 3261
diff changeset
   175
  RegMask *idealreg2spillmask  [_last_machine_leaf];
b363f6ef4068 6829187: compiler optimizations required for JSR 292
twisti
parents: 3261
diff changeset
   176
  RegMask *idealreg2debugmask  [_last_machine_leaf];
b363f6ef4068 6829187: compiler optimizations required for JSR 292
twisti
parents: 3261
diff changeset
   177
  RegMask *idealreg2mhdebugmask[_last_machine_leaf];
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  void init_spill_mask( Node *ret );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  // Convert machine register number to register mask
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  static uint mreg2regmask_max;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  static RegMask mreg2regmask[];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  static RegMask STACK_ONLY_mask;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
2573
b5002ef26155 6709742: find_base_for_derived's use of Ideal NULL is unsafe causing crashes during register allocation
kvn
parents: 1495
diff changeset
   184
  MachNode* mach_null() const { return _mach_null; }
b5002ef26155 6709742: find_base_for_derived's use of Ideal NULL is unsafe causing crashes during register allocation
kvn
parents: 1495
diff changeset
   185
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
  bool    is_shared( Node *n ) { return _shared.test(n->_idx) != 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  void   set_shared( Node *n ) {  _shared.set(n->_idx); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
  bool   is_visited( Node *n ) { return _visited.test(n->_idx) != 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  void  set_visited( Node *n ) { _visited.set(n->_idx); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  bool  is_dontcare( Node *n ) { return _dontcare.test(n->_idx) != 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
  void set_dontcare( Node *n ) {  _dontcare.set(n->_idx); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  // Mode bit to tell DFA and expand rules whether we are running after
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
  // (or during) register selection.  Usually, the matcher runs before,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
  // but it will also get called to generate post-allocation spill code.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  // In this situation, it is a deadly error to attempt to allocate more
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
  // temporary registers.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
  bool _allocation_started;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  // Machine register names
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  static const char *regName[];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  // Machine register encodings
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  static const unsigned char _regEncode[];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  // Machine Node names
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  const char **_ruleName;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  // Rules that are cheaper to rematerialize than to spill
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  static const uint _begin_rematerialize;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  static const uint _end_rematerialize;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  // An array of chars, from 0 to _last_Mach_Reg.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
  // No Save       = 'N' (for register windows)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
  // Save on Entry = 'E'
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  // Save on Call  = 'C'
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
  // Always Save   = 'A' (same as SOE + SOC)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  const char *_register_save_policy;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  const char *_c_reg_save_policy;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  // Convert a machine register to a machine register type, so-as to
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  // properly match spill code.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  const int *_register_save_type;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
  // Maps from machine register to boolean; true if machine register can
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  // be holding a call argument in some signature.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  static bool can_be_java_arg( int reg );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
  // Maps from machine register to boolean; true if machine register holds
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
  // a spillable argument.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
  static bool is_spillable_arg( int reg );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
  // List of IfFalse or IfTrue Nodes that indicate a taken null test.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  // List is valid in the post-matching space.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
  Node_List _null_check_tests;
1400
afd034bb8c2e 6747051: Improve code and implicit null check generation for compressed oops
kvn
parents: 781
diff changeset
   230
  void collect_null_checks( Node *proj, Node *orig_proj );
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
  void validate_null_checks( );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
19330
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   233
  Matcher();
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   234
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   235
  // Get a projection node at position pos
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   236
  Node* get_projection(uint pos) {
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   237
    return _projection_list[pos];
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   238
  }
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   239
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   240
  // Push a projection node onto the projection list
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   241
  void push_projection(Node* node) {
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   242
    _projection_list.push(node);
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   243
  }
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   244
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   245
  Node* pop_projection() {
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   246
    return _projection_list.pop();
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   247
  }
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   248
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   249
  // Number of nodes in the projection list
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   250
  uint number_of_projections() const {
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   251
    return _projection_list.size();
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   252
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
  // Select instructions for entire method
19330
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   255
  void match();
49d6711171e6 8023003: Cleanup the public interface to PhaseCFG
adlertz
parents: 13969
diff changeset
   256
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
  // Helper for match
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
  OptoReg::Name warp_incoming_stk_arg( VMReg reg );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
  // Transform, then walk.  Does implicit DCE while walking.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
  // Name changed from "transform" to avoid it being virtual.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
  Node *xform( Node *old_space_node, int Nodes );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
  // Match a single Ideal Node - turn it into a 1-Node tree; Label & Reduce.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
  MachNode *match_tree( const Node *n );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
  MachNode *match_sfpt( SafePointNode *sfpt );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
  // Helper for match_sfpt
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
  OptoReg::Name warp_outgoing_stk_arg( VMReg reg, OptoReg::Name begin_out_arg_area, OptoReg::Name &out_arg_limit_per_call );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
  // Initialize first stack mask and related masks.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
  void init_first_stack_mask();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
  // If we should save-on-entry this register
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
  bool is_save_on_entry( int reg );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
  // Fixup the save-on-entry registers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
  void Fixup_Save_On_Entry( );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
  // --- Frame handling ---
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
  // Register number of the stack slot corresponding to the incoming SP.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
  // Per the Big Picture in the AD file, it is:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
  //   SharedInfo::stack0 + locks + in_preserve_stack_slots + pad2.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
  OptoReg::Name _old_SP;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
  // Register number of the stack slot corresponding to the highest incoming
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
  // argument on the stack.  Per the Big Picture in the AD file, it is:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
  //   _old_SP + out_preserve_stack_slots + incoming argument size.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
  OptoReg::Name _in_arg_limit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
489c9b5090e2 Initial load
duke
parents:
diff changeset
   291
  // Register number of the stack slot corresponding to the new SP.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
  // Per the Big Picture in the AD file, it is:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
  //   _in_arg_limit + pad0
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
  OptoReg::Name _new_SP;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
  // Register number of the stack slot corresponding to the highest outgoing
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
  // argument on the stack.  Per the Big Picture in the AD file, it is:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
  //   _new_SP + max outgoing arguments of all calls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
  OptoReg::Name _out_arg_limit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
  OptoRegPair *_parm_regs;        // Array of machine registers per argument
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
  RegMask *_calling_convention_mask; // Array of RegMasks per argument
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
2862
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2573
diff changeset
   304
  // Does matcher have a match rule for this ideal node?
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
  static const bool has_match_rule(int opcode);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
  static const bool _hasMatchRule[_last_opcode];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
2862
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2573
diff changeset
   308
  // Does matcher have a match rule for this ideal node and is the
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2573
diff changeset
   309
  // predicate (if there is one) true?
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2573
diff changeset
   310
  // NOTE: If this function is used more commonly in the future, ADLC
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2573
diff changeset
   311
  // should generate this one.
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2573
diff changeset
   312
  static const bool match_rule_supported(int opcode);
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2573
diff changeset
   313
34162
16b54851eaf6 8140779: Code generation fixes for avx512
iveresov
parents: 33065
diff changeset
   314
  // identify extra cases that we might want to provide match rules for
16b54851eaf6 8140779: Code generation fixes for avx512
iveresov
parents: 33065
diff changeset
   315
  // e.g. Op_ vector nodes and other intrinsics while guarding with vlen
16b54851eaf6 8140779: Code generation fixes for avx512
iveresov
parents: 33065
diff changeset
   316
  static const bool match_rule_supported_vector(int opcode, int vlen);
16b54851eaf6 8140779: Code generation fixes for avx512
iveresov
parents: 33065
diff changeset
   317
38049
e8541793960f 8153998: Masked vector post loops
mcberg
parents: 36554
diff changeset
   318
  // Some microarchitectures have mask registers used on vectors
e8541793960f 8153998: Masked vector post loops
mcberg
parents: 36554
diff changeset
   319
  static const bool has_predicated_vectors(void);
e8541793960f 8153998: Masked vector post loops
mcberg
parents: 36554
diff changeset
   320
33065
55892792936f 8134802: LCM register pressure scheduling
mcberg
parents: 30300
diff changeset
   321
  // Some uarchs have different sized float register resources
55892792936f 8134802: LCM register pressure scheduling
mcberg
parents: 30300
diff changeset
   322
  static const int float_pressure(int default_pressure_threshold);
55892792936f 8134802: LCM register pressure scheduling
mcberg
parents: 30300
diff changeset
   323
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
  // Used to determine if we have fast l2f conversion
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
  // USII has it, USIII doesn't
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
  static const bool convL2FSupported(void);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
  // Vector width in bytes
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   329
  static const int vector_width_in_bytes(BasicType bt);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   330
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   331
  // Limits on vector size (number of elements).
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   332
  static const int max_vector_size(const BasicType bt);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   333
  static const int min_vector_size(const BasicType bt);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   334
  static const bool vector_size_supported(const BasicType bt, int size) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   335
    return (Matcher::max_vector_size(bt) >= size &&
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   336
            Matcher::min_vector_size(bt) <= size);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   337
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
  // Vector ideal reg
46378
4ccca1fdf627 8160748: Inconsistent types for ideal_reg
kbarrett
parents: 41673
diff changeset
   340
  static const uint vector_ideal_reg(int len);
4ccca1fdf627 8160748: Inconsistent types for ideal_reg
kbarrett
parents: 41673
diff changeset
   341
  static const uint vector_shift_count_ideal_reg(int len);
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   342
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   343
  // CPU supports misaligned vectors store/load.
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 11197
diff changeset
   344
  static const bool misaligned_vectors_ok();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
22505
4523090c9674 8002074: Support for AES on SPARC
kvn
parents: 22234
diff changeset
   346
  // Should original key array reference be passed to AES stubs
4523090c9674 8002074: Support for AES on SPARC
kvn
parents: 22234
diff changeset
   347
  static const bool pass_original_key_for_aes();
4523090c9674 8002074: Support for AES on SPARC
kvn
parents: 22234
diff changeset
   348
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
  // Used to determine a "low complexity" 64-bit constant.  (Zero is simple.)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
  // The standard of comparison is one (StoreL ConL) vs. two (StoreI ConI).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
  // Depends on the details of 64-bit constant generation on the CPU.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
  static const bool isSimpleConstant64(jlong con);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
  // These calls are all generated by the ADLC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
  // TRUE - grows up, FALSE - grows down (Intel)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
  virtual bool stack_direction() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
  // Java-Java calling convention
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
  // (what you use when Java calls Java)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
  // Alignment of stack in bytes, standard Intel word alignment is 4.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
  // Sparc probably wants at least double-word (8).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
  static uint stack_alignment_in_bytes();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
  // Alignment of stack, measured in stack slots.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
  // The size of stack slots is defined by VMRegImpl::stack_slot_size.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
  static uint stack_alignment_in_slots() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
    return stack_alignment_in_bytes() / (VMRegImpl::stack_slot_size);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
  // Array mapping arguments to registers.  Argument 0 is usually the 'this'
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
  // pointer.  Registers can include stack-slots and regular registers.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
  static void calling_convention( BasicType *, VMRegPair *, uint len, bool is_outgoing );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
  // Convert a sig into a calling convention register layout
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
  // and find interesting things about it.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
  static OptoReg::Name  find_receiver( bool is_outgoing );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
  // Return address register.  On Intel it is a stack-slot.  On PowerPC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
  // it is the Link register.  On Sparc it is r31?
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
  virtual OptoReg::Name return_addr() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
  RegMask              _return_addr_mask;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
  // Return value register.  On Intel it is EAX.  On Sparc i0/o0.
46378
4ccca1fdf627 8160748: Inconsistent types for ideal_reg
kbarrett
parents: 41673
diff changeset
   383
  static OptoRegPair   return_value(uint ideal_reg, bool is_outgoing);
4ccca1fdf627 8160748: Inconsistent types for ideal_reg
kbarrett
parents: 41673
diff changeset
   384
  static OptoRegPair c_return_value(uint ideal_reg, bool is_outgoing);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
  RegMask                     _return_value_mask;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
  // Inline Cache Register
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
  static OptoReg::Name  inline_cache_reg();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
  static int            inline_cache_reg_encode();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
  // Register for DIVI projection of divmodI
489c9b5090e2 Initial load
duke
parents:
diff changeset
   391
  static RegMask divI_proj_mask();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
  // Register for MODI projection of divmodI
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
  static RegMask modI_proj_mask();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
  // Register for DIVL projection of divmodL
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
  static RegMask divL_proj_mask();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   397
  // Register for MODL projection of divmodL
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
  static RegMask modL_proj_mask();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
7115
32300e243300 6987135: Performance regression on Intel platform with 32-bits edition between 6u13 and 6u14.
kvn
parents: 5702
diff changeset
   400
  // Use hardware DIV instruction when it is faster than
32300e243300 6987135: Performance regression on Intel platform with 32-bits edition between 6u13 and 6u14.
kvn
parents: 5702
diff changeset
   401
  // a code which use multiply for division by constant.
32300e243300 6987135: Performance regression on Intel platform with 32-bits edition between 6u13 and 6u14.
kvn
parents: 5702
diff changeset
   402
  static bool use_asm_for_ldiv_by_con( jlong divisor );
32300e243300 6987135: Performance regression on Intel platform with 32-bits edition between 6u13 and 6u14.
kvn
parents: 5702
diff changeset
   403
4566
b363f6ef4068 6829187: compiler optimizations required for JSR 292
twisti
parents: 3261
diff changeset
   404
  static const RegMask method_handle_invoke_SP_save_mask();
b363f6ef4068 6829187: compiler optimizations required for JSR 292
twisti
parents: 3261
diff changeset
   405
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
  // Java-Interpreter calling convention
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
  // (what you use when calling between compiled-Java and Interpreted-Java
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
489c9b5090e2 Initial load
duke
parents:
diff changeset
   409
  // Number of callee-save + always-save registers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   410
  // Ignores frame pointer and "special" registers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
  static int  number_of_saved_registers();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   412
489c9b5090e2 Initial load
duke
parents:
diff changeset
   413
  // The Method-klass-holder may be passed in the inline_cache_reg
489c9b5090e2 Initial load
duke
parents:
diff changeset
   414
  // and then expanded into the inline_cache_reg and a method_oop register
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
  static OptoReg::Name  interpreter_method_oop_reg();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   417
  static int            interpreter_method_oop_reg_encode();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   418
489c9b5090e2 Initial load
duke
parents:
diff changeset
   419
  static OptoReg::Name  compiler_method_oop_reg();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   420
  static const RegMask &compiler_method_oop_reg_mask();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   421
  static int            compiler_method_oop_reg_encode();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   422
489c9b5090e2 Initial load
duke
parents:
diff changeset
   423
  // Interpreter's Frame Pointer Register
489c9b5090e2 Initial load
duke
parents:
diff changeset
   424
  static OptoReg::Name  interpreter_frame_pointer_reg();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   425
489c9b5090e2 Initial load
duke
parents:
diff changeset
   426
  // Java-Native calling convention
489c9b5090e2 Initial load
duke
parents:
diff changeset
   427
  // (what you use when intercalling between Java and C++ code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   428
489c9b5090e2 Initial load
duke
parents:
diff changeset
   429
  // Array mapping arguments to registers.  Argument 0 is usually the 'this'
489c9b5090e2 Initial load
duke
parents:
diff changeset
   430
  // pointer.  Registers can include stack-slots and regular registers.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   431
  static void c_calling_convention( BasicType*, VMRegPair *, uint );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   432
  // Frame pointer. The frame pointer is kept at the base of the stack
489c9b5090e2 Initial load
duke
parents:
diff changeset
   433
  // and so is probably the stack pointer for most machines.  On Intel
489c9b5090e2 Initial load
duke
parents:
diff changeset
   434
  // it is ESP.  On the PowerPC it is R1.  On Sparc it is SP.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   435
  OptoReg::Name  c_frame_pointer() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   436
  static RegMask c_frame_ptr_mask;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   437
489c9b5090e2 Initial load
duke
parents:
diff changeset
   438
  // !!!!! Special stuff for building ScopeDescs
489c9b5090e2 Initial load
duke
parents:
diff changeset
   439
  virtual int      regnum_to_fpu_offset(int regnum);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   440
489c9b5090e2 Initial load
duke
parents:
diff changeset
   441
  // Is this branch offset small enough to be addressed by a short branch?
10264
6879f93d268d 7063629: use cbcond in C2 generated code on T4
kvn
parents: 10262
diff changeset
   442
  bool is_short_branch_offset(int rule, int br_size, int offset);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   443
489c9b5090e2 Initial load
duke
parents:
diff changeset
   444
  // Optional scaling for the parameter to the ClearArray/CopyArray node.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   445
  static const bool init_array_count_is_in_bytes;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   446
10971
db45f6ab9a75 7097546: Optimize use of CMOVE instructions
kvn
parents: 10264
diff changeset
   447
  // Some hardware needs 2 CMOV's for longs.
db45f6ab9a75 7097546: Optimize use of CMOVE instructions
kvn
parents: 10264
diff changeset
   448
  static const int long_cmove_cost();
db45f6ab9a75 7097546: Optimize use of CMOVE instructions
kvn
parents: 10264
diff changeset
   449
db45f6ab9a75 7097546: Optimize use of CMOVE instructions
kvn
parents: 10264
diff changeset
   450
  // Some hardware have expensive CMOV for float and double.
db45f6ab9a75 7097546: Optimize use of CMOVE instructions
kvn
parents: 10264
diff changeset
   451
  static const int float_cmove_cost();
db45f6ab9a75 7097546: Optimize use of CMOVE instructions
kvn
parents: 10264
diff changeset
   452
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   453
  // Should the Matcher clone shifts on addressing modes, expecting them to
489c9b5090e2 Initial load
duke
parents:
diff changeset
   454
  // be subsumed into complex addressing expressions or compute them into
489c9b5090e2 Initial load
duke
parents:
diff changeset
   455
  // registers?  True for Intel but false for most RISCs
38286
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
   456
  bool clone_address_expressions(AddPNode* m, MStack& mstack, VectorSet& address_visited);
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
   457
  // Clone base + offset address expression
0ddb6f84e138 8154826: AArch64: take advantage better of base + shifted offset addressing mode
roland
parents: 38236
diff changeset
   458
  bool clone_base_plus_offset_address(AddPNode* m, MStack& mstack, VectorSet& address_visited);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   459
5698
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   460
  static bool narrow_oop_use_complex_address();
13969
d2a189b83b87 7054512: Compress class pointers after perm gen removal
roland
parents: 13930
diff changeset
   461
  static bool narrow_klass_use_complex_address();
5698
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   462
41673
e8b3ccb2cfcf 8155729: C2: Skip transformation of LoadConP for heap-based compressed oops
mdoerr
parents: 38286
diff changeset
   463
  static bool const_oop_prefer_decode();
e8b3ccb2cfcf 8155729: C2: Skip transformation of LoadConP for heap-based compressed oops
mdoerr
parents: 38286
diff changeset
   464
  static bool const_klass_prefer_decode();
e8b3ccb2cfcf 8155729: C2: Skip transformation of LoadConP for heap-based compressed oops
mdoerr
parents: 38286
diff changeset
   465
5698
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   466
  // Generate implicit null check for narrow oops if it can fold
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   467
  // into address expression (x64).
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   468
  //
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   469
  // [R12 + narrow_oop_reg<<3 + offset] // fold into address expression
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   470
  // NullCheck narrow_oop_reg
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   471
  //
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   472
  // When narrow oops can't fold into address expression (Sparc) and
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   473
  // base is not null use decode_not_null and normal implicit null check.
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   474
  // Note, decode_not_null node can be used here since it is referenced
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   475
  // only on non null path but it requires special handling, see
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   476
  // collect_null_checks():
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   477
  //
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   478
  // decode_not_null narrow_oop_reg, oop_reg // 'shift' and 'add base'
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   479
  // [oop_reg + offset]
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   480
  // NullCheck oop_reg
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   481
  //
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   482
  // With Zero base and when narrow oops can not fold into address
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   483
  // expression use normal implicit null check since only shift
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   484
  // is needed to decode narrow oop.
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   485
  //
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   486
  // decode narrow_oop_reg, oop_reg // only 'shift'
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   487
  // [oop_reg + offset]
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   488
  // NullCheck oop_reg
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   489
  //
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   490
  inline static bool gen_narrow_oop_implicit_null_checks() {
28372
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 23220
diff changeset
   491
    // Advice matcher to perform null checks on the narrow oop side.
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 23220
diff changeset
   492
    // Implicit checks are not possible on the uncompressed oop side anyway
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 23220
diff changeset
   493
    // (at least not for read accesses).
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 23220
diff changeset
   494
    // Performs significantly better (especially on Power 6).
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 23220
diff changeset
   495
    if (!os::zero_page_read_protected()) {
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 23220
diff changeset
   496
      return true;
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 23220
diff changeset
   497
    }
5698
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   498
    return Universe::narrow_oop_use_implicit_null_checks() &&
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   499
           (narrow_oop_use_complex_address() ||
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   500
            Universe::narrow_oop_base() != NULL);
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   501
  }
091095915ee6 6954029: Improve implicit null check generation with compressed oops
kvn
parents: 5025
diff changeset
   502
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
  // Is it better to copy float constants, or load them directly from memory?
489c9b5090e2 Initial load
duke
parents:
diff changeset
   504
  // Intel can load a float constant from a direct address, requiring no
489c9b5090e2 Initial load
duke
parents:
diff changeset
   505
  // extra registers.  Most RISCs will have to materialize an address into a
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
  // register first, so they may as well materialize the constant immediately.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
  static const bool rematerialize_float_constants;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   508
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
  // If CPU can load and store mis-aligned doubles directly then no fixup is
489c9b5090e2 Initial load
duke
parents:
diff changeset
   510
  // needed.  Else we split the double into 2 integer pieces and move it
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
  // piece-by-piece.  Only happens when passing doubles into C code or when
489c9b5090e2 Initial load
duke
parents:
diff changeset
   512
  // calling i2c adapters as the Java calling convention forces doubles to be
489c9b5090e2 Initial load
duke
parents:
diff changeset
   513
  // aligned.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   514
  static const bool misaligned_doubles_ok;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   515
22844
90f76a40ed8a 8003854: PPC64 (part 115): Introduce PostallocExpand that expands nodes after register allocation
goetz
parents: 21105
diff changeset
   516
  // Does the CPU require postalloc expand (see block.cpp for description of
90f76a40ed8a 8003854: PPC64 (part 115): Introduce PostallocExpand that expands nodes after register allocation
goetz
parents: 21105
diff changeset
   517
  // postalloc expand)?
90f76a40ed8a 8003854: PPC64 (part 115): Introduce PostallocExpand that expands nodes after register allocation
goetz
parents: 21105
diff changeset
   518
  static const bool require_postalloc_expand;
90f76a40ed8a 8003854: PPC64 (part 115): Introduce PostallocExpand that expands nodes after register allocation
goetz
parents: 21105
diff changeset
   519
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   520
  // Perform a platform dependent implicit null fixup.  This is needed
489c9b5090e2 Initial load
duke
parents:
diff changeset
   521
  // on windows95 to take care of some unusual register constraints.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   522
  void pd_implicit_null_fixup(MachNode *load, uint idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   523
489c9b5090e2 Initial load
duke
parents:
diff changeset
   524
  // Advertise here if the CPU requires explicit rounding operations
489c9b5090e2 Initial load
duke
parents:
diff changeset
   525
  // to implement the UseStrictFP mode.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   526
  static const bool strict_fp_requires_explicit_rounding;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
5025
05adc9b8f96a 6910664: C2: java/util/Arrays/Sorting.java fails with DeoptimizeALot flag
kvn
parents: 4566
diff changeset
   528
  // Are floats conerted to double when stored to stack during deoptimization?
05adc9b8f96a 6910664: C2: java/util/Arrays/Sorting.java fails with DeoptimizeALot flag
kvn
parents: 4566
diff changeset
   529
  static bool float_in_double();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   530
  // Do ints take an entire long register or just half?
489c9b5090e2 Initial load
duke
parents:
diff changeset
   531
  static const bool int_in_long;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   532
8868
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 7433
diff changeset
   533
  // Do the processor's shift instructions only use the low 5/6 bits
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 7433
diff changeset
   534
  // of the count for 32/64 bit ints? If not we need to do the masking
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 7433
diff changeset
   535
  // ourselves.
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 7433
diff changeset
   536
  static const bool need_masked_shift_count;
1bae515b806b 7029017: Additional architecture support for c2 compiler
roland
parents: 7433
diff changeset
   537
38236
510f77046e00 8154943: AArch64: redundant address computation instructions with vectorization
roland
parents: 38049
diff changeset
   538
  // Whether code generation need accurate ConvI2L types.
510f77046e00 8154943: AArch64: redundant address computation instructions with vectorization
roland
parents: 38049
diff changeset
   539
  static const bool convi2l_type_required;
510f77046e00 8154943: AArch64: redundant address computation instructions with vectorization
roland
parents: 38049
diff changeset
   540
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   541
  // This routine is run whenever a graph fails to match.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   542
  // If it returns, the compiler should bailout to interpreter without error.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   543
  // In non-product mode, SoftMatchFailure is false to detect non-canonical
489c9b5090e2 Initial load
duke
parents:
diff changeset
   544
  // graphs.  Print a message and exit.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   545
  static void soft_match_failure() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   546
    if( SoftMatchFailure ) return;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   547
    else { fatal("SoftMatchFailure is not allowed except in product"); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   548
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   549
489c9b5090e2 Initial load
duke
parents:
diff changeset
   550
  // Check for a following volatile memory barrier without an
489c9b5090e2 Initial load
duke
parents:
diff changeset
   551
  // intervening load and thus we don't need a barrier here.  We
489c9b5090e2 Initial load
duke
parents:
diff changeset
   552
  // retain the Node to act as a compiler ordering barrier.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   553
  static bool post_store_load_barrier(const Node* mb);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   554
22856
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22844
diff changeset
   555
  // Does n lead to an uncommon trap that can cause deoptimization?
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22844
diff changeset
   556
  static bool branches_to_uncommon_trap(const Node *n);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   557
489c9b5090e2 Initial load
duke
parents:
diff changeset
   558
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   559
  void dump_old2new_map();      // machine-independent to machine-dependent
768
d0bebc7eefc2 6718676: putback for 6604014 is incomplete
never
parents: 762
diff changeset
   560
d0bebc7eefc2 6718676: putback for 6604014 is incomplete
never
parents: 762
diff changeset
   561
  Node* find_old_node(Node* new_node) {
d0bebc7eefc2 6718676: putback for 6604014 is incomplete
never
parents: 762
diff changeset
   562
    return _new2old_map[new_node->_idx];
d0bebc7eefc2 6718676: putback for 6604014 is incomplete
never
parents: 762
diff changeset
   563
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   564
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   565
};
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7115
diff changeset
   566
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52627
diff changeset
   567
#endif // SHARE_OPTO_MATCHER_HPP