Skip to content

Commit 9bfa93a

Browse files
committed
[llvm] auto-annotate remaining CodegenType library interfaces for DLL export using IDS
1 parent bb8c42e commit 9bfa93a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

llvm/include/llvm/CodeGenTypes/LowLevelType.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#ifndef LLVM_CODEGEN_LOWLEVELTYPE_H
2727
#define LLVM_CODEGEN_LOWLEVELTYPE_H
2828

29+
#include "llvm/Support/Compiler.h"
2930
#include "llvm/ADT/DenseMapInfo.h"
3031
#include "llvm/CodeGenTypes/MachineValueType.h"
3132
#include "llvm/Support/Debug.h"
@@ -140,7 +141,7 @@ class LLT {
140141
explicit constexpr LLT()
141142
: IsScalar(false), IsPointer(false), IsVector(false), RawData(0) {}
142143

143-
explicit LLT(MVT VT);
144+
LLVM_ABI explicit LLT(MVT VT);
144145

145146
constexpr bool isValid() const { return IsScalar || RawData != 0; }
146147
constexpr bool isScalar() const { return IsScalar; }
@@ -282,7 +283,7 @@ class LLT {
282283
return scalar(getScalarSizeInBits());
283284
}
284285

285-
void print(raw_ostream &OS) const;
286+
LLVM_ABI void print(raw_ostream &OS) const;
286287

287288
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
288289
LLVM_DUMP_METHOD void dump() const;

llvm/include/llvm/CodeGenTypes/MachineValueType.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#ifndef LLVM_CODEGEN_MACHINEVALUETYPE_H
1717
#define LLVM_CODEGEN_MACHINEVALUETYPE_H
1818

19+
#include "llvm/Support/Compiler.h"
1920
#include "llvm/ADT/Sequence.h"
2021
#include "llvm/Support/ErrorHandling.h"
2122
#include "llvm/Support/MathExtras.h"
@@ -65,10 +66,10 @@ namespace llvm {
6566
bool operator<=(const MVT& S) const { return SimpleTy <= S.SimpleTy; }
6667

6768
/// Support for debugging, callable in GDB: VT.dump()
68-
void dump() const;
69+
LLVM_ABI void dump() const;
6970

7071
/// Implement operator<<.
71-
void print(raw_ostream &OS) const;
72+
LLVM_ABI void print(raw_ostream &OS) const;
7273

7374
/// Return true if this is a valid simple valuetype.
7475
bool isValid() const {
@@ -509,11 +510,11 @@ namespace llvm {
509510
/// otherwise they are invalid.
510511
/// NB: This includes pointer types, which require a DataLayout to convert
511512
/// to a concrete value type.
512-
static MVT getVT(Type *Ty, bool HandleUnknown = false);
513+
LLVM_ABI static MVT getVT(Type *Ty, bool HandleUnknown = false);
513514

514515
/// Returns an APFloat semantics tag appropriate for the value type. If this
515516
/// is a vector type, the element semantics are returned.
516-
const fltSemantics &getFltSemantics() const;
517+
LLVM_ABI const fltSemantics &getFltSemantics() const;
517518

518519
public:
519520
/// SimpleValueType Iteration

0 commit comments

Comments
 (0)