[all-commits] [llvm/llvm-project] db78c3: [RISCV] Deduplicate RISCVISAInfo::toFeatures/toFea...
Luke Lau via All-commits
all-commits at lists.llvm.org
Tue Jan 9 00:34:05 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: db78c30ba772af1466bb0d0c1d376c8e642ee4a9
https://github.com/llvm/llvm-project/commit/db78c30ba772af1466bb0d0c1d376c8e642ee4a9
Author: Luke Lau <luke at igalia.com>
Date: 2024-01-09 (Tue, 09 Jan 2024)
Changed paths:
M clang/lib/Basic/Targets/RISCV.cpp
M clang/lib/Driver/ToolChains/Arch/RISCV.cpp
M llvm/include/llvm/Support/RISCVISAInfo.h
M llvm/lib/Object/ELFObjectFile.cpp
M llvm/lib/Support/RISCVISAInfo.cpp
M llvm/unittests/Support/RISCVISAInfoTest.cpp
Log Message:
-----------
[RISCV] Deduplicate RISCVISAInfo::toFeatures/toFeatureVector. NFC (#76942)
toFeatures and toFeatureVector both output a list of target feature
flags, just with a slightly different interface. toFeatures keeps any
unsupported extensions, and also provides a way to append negative
extensions (AddAllExtensions=true).
This patch combines them into one function, so that a later patch will
be be able to get a std::vector of features that includes all the
negative extensions, which was previously only possible through the
StrAlloc interface.
More information about the All-commits
mailing list