llvm.org GIT mirror llvm / f4bb3bd
[X86] 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@360736 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Trieu 1 year, 2 months ago
8 changed file(s) with 27 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
99 #include "MCTargetDesc/X86IntelInstPrinter.h"
1010 #include "MCTargetDesc/X86MCExpr.h"
1111 #include "MCTargetDesc/X86TargetStreamer.h"
12 #include "TargetInfo/X86TargetInfo.h"
1213 #include "X86AsmParserCommon.h"
1314 #include "X86Operand.h"
1415 #include "llvm/ADT/STLExtras.h"
7474
7575 #include "MCTargetDesc/X86BaseInfo.h"
7676 #include "MCTargetDesc/X86MCTargetDesc.h"
77 #include "TargetInfo/X86TargetInfo.h"
7778 #include "X86DisassemblerDecoder.h"
7879 #include "llvm/MC/MCContext.h"
7980 #include "llvm/MC/MCDisassembler/MCDisassembler.h"
1010 //===----------------------------------------------------------------------===//
1111
1212 #include "X86MCTargetDesc.h"
13 #include "TargetInfo/X86TargetInfo.h"
1314 #include "X86ATTInstPrinter.h"
1415 #include "X86BaseInfo.h"
1516 #include "X86IntelInstPrinter.h"
3232 class StringRef;
3333 class raw_ostream;
3434 class raw_pwrite_stream;
35
36 Target &getTheX86_32Target();
37 Target &getTheX86_64Target();
3835
3936 /// Flavour of dwarf regnumbers
4037 ///
55 //
66 //===----------------------------------------------------------------------===//
77
8 #include "MCTargetDesc/X86MCTargetDesc.h"
8 #include "TargetInfo/X86TargetInfo.h"
99 #include "llvm/Support/TargetRegistry.h"
1010 using namespace llvm;
1111
0 //===-- X86TargetInfo.h - X86 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_X86_TARGETINFO_X86TARGETINFO_H
9 #define LLVM_LIB_TARGET_X86_TARGETINFO_X86TARGETINFO_H
10
11 namespace llvm {
12
13 class Target;
14
15 Target &getTheX86_32Target();
16 Target &getTheX86_64Target();
17
18 }
19
20 #endif // LLVM_LIB_TARGET_X86_TARGETINFO_X86TARGETINFO_H
1414 #include "MCTargetDesc/X86ATTInstPrinter.h"
1515 #include "MCTargetDesc/X86BaseInfo.h"
1616 #include "MCTargetDesc/X86TargetStreamer.h"
17 #include "TargetInfo/X86TargetInfo.h"
1718 #include "X86InstrInfo.h"
1819 #include "X86MachineFunctionInfo.h"
1920 #include "llvm/BinaryFormat/COFF.h"
1111
1212 #include "X86TargetMachine.h"
1313 #include "MCTargetDesc/X86MCTargetDesc.h"
14 #include "TargetInfo/X86TargetInfo.h"
1415 #include "X86.h"
1516 #include "X86CallLowering.h"
1617 #include "X86LegalizerInfo.h"