llvm.org GIT mirror llvm / f6616c5
[ARM] Create a TargetInfo header. NFC Move the declarations of getThe<Name>Target() functions into a new header in TargetInfo and make users of these functions include this new header. This fixes a layering problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360718 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Trieu 1 year, 4 months ago
8 changed file(s) with 29 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
1919 #include "MCTargetDesc/ARMAddressingModes.h"
2020 #include "MCTargetDesc/ARMInstPrinter.h"
2121 #include "MCTargetDesc/ARMMCExpr.h"
22 #include "TargetInfo/ARMTargetInfo.h"
2223 #include "llvm/ADT/SetVector.h"
2324 #include "llvm/ADT/SmallString.h"
2425 #include "llvm/BinaryFormat/COFF.h"
1515 #include "ARMTargetObjectFile.h"
1616 #include "ARMTargetTransformInfo.h"
1717 #include "MCTargetDesc/ARMMCTargetDesc.h"
18 #include "TargetInfo/ARMTargetInfo.h"
1819 #include "llvm/ADT/Optional.h"
1920 #include "llvm/ADT/STLExtras.h"
2021 #include "llvm/ADT/StringRef.h"
1212 #include "MCTargetDesc/ARMInstPrinter.h"
1313 #include "MCTargetDesc/ARMMCExpr.h"
1414 #include "MCTargetDesc/ARMMCTargetDesc.h"
15 #include "TargetInfo/ARMTargetInfo.h"
1516 #include "llvm/ADT/APFloat.h"
1617 #include "llvm/ADT/APInt.h"
1718 #include "llvm/ADT/None.h"
88 #include "MCTargetDesc/ARMAddressingModes.h"
99 #include "MCTargetDesc/ARMBaseInfo.h"
1010 #include "MCTargetDesc/ARMMCTargetDesc.h"
11 #include "TargetInfo/ARMTargetInfo.h"
1112 #include "Utils/ARMBaseInfo.h"
1213 #include "llvm/MC/MCContext.h"
1314 #include "llvm/MC/MCDisassembler/MCDisassembler.h"
1313 #include "ARMBaseInfo.h"
1414 #include "ARMInstPrinter.h"
1515 #include "ARMMCAsmInfo.h"
16 #include "TargetInfo/ARMTargetInfo.h"
1617 #include "llvm/ADT/Triple.h"
1718 #include "llvm/MC/MCAsmBackend.h"
1819 #include "llvm/MC/MCCodeEmitter.h"
3636 class Triple;
3737 class raw_ostream;
3838 class raw_pwrite_stream;
39
40 Target &getTheARMLETarget();
41 Target &getTheThumbLETarget();
42 Target &getTheARMBETarget();
43 Target &getTheThumbBETarget();
4439
4540 namespace ARM_MC {
4641 std::string ParseARMTriple(const Triple &TT, StringRef CPU);
55 //
66 //===----------------------------------------------------------------------===//
77
8 #include "MCTargetDesc/ARMMCTargetDesc.h"
8 #include "TargetInfo/ARMTargetInfo.h"
99 #include "llvm/Support/TargetRegistry.h"
1010 using namespace llvm;
1111
0 //===-- ARMTargetInfo.h - ARM Target Implementation -------------*- C++ -*-===//
1 //
2 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3 // See https://llvm.org/LICENSE.txt for license information.
4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5 //
6 //===----------------------------------------------------------------------===//
7
8 #ifndef LLVM_LIB_TARGET_ARM_TARGETINFO_ARMTARGETINFO_H
9 #define LLVM_LIB_TARGET_ARM_TARGETINFO_ARMTARGETINFO_H
10
11 namespace llvm {
12
13 class Target;
14
15 Target &getTheARMLETarget();
16 Target &getTheARMBETarget();
17 Target &getTheThumbLETarget();
18 Target &getTheThumbBETarget();
19
20 } // namespace llvm
21
22 #endif // LLVM_LIB_TARGET_ARM_TARGETINFO_ARMTARGETINFO_H