Remove some unneeded headers and replace some headers with forward class declarations (NFC)

Differential Revision: http://reviews.llvm.org/D19154

Patch by Eugene Kosov <claprix@yandex.ru>

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266524
This commit is contained in:
Mehdi Amini 2016-04-16 07:51:28 +00:00
parent 1d30fcaccf
commit 47b292d3fd
40 changed files with 43 additions and 61 deletions

View File

@ -25,6 +25,8 @@ struct fltSemantics;
class APSInt; class APSInt;
class StringRef; class StringRef;
template <typename T> class SmallVectorImpl;
/// Enum that represents what fraction of the LSB truncated bits of an fp number /// Enum that represents what fraction of the LSB truncated bits of an fp number
/// represent. /// represent.
/// ///

View File

@ -16,7 +16,6 @@
#ifndef LLVM_ADT_APINT_H #ifndef LLVM_ADT_APINT_H
#define LLVM_ADT_APINT_H #define LLVM_ADT_APINT_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
#include "llvm/Support/MathExtras.h" #include "llvm/Support/MathExtras.h"
#include <cassert> #include <cassert>
@ -31,6 +30,7 @@ class hash_code;
class raw_ostream; class raw_ostream;
template <typename T> class SmallVectorImpl; template <typename T> class SmallVectorImpl;
template <typename T> class ArrayRef;
// An unsigned host type used as a single part of a multi-part // An unsigned host type used as a single part of a multi-part
// bignum. // bignum.

View File

