]> gcc.gnu.org Git - gcc.git/commitdiff
RISC-V: autovec: Export policy functions to global scope
authorMichael Collison <collison@rivosinc.com>
Sat, 6 May 2023 17:19:11 +0000 (11:19 -0600)
committerJeff Law <jlaw@ventanamicro>
Sat, 6 May 2023 17:19:11 +0000 (11:19 -0600)
gcc/
* config/riscv/riscv-vector-builtins.cc (get_tail_policy_for_pred):
Remove static declaration to to make externally visible.
(get_mask_policy_for_pred): Ditto.
* config/riscv/riscv-vector-builtins.h (get_tail_policy_for_pred):
New external declaration.
(get_mask_policy_for_pred): Ditto.

gcc/config/riscv/riscv-vector-builtins.cc
gcc/config/riscv/riscv-vector-builtins.h

index 4117897c6c9151ea78aca60aab0bf29b997f53f4..01d7958f3b862a6e6980468663c44f93c5cbb958 100644 (file)
@@ -2705,7 +2705,7 @@ use_real_merge_p (enum predication_type_index pred)
 
 /* Get TAIL policy for predication. If predication indicates TU, return the TU.
    Otherwise, return the prefer default configuration.  */
-static rtx
+rtx
 get_tail_policy_for_pred (enum predication_type_index pred)
 {
   if (pred == PRED_TYPE_tu || pred == PRED_TYPE_tum || pred == PRED_TYPE_tumu)
@@ -2715,7 +2715,7 @@ get_tail_policy_for_pred (enum predication_type_index pred)
 
 /* Get MASK policy for predication. If predication indicates MU, return the MU.
    Otherwise, return the prefer default configuration.  */
-static rtx
+rtx
 get_mask_policy_for_pred (enum predication_type_index pred)
 {
   if (pred == PRED_TYPE_tumu || pred == PRED_TYPE_mu)
index b024731e37af78d18ed5bcf9cd26bd80a2c22d8f..2ed727e03b1011a2600fd239191c038bf0586816 100644 (file)
@@ -486,6 +486,9 @@ extern rvv_builtin_types_t builtin_types[NUM_VECTOR_TYPES + 1];
 extern function_instance get_read_vl_instance (void);
 extern tree get_read_vl_decl (void);
 
+extern rtx get_tail_policy_for_pred (enum predication_type_index pred);
+extern rtx get_mask_policy_for_pred (enum predication_type_index pred);
+
 inline tree
 rvv_arg_type_info::get_scalar_type (vector_type_index type_idx) const
 {
This page took 0.170193 seconds and 5 git commands to generate.