Skip to content

Conversation

@andrurogerz
Copy link
Contributor

@andrurogerz andrurogerz commented Jun 17, 2025

Overview

This patch removes incorrect usage of LLVM_ABI macros that break the (currently incomplete) LLVM Windows DLL build.

  • ec71d80 added LLVM_ABI to template methods fully declared in a header file
  • 254a92d added LLVM_ABI to members of a class already annotated with LLVM_ABI

Background

Documentation for LLVM_ABI and related annotations is found in the LLVM repo here.

@github-actions
Copy link

github-actions bot commented Jun 17, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@andrurogerz andrurogerz marked this pull request as ready for review June 17, 2025 23:17
@andrurogerz
Copy link
Contributor Author

@compnerd, @vgvassilev here's the first PR I've had to make to fix mistaken LLVM_ABI annotations by others. I think we will need to update to ids so that it catches this sort of mistake. Right now, ids focuses on on where annotations are missing, but to fully prevent Windows DLL build breaks, it will also need to flag annotations that are unnecessary or in the wrong place.

@vgvassilev
Copy link
Contributor

@compnerd, @vgvassilev here's the first PR I've had to make to fix mistaken LLVM_ABI annotations by others. I think we will need to update to ids so that it catches this sort of mistake. Right now, ids focuses on on where annotations are missing, but to fully prevent Windows DLL build breaks, it will also need to flag annotations that are unnecessary or in the wrong place.

That’s a good point and probably a good time for the ci work to start. Can you find us on discord — we have a few questions for you outside of this pr ;)

Copy link
Contributor

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@compnerd compnerd merged commit c0ce9ad into llvm:main Jun 23, 2025
9 checks passed
anthonyhatran pushed a commit to anthonyhatran/llvm-project that referenced this pull request Jun 26, 2025
## Overview
This patch removes incorrect usage of `LLVM_ABI` macros that break the
(currently incomplete) LLVM Windows DLL build.
- ec71d80 added `LLVM_ABI` to template methods fully declared in a
header file
- 254a92d added `LLVM_ABI` to members of a class already annotated with
`LLVM_ABI`

# Background
Documentation for `LLVM_ABI` and related annotations is found in the
LLVM repo
[here](https://github.com/llvm/llvm-project/blob/main/llvm/docs/InterfaceExportAnnotations.rst).
@andrurogerz andrurogerz deleted the llvm-abi-mistakes branch July 7, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants