[llvm] [RISCV] Add a Pass for adding %qc.access specifiers (PR #201938)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 21:16:58 PDT 2026
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 origin/main HEAD --extensions cpp,h -- llvm/lib/Target/RISCV/RISCVQCRelaxMarking.cpp llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h llvm/lib/Target/RISCV/RISCV.h llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.cpp llvm/lib/Target/RISCV/RISCVTargetMachine.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVQCRelaxMarking.cpp b/llvm/lib/Target/RISCV/RISCVQCRelaxMarking.cpp
index d683b36ac..a701d6c4b 100644
--- a/llvm/lib/Target/RISCV/RISCVQCRelaxMarking.cpp
+++ b/llvm/lib/Target/RISCV/RISCVQCRelaxMarking.cpp
@@ -161,7 +161,8 @@ bool RISCVQCRelaxMarking::runOnMachineFunction(MachineFunction &MF) {
// Looking for QC.E.LI followed by a load or store
if (MI->getOpcode() != RISCV::QC_E_LI ||
- !(RISCVInstrInfo::isBaseLoad(*NextMI) || RISCVInstrInfo::isBaseStore(*NextMI)))
+ !(RISCVInstrInfo::isBaseLoad(*NextMI) ||
+ RISCVInstrInfo::isBaseStore(*NextMI)))
continue;
LLVM_DEBUG(dbgs() << "Found QC_E_LI " << *MI);
``````````
</details>
https://github.com/llvm/llvm-project/pull/201938
More information about the llvm-commits
mailing list