Skip to content

Commit 6b5efbf

Browse files
andrurogerzAnthony Tran
authored andcommitted
[llvm] annotate remaining ExecutionEngine, Frontend, and TargetParser interfaces for DLL export (llvm#145367)
1 parent e62fcdd commit 6b5efbf

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

llvm/include/llvm/ExecutionEngine/Orc/COFF.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef LLVM_EXECUTIONENGINE_ORC_COFF_H
1414
#define LLVM_EXECUTIONENGINE_ORC_COFF_H
1515

16+
#include "llvm/Support/Compiler.h"
1617
#include "llvm/Support/Error.h"
1718
#include "llvm/Support/MemoryBuffer.h"
1819

@@ -31,8 +32,8 @@ class COFFImportFileScanner {
3132
public:
3233
COFFImportFileScanner(std::set<std::string> &ImportedDynamicLibraries)
3334
: ImportedDynamicLibraries(ImportedDynamicLibraries) {}
34-
Expected<bool> operator()(object::Archive &A, MemoryBufferRef MemberBuf,
35-
size_t Index) const;
35+
LLVM_ABI Expected<bool>
36+
operator()(object::Archive &A, MemoryBufferRef MemberBuf, size_t Index) const;
3637

3738
private:
3839
std::set<std::string> &ImportedDynamicLibraries;

llvm/include/llvm/Frontend/Directive/Spelling.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include "llvm/ADT/StringRef.h"
1212
#include "llvm/ADT/iterator_range.h"
13+
#include "llvm/Support/Compiler.h"
1314

1415
#include <limits>
1516
#include <tuple>
@@ -33,7 +34,8 @@ struct Spelling {
3334
VersionRange Versions;
3435
};
3536

36-
StringRef FindName(llvm::iterator_range<const Spelling *>, unsigned Version);
37+
LLVM_ABI StringRef FindName(llvm::iterator_range<const Spelling *>,
38+
unsigned Version);
3739

3840
} // namespace llvm::directive
3941

llvm/include/llvm/Frontend/Driver/CodeGenOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enum ProfileInstrKind {
6363
};
6464

6565
// Default filename used for profile generation.
66-
std::string getDefaultProfileGenName();
66+
LLVM_ABI std::string getDefaultProfileGenName();
6767
} // end namespace llvm::driver
6868

6969
#endif

llvm/include/llvm/Frontend/HLSL/HLSLRootSignatureUtils.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,14 @@ class ResourceRange {
9999

100100
// Returns a reference to the first RangeInfo that overlaps with
101101
// [Info.LowerBound;Info.UpperBound], or, std::nullopt if there is no overlap
102-
std::optional<const RangeInfo *> getOverlapping(const RangeInfo &Info) const;
102+
LLVM_ABI std::optional<const RangeInfo *>
103+
getOverlapping(const RangeInfo &Info) const;
103104

104105
// Return the mapped RangeInfo at X or nullptr if no mapping exists
105-
const RangeInfo *lookup(uint32_t X) const;
106+
LLVM_ABI const RangeInfo *lookup(uint32_t X) const;
106107

107108
// Removes all entries of the ResourceRange
108-
void clear();
109+
LLVM_ABI void clear();
109110

110111
// Insert the required (sub-)intervals such that the interval of [a;b] =
111112
// [Info.LowerBound, Info.UpperBound] is covered and points to a valid
@@ -133,7 +134,7 @@ class ResourceRange {
133134
// Returns a reference to the first RangeInfo that overlaps with
134135
// [Info.LowerBound;Info.UpperBound], or, std::nullopt if there is no overlap
135136
// (equivalent to getOverlapping)
136-
std::optional<const RangeInfo *> insert(const RangeInfo &Info);
137+
LLVM_ABI std::optional<const RangeInfo *> insert(const RangeInfo &Info);
137138
};
138139

139140
} // namespace rootsig

llvm/include/llvm/TargetParser/TargetParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct BasicSubtargetSubTypeKV {
214214
}
215215
};
216216

217-
std::optional<llvm::StringMap<bool>>
217+
LLVM_ABI std::optional<llvm::StringMap<bool>>
218218
getCPUDefaultTargetFeatures(StringRef CPU,
219219
ArrayRef<BasicSubtargetSubTypeKV> ProcDesc,
220220
ArrayRef<BasicSubtargetFeatureKV> ProcFeatures);

0 commit comments

Comments
 (0)