src/hotspot/share/opto/regmask.hpp
author chegar
Thu, 17 Oct 2019 20:53:35 +0100
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54021 6347ffe2c3c7
permissions -rw-r--r--
datagramsocketimpl-branch: update to default
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: 49373
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: 1
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
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: 1
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: 49373
diff changeset
    25
#ifndef SHARE_OPTO_REGMASK_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49373
diff changeset
    26
#define SHARE_OPTO_REGMASK_HPP
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "code/vmreg.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "opto/optoreg.hpp"
53532
bc20d0376402 8217869: Add count_leading_zeros utility
redestad
parents: 53448
diff changeset
    30
#include "utilities/count_leading_zeros.hpp"
53448
e422b21ca556 8217629: RegMask::find_lowest_bit can reuse count_trailing_zeros utility
redestad
parents: 53443
diff changeset
    31
#include "utilities/count_trailing_zeros.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    32
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
//-------------Non-zero bit search methods used by RegMask---------------------
53448
e422b21ca556 8217629: RegMask::find_lowest_bit can reuse count_trailing_zeros utility
redestad
parents: 53443
diff changeset
    34
// Find lowest 1, undefined if empty/0
e422b21ca556 8217629: RegMask::find_lowest_bit can reuse count_trailing_zeros utility
redestad
parents: 53443
diff changeset
    35
static int find_lowest_bit(uint32_t mask) {
e422b21ca556 8217629: RegMask::find_lowest_bit can reuse count_trailing_zeros utility
redestad
parents: 53443
diff changeset
    36
  return count_trailing_zeros(mask);
e422b21ca556 8217629: RegMask::find_lowest_bit can reuse count_trailing_zeros utility
redestad
parents: 53443
diff changeset
    37
}
53532
bc20d0376402 8217869: Add count_leading_zeros utility
redestad
parents: 53448
diff changeset
    38
// Find highest 1, undefined if empty/0
bc20d0376402 8217869: Add count_leading_zeros utility
redestad
parents: 53448
diff changeset
    39
static int find_highest_bit(uint32_t mask) {
bc20d0376402 8217869: Add count_leading_zeros utility
redestad
parents: 53448
diff changeset
    40
  return count_leading_zeros(mask) ^ 31;
bc20d0376402 8217869: Add count_leading_zeros utility
redestad
parents: 53448
diff changeset
    41
}
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
//------------------------------RegMask----------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
// The ADL file describes how to print the machine-specific registers, as well
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
// as any notion of register classes.  We provide a register mask, which is
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
// just a collection of Register numbers.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
// The ADLC defines 2 macros, RM_SIZE and FORALL_BODY.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
// RM_SIZE is the size of a register mask in words.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
// FORALL_BODY replicates a BODY macro once per word in the register mask.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
// The usage is somewhat clumsy and limited to the regmask.[h,c]pp files.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
// However, it means the ADLC can redefine the unroll macro and all loops
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
// over register masks will be unrolled by the correct amount.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
49373
47b5652f2928 8199283: Remove ValueObj class for allocation subclassing for compiler code
coleenp
parents: 47216
diff changeset
    55
