[llvm] [SPIR-V] Fix emission of debug and annotation instructions and add SPV_EXT_optnone SPIR-V extension (PR #118402)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 05:16:24 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 b27d97bef782a8405e80e7b9f60b44d0537f43b6 bc0fd8758b1000c259e297f3fe331419aee683b0 --extensions h,cpp -- llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp llvm/lib/Target/SPIRV/SPIRVCommandLine.cpp llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.h llvm/lib/Target/SPIRV/SPIRVUtils.cpp llvm/lib/Target/SPIRV/SPIRVUtils.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp b/llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp
index 0cdae2695b..4012bd7696 100644
--- a/llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp
@@ -45,7 +45,7 @@ using namespace llvm;
namespace {
class SPIRVAsmPrinter : public AsmPrinter {
unsigned NLabels = 0;
- SmallPtrSet<const MachineBasicBlock*, 8> LabeledMBB;
+ SmallPtrSet<const MachineBasicBlock *, 8> LabeledMBB;
public:
explicit SPIRVAsmPrinter(TargetMachine &TM,
diff --git a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
index 072ec7ce3a..f041c4894c 100644
--- a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
@@ -1618,7 +1618,7 @@ static void addMBBNames(const Module &M, const SPIRVInstrInfo &TII,
if (!MF)
continue;
MachineRegisterInfo &MRI = MF->getRegInfo();
- //MachineIRBuilder MIRBuilder(*MF);
+ // MachineIRBuilder MIRBuilder(*MF);
for (auto &MBB : *MF) {
if (!MBB.hasName() || MBB.empty())
continue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/118402
More information about the llvm-commits
mailing list