From 4b23d10ce8c7015c19e911324602633c36a2b828 Mon Sep 17 00:00:00 2001 From: Ju-Zhe Zhong Date: Wed, 21 Jun 2023 19:33:38 +0800 Subject: Move can_vec_mask_load_store_p and get_len_load_store_mode from "optabs-query" into "optabs-tree" Since we want both can_vec_mask_load_store_p and get_len_load_store_mode can see "internal_fn", move these 2 functions into optabs-tree. gcc/ChangeLog: * optabs-query.cc (can_vec_mask_load_store_p): Move to optabs-tree.cc. (get_len_load_store_mode): Ditto. * optabs-query.h (can_vec_mask_load_store_p): Move to optabs-tree.h. (get_len_load_store_mode): Ditto. * optabs-tree.cc (can_vec_mask_load_store_p): New function. (get_len_load_store_mode): Ditto. * optabs-tree.h (can_vec_mask_load_store_p): Ditto. (get_len_load_store_mode): Ditto. * tree-if-conv.cc: include optabs-tree instead of optabs-query --- gcc/tree-if-conv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-if-conv.cc') diff --git a/gcc/tree-if-conv.cc b/gcc/tree-if-conv.cc index 1393ce1..e342532 100644 --- a/gcc/tree-if-conv.cc +++ b/gcc/tree-if-conv.cc @@ -92,7 +92,7 @@ along with GCC; see the file COPYING3. If not see #include "ssa.h" #include "expmed.h" #include "expr.h" -#include "optabs-query.h" +#include "optabs-tree.h" #include "gimple-pretty-print.h" #include "alias.h" #include "fold-const.h" -- cgit v1.1