class RegMask {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
  union {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
    double _dummy_force_double_alignment[RM_SIZE>>1];
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
    // Array of Register Mask bits.  This array is large enough to cover
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
    // all the machine registers and all parameters that need to be passed
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
    // on the stack (stack registers) up to some interesting limit.  Methods
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
    // that need more parameters will NOT be compiled.  On Intel, the limit
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
    // is something like 90+ parameters.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
    int _A[RM_SIZE];
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  };
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
    65
  // The low and high water marks represents the lowest and highest word
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
    66
  // that might contain set register mask bits, respectively. We guarantee
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
    67
  // that there are no bits in words outside this range, but any word at
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
    68
  // and between the two marks can still be 0.
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
    69
  int _lwm;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
    70
  int _hwm;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
    _WordBits    = BitsPerInt,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
    _LogWordBits = LogBitsPerInt,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
    _RM_SIZE     = RM_SIZE   // local constant, imported, then hidden by #undef
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
    78
 public:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
  enum { CHUNK_SIZE = RM_SIZE*_WordBits };
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
  // SlotsPerLong is 2, since slots are 32 bits and longs are 64 bits.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  // Also, consider the maximum alignment size for a normally allocated
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  // value.  Since we allocate register pairs but not register quads (at
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  // present), this alignment is SlotsPerLong (== 2).  A normally
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  // aligned allocated register is either a single register, or a pair
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  // of adjacent registers, the lower-numbered being even.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  // See also is_aligned_Pairs() below, and the padding added before
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  // Matcher::_new_SP to keep allocated pairs aligned properly.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  // If we ever go to quad-word allocations, SlotsPerQuad will become
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  // the controlling alignment constraint.  Note that this alignment
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  // requirement is internal to the allocator, and independent of any
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  // particular platform.
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
    93
  enum { SlotsPerLong = 2,
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
    94
         SlotsPerVecS = 1,
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
    95
         SlotsPerVecD = 2,
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
    96
         SlotsPerVecX = 4,
30624
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 25715
diff changeset
    97
         SlotsPerVecY = 8,
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 25715
diff changeset
    98
         SlotsPerVecZ = 16 };
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
  // A constructor only used by the ADLC output.  All mask fields are filled
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  // in directly.  Calls to this look something like RM(1,2,3,4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  RegMask(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
#   define BODY(I) int a##I,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
    FORALL_BODY
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
#   undef BODY
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   106
    int dummy = 0) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
#   define BODY(I) _A[I] = a##I;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
    FORALL_BODY
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
#   undef BODY
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   110
    _lwm = 0;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   111
    _hwm = RM_SIZE - 1;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   112
    while (_hwm > 0 && _A[_hwm] == 0) _hwm--;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   113
    while ((_lwm < _hwm) && _A[_lwm] == 0) _lwm++;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   114
    assert(valid_watermarks(), "post-condition");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  // Handy copying constructor
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   118
  RegMask(RegMask *rm) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   119
    _hwm = rm->_hwm;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   120
    _lwm = rm->_lwm;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   121
    for (int i = 0; i < RM_SIZE; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   122
      _A[i] = rm->_A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   123
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   124
    assert(valid_watermarks(), "post-condition");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
  // Construct an empty mask
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   128
  RegMask() {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   129
    Clear();
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   130
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  // Construct a mask with a single bit
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   133
  RegMask(OptoReg::Name reg) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   134
    Clear();
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   135
    Insert(reg);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   136
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  // Check for register being in mask
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   139
  int Member(OptoReg::Name reg) const {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   140
    assert(reg < CHUNK_SIZE, "");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
    return _A[reg>>_LogWordBits] & (1<<(reg&(_WordBits-1)));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  // The last bit in the register mask indicates that the mask should repeat
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
  // indefinitely with ONE bits.  Returns TRUE if mask is infinite or
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  // unbounded in size.  Returns FALSE if mask is finite size.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  int is_AllStack() const { return _A[RM_SIZE-1] >> (_WordBits-1); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  // Work around an -xO3 optimization problme in WS6U1. The old way:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  //   void set_AllStack() { _A[RM_SIZE-1] |= (1<<(_WordBits-1)); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
  // will cause _A[RM_SIZE-1] to be clobbered, not updated when set_AllStack()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
  // follows an Insert() loop, like the one found in init_spill_mask(). Using
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  // Insert() instead works because the index into _A in computed instead of
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  // constant.  See bug 4665841.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  void set_AllStack() { Insert(OptoReg::Name(CHUNK_SIZE-1)); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  // Test for being a not-empty mask.
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   158
  int is_NotEmpty() const {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   159
    assert(valid_watermarks(), "sanity");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
    int tmp = 0;
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   161
    for (int i = _lwm; i <= _hwm; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   162
      tmp |= _A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   163
    }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
    return tmp;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
  // Find lowest-numbered register from mask, or BAD if mask is empty.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  OptoReg::Name find_first_elem() const {
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   169
    assert(valid_watermarks(), "sanity");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   170
    for (int i = _lwm; i <= _hwm; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   171
      int bits = _A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   172
      if (bits) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   173
        return OptoReg::Name((i<<_LogWordBits) + find_lowest_bit(bits));
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   174
      }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   175
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   176
    return OptoReg::Name(OptoReg::Bad);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  }
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   178
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  // Get highest-numbered register from mask, or BAD if mask is empty.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  OptoReg::Name find_last_elem() const {
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   181
    assert(valid_watermarks(), "sanity");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   182
    for (int i = _hwm; i >= _lwm; i--) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   183
      int bits = _A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   184
      if (bits) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   185
        return OptoReg::Name((i<<_LogWordBits) + find_highest_bit(bits));
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   186
      }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   187
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   188
    return OptoReg::Name(OptoReg::Bad);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
  // Clear out partial bits; leave only aligned adjacent bit pairs.
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   192
  void clear_to_pairs();
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   193
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   194
#ifdef ASSERT
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   195
  // Verify watermarks are sane, i.e., within bounds and that no
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   196
  // register words below or above the watermarks have bits set.
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   197
  bool valid_watermarks() const {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   198
    assert(_hwm >= 0 && _hwm < RM_SIZE, "_hwm out of range: %d", _hwm);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   199
    assert(_lwm >= 0 && _lwm < RM_SIZE, "_lwm out of range: %d", _lwm);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   200
    for (int i = 0; i < _lwm; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   201
      assert(_A[i] == 0, "_lwm too high: %d regs at: %d", _lwm, i);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   202
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   203
    for (int i = _hwm + 1; i < RM_SIZE; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   204
      assert(_A[i] == 0, "_hwm too low: %d regs at: %d", _hwm, i);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   205
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   206
    return true;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   207
  }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   208
#endif // !ASSERT
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   209
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  // Test that the mask contains only aligned adjacent bit pairs
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   211
  bool is_aligned_pairs() const;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  // mask is a pair of misaligned registers
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   214
  bool is_misaligned_pair() const;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  // Test for single register
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   216
  bool is_bound1() const;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  // Test for a single adjacent pair
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   218
  bool is_bound_pair() const;
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   219
  // Test for a single adjacent set of ideal register's size.
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   220
  bool is_bound(uint ireg) const;
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   221
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   222
  // Find the lowest-numbered register set in the mask.  Return the
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   223
  // HIGHEST register number in the set, or BAD if no sets.
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   224
  // Assert that the mask contains only bit sets.
15614
3d9afca22dc7 8007402: Code cleanup to remove Parfait false positive
drchase
parents: 15241
diff changeset
   225
  OptoReg::Name find_first_set(const int size) const;
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   226
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   227
  // Clear out partial bits; leave only aligned adjacent bit sets of size.
15614
3d9afca22dc7 8007402: Code cleanup to remove Parfait false positive
drchase
parents: 15241
diff changeset
   228
  void clear_to_sets(const int size);
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   229
  // Smear out partial bits to aligned adjacent bit sets.
15614
3d9afca22dc7 8007402: Code cleanup to remove Parfait false positive
drchase
parents: 15241
diff changeset
   230
  void smear_to_sets(const int size);
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   231
  // Test that the mask contains only aligned adjacent bit sets
15614
3d9afca22dc7 8007402: Code cleanup to remove Parfait false positive
drchase
parents: 15241
diff changeset
   232
  bool is_aligned_sets(const int size) const;
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   233
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   234
  // Test for a single adjacent set
15614
3d9afca22dc7 8007402: Code cleanup to remove Parfait false positive
drchase
parents: 15241
diff changeset
   235
  int is_bound_set(const int size) const;
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   236
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   237
  static bool is_vector(uint ireg);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   238
  static int num_registers(uint ireg);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
  // Fast overlap test.  Non-zero if any registers in common.
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   241
  int overlap(const RegMask &rm) const {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   242
    assert(valid_watermarks() && rm.valid_watermarks(), "sanity");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   243
    int hwm = MIN2(_hwm, rm._hwm);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   244
    int lwm = MAX2(_lwm, rm._lwm);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   245
    int result = 0;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   246
    for (int i = lwm; i <= hwm; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   247
      result |= _A[i] & rm._A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   248
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   249
    return result;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
  // Special test for register pressure based splitting
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
  // UP means register only, Register plus stack, or stack only is DOWN
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
  bool is_UP() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
  // Clear a register mask
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   257
  void Clear() {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   258
    _lwm = RM_SIZE - 1;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   259
    _hwm = 0;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   260
    memset(_A, 0, sizeof(int)*RM_SIZE);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   261
    assert(valid_watermarks(), "sanity");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
  // Fill a register mask with 1's
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   265
  void Set_All() {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   266
    _lwm = 0;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   267
    _hwm = RM_SIZE - 1;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   268
    memset(_A, 0xFF, sizeof(int)*RM_SIZE);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   269
    assert(valid_watermarks(), "sanity");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
  // Insert register into mask
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   273
  void Insert(OptoReg::Name reg) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   274
    assert(reg < CHUNK_SIZE, "sanity");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   275
    assert(valid_watermarks(), "pre-condition");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   276
    int index = reg>>_LogWordBits;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   277
    if (index > _hwm) _hwm = index;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   278
    if (index < _lwm) _lwm = index;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   279
    _A[index] |= (1<<(reg&(_WordBits-1)));
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   280
    assert(valid_watermarks(), "post-condition");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
  // Remove register from mask
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   284
  void Remove(OptoReg::Name reg) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   285
    assert(reg < CHUNK_SIZE, "");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
    _A[reg>>_LogWordBits] &= ~(1<<(reg&(_WordBits-1)));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
  // OR 'rm' into 'this'
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   290
  void OR(const RegMask &rm) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   291
    assert(valid_watermarks() && rm.valid_watermarks(), "sanity");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   292
    // OR widens the live range
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   293
    if (_lwm > rm._lwm) _lwm = rm._lwm;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   294
    if (_hwm < rm._hwm) _hwm = rm._hwm;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   295
    for (int i = _lwm; i <= _hwm; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   296
      _A[i] |= rm._A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   297
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   298
    assert(valid_watermarks(), "sanity");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
  // AND 'rm' into 'this'
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   302
  void AND(const RegMask &rm) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   303
    assert(valid_watermarks() && rm.valid_watermarks(), "sanity");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   304
    // Do not evaluate words outside the current watermark range, as they are
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   305
    // already zero and an &= would not change that
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   306
    for (int i = _lwm; i <= _hwm; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   307
      _A[i] &= rm._A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   308
    }
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   309
    // Narrow the watermarks if &rm spans a narrower range.
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   310
    // Update after to ensure non-overlapping words are zeroed out.
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   311
    if (_lwm < rm._lwm) _lwm = rm._lwm;
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   312
    if (_hwm > rm._hwm) _hwm = rm._hwm;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
  // Subtract 'rm' from 'this'
54021
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   316
  void SUBTRACT(const RegMask &rm) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   317
    assert(valid_watermarks() && rm.valid_watermarks(), "sanity");
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   318
    int hwm = MIN2(_hwm, rm._hwm);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   319
    int lwm = MAX2(_lwm, rm._lwm);
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   320
    for (int i = lwm; i <= hwm; i++) {
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   321
      _A[i] &= ~rm._A[i];
6347ffe2c3c7 8220159: Optimize various RegMask operations by introducing watermarks
redestad
parents: 53532
diff changeset
   322
    }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
  // Compute size of register mask: number of bits
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
  uint Size() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
#ifndef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
  void print() const { dump(); }
15241
87d217c2d183 8005055: pass outputStream to more opto debug routines
kvn
parents: 13104
diff changeset
   330
  void dump(outputStream *st = tty) const; // Print a mask
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
  static const RegMask Empty;   // Common empty mask
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
  static bool can_represent(OptoReg::Name reg) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
    // NOTE: -1 in computation reflects the usage of the last
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   337
    //       bit of the regmask as an infinite stack flag and
30624
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 25715
diff changeset
   338
    //       -7 is to keep mask aligned for largest value (VecZ).
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
    return (int)reg < (int)(CHUNK_SIZE-1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
  }
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   341
  static bool can_represent_arg(OptoReg::Name reg) {
30624
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 25715
diff changeset
   342
    // NOTE: -SlotsPerVecZ in computation reflects the need
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 25715
diff changeset
   343
    //       to keep mask aligned for largest value (VecZ).
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 25715
diff changeset
   344
    return (int)reg < (int)(CHUNK_SIZE-SlotsPerVecZ);
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents: 8921
diff changeset
   345
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
// Do not use this constant directly in client code!
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
#undef RM_SIZE
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   350
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49373
diff changeset
   351
#endif // SHARE_OPTO_REGMASK_HPP