@ -17,10 +17,8 @@
#define LLVM_ADT_FOLDINGSET_H #define LLVM_ADT_FOLDINGSET_H
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator.h" #include "llvm/ADT/iterator.h"
#include "llvm/Support/Allocator.h" #include "llvm/Support/Allocator.h"
#include "llvm/Support/DataTypes.h"
namespace llvm { namespace llvm {
/// This folding set used for two purposes: /// This folding set used for two purposes:
@ -98,6 +96,7 @@ namespace llvm {
/// The result indicates whether the node existed in the folding set. /// The result indicates whether the node existed in the folding set.
class FoldingSetNodeID; class FoldingSetNodeID;
class StringRef;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// FoldingSetImpl - Implements the folding set functionality. The main /// FoldingSetImpl - Implements the folding set functionality. The main

View File

@ -15,7 +15,6 @@
#define LLVM_ADT_SMALLBITVECTOR_H #define LLVM_ADT_SMALLBITVECTOR_H
#include "llvm/ADT/BitVector.h" #include "llvm/ADT/BitVector.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/MathExtras.h" #include "llvm/Support/MathExtras.h"
#include <cassert> #include <cassert>

View File

@ -15,7 +15,6 @@
#define LLVM_ADT_STRINGMAP_H #define LLVM_ADT_STRINGMAP_H
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Allocator.h" #include "llvm/Support/Allocator.h"
#include "llvm/Support/PointerLikeTypeTraits.h" #include "llvm/Support/PointerLikeTypeTraits.h"
#include <cstring> #include <cstring>

View File

@ -16,12 +16,10 @@
#ifndef LLVM_IR_COMDAT_H #ifndef LLVM_IR_COMDAT_H
#define LLVM_IR_COMDAT_H #define LLVM_IR_COMDAT_H
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h"
namespace llvm { namespace llvm {
class raw_ostream; class raw_ostream;
class StringRef;
template <typename ValueTy> class StringMapEntry; template <typename ValueTy> class StringMapEntry;
// This is a Name X SelectionKind pair. The reason for having this be an // This is a Name X SelectionKind pair. The reason for having this be an

View File

@ -15,8 +15,6 @@
#ifndef LLVM_IR_DIBUILDER_H #ifndef LLVM_IR_DIBUILDER_H
#define LLVM_IR_DIBUILDER_H #define LLVM_IR_DIBUILDER_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/DebugInfo.h" #include "llvm/IR/DebugInfo.h"
#include "llvm/IR/TrackingMDRef.h" #include "llvm/IR/TrackingMDRef.h"
#include "llvm/IR/ValueHandle.h" #include "llvm/IR/ValueHandle.h"
@ -31,6 +29,7 @@ namespace llvm {
class Constant; class Constant;
class LLVMContext; class LLVMContext;
class StringRef; class StringRef;
template <typename T> class ArrayRef;
class DIBuilder { class DIBuilder {
Module &M; Module &M;

View File

@ -20,7 +20,6 @@
#ifndef LLVM_IR_DATALAYOUT_H #ifndef LLVM_IR_DATALAYOUT_H
#define LLVM_IR_DATALAYOUT_H #define LLVM_IR_DATALAYOUT_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include "llvm/IR/DerivedTypes.h" #include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Type.h" #include "llvm/IR/Type.h"
@ -34,8 +33,6 @@ typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef;
namespace llvm { namespace llvm {
class Value; class Value;
class Type;
class IntegerType;
class StructType; class StructType;
class StructLayout; class StructLayout;
class Triple; class Triple;

View File

@ -17,10 +17,8 @@
#ifndef LLVM_IR_DEBUGINFO_H #ifndef LLVM_IR_DEBUGINFO_H
#define LLVM_IR_DEBUGINFO_H #define LLVM_IR_DEBUGINFO_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator_range.h" #include "llvm/ADT/iterator_range.h"
#include "llvm/IR/DebugInfoMetadata.h" #include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/Support/Casting.h" #include "llvm/Support/Casting.h"
@ -32,6 +30,8 @@ namespace llvm {
class Module; class Module;
class DbgDeclareInst; class DbgDeclareInst;
class DbgValueInst; class DbgValueInst;
template <typename K, typename V, typename KeyInfoT, typename BucketT>
class DenseMap;
/// \brief Maps from type identifier to the actual MDNode. /// \brief Maps from type identifier to the actual MDNode.
typedef DenseMap<const MDString *, DIType *> DITypeIdentifierMap; typedef DenseMap<const MDString *, DIType *> DITypeIdentifierMap;

View File

@ -14,7 +14,6 @@
#ifndef LLVM_IR_DEBUGINFOMETADATA_H #ifndef LLVM_IR_DEBUGINFOMETADATA_H
#define LLVM_IR_DEBUGINFOMETADATA_H #define LLVM_IR_DEBUGINFOMETADATA_H
#include "llvm/ADT/Optional.h"
#include "llvm/IR/Metadata.h" #include "llvm/IR/Metadata.h"
#include "llvm/Support/Dwarf.h" #include "llvm/Support/Dwarf.h"
@ -44,6 +43,8 @@
namespace llvm { namespace llvm {
template <typename T> class Optional;
/// \brief Pointer union between a subclass of DINode and MDString. /// \brief Pointer union between a subclass of DINode and MDString.
/// ///
/// \a DICompositeType can be referenced via an \a MDString unique identifier. /// \a DICompositeType can be referenced via an \a MDString unique identifier.

View File

@ -15,7 +15,6 @@
#ifndef LLVM_IR_DIAGNOSTICINFO_H #ifndef LLVM_IR_DIAGNOSTICINFO_H
#define LLVM_IR_DIAGNOSTICINFO_H #define LLVM_IR_DIAGNOSTICINFO_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Twine.h" #include "llvm/ADT/Twine.h"
#include "llvm/IR/DebugLoc.h" #include "llvm/IR/DebugLoc.h"
#include "llvm/IR/Module.h" #include "llvm/IR/Module.h"

View File

@ -15,23 +15,19 @@
#ifndef LLVM_IR_DOMINATORS_H #ifndef LLVM_IR_DOMINATORS_H
#define LLVM_IR_DOMINATORS_H #define LLVM_IR_DOMINATORS_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/GraphTraits.h" #include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CFG.h" #include "llvm/IR/CFG.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/PassManager.h" #include "llvm/IR/PassManager.h"
#include "llvm/Pass.h" #include "llvm/Pass.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/GenericDomTree.h" #include "llvm/Support/GenericDomTree.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
namespace llvm { namespace llvm {
class Function;
class BasicBlock;
class raw_ostream;
extern template class DomTreeNodeBase<BasicBlock>; extern template class DomTreeNodeBase<BasicBlock>;
extern template class DominatorTreeBase<BasicBlock>; extern template class DominatorTreeBase<BasicBlock>;

View File

@ -19,7 +19,6 @@
#define LLVM_IR_FUNCTION_H #define LLVM_IR_FUNCTION_H
#include "llvm/ADT/iterator_range.h" #include "llvm/ADT/iterator_range.h"
#include "llvm/ADT/Optional.h"
#include "llvm/IR/Argument.h" #include "llvm/IR/Argument.h"
#include "llvm/IR/Attributes.h" #include "llvm/IR/Attributes.h"
#include "llvm/IR/BasicBlock.h" #include "llvm/IR/BasicBlock.h"
@ -30,6 +29,7 @@
namespace llvm { namespace llvm {
template <typename T> class Optional;
class FunctionType; class FunctionType;
class LLVMContext; class LLVMContext;
class DISubprogram; class DISubprogram;

View File

@ -15,12 +15,12 @@
#ifndef LLVM_IR_GLOBALALIAS_H #ifndef LLVM_IR_GLOBALALIAS_H
#define LLVM_IR_GLOBALALIAS_H #define LLVM_IR_GLOBALALIAS_H
#include "llvm/ADT/Twine.h"
#include "llvm/ADT/ilist_node.h" #include "llvm/ADT/ilist_node.h"
#include "llvm/IR/GlobalIndirectSymbol.h" #include "llvm/IR/GlobalIndirectSymbol.h"
namespace llvm { namespace llvm {
class Twine;
class Module; class Module;
template <typename ValueSubClass> class SymbolTableListTraits; template <typename ValueSubClass> class SymbolTableListTraits;

View File

@ -18,12 +18,12 @@
#ifndef LLVM_IR_GLOBALIFUNC_H #ifndef LLVM_IR_GLOBALIFUNC_H
#define LLVM_IR_GLOBALIFUNC_H #define LLVM_IR_GLOBALIFUNC_H
#include "llvm/ADT/Twine.h"
#include "llvm/ADT/ilist_node.h" #include "llvm/ADT/ilist_node.h"
#include "llvm/IR/GlobalIndirectSymbol.h" #include "llvm/IR/GlobalIndirectSymbol.h"
namespace llvm { namespace llvm {
class Twine;
class Module; class Module;
// Traits class for using GlobalIFunc in symbol table in Module. // Traits class for using GlobalIFunc in symbol table in Module.

View File

@ -15,7 +15,6 @@
#ifndef LLVM_IR_GLOBALOBJECT_H #ifndef LLVM_IR_GLOBALOBJECT_H
#define LLVM_IR_GLOBALOBJECT_H #define LLVM_IR_GLOBALOBJECT_H
#include "llvm/IR/Constant.h"
#include "llvm/IR/DerivedTypes.h" #include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/GlobalValue.h" #include "llvm/IR/GlobalValue.h"

View File

@ -17,6 +17,7 @@
#define LLVM_IR_INTRINSICS_H #define LLVM_IR_INTRINSICS_H
#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/None.h"
#include <string> #include <string>
namespace llvm { namespace llvm {

View File

@ -16,7 +16,6 @@
#define LLVM_IR_LLVMCONTEXT_H #define LLVM_IR_LLVMCONTEXT_H
#include "llvm/Support/CBindingWrapping.h" #include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Options.h" #include "llvm/Support/Options.h"
namespace llvm { namespace llvm {

View File

@ -14,7 +14,6 @@
#ifndef LLVM_IR_LEGACYPASSMANAGERS_H #ifndef LLVM_IR_LEGACYPASSMANAGERS_H
#define LLVM_IR_LEGACYPASSMANAGERS_H #define LLVM_IR_LEGACYPASSMANAGERS_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"
@ -93,12 +92,13 @@
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
namespace llvm { namespace llvm {
class Module; template <typename T> class ArrayRef;
class Pass; class Module;
class StringRef; class Pass;
class Value; class StringRef;
class Timer; class Value;
class PMDataManager; class Timer;
class PMDataManager;
// enums for debugging strings // enums for debugging strings
enum PassDebuggingString { enum PassDebuggingString {

View File

@ -16,13 +16,13 @@
#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseMap.h"
#include "llvm/IR/GlobalValue.h" #include "llvm/IR/GlobalValue.h"
#include "llvm/Support/raw_ostream.h"
namespace llvm { namespace llvm {
class DataLayout; class DataLayout;
template <typename T> class SmallVectorImpl; template <typename T> class SmallVectorImpl;
class Twine; class Twine;
class raw_ostream;
class Mangler { class Mangler {
/// We need to give global values the same name every time they are mangled. /// We need to give global values the same name every time they are mangled.

View File

@ -15,7 +15,6 @@
#ifndef LLVM_IR_MODULE_H #ifndef LLVM_IR_MODULE_H
#define LLVM_IR_MODULE_H #define LLVM_IR_MODULE_H
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/iterator_range.h" #include "llvm/ADT/iterator_range.h"
#include "llvm/IR/Comdat.h" #include "llvm/IR/Comdat.h"
#include "llvm/IR/DataLayout.h" #include "llvm/IR/DataLayout.h"
@ -30,6 +29,7 @@
#include <system_error> #include <system_error>
namespace llvm { namespace llvm {
template <typename T> class Optional;
class FunctionType; class FunctionType;
class GVMaterializer; class GVMaterializer;
class LLVMContext; class LLVMContext;

View File

@ -22,10 +22,7 @@
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringMap.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h" #include "llvm/IR/Module.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include <array> #include <array>

View File

@ -44,7 +44,6 @@
#include "llvm/IR/Function.h" #include "llvm/IR/Function.h"
#include "llvm/IR/Module.h" #include "llvm/IR/Module.h"
#include "llvm/IR/PassManagerInternal.h" #include "llvm/IR/PassManagerInternal.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/TypeName.h" #include "llvm/Support/TypeName.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
@ -55,9 +54,6 @@
namespace llvm { namespace llvm {
class Module;
class Function;
/// \brief An abstract set of preserved analyses following a transformation pass /// \brief An abstract set of preserved analyses following a transformation pass
/// run. /// run.
/// ///

View File

@ -15,7 +15,6 @@
#define LLVM_IR_TRACKINGMDREF_H #define LLVM_IR_TRACKINGMDREF_H
#include "llvm/IR/Metadata.h" #include "llvm/IR/Metadata.h"
#include "llvm/Support/Casting.h"
namespace llvm { namespace llvm {

View File

@ -16,6 +16,7 @@
#define LLVM_IR_TYPE_H #define LLVM_IR_TYPE_H
#include "llvm/ADT/APFloat.h" #include "llvm/ADT/APFloat.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/CBindingWrapping.h" #include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/Casting.h" #include "llvm/Support/Casting.h"

View File

@ -27,7 +27,6 @@
#include "llvm/ADT/PointerIntPair.h" #include "llvm/ADT/PointerIntPair.h"
#include "llvm/Support/CBindingWrapping.h" #include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/Compiler.h"
#include <cstddef> #include <cstddef>
#include <iterator> #include <iterator>

View File

@ -15,8 +15,6 @@
#ifndef LLVM_IR_USELISTORDER_H #ifndef LLVM_IR_USELISTORDER_H
#define LLVM_IR_USELISTORDER_H #define LLVM_IR_USELISTORDER_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include <vector> #include <vector>
namespace llvm { namespace llvm {

View File

@ -19,7 +19,6 @@
#ifndef LLVM_IR_USER_H #ifndef LLVM_IR_USER_H
#define LLVM_IR_USER_H #define LLVM_IR_USER_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/iterator.h" #include "llvm/ADT/iterator.h"
#include "llvm/ADT/iterator_range.h" #include "llvm/ADT/iterator_range.h"
#include "llvm/IR/Value.h" #include "llvm/IR/Value.h"
@ -28,6 +27,9 @@
namespace llvm { namespace llvm {
template <typename T> class ArrayRef;
template <typename T> class MutableArrayRef;
/// \brief Compile-time customization of User operands. /// \brief Compile-time customization of User operands.
/// ///
/// Customizes operand-related allocators and accessors. /// Customizes operand-related allocators and accessors.

View File

@ -18,7 +18,6 @@
#include "llvm/IR/Use.h" #include "llvm/IR/Use.h"
#include "llvm/Support/CBindingWrapping.h" #include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/Casting.h" #include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
namespace llvm { namespace llvm {

View File

@ -14,13 +14,13 @@
#ifndef LLVM_IR_VALUESYMBOLTABLE_H #ifndef LLVM_IR_VALUESYMBOLTABLE_H
#define LLVM_IR_VALUESYMBOLTABLE_H #define LLVM_IR_VALUESYMBOLTABLE_H
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringMap.h"
#include "llvm/IR/Value.h" #include "llvm/IR/Value.h"
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
namespace llvm { namespace llvm {
template <typename ValueSubClass> class SymbolTableListTraits; template <typename ValueSubClass> class SymbolTableListTraits;
template <unsigned InternalLen> class SmallString;
class BasicBlock; class BasicBlock;
class Function; class Function;
class NamedMDNode; class NamedMDNode;

View File

@ -21,9 +21,7 @@
#ifndef LLVM_IR_VERIFIER_H #ifndef LLVM_IR_VERIFIER_H
#define LLVM_IR_VERIFIER_H #define LLVM_IR_VERIFIER_H
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/PassManager.h" #include "llvm/IR/PassManager.h"
#include <string>
namespace llvm { namespace llvm {

View File

@ -11,6 +11,8 @@
#define LLVM_MC_MCPARSER_MCASMLEXER_H #define LLVM_MC_MCPARSER_MCASMLEXER_H
#include "llvm/ADT/APInt.h" #include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"

View File

@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MILexer.h" #include "MILexer.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h" #include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h" #include "llvm/ADT/Twine.h"

View File

@ -12,7 +12,6 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/CodeGen/Passes.h"
#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/IndexedMap.h" #include "llvm/ADT/IndexedMap.h"
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
@ -25,14 +24,12 @@
#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/RegAllocRegistry.h" #include "llvm/CodeGen/RegAllocRegistry.h"
#include "llvm/CodeGen/RegisterClassInfo.h" #include "llvm/CodeGen/RegisterClassInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DebugInfo.h" #include "llvm/IR/DebugInfo.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h" #include "llvm/Target/TargetSubtargetInfo.h"
#include <algorithm> #include <algorithm>

View File

@ -14,6 +14,7 @@
#include "llvm/ADT/APFloat.h" #include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APSInt.h" #include "llvm/ADT/APSInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/Hashing.h" #include "llvm/ADT/Hashing.h"
#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringExtras.h"

View File

@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/ADT/APInt.h" #include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/Hashing.h" #include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"

View File

@ -14,6 +14,7 @@
#include "llvm/ADT/APSInt.h" #include "llvm/ADT/APSInt.h"
#include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringRef.h"
using namespace llvm; using namespace llvm;

View File

@ -13,6 +13,7 @@
#include "llvm/Support/ScaledNumber.h" #include "llvm/Support/ScaledNumber.h"
#include "llvm/ADT/APFloat.h" #include "llvm/ADT/APFloat.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"

View File

@ -8,10 +8,10 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/ADT/APInt.h" #include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include <array> #include <array>
#include <ostream>
using namespace llvm; using namespace llvm;

View File

@ -7,9 +7,10 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "gtest/gtest.h"
#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include "gtest/gtest.h"
#include <tuple> #include <tuple>
using namespace llvm; using namespace llvm;