[llvm] Add missing LLVM_ABI annotations (PR #165908)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 31 12:09:18 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 origin/main HEAD --extensions h -- llvm/include/llvm/Analysis/IR2Vec.h llvm/include/llvm/CodeGen/MIR2Vec.h llvm/include/llvm/IR/DataLayout.h llvm/include/llvm/Object/SFrameParser.h llvm/include/llvm/Support/JSON.h llvm/include/llvm/Support/SourceMgr.h llvm/include/llvm/Support/VirtualFileSystem.h llvm/include/llvm/Support/VirtualOutputBackend.h llvm/include/llvm/Support/VirtualOutputBackends.h llvm/include/llvm/Support/VirtualOutputError.h llvm/include/llvm/Support/VirtualOutputFile.h llvm/include/llvm/Transforms/IPO/InferFunctionAttrs.h llvm/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h --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/include/llvm/CodeGen/MIR2Vec.h b/llvm/include/llvm/CodeGen/MIR2Vec.h
index 62aed7f69..18b12901c 100644
--- a/llvm/include/llvm/CodeGen/MIR2Vec.h
+++ b/llvm/include/llvm/CodeGen/MIR2Vec.h
@@ -316,9 +316,9 @@ public:
/// Factory method to create an Embedder object of the specified kind
/// Returns nullptr if the requested kind is not supported.
- LLVM_ABI static std::unique_ptr<MIREmbedder> create(MIR2VecKind Mode,
- const MachineFunction &MF,
- const MIRVocabulary &Vocab);
+ LLVM_ABI static std::unique_ptr<MIREmbedder>
+ create(MIR2VecKind Mode, const MachineFunction &MF,
+ const MIRVocabulary &Vocab);
/// Computes and returns the embedding for a given machine instruction MI in
/// the machine function MF.
``````````
</details>
https://github.com/llvm/llvm-project/pull/165908
More information about the llvm-commits
mailing list