[llvm] [CodeGen][Pass] Add `TargetPassBuilder` (PR #137290)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 01:44:35 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/Passes/TargetPassBuilder.h b/llvm/include/llvm/Passes/TargetPassBuilder.h
index 9763e71c3..800ad8d60 100644
--- a/llvm/include/llvm/Passes/TargetPassBuilder.h
+++ b/llvm/include/llvm/Passes/TargetPassBuilder.h
@@ -338,7 +338,7 @@ private:
 
 /// @brief Build CodeGen pipeline
 ///
-class TargetPassBuilder {
+class LLVM_ABI TargetPassBuilder {
 public:
   TargetPassBuilder(PassBuilder &PB);
 

``````````

</details>


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


More information about the llvm-commits mailing list