[llvm] [SandboxVec][Legality] Implement unsupported alignment check (PR #224081)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 11:03:26 PDT 2026


github-actions[bot] wrote:

<!--LLVM IDS CHECK COMMENT-->


:warning: LLVM ABI annotation checker, ids-check found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
Build idt from compnerd/ids, then for each changed header:
    idt -p build/ --main-file <matching-source.cpp> \
        --apply-fixits --inplace <header>
``````````

</details>

<details>
<summary>
View the diff from ids-check here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
index f773e26f0..9de3b66af 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
@@ -368,7 +368,7 @@ public:
 
   /// \returns true if the alignment of the vector composed of \p Values has
   /// alignment that is supported by the target.
-  bool isAlignmentSupported(ArrayRef<Value *> Values) const;
+  LLVM_ABI bool isAlignmentSupported(ArrayRef<Value *> Values) const;
 
   /// Checks if it's legal to vectorize the instructions in \p Bndl.
   /// \Returns a LegalityResult object owned by LegalityAnalysis.

``````````

</details>


https://github.com/llvm/llvm-project/pull/224081


More information about the llvm-commits mailing list