[llvm] annotate remaining ExecutionEngine, Frontend, and TargetParser interfaces for DLL export (#145367)

This commit is contained in:
Andrew Rogers
2025-06-25 12:18:24 -07:00
committed by GitHub
parent 1abe1aa7b2
commit 5781d526ec
5 changed files with 13 additions and 9 deletions

View File

@@ -13,6 +13,7 @@
#ifndef LLVM_EXECUTIONENGINE_ORC_COFF_H
#define LLVM_EXECUTIONENGINE_ORC_COFF_H
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MemoryBuffer.h"
@@ -31,8 +32,8 @@ class COFFImportFileScanner {
public:
COFFImportFileScanner(std::set<std::string> &ImportedDynamicLibraries)
: ImportedDynamicLibraries(ImportedDynamicLibraries) {}
Expected<bool> operator()(object::Archive &A, MemoryBufferRef MemberBuf,
size_t Index) const;
LLVM_ABI Expected<bool>
operator()(object::Archive &A, MemoryBufferRef MemberBuf, size_t Index) const;
private:
std::set<std::string> &ImportedDynamicLibraries;

View File

@@ -10,6 +10,7 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/Compiler.h"
#include <limits>
#include <tuple>
@@ -33,7 +34,8 @@ struct Spelling {
VersionRange Versions;
};
StringRef FindName(llvm::iterator_range<const Spelling *>, unsigned Version);
LLVM_ABI StringRef FindName(llvm::iterator_range<const Spelling *>,
unsigned Version);
} // namespace llvm::directive

View File

@@ -63,7 +63,7 @@ enum ProfileInstrKind {
};
// Default filename used for profile generation.
std::string getDefaultProfileGenName();
LLVM_ABI std::string getDefaultProfileGenName();
} // end namespace llvm::driver
#endif

View File

@@ -99,13 +99,14 @@ public:
// Returns a reference to the first RangeInfo that overlaps with
// [Info.LowerBound;Info.UpperBound], or, std::nullopt if there is no overlap
std::optional<const RangeInfo *> getOverlapping(const RangeInfo &Info) const;
LLVM_ABI std::optional<const RangeInfo *>
getOverlapping(const RangeInfo &Info) const;
// Return the mapped RangeInfo at X or nullptr if no mapping exists
const RangeInfo *lookup(uint32_t X) const;
LLVM_ABI const RangeInfo *lookup(uint32_t X) const;
// Removes all entries of the ResourceRange
void clear();
LLVM_ABI void clear();
// Insert the required (sub-)intervals such that the interval of [a;b] =
// [Info.LowerBound, Info.UpperBound] is covered and points to a valid
@@ -133,7 +134,7 @@ public:
// Returns a reference to the first RangeInfo that overlaps with
// [Info.LowerBound;Info.UpperBound], or, std::nullopt if there is no overlap
// (equivalent to getOverlapping)
std::optional<const RangeInfo *> insert(const RangeInfo &Info);
LLVM_ABI std::optional<const RangeInfo *> insert(const RangeInfo &Info);
};
} // namespace rootsig

View File

@@ -214,7 +214,7 @@ struct BasicSubtargetSubTypeKV {
}
};
std::optional<llvm::StringMap<bool>>
LLVM_ABI std::optional<llvm::StringMap<bool>>
getCPUDefaultTargetFeatures(StringRef CPU,
ArrayRef<BasicSubtargetSubTypeKV> ProcDesc,
ArrayRef<BasicSubtargetFeatureKV> ProcFeatures);