]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Export functions as global extern preparing for dynamic LMUL patch use
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Tue, 5 Sep 2023 08:47:25 +0000 (16:47 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Tue, 5 Sep 2023 09:04:55 +0000 (17:04 +0800)
commit509c10a62546b9b3430040e455b7258322a024e6
tree9f953277970cc719d1ccc8187864e7a7bf8d3eb1
parent8451fbd56871267e8c1cd781db6d8f02e826f66c
RISC-V: Export functions as global extern preparing for dynamic LMUL patch use

Notice those functions need to be use by COST model for dynamic LMUL use.
Extract as a single patch and committed.

gcc/ChangeLog:

* config/riscv/riscv-protos.h (lookup_vector_type_attribute): Export global.
(get_all_predecessors): New function.
(get_all_successors): Ditto.
* config/riscv/riscv-v.cc (get_all_predecessors): Ditto.
(get_all_successors): Ditto.
* config/riscv/riscv-vector-builtins.cc (sizeless_type_p): Export global.
* config/riscv/riscv-vsetvl.cc (get_all_predecessors): Remove it.
gcc/config/riscv/riscv-protos.h
gcc/config/riscv/riscv-v.cc
gcc/config/riscv/riscv-vector-builtins.cc
gcc/config/riscv/riscv-vsetvl.cc