[llvm] Add A Version Of `MachineModuleInfoWrapperPass` That Does Not Own Its Underlying `MachineModuleInfo` (PR #134554)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 6 10:50:46 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/CodeGen/CodeGenTargetMachineImpl.h llvm/include/llvm/CodeGen/MachineModuleInfo.h llvm/include/llvm/Target/TargetMachine.h llvm/lib/CodeGen/CodeGenTargetMachineImpl.cpp llvm/lib/CodeGen/MachineModuleInfo.cpp llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp llvm/lib/ExecutionEngine/MCJIT/MCJIT.h llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp llvm/lib/Target/DirectX/DirectXTargetMachine.cpp llvm/lib/Target/DirectX/DirectXTargetMachine.h llvm/lib/Target/NVPTX/NVPTXTargetMachine.h llvm/lib/Target/SPIRV/SPIRVAPI.cpp llvm/tools/llc/llc.cpp llvm/tools/llvm-exegesis/lib/Assembler.cpp offload/plugins-nextgen/common/src/JIT.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXTargetMachine.h b/llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
index d3755c6d5..94197f815 100644
--- a/llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
+++ b/llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
@@ -52,8 +52,8 @@ public:
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
// Emission of machine code through MCJIT is not supported.
- bool addPassesToEmitMC(PassManagerBase &, raw_pwrite_stream &,
- bool = true, MachineModuleInfo *) override {
+ bool addPassesToEmitMC(PassManagerBase &, raw_pwrite_stream &, bool = true,
+ MachineModuleInfo *) override {
return true;
}
TargetLoweringObjectFile *getObjFileLowering() const override {
diff --git a/offload/plugins-nextgen/common/src/JIT.cpp b/offload/plugins-nextgen/common/src/JIT.cpp
index bf4b7441e..7cc4c7510 100644
--- a/offload/plugins-nextgen/common/src/JIT.cpp
+++ b/offload/plugins-nextgen/common/src/JIT.cpp
@@ -179,8 +179,7 @@ void JITEngine::codegen(TargetMachine *TM, TargetLibraryInfoImpl *TLII,
TM->addPassesToEmitFile(PM, OS, nullptr,
TT.isNVPTX() ? CodeGenFileType::AssemblyFile
: CodeGenFileType::ObjectFile,
- /*DisableVerify=*/false,
- &MMI);
+ /*DisableVerify=*/false, &MMI);
PM.run(M);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/134554
More information about the llvm-commits
mailing list