[llvm] [RISCV] Enable encodng conflict framework for RISCV target. (PR #97287)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 05:15:21 PDT 2024


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 e258bb38dc8f00cc366df877d0e6f869657b7a8b 75c3da27b904c9e1298ecbfd7bd3828618b50eec -- llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp llvm/utils/TableGen/SearchableTableEmitter.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
index 19cfde4fbd..071f321b66 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
@@ -122,7 +122,7 @@ void RISCVInstPrinter::printCSRSystemRegister(const MCInst *MI, unsigned OpNo,
                                               raw_ostream &O) {
   unsigned Imm = MI->getOperand(OpNo).getImm();
   auto Range = RISCVSysReg::lookupSysRegByEncoding(Imm);
-  for(auto It : Range){
+  for (auto It : Range) {
     if (It.haveRequiredFeatures(STI.getFeatureBits())) {
       markup(O, Markup::Register) << It.Name;
       return;

``````````

</details>


https://github.com/llvm/llvm-project/pull/97287


More information about the llvm-commits mailing list