[llvm] [llvm][NVPTX] Don't reorder MIs that construct a PTX function call (PR #116522)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 16 18:59:38 PST 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 7d13775486b5e83959b0d96137176f366c41e13a 1d32026891d804a3deab80653a4d4e5bfea5ccdd --extensions h,cpp -- llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp llvm/lib/Target/NVPTX/NVPTXInstrInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp b/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
index 9c1ed0d5f5..d261f98b08 100644
--- a/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
@@ -210,14 +210,14 @@ bool NVPTXInstrInfo::isSchedulingBoundary(const MachineInstr &MI,
// which must stick together (in initially set order) to
// comprise a valid PTX function call sequence.
switch (MI.getOpcode()) {
- case NVPTX::CallUniPrintCallRetInst1:
- case NVPTX::CallArgBeginInst:
- case NVPTX::CallArgI32imm:
- case NVPTX::CallArgParam:
- case NVPTX::LastCallArgI32imm:
- case NVPTX::LastCallArgParam:
- case NVPTX::CallArgEndInst1:
- return true;
+ case NVPTX::CallUniPrintCallRetInst1:
+ case NVPTX::CallArgBeginInst:
+ case NVPTX::CallArgI32imm:
+ case NVPTX::CallArgParam:
+ case NVPTX::LastCallArgI32imm:
+ case NVPTX::LastCallArgParam:
+ case NVPTX::CallArgEndInst1:
+ return true;
}
return TargetInstrInfo::isSchedulingBoundary(MI, MBB, MF);
``````````
</details>
https://github.com/llvm/llvm-project/pull/116522
More information about the llvm-commits
mailing list