[all-commits] [llvm/llvm-project] f3ce92: [RISCV] Resolve a few bugs in RISCVVIntrinsicUtils...

Brandon Wu via All-commits all-commits at lists.llvm.org
Thu Aug 3 01:48:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3ce925083d2214289c73b8f21590ac32beef03d
      https://github.com/llvm/llvm-project/commit/f3ce925083d2214289c73b8f21590ac32beef03d
  Author: 4vtomat <brandon.wu at sifive.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M clang/include/clang/Support/RISCVVIntrinsicUtils.h
    M clang/lib/Sema/SemaRISCVVectorLookup.cpp
    M clang/lib/Support/RISCVVIntrinsicUtils.cpp
    A clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/non-policy/non-overloaded/vlmul_trunc_v_invalid.c

  Log Message:
  -----------
  [RISCV] Resolve a few bugs in RISCVVIntrinsicUtils.cpp

This patch does a few things:
  1. Add a new type called Undefined to ScalarTypeKind.
  2. Make RVVType::applyModifier early return when encounter invalid
     ScalarType, otherwise it could be modified to "non-invalid" type in the following code.
  3. When FixedLMULType::SmallerThan is applied, the lmul should be "<" than
     specified one, so lmuls which are ">=" should be marked as invalid.

Differential Revision: https://reviews.llvm.org/D156223




More information about the All-commits mailing list