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.
Paths
| Differential D154050
[Clang][RISCV] Fix RISC-V vector / SiFive intrinsic inclusion in SemaLookup ClosedPublic Authored by eopXD on Jun 29 2023, 1:40 AM.
Details Summary The existing code assumes that both DeclareRISCVVBuiltins and This is not the case and causes issue #63571. This patch resolves the issue.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 29 2023, 2:41 AM This revision was landed with ongoing or failed builds.Jun 29 2023, 5:24 AM Closed by commit rGaf19e406f28e: [Clang][RISCV] Fix RISC-V vector / SiFive intrinsic inclusion in SemaLookup (authored by eopXD). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 535738 clang/include/clang/Sema/RISCVIntrinsicManager.h
clang/lib/Sema/SemaLookup.cpp
clang/lib/Sema/SemaRISCVVectorLookup.cpp
clang/test/CodeGen/RISCV/rvv-intrinsics-handcrafted/xsfvcp.cpp
|
As far as I can tell this refactoring was entirely gratuitous, and perhaps a regression given the function is only ever used by InitIntrinsicList and thus can be hidden as a lambda?