mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-28 06:37:14 +00:00
[Allocator] Stop forward-declaring BumpPtrAllocator in a few places.
This is a necessary step to lifting some of its configuration into template parameters rather than runtime parameters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6da21c0e33
commit
7c5042f86b
@ -18,12 +18,12 @@
|
|||||||
|
|
||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
#include "llvm/ADT/StringRef.h"
|
#include "llvm/ADT/StringRef.h"
|
||||||
|
#include "llvm/Support/Allocator.h"
|
||||||
#include "llvm/Support/DataTypes.h"
|
#include "llvm/Support/DataTypes.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class APFloat;
|
class APFloat;
|
||||||
class APInt;
|
class APInt;
|
||||||
class BumpPtrAllocator;
|
|
||||||
|
|
||||||
/// This folding set used for two purposes:
|
/// This folding set used for two purposes:
|
||||||
/// 1. Given information about a node we want to create, look up the unique
|
/// 1. Given information about a node we want to create, look up the unique
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#ifndef LLVM_CODEGEN_MACHINESSAUPDATER_H
|
#ifndef LLVM_CODEGEN_MACHINESSAUPDATER_H
|
||||||
#define LLVM_CODEGEN_MACHINESSAUPDATER_H
|
#define LLVM_CODEGEN_MACHINESSAUPDATER_H
|
||||||
|
|
||||||
|
#include "llvm/Support/Allocator.h"
|
||||||
#include "llvm/Support/Compiler.h"
|
#include "llvm/Support/Compiler.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
@ -26,7 +27,6 @@ namespace llvm {
|
|||||||
class TargetRegisterClass;
|
class TargetRegisterClass;
|
||||||
template<typename T> class SmallVectorImpl;
|
template<typename T> class SmallVectorImpl;
|
||||||
template<typename T> class SSAUpdaterTraits;
|
template<typename T> class SSAUpdaterTraits;
|
||||||
class BumpPtrAllocator;
|
|
||||||
|
|
||||||
/// MachineSSAUpdater - This class updates SSA form for a set of virtual
|
/// MachineSSAUpdater - This class updates SSA form for a set of virtual
|
||||||
/// registers defined in multiple blocks. This is used when code duplication
|
/// registers defined in multiple blocks. This is used when code duplication
|
||||||
|
@ -16,12 +16,11 @@
|
|||||||
#define LLVM_SUPPORT_ARRAYRECYCLER_H
|
#define LLVM_SUPPORT_ARRAYRECYCLER_H
|
||||||
|
|
||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
|
#include "llvm/Support/Allocator.h"
|
||||||
#include "llvm/Support/MathExtras.h"
|
#include "llvm/Support/MathExtras.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class BumpPtrAllocator;
|
|
||||||
|
|
||||||
/// Recycle small arrays allocated from a BumpPtrAllocator.
|
/// Recycle small arrays allocated from a BumpPtrAllocator.
|
||||||
///
|
///
|
||||||
/// Arrays are allocated in a small number of fixed sizes. For each supported
|
/// Arrays are allocated in a small number of fixed sizes. For each supported
|
||||||
|
@ -17,13 +17,12 @@
|
|||||||
|
|
||||||
#include "llvm/ADT/ilist.h"
|
#include "llvm/ADT/ilist.h"
|
||||||
#include "llvm/Support/AlignOf.h"
|
#include "llvm/Support/AlignOf.h"
|
||||||
|
#include "llvm/Support/Allocator.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class BumpPtrAllocator;
|
|
||||||
|
|
||||||
/// PrintRecyclingAllocatorStats - Helper for RecyclingAllocator for
|
/// PrintRecyclingAllocatorStats - Helper for RecyclingAllocator for
|
||||||
/// printing statistics.
|
/// printing statistics.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user