[clang] [llvm] [RFC][RISCV] Support RISC-V Profiles in -march option (PR #76357)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 25 03:01:44 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 48f36c6e742e743e33f931536c653bf4e23568fb f9d4a2be0f1e1b8815d2feaebdc918d501c776da -- clang/test/Driver/riscv-profiles.c clang/lib/Driver/ToolChains/Arch/RISCV.cpp llvm/include/llvm/TargetParser/RISCVTargetParser.h llvm/lib/TargetParser/RISCVTargetParser.cpp llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp b/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
index 6cfb1708f3..6f177ed272 100644
--- a/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
+++ b/llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
@@ -94,9 +94,9 @@ static void emitRISCVProfileDef(RecordKeeper &RK, raw_ostream &OS) {
for (const Record *Rec : RK.getAllDerivedDefinitions("RISCVProfile")) {
std::string MArch = getMArch(*Rec);
- OS << "PROFILE(" << Rec->getName() << ", " << "{\""
- << Rec->getValueAsString("Name") << "\"}, " << "{\"" << MArch
- << "\"})\n";
+ OS << "PROFILE(" << Rec->getName() << ", "
+ << "{\"" << Rec->getValueAsString("Name") << "\"}, "
+ << "{\"" << MArch << "\"})\n";
}
OS << "\n#undef PROFILE\n";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/76357
More information about the cfe-commits
mailing list