]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ipa-predicate.h
[Ada] Replace low-level membership tests with high-level routines
[thirdparty/gcc.git] / gcc / ipa-predicate.h
index 9557c3fabcc2be219706eddd392701436ea38d95..237306dc9fe5b837e7687517b14602fdc4a919ba 100644 (file)
@@ -1,5 +1,5 @@
 /* IPA predicates.
-   Copyright (C) 2003-2017 Free Software Foundation, Inc.
+   Copyright (C) 2003-2019 Free Software Foundation, Inc.
    Contributed by Jan Hubicka
 
 This file is part of GCC.
@@ -31,7 +31,7 @@ struct GTY(()) condition
      loaded.  */
   HOST_WIDE_INT offset;
   /* Size of the access reading the data (or the PARM_DECL SSA_NAME).  */
-  HOST_WIDE_INT size;
+  poly_int64 size;
   tree val;
   int operand_num;
   ENUM_BITFIELD(tree_code) code : 16;
@@ -137,7 +137,7 @@ public:
 
   /* Compute logical and of predicates.  */
   predicate & operator &= (const predicate &);
-  inline predicate operator &(const predicate &p)
+  inline predicate operator &(const predicate &p) const
     {
       predicate ret = *this;
       ret &= p;
@@ -205,11 +205,11 @@ public:
   predicate remap_after_duplication (clause_t);
 
   /* Return predicate equal to THIS after inlining.  */
-  predicate remap_after_inlining (struct inline_summary *,
-                                 struct inline_summary *,
+  predicate remap_after_inlining (class ipa_fn_summary *,
+                                 class ipa_fn_summary *,
                                  vec<int>, vec<int>, clause_t, const predicate &);
 
-  void stream_in (struct lto_input_block *);
+  void stream_in (class lto_input_block *);
   void stream_out (struct output_block *);
 
 private:
@@ -227,6 +227,6 @@ private:
 };
 
 void dump_condition (FILE *f, conditions conditions, int cond);
-predicate add_condition (struct inline_summary *summary, int operand_num,
-                        HOST_WIDE_INT size, struct agg_position_info *aggpos,
+predicate add_condition (class ipa_fn_summary *summary, int operand_num,
+                        poly_int64 size, struct agg_position_info *aggpos,
                         enum tree_code code, tree val);