diff options
author | Andrew Rogers <andrurogerz@gmail.com> | 2025-08-05 23:12:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-05 23:12:07 -0700 |
commit | a3c386d241a103481604dc970ada168b786c56c1 (patch) | |
tree | 6faa9dc9f52d37d1f34e21c0eed4f82c3feb63e6 /llvm/lib/Support/TargetParser.cpp | |
parent | 8c9feb7e13b2c01fd1cd2ecc5f699ba5cc32e369 (diff) | |
download | llvm-a3c386d241a103481604dc970ada168b786c56c1.zip llvm-a3c386d241a103481604dc970ada168b786c56c1.tar.gz llvm-a3c386d241a103481604dc970ada168b786c56c1.tar.bz2 |
[llvm] annotate recently added interfaces for DLL export (#152179)
## Purpose
This patch is one in a series of code-mods that annotate LLVM’s public
interface for export. This patch annotates symbols that were recently
added to LLVM and fixes incorrectly annotated symbols.
## Background
This effort is tracked in #109483. Additional context is provided in
[this
discourse](https://discourse.llvm.org/t/psa-annotating-llvm-public-interface/85307),
and 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).
## Overview
The bulk of these changes were generated automatically using the
[Interface Definition Scanner (IDS)](https://github.com/compnerd/ids)
tool, followed formatting with `git clang-format`.
The following manual adjustments were also applied after running IDS:
- Add `LLVM_EXPORT_TEMPLATE` and `LLVM_TEMPLATE_ABI` annotations to
explicitly instantiated instances of `llvm::object::SFrameParser`.
## Validation
On Windows 11:
```
cmake -B build -S llvm -G Ninja -DLLVM_ENABLE_PROJECTS="llvm;clang;clang-tools-extra;lldb;lld" -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_BUILD_LLVM_DYLIB_VIS=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_BUILD_TESTS=ON -DCLANG_LINK_CLANG_DYLIB=OFF -DCMAKE_BUILD_TYPE=Release
ninja -C build
```
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions