[llvm] cd6750f - [RISCV][NFC] Add a newline when using --print-enabled-extensions (#98425)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 21:43:17 PDT 2024
Author: Shao-Ce SUN
Date: 2024-07-11T12:43:14+08:00
New Revision: cd6750fa5fddbd0783243711bfc2f7880736586e
URL: https://github.com/llvm/llvm-project/commit/cd6750fa5fddbd0783243711bfc2f7880736586e
DIFF: https://github.com/llvm/llvm-project/commit/cd6750fa5fddbd0783243711bfc2f7880736586e.diff
LOG: [RISCV][NFC] Add a newline when using --print-enabled-extensions (#98425)
The `--print-enabled-extensions` has been introduced in the
https://github.com/llvm/llvm-project/pull/98207 , but it seems to be
missing a newline in the end.
Added:
Modified:
llvm/lib/TargetParser/RISCVISAInfo.cpp
llvm/unittests/TargetParser/RISCVISAInfoTest.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TargetParser/RISCVISAInfo.cpp b/llvm/lib/TargetParser/RISCVISAInfo.cpp
index a9eca87510f4d..e6ddbb4dc28d5 100644
--- a/llvm/lib/TargetParser/RISCVISAInfo.cpp
+++ b/llvm/lib/TargetParser/RISCVISAInfo.cpp
@@ -151,7 +151,7 @@ void RISCVISAInfo::printEnabledExtensions(
unsigned XLen = IsRV64 ? 64 : 32;
if (auto ISAString = RISCVISAInfo::createFromExtMap(XLen, FullExtMap))
- outs() << "\nISA String: " << ISAString.get()->toString();
+ outs() << "\nISA String: " << ISAString.get()->toString() << "\n";
}
static bool stripExperimentalPrefix(StringRef &Ext) {
diff --git a/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp b/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp
index b5dda0ce35d8d..d50079870f7ac 100644
--- a/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp
+++ b/llvm/unittests/TargetParser/RISCVISAInfoTest.cpp
@@ -1081,7 +1081,8 @@ R"(Extensions enabled for the given RISC-V target
Experimental extensions
zicfilp 0.4 'Zicfilp' (Landing pad)
-ISA String: rv64i2p1_zicfilp0p4_zicsr2p0)";
+ISA String: rv64i2p1_zicfilp0p4_zicsr2p0
+)";
// clang-format on
StringMap<StringRef> DescMap;
More information about the llvm-commits
mailing list