diff options
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r-- | gcc/tree-vectorizer.h | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index 717d373..47a459b 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -21,26 +21,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_TREE_VECTORIZER_H #define GCC_TREE_VECTORIZER_H -class stmt_vec_info { -public: - stmt_vec_info () {} - stmt_vec_info (struct _stmt_vec_info *ptr) : m_ptr (ptr) {} - struct _stmt_vec_info *operator-> () const { return m_ptr; } - struct _stmt_vec_info &operator* () const; - operator struct _stmt_vec_info * () const { return m_ptr; } - operator gimple * () const; - operator void * () const { return m_ptr; } - operator bool () const { return m_ptr; } - bool operator == (const stmt_vec_info &x) { return x.m_ptr == m_ptr; } - bool operator == (_stmt_vec_info *x) { return x == m_ptr; } - bool operator != (const stmt_vec_info &x) { return x.m_ptr != m_ptr; } - bool operator != (_stmt_vec_info *x) { return x != m_ptr; } - -private: - struct _stmt_vec_info *m_ptr; -}; - -#define NULL_STMT_VEC_INFO (stmt_vec_info (NULL)) +typedef struct _stmt_vec_info *stmt_vec_info; #include "tree-data-ref.h" #include "tree-hash-traits.h" @@ -1091,17 +1072,6 @@ STMT_VINFO_BB_VINFO (stmt_vec_info stmt_vinfo) && TYPE_PRECISION (TYPE) == 1 \ && TYPE_UNSIGNED (TYPE))) -inline _stmt_vec_info & -stmt_vec_info::operator* () const -{ - return *m_ptr; -} - -inline stmt_vec_info::operator gimple * () const -{ - return m_ptr ? m_ptr->stmt : NULL; -} - static inline bool nested_in_vect_loop_p (struct loop *loop, stmt_vec_info stmt_info) { |