Skip to content

Commit c1c55a5

Browse files
author
tnowicki
committed
[Coroutines] Move various util headers to include/llvm for plugin libraries
* Move utilities to include/llvm/Transform/Coroutines
1 parent cb38006 commit c1c55a5

File tree

16 files changed

+98
-83
lines changed

16 files changed

+98
-83
lines changed

llvm/lib/Transforms/Coroutines/ABI.h renamed to llvm/include/llvm/Transforms/Coroutines/ABI.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
// coroutine lowering.
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef LIB_TRANSFORMS_COROUTINES_ABI_H
14-
#define LIB_TRANSFORMS_COROUTINES_ABI_H
13+
#ifndef LLVM_TRANSFORMS_COROUTINES_ABI_H
14+
#define LLVM_TRANSFORMS_COROUTINES_ABI_H
1515

16-
#include "CoroShape.h"
17-
#include "MaterializationUtils.h"
18-
#include "SuspendCrossingInfo.h"
1916
#include "llvm/Analysis/TargetTransformInfo.h"
17+
#include "llvm/Transforms/Coroutines/CoroShape.h"
18+
#include "llvm/Transforms/Coroutines/MaterializationUtils.h"
19+
#include "llvm/Transforms/Coroutines/SuspendCrossingInfo.h"
2020

2121
namespace llvm {
2222

@@ -29,7 +29,7 @@ namespace coro {
2929
// ABI operations. The ABIs (e.g. Switch, Async, Retcon{Once}) are the common
3030
// ABIs.
3131

32-
class LLVM_LIBRARY_VISIBILITY BaseABI {
32+
class BaseABI {
3333
public:
3434
BaseABI(Function &F, Shape &S)
3535
: F(F), Shape(S), IsMaterializable(coro::isTriviallyMaterializable) {}
@@ -57,7 +57,7 @@ class LLVM_LIBRARY_VISIBILITY BaseABI {
5757
std::function<bool(Instruction &I)> IsMaterializable;
5858
};
5959

60-
class LLVM_LIBRARY_VISIBILITY SwitchABI : public BaseABI {
60+
class SwitchABI : public BaseABI {
6161
public:
6262
SwitchABI(Function &F, coro::Shape &S) : BaseABI(F, S) {}
6363

@@ -72,7 +72,7 @@ class LLVM_LIBRARY_VISIBILITY SwitchABI : public BaseABI {
7272
TargetTransformInfo &TTI) override;
7373
};
7474

75-
class LLVM_LIBRARY_VISIBILITY AsyncABI : public BaseABI {
75+
class AsyncABI : public BaseABI {
7676
public:
7777
AsyncABI(Function &F, coro::Shape &S) : BaseABI(F, S) {}
7878

@@ -87,7 +87,7 @@ class LLVM_LIBRARY_VISIBILITY AsyncABI : public BaseABI {
8787
TargetTransformInfo &TTI) override;
8888
};
8989

90-
class LLVM_LIBRARY_VISIBILITY AnyRetconABI : public BaseABI {
90+
class AnyRetconABI : public BaseABI {
9191
public:
9292
AnyRetconABI(Function &F, coro::Shape &S) : BaseABI(F, S) {}
9393

0 commit comments

Comments
 (0)