[all-commits] [llvm/llvm-project] 26bb1b: [RISCV] Add the zvl extension according to the v1....
Yueh-Ting (eop) Chen via All-commits
all-commits at lists.llvm.org
Fri Jan 14 23:02:00 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 26bb1b1dab8bc0646073e762a9f75f2dbcd18857
https://github.com/llvm/llvm-project/commit/26bb1b1dab8bc0646073e762a9f75f2dbcd18857
Author: eopXD <eop.chen at sifive.com>
Date: 2022-01-14 (Fri, 14 Jan 2022)
Changed paths:
M clang/lib/Basic/Targets/RISCV.cpp
M clang/test/Driver/riscv-arch.c
M clang/test/Preprocessor/riscv-target-features.c
M llvm/include/llvm/Support/RISCVISAInfo.h
M llvm/lib/Support/RISCVISAInfo.cpp
M llvm/lib/Target/RISCV/RISCV.td
M llvm/lib/Target/RISCV/RISCVSubtarget.cpp
M llvm/lib/Target/RISCV/RISCVSubtarget.h
M llvm/test/CodeGen/RISCV/attributes.ll
M llvm/test/MC/RISCV/attribute-arch.s
Log Message:
-----------
[RISCV] Add the zvl extension according to the v1.0 spec
`zvl` is the new standard vector extension that specifies the minimum vector length of the vector extension.
The `zvl` extension is related to the `zve` extension and other updates that are added in v1.0.
According to https://github.com/riscv-non-isa/riscv-c-api-doc/pull/21,
Clang defines macro `__riscv_v_min_vlen` for `zvl` and it can be used for applications that uses the vector extension.
LLVM checks whether the option `riscv-v-vector-bits-min` (if specified) matches the `zvl*` extension specified.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D108694
More information about the All-commits
mailing list