[all-commits] [llvm/llvm-project] 980730: [RISCV] Refactor checkRVVTypeSupport to use Builti...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Dec 27 21:53:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98073057ee45bc4a9256ecc70dc3da20b0fd5d3b
      https://github.com/llvm/llvm-project/commit/98073057ee45bc4a9256ecc70dc3da20b0fd5d3b
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-12-27 (Wed, 27 Dec 2023)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Sema/riscv-vector-zve32x-check.c
    M clang/test/Sema/riscv-vector-zve64x-check.c

  Log Message:
  -----------
  [RISCV] Refactor checkRVVTypeSupport to use BuiltinVectorTypeInfo. (#74949)

We can decompose the type into ElementType and MinSize and use those to
perform the checks. This is more efficient than using isRVVType.

This also fixes a bug that we didn't disallow vbool64_t on Zve32x.




More information about the All-commits mailing list