[all-commits] [llvm/llvm-project] 9bd2aa: [llvm] annotate recently added interfaces for DLL ...

Andrew Rogers via All-commits all-commits at lists.llvm.org
Tue Jul 29 08:32:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9bd2aacc68a1c7632abb9410640400dcc09ef50b
      https://github.com/llvm/llvm-project/commit/9bd2aacc68a1c7632abb9410640400dcc09ef50b
  Author: Andrew Rogers <andrurogerz at gmail.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/IR2Vec.h
    M llvm/include/llvm/BinaryFormat/SFrame.h
    M llvm/include/llvm/CodeGen/GCMetadata.h
    M llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h
    M llvm/include/llvm/CodeGen/MachineInstrBundle.h
    M llvm/include/llvm/ExecutionEngine/Orc/EPCIndirectionUtils.h
    M llvm/include/llvm/ExecutionEngine/Orc/SpeculateAnalyses.h
    M llvm/include/llvm/IR/GCStrategy.h
    M llvm/include/llvm/IR/RuntimeLibcalls.h
    M llvm/include/llvm/MC/DXContainerRootSignature.h
    M llvm/include/llvm/MC/MCAssembler.h
    M llvm/include/llvm/MC/MCSection.h
    M llvm/include/llvm/Object/SFrameParser.h
    M llvm/include/llvm/Support/AArch64AttributeParser.h
    M llvm/include/llvm/TextAPI/SymbolSet.h
    M llvm/include/llvm/Transforms/Scalar/Reassociate.h
    M llvm/include/llvm/Transforms/Utils/Mem2Reg.h
    M llvm/include/llvm/Transforms/Utils/ProfileVerify.h
    M llvm/lib/Object/SFrameParser.cpp

  Log Message:
  -----------
  [llvm] annotate recently added interfaces for DLL export (#150101)

## 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 without proper annotations. The annotations currently have
no meaningful impact on the LLVM build; however, they are a prerequisite
to support an LLVM Windows DLL (shared library) build.

## 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

Local builds and tests to validate cross-platform compatibility. This
included llvm, clang, and lldb on the following configurations:

- Windows with MSVC
- Windows with Clang
- Linux with GCC
- Linux with Clang
- Darwin with Clang



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list