src/share/vm/opto/matcher.hpp

changeset 3882
8c92982cbbc4
parent 3317
db2e64ca2d5a
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/opto/matcher.hpp	Thu Jun 14 14:59:52 2012 -0700
     1.2 +++ b/src/share/vm/opto/matcher.hpp	Fri Jun 15 01:25:19 2012 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -250,10 +250,21 @@
    1.11    static const bool convL2FSupported(void);
    1.12  
    1.13    // Vector width in bytes
    1.14 -  static const uint vector_width_in_bytes(void);
    1.15 +  static const int vector_width_in_bytes(BasicType bt);
    1.16 +
    1.17 +  // Limits on vector size (number of elements).
    1.18 +  static const int max_vector_size(const BasicType bt);
    1.19 +  static const int min_vector_size(const BasicType bt);
    1.20 +  static const bool vector_size_supported(const BasicType bt, int size) {
    1.21 +    return (Matcher::max_vector_size(bt) >= size &&
    1.22 +            Matcher::min_vector_size(bt) <= size);
    1.23 +  }
    1.24  
    1.25    // Vector ideal reg
    1.26 -  static const uint vector_ideal_reg(void);
    1.27 +  static const int vector_ideal_reg(int len);
    1.28 +
    1.29 +  // CPU supports misaligned vectors store/load.
    1.30 +  static const bool misaligned_vectors_ok();
    1.31  
    1.32    // Used to determine a "low complexity" 64-bit constant.  (Zero is simple.)
    1.33    // The standard of comparison is one (StoreL ConL) vs. two (StoreI ConI).

mercurial