aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/riscv/riscv-opts.h
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2023-09-01 07:12:17 +0800
committerPan Li <pan2.li@intel.com>2023-09-01 18:59:01 +0800
commitef4e916b526a65411a577126d34c3b0bb97b6111 (patch)
tree2f63c6c5a98276016f4c79458ec8bc4b22714ab6 /gcc/config/riscv/riscv-opts.h
parente5af77adefc981cbc253cc4c589e1fc06cf07f43 (diff)
downloadgcc-ef4e916b526a65411a577126d34c3b0bb97b6111.zip
gcc-ef4e916b526a65411a577126d34c3b0bb97b6111.tar.gz
gcc-ef4e916b526a65411a577126d34c3b0bb97b6111.tar.bz2
RISC-V: Add dynamic LMUL compile option
We are going to support dynamic LMUL support. gcc/ChangeLog: * config/riscv/riscv-opts.h (enum riscv_autovec_lmul_enum): Add dynamic enum. * config/riscv/riscv.opt: Add dynamic compile option.
Diffstat (limited to 'gcc/config/riscv/riscv-opts.h')
-rw-r--r--gcc/config/riscv/riscv-opts.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv-opts.h b/gcc/config/riscv/riscv-opts.h
index 5ed69ab..79e0f12 100644
--- a/gcc/config/riscv/riscv-opts.h
+++ b/gcc/config/riscv/riscv-opts.h
@@ -79,7 +79,9 @@ enum riscv_autovec_lmul_enum {
RVV_M1 = 1,
RVV_M2 = 2,
RVV_M4 = 4,
- RVV_M8 = 8
+ RVV_M8 = 8,
+ /* For dynamic LMUL, we compare COST start with LMUL8. */
+ RVV_DYNAMIC = RVV_M8
};
enum riscv_multilib_select_kind {