[all-commits] [llvm/llvm-project] af19e4: [Clang][RISCV] Fix RISC-V vector / SiFive intrinsi...

Yueh-Ting (eop) Chen via All-commits all-commits at lists.llvm.org
Thu Jun 29 05:24:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af19e406f28e644e645781021c56720b60dc2238
      https://github.com/llvm/llvm-project/commit/af19e406f28e644e645781021c56720b60dc2238
  Author: eopXD <yueh.ting.chen at gmail.com>
  Date:   2023-06-29 (Thu, 29 Jun 2023)

  Changed paths:
    M clang/include/clang/Sema/RISCVIntrinsicManager.h
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaRISCVVectorLookup.cpp
    A clang/test/CodeGen/RISCV/rvv-intrinsics-handcrafted/xsfvcp.cpp

  Log Message:
  -----------
  [Clang][RISCV] Fix RISC-V vector / SiFive intrinsic inclusion in SemaLookup

The existing code assumes that both `DeclareRISCVVBuiltins` and
`DeclareRISCVSiFiveVectorBuiltins` are set when coming into the if-statement
under SemaLookup.cpp.

This is not the case and causes issue #63571.

This patch resolves the issue.

Reviewed By: 4vtomat, kito-cheng

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




More information about the All-commits mailing list