llvm.org GIT mirror llvm / 79aa341
Reorder includes in Target backends to following coding standards. Remove some superfluous forward declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152997 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 7 years ago
88 changed file(s) with 102 addition(s) and 134 deletion(s). Raw diff Collapse all Expand all
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "SPUFrameLowering.h"
1314 #include "SPU.h"
14 #include "SPUFrameLowering.h"
1515 #include "SPUInstrBuilder.h"
1616 #include "SPUInstrInfo.h"
1717 #include "llvm/Function.h"
1414 #ifndef SPU_ISELLOWERING_H
1515 #define SPU_ISELLOWERING_H
1616
17 #include "SPU.h"
1718 #include "llvm/Target/TargetLowering.h"
1819 #include "llvm/CodeGen/SelectionDAG.h"
19 #include "SPU.h"
2020
2121 namespace llvm {
2222 namespace SPUISD {
1414 #define SPU_INSTRUCTIONINFO_H
1515
1616 #include "SPU.h"
17 #include "SPURegisterInfo.h"
1718 #include "llvm/Target/TargetInstrInfo.h"
18 #include "SPURegisterInfo.h"
1919
2020 #define GET_INSTRINFO_HEADER
2121 #include "SPUGenInstrInfo.inc"
1111 //===----------------------------------------------------------------------===//
1212
1313 #define DEBUG_TYPE "reginfo"
14 #include "SPURegisterInfo.h"
1415 #include "SPU.h"
15 #include "SPURegisterInfo.h"
1616 #include "SPUInstrBuilder.h"
1717 #include "SPUSubtarget.h"
1818 #include "SPUMachineFunction.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "SPUTargetMachine.h"
1314 #include "SPU.h"
14 #include "SPUTargetMachine.h"
1515 #include "llvm/PassManager.h"
1616 #include "llvm/CodeGen/SchedulerRegistry.h"
1717 #include "llvm/Support/DynamicLibrary.h"
2222 #include "llvm/Target/TargetData.h"
2323
2424 namespace llvm {
25 class PassManager;
26 class GlobalValue;
27 class TargetFrameLowering;
2825
2926 /// SPUTargetMachine
3027 ///
1414 #ifndef TARGET_Hexagon_H
1515 #define TARGET_Hexagon_H
1616
17 #include
1817 #include "MCTargetDesc/HexagonMCTargetDesc.h"
1918 #include "llvm/Target/TargetLowering.h"
2019
3131 #include "llvm/MC/MCAsmInfo.h"
3232 #include "llvm/MC/MCSymbol.h"
3333 #include "llvm/Support/MathExtras.h"
34 #include "llvm/Support/MathExtras.h"
3534 #include "llvm/Support/CommandLine.h"
3635 #include "llvm/Support/Debug.h"
3736 #include "llvm/Support/Compiler.h"
3837 #include "llvm/Support/raw_ostream.h"
38 #include "llvm/Support/TargetRegistry.h"
3939 #include "llvm/Target/Mangler.h"
4040 #include "llvm/Target/TargetData.h"
4141 #include "llvm/Target/TargetLoweringObjectFile.h"
4545 #include "llvm/ADT/SmallPtrSet.h"
4646 #include "llvm/ADT/SmallString.h"
4747 #include "llvm/ADT/StringExtras.h"
48 #include "llvm/Support/TargetRegistry.h"
49 #include "llvm/Support/raw_ostream.h"
5048
5149 using namespace llvm;
5250
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "HexagonCallingConvLower.h"
16 #include "Hexagon.h"
1617 #include "llvm/Target/TargetRegisterInfo.h"
1718 #include "llvm/Target/TargetData.h"
1819 #include "llvm/Target/TargetMachine.h"
1920 #include "llvm/Support/Debug.h"
2021 #include "llvm/Support/ErrorHandling.h"
2122 #include "llvm/Support/raw_ostream.h"
22 #include "Hexagon.h"
2323 using namespace llvm;
2424
2525 Hexagon_CCState::Hexagon_CCState(CallingConv::ID CC, bool isVarArg,
77 //
88 //===----------------------------------------------------------------------===//
99
10 #include "HexagonFrameLowering.h"
1011 #include "Hexagon.h"
1112 #include "HexagonInstrInfo.h"
1213 #include "HexagonRegisterInfo.h"
1314 #include "HexagonSubtarget.h"
1415 #include "HexagonTargetMachine.h"
1516 #include "HexagonMachineFunctionInfo.h"
16 #include "HexagonFrameLowering.h"
1717 #include "llvm/Function.h"
1818 #include "llvm/Type.h"
1919 #include "llvm/ADT/BitVector.h"
2626 //===----------------------------------------------------------------------===//
2727
2828 #define DEBUG_TYPE "hwloops"
29 #include "Hexagon.h"
30 #include "HexagonTargetMachine.h"
2931 #include "llvm/Constants.h"
3032 #include "llvm/PassSupport.h"
3133 #include "llvm/ADT/DenseMap.h"
4244 #include "llvm/Support/raw_ostream.h"
4345 #include "llvm/Target/TargetInstrInfo.h"
4446 #include
45 #include "Hexagon.h"
46 #include "HexagonTargetMachine.h"
4747
4848 using namespace llvm;
4949
2727 #include "llvm/CodeGen/MachineFrameInfo.h"
2828 #include "llvm/CodeGen/MachineFunction.h"
2929 #include "llvm/CodeGen/MachineInstrBuilder.h"
30 #include "llvm/CodeGen/MachineJumpTableInfo.h"
3031 #include "llvm/CodeGen/MachineRegisterInfo.h"
3132 #include "llvm/CodeGen/SelectionDAGISel.h"
3233 #include "llvm/CodeGen/ValueTypes.h"
3334 #include "llvm/Support/Debug.h"
3435 #include "llvm/Support/ErrorHandling.h"
35 #include "llvm/CodeGen/MachineJumpTableInfo.h"
36 #include "HexagonMachineFunctionInfo.h"
3736 #include "llvm/Support/CommandLine.h"
37 using namespace llvm;
3838
3939 const unsigned Hexagon_MAX_RET_SIZE = 64;
40 using namespace llvm;
4140
4241 static cl::opt
4342 EmitJumpTables("hexagon-emit-jump-tables", cl::init(true), cl::Hidden,
1414 #ifndef Hexagon_ISELLOWERING_H
1515 #define Hexagon_ISELLOWERING_H
1616
17 #include "Hexagon.h"
1718 #include "llvm/Target/TargetLowering.h"
1819 #include "llvm/CallingConv.h"
1920 #include "llvm/CodeGen/CallingConvLower.h"
20 #include "Hexagon.h"
2121
2222 namespace llvm {
2323 namespace HexagonISD {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "HexagonInstrInfo.h"
1314 #include "HexagonRegisterInfo.h"
14 #include "HexagonInstrInfo.h"
1515 #include "HexagonSubtarget.h"
1616 #include "Hexagon.h"
1717 #include "llvm/ADT/STLExtras.h"
1313 #ifndef HexagonINSTRUCTIONINFO_H
1414 #define HexagonINSTRUCTIONINFO_H
1515
16 #include "HexagonRegisterInfo.h"
1617 #include "MCTargetDesc/HexagonBaseInfo.h"
1718 #include "llvm/Target/TargetInstrInfo.h"
1819 #include "llvm/Target/TargetFrameLowering.h"
19 #include "HexagonRegisterInfo.h"
2020
2121
2222 #define GET_INSTRINFO_HEADER
3535 //===----------------------------------------------------------------------===//
3636
3737 #define DEBUG_TYPE "hexagon-peephole"
38 #include "Hexagon.h"
39 #include "HexagonTargetMachine.h"
3840 #include "llvm/Constants.h"
3941 #include "llvm/PassSupport.h"
4042 #include "llvm/ADT/DenseMap.h"
4446 #include "llvm/CodeGen/MachineFunctionPass.h"
4547 #include "llvm/CodeGen/MachineInstrBuilder.h"
4648 #include "llvm/CodeGen/MachineRegisterInfo.h"
49 #include "llvm/Support/CommandLine.h"
4750 #include "llvm/Support/Debug.h"
4851 #include "llvm/Support/raw_ostream.h"
4952 #include "llvm/Target/TargetMachine.h"
5053 #include "llvm/Target/TargetRegisterInfo.h"
5154 #include "llvm/Target/TargetInstrInfo.h"
5255 #include
53 #include "Hexagon.h"
54 #include "HexagonTargetMachine.h"
55
56 #include "llvm/Support/CommandLine.h"
5756
5857 using namespace llvm;
5958
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "HexagonRegisterInfo.h"
1415 #include "Hexagon.h"
15 #include "HexagonRegisterInfo.h"
1616 #include "HexagonSubtarget.h"
1717 #include "HexagonTargetMachine.h"
1818 #include "HexagonMachineFunctionInfo.h"
1515 #define HexagonREGISTERINFO_H
1616
1717 #include "llvm/Target/TargetRegisterInfo.h"
18 #include "llvm/MC/MachineLocation.h"
19
1820 #define GET_REGINFO_HEADER
1921 #include "HexagonGenRegisterInfo.inc"
20 #include "llvm/MC/MachineLocation.h"
2122
2223 //
2324 // We try not to hard code the reserved registers in our code,
1313 #ifndef HexagonTARGETMACHINE_H
1414 #define HexagonTARGETMACHINE_H
1515
16 #include "llvm/Target/TargetMachine.h"
17 #include "llvm/Target/TargetData.h"
1816 #include "HexagonInstrInfo.h"
1917 #include "HexagonSubtarget.h"
2018 #include "HexagonISelLowering.h"
2119 #include "HexagonSelectionDAGInfo.h"
2220 #include "HexagonFrameLowering.h"
21 #include "llvm/Target/TargetMachine.h"
22 #include "llvm/Target/TargetData.h"
2323
2424 namespace llvm {
2525
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "HexagonTargetObjectFile.h"
14 #include "HexagonSubtarget.h"
15 #include "HexagonTargetMachine.h"
1316 #include "llvm/Function.h"
1417 #include "llvm/GlobalVariable.h"
1518 #include "llvm/Target/TargetData.h"
1720 #include "llvm/MC/MCContext.h"
1821 #include "llvm/Support/ELF.h"
1922 #include "llvm/Support/CommandLine.h"
20 #include "HexagonSubtarget.h"
21 #include "HexagonTargetObjectFile.h"
22 #include "HexagonTargetMachine.h"
2323
2424 using namespace llvm;
2525
1414 #define MBLAZE_FRAMEINFO_H
1515
1616 #include "MBlaze.h"
17 #include "MBlazeSubtarget.h"
1817 #include "llvm/Target/TargetFrameLowering.h"
1918
2019 namespace llvm {
21 class MBlazeSubtarget;
20 class MBlazeSubtarget;
2221
2322 class MBlazeFrameLowering : public TargetFrameLowering {
2423 protected:
1414 #ifndef MBlazeISELLOWERING_H
1515 #define MBlazeISELLOWERING_H
1616
17 #include "MBlaze.h"
18 #include "MBlazeSubtarget.h"
1719 #include "llvm/Support/ErrorHandling.h"
1820 #include "llvm/CodeGen/SelectionDAG.h"
1921 #include "llvm/Target/TargetLowering.h"
20 #include "MBlaze.h"
21 #include "MBlazeSubtarget.h"
2222
2323 namespace llvm {
2424 namespace MBlazeCC {
1414 #define MBLAZEINSTRUCTIONINFO_H
1515
1616 #include "MBlaze.h"
17 #include "MBlazeRegisterInfo.h"
1718 #include "llvm/Support/ErrorHandling.h"
1819 #include "llvm/Target/TargetInstrInfo.h"
19 #include "MBlazeRegisterInfo.h"
2020
2121 #define GET_INSTRINFO_HEADER
2222 #include "MBlazeGenInstrInfo.inc"
1313
1414 namespace llvm {
1515 class AsmPrinter;
16 class MCAsmInfo;
1716 class MCContext;
1817 class MCInst;
1918 class MCOperand;
1313
1414 #define DEBUG_TYPE "mblaze-frame-info"
1515
16 #include "MBlazeRegisterInfo.h"
1617 #include "MBlaze.h"
1718 #include "MBlazeSubtarget.h"
18 #include "MBlazeRegisterInfo.h"
1919 #include "MBlazeMachineFunction.h"
2020 #include "llvm/Constants.h"
2121 #include "llvm/Type.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "MBlazeTargetMachine.h"
1314 #include "MBlaze.h"
14 #include "MBlazeTargetMachine.h"
1515 #include "llvm/PassManager.h"
1616 #include "llvm/CodeGen/Passes.h"
1717 #include "llvm/Support/FormattedStream.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "MSP430InstrInfo.h"
1314 #include "MSP430.h"
14 #include "MSP430InstrInfo.h"
1515 #include "MSP430MachineFunctionInfo.h"
1616 #include "MSP430TargetMachine.h"
1717 #include "llvm/Function.h"
1313 #ifndef LLVM_TARGET_MSP430INSTRINFO_H
1414 #define LLVM_TARGET_MSP430INSTRINFO_H
1515
16 #include "MSP430RegisterInfo.h"
1617 #include "llvm/Target/TargetInstrInfo.h"
17 #include "MSP430RegisterInfo.h"
1818
1919 #define GET_INSTRINFO_HEADER
2020 #include "MSP430GenInstrInfo.inc"
1313
1414 namespace llvm {
1515 class AsmPrinter;
16 class MCAsmInfo;
1716 class MCContext;
1817 class MCInst;
1918 class MCOperand;
1212
1313 #define DEBUG_TYPE "msp430-reg-info"
1414
15 #include "MSP430RegisterInfo.h"
1516 #include "MSP430.h"
1617 #include "MSP430MachineFunctionInfo.h"
17 #include "MSP430RegisterInfo.h"
1818 #include "MSP430TargetMachine.h"
1919 #include "llvm/Function.h"
2020 #include "llvm/CodeGen/MachineFrameInfo.h"
1414 #define LLVM_TARGET_MSP430_SUBTARGET_H
1515
1616 #include "llvm/Target/TargetSubtargetInfo.h"
17 #include
1718
1819 #define GET_SUBTARGETINFO_HEADER
1920 #include "MSP430GenSubtargetInfo.inc"
20
21 #include
2221
2322 namespace llvm {
2423 class StringRef;
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "MSP430TargetMachine.h"
1314 #include "MSP430.h"
14 #include "MSP430TargetMachine.h"
1515 #include "llvm/PassManager.h"
1616 #include "llvm/CodeGen/Passes.h"
1717 #include "llvm/MC/MCAsmInfo.h"
2020 namespace llvm {
2121 class MipsTargetMachine;
2222 class FunctionPass;
23 class MachineCodeEmitter;
24 class formatted_raw_ostream;
2523
2624 FunctionPass *createMipsISelDag(MipsTargetMachine &TM);
2725 FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "mips-asm-printer"
15 #include "MipsAsmPrinter.h"
1516 #include "Mips.h"
16 #include "MipsAsmPrinter.h"
1717 #include "MipsInstrInfo.h"
1818 #include "MipsMachineFunction.h"
1919 #include "MipsMCInstLower.h"
2121 namespace llvm {
2222 class MCStreamer;
2323 class MachineInstr;
24 class raw_ostream;
2524 class MachineBasicBlock;
2625 class Module;
26 class raw_ostream;
2727
2828 class LLVM_LIBRARY_VISIBILITY MipsAsmPrinter : public AsmPrinter {
2929
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "MipsFrameLowering.h"
1314 #include "MipsAnalyzeImmediate.h"
14 #include "MipsFrameLowering.h"
1515 #include "MipsInstrInfo.h"
1616 #include "MipsMachineFunction.h"
1717 #include "MCTargetDesc/MipsBaseInfo.h"
1717 #include "MipsTargetMachine.h"
1818 #include "MipsTargetObjectFile.h"
1919 #include "MipsSubtarget.h"
20 #include "InstPrinter/MipsInstPrinter.h"
21 #include "MCTargetDesc/MipsBaseInfo.h"
2022 #include "llvm/DerivedTypes.h"
2123 #include "llvm/Function.h"
2224 #include "llvm/GlobalVariable.h"
2325 #include "llvm/Intrinsics.h"
2426 #include "llvm/CallingConv.h"
25 #include "InstPrinter/MipsInstPrinter.h"
26 #include "MCTargetDesc/MipsBaseInfo.h"
2727 #include "llvm/CodeGen/CallingConvLower.h"
2828 #include "llvm/CodeGen/MachineFrameInfo.h"
2929 #include "llvm/CodeGen/MachineFunction.h"
1414 #ifndef MipsISELLOWERING_H
1515 #define MipsISELLOWERING_H
1616
17 #include "Mips.h"
18 #include "MipsSubtarget.h"
1719 #include "llvm/CodeGen/SelectionDAG.h"
1820 #include "llvm/Target/TargetLowering.h"
19 #include "Mips.h"
20 #include "MipsSubtarget.h"
2121
2222 namespace llvm {
2323 namespace MipsISD {
1414 #define MIPSINSTRUCTIONINFO_H
1515
1616 #include "Mips.h"
17 #include "MipsRegisterInfo.h"
1718 #include "llvm/Support/ErrorHandling.h"
1819 #include "llvm/Target/TargetInstrInfo.h"
19 #include "MipsRegisterInfo.h"
2020
2121 #define GET_INSTRINFO_HEADER
2222 #include "MipsGenInstrInfo.inc"
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "MipsMCInstLower.h"
1415 #include "MipsAsmPrinter.h"
1516 #include "MipsInstrInfo.h"
16 #include "MipsMCInstLower.h"
1717 #include "MCTargetDesc/MipsBaseInfo.h"
1818 #include "llvm/CodeGen/MachineFunction.h"
1919 #include "llvm/CodeGen/MachineInstr.h"
1313 #include "llvm/Support/Compiler.h"
1414
1515 namespace llvm {
16 class MCAsmInfo;
1716 class MCContext;
1817 class MCInst;
1918 class MCOperand;
20 class MCSymbol;
2119 class MachineInstr;
2220 class MachineFunction;
2321 class Mangler;
3735 void LowerCPLOAD(const MachineInstr *MI, SmallVector& MCInsts);
3836 void LowerCPRESTORE(const MachineInstr *MI, SmallVector& MCInsts);
3937 void LowerUnalignedLoadStore(const MachineInstr *MI,
40 SmallVector& MCInsts);
38 SmallVector& MCInsts);
4139 void LowerSETGP01(const MachineInstr *MI, SmallVector& MCInsts);
4240 private:
4341 MCOperand LowerSymbolOperand(const MachineOperand &MO,
1313 #ifndef MIPS_MACHINE_FUNCTION_INFO_H
1414 #define MIPS_MACHINE_FUNCTION_INFO_H
1515
16 #include
1716 #include "llvm/ADT/SmallVector.h"
1817 #include "llvm/CodeGen/MachineFunction.h"
1918 #include "llvm/CodeGen/MachineFrameInfo.h"
19 #include
2020
2121 namespace llvm {
2222
1212
1313 #define DEBUG_TYPE "mips-reg-info"
1414
15 #include "MipsRegisterInfo.h"
1516 #include "Mips.h"
1617 #include "MipsAnalyzeImmediate.h"
1718 #include "MipsSubtarget.h"
18 #include "MipsRegisterInfo.h"
1919 #include "MipsMachineFunction.h"
2020 #include "llvm/Constants.h"
2121 #include "llvm/Type.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "MipsTargetMachine.h"
1314 #include "Mips.h"
14 #include "MipsTargetMachine.h"
1515 #include "llvm/PassManager.h"
1616 #include "llvm/CodeGen/Passes.h"
1717 #include "llvm/Support/TargetRegistry.h"
1313 #ifndef MIPSTARGETMACHINE_H
1414 #define MIPSTARGETMACHINE_H
1515
16 #include "MipsSubtarget.h"
16 #include "MipsFrameLowering.h"
1717 #include "MipsInstrInfo.h"
1818 #include "MipsISelLowering.h"
19 #include "MipsFrameLowering.h"
19 #include "MipsJITInfo.h"
2020 #include "MipsSelectionDAGInfo.h"
21 #include "MipsSubtarget.h"
2122 #include "llvm/Target/TargetMachine.h"
2223 #include "llvm/Target/TargetData.h"
2324 #include "llvm/Target/TargetFrameLowering.h"
24 #include "MipsJITInfo.h"
2525
2626 namespace llvm {
2727 class formatted_raw_ostream;
1616 #ifndef PTXBASEINFO_H
1717 #define PTXBASEINFO_H
1818
19 #include "PTXMCTargetDesc.h"
1920 #include "llvm/Support/ErrorHandling.h"
2021 #include "llvm/Support/raw_ostream.h"
21 #include "PTXMCTargetDesc.h"
2222
2323 namespace llvm {
2424 namespace PTXStateSpace {
None //===-- PTX.h - Top-level interface for PTX representation ------*- C++ -*-===//
1 //
21 // The LLVM Compiler Infrastructure
32 //
1313
1414 #define DEBUG_TYPE "ptx-asm-printer"
1515
16 #include "PTXAsmPrinter.h"
1617 #include "PTX.h"
17 #include "PTXAsmPrinter.h"
1818 #include "PTXMachineFunctionInfo.h"
1919 #include "PTXParamManager.h"
2020 #include "PTXRegisterInfo.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "PTXISelLowering.h"
1314 #include "PTX.h"
14 #include "PTXISelLowering.h"
1515 #include "PTXMachineFunctionInfo.h"
1616 #include "PTXRegisterInfo.h"
1717 #include "PTXSubtarget.h"
1717 #include "llvm/Target/TargetLowering.h"
1818
1919 namespace llvm {
20 class PTXSubtarget;
21 class PTXTargetMachine;
2220
2321 namespace PTXISD {
2422 enum NodeType {
1212
1313 #define DEBUG_TYPE "ptx-instrinfo"
1414
15 #include "PTXInstrInfo.h"
1516 #include "PTX.h"
16 #include "PTXInstrInfo.h"
1717 #include "llvm/CodeGen/MachineInstrBuilder.h"
1818 #include "llvm/CodeGen/MachineRegisterInfo.h"
1919 #include "llvm/CodeGen/SelectionDAG.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "PTXParamManager.h"
1314 #include "PTX.h"
14 #include "PTXParamManager.h"
1515 #include "llvm/ADT/StringExtras.h"
1616
1717 using namespace llvm;
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "PTXRegisterInfo.h"
1314 #include "PTX.h"
14 #include "PTXRegisterInfo.h"
1515 #include "llvm/CodeGen/MachineFunction.h"
1616 #include "llvm/CodeGen/MachineInstrBuilder.h"
1717 #include "llvm/CodeGen/MachineRegisterInfo.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "PTXTargetMachine.h"
1314 #include "PTX.h"
14 #include "PTXTargetMachine.h"
1515 #include "llvm/PassManager.h"
1616 #include "llvm/Analysis/Passes.h"
1717 #include "llvm/Analysis/Verifier.h"
2525 #include "llvm/MC/MCInstrInfo.h"
2626 #include "llvm/MC/MCStreamer.h"
2727 #include "llvm/MC/MCSubtargetInfo.h"
28 #include "llvm/Support/Debug.h"
2829 #include "llvm/Support/TargetRegistry.h"
2930 #include "llvm/Support/raw_ostream.h"
3031 #include "llvm/Target/TargetData.h"
3637 #include "llvm/Target/TargetRegisterInfo.h"
3738 #include "llvm/Target/TargetSubtargetInfo.h"
3839 #include "llvm/Transforms/Scalar.h"
39 #include "llvm/Support/Debug.h"
40 #include "llvm/Support/TargetRegistry.h"
4140
4241
4342 using namespace llvm;
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "llvm/MC/MCAsmBackend.h"
109 #include "MCTargetDesc/PPCMCTargetDesc.h"
1110 #include "MCTargetDesc/PPCFixupKinds.h"
11 #include "llvm/MC/MCAsmBackend.h"
1212 #include "llvm/MC/MCELFObjectWriter.h"
1313 #include "llvm/MC/MCMachObjectWriter.h"
1414 #include "llvm/MC/MCSectionMachO.h"
2424 namespace llvm {
2525 class PPCTargetMachine;
2626 class FunctionPass;
27 class formatted_raw_ostream;
2827 class JITCodeEmitter;
29 class Target;
3028 class MachineInstr;
3129 class AsmPrinter;
3230 class MCInst;
33 class TargetMachine;
34
31
3532 FunctionPass *createPPCBranchSelectionPass();
3633 FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
3734 FunctionPass *createPPCJITCodeEmitterPass(PPCTargetMachine &TM,
1919 #include "PPC.h"
2020 #include "PPCTargetMachine.h"
2121 #include "PPCSubtarget.h"
22 #include "InstPrinter/PPCInstPrinter.h"
2223 #include "MCTargetDesc/PPCPredicates.h"
2324 #include "llvm/Analysis/DebugInfo.h"
2425 #include "llvm/Constants.h"
5253 #include "llvm/Support/ELF.h"
5354 #include "llvm/ADT/StringExtras.h"
5455 #include "llvm/ADT/SmallString.h"
55 #include "InstPrinter/PPCInstPrinter.h"
5656 using namespace llvm;
5757
5858 namespace {
1313 #ifndef PPCHAZRECS_H
1414 #define PPCHAZRECS_H
1515
16 #include "PPCInstrInfo.h"
1617 #include "llvm/CodeGen/ScheduleHazardRecognizer.h"
1718 #include "llvm/CodeGen/ScoreboardHazardRecognizer.h"
1819 #include "llvm/CodeGen/SelectionDAGNodes.h"
19 #include "PPCInstrInfo.h"
2020
2121 namespace llvm {
2222
1515 #include "PPCPerfectShuffle.h"
1616 #include "PPCTargetMachine.h"
1717 #include "MCTargetDesc/PPCPredicates.h"
18 #include "llvm/CallingConv.h"
19 #include "llvm/Constants.h"
20 #include "llvm/DerivedTypes.h"
21 #include "llvm/Function.h"
22 #include "llvm/Intrinsics.h"
1823 #include "llvm/ADT/STLExtras.h"
1924 #include "llvm/CodeGen/CallingConvLower.h"
2025 #include "llvm/CodeGen/MachineFrameInfo.h"
2328 #include "llvm/CodeGen/MachineRegisterInfo.h"
2429 #include "llvm/CodeGen/SelectionDAG.h"
2530 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
26 #include "llvm/CallingConv.h"
27 #include "llvm/Constants.h"
28 #include "llvm/Function.h"
29 #include "llvm/Intrinsics.h"
30 #include "llvm/Support/MathExtras.h"
31 #include "llvm/Target/TargetOptions.h"
3231 #include "llvm/Support/CommandLine.h"
3332 #include "llvm/Support/ErrorHandling.h"
33 #include "llvm/Support/MathExtras.h"
3434 #include "llvm/Support/raw_ostream.h"
35 #include "llvm/DerivedTypes.h"
35 #include "llvm/Target/TargetOptions.h"
3636 using namespace llvm;
3737
3838 static bool CC_PPC_SVR4_Custom_Dummy(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
1414 #ifndef LLVM_TARGET_POWERPC_PPC32ISELLOWERING_H
1515 #define LLVM_TARGET_POWERPC_PPC32ISELLOWERING_H
1616
17 #include "PPC.h"
18 #include "PPCSubtarget.h"
1719 #include "llvm/Target/TargetLowering.h"
1820 #include "llvm/CodeGen/SelectionDAG.h"
19 #include "PPC.h"
20 #include "PPCSubtarget.h"
2121
2222 namespace llvm {
2323 namespace PPCISD {
1414 #define POWERPC_INSTRUCTIONINFO_H
1515
1616 #include "PPC.h"
17 #include "PPCRegisterInfo.h"
1718 #include "llvm/Target/TargetInstrInfo.h"
18 #include "PPCRegisterInfo.h"
1919
2020 #define GET_INSTRINFO_HEADER
2121 #include "PPCGenInstrInfo.inc"
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "reginfo"
15 #include "PPCRegisterInfo.h"
1516 #include "PPC.h"
1617 #include "PPCInstrBuilder.h"
1718 #include "PPCMachineFunctionInfo.h"
18 #include "PPCRegisterInfo.h"
1919 #include "PPCFrameLowering.h"
2020 #include "PPCSubtarget.h"
2121 #include "llvm/CallingConv.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "PPCTargetMachine.h"
1314 #include "PPC.h"
14 #include "PPCTargetMachine.h"
1515 #include "llvm/PassManager.h"
1616 #include "llvm/MC/MCStreamer.h"
1717 #include "llvm/CodeGen/Passes.h"
2323 #include "llvm/Target/TargetData.h"
2424
2525 namespace llvm {
26 class PassManager;
27 class GlobalValue;
2826
2927 /// PPCTargetMachine - Common code between 32-bit and 64-bit PowerPC targets.
3028 ///
1414 #ifndef SPARC_ISELLOWERING_H
1515 #define SPARC_ISELLOWERING_H
1616
17 #include "Sparc.h"
1718 #include "llvm/Target/TargetLowering.h"
18 #include "Sparc.h"
1919
2020 namespace llvm {
2121 namespace SPISD {
1313 #ifndef SPARCINSTRUCTIONINFO_H
1414 #define SPARCINSTRUCTIONINFO_H
1515
16 #include "SparcRegisterInfo.h"
1617 #include "llvm/Target/TargetInstrInfo.h"
17 #include "SparcRegisterInfo.h"
1818
1919 #define GET_INSTRINFO_HEADER
2020 #include "SparcGenInstrInfo.inc"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "SparcRegisterInfo.h"
1314 #include "Sparc.h"
14 #include "SparcRegisterInfo.h"
1515 #include "SparcSubtarget.h"
16 #include "llvm/Type.h"
1617 #include "llvm/CodeGen/MachineInstrBuilder.h"
1718 #include "llvm/CodeGen/MachineFunction.h"
1819 #include "llvm/CodeGen/MachineFrameInfo.h"
1920 #include "llvm/Support/ErrorHandling.h"
2021 #include "llvm/Target/TargetInstrInfo.h"
21 #include "llvm/Type.h"
2222 #include "llvm/ADT/BitVector.h"
2323 #include "llvm/ADT/STLExtras.h"
2424
99 //
1010 //===----------------------------------------------------------------------===//
1111
12 #include "SparcTargetMachine.h"
1213 #include "Sparc.h"
13 #include "SparcTargetMachine.h"
1414 #include "llvm/PassManager.h"
1515 #include "llvm/CodeGen/Passes.h"
1616 #include "llvm/Support/TargetRegistry.h"
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "llvm/MC/MCAsmBackend.h"
109 #include "MCTargetDesc/X86BaseInfo.h"
1110 #include "MCTargetDesc/X86FixupKinds.h"
1211 #include "llvm/ADT/Twine.h"
12 #include "llvm/MC/MCAsmBackend.h"
1313 #include "llvm/MC/MCAssembler.h"
1414 #include "llvm/MC/MCELFObjectWriter.h"
1515 #include "llvm/MC/MCExpr.h"
2323
2424 class FunctionPass;
2525 class JITCodeEmitter;
26 class MachineCodeEmitter;
27 class Target;
2826 class X86TargetMachine;
2927
3028 /// createX86ISelDag - This pass converts a legalized DAG into a
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "X86AsmPrinter.h"
15 #include "InstPrinter/X86ATTInstPrinter.h"
16 #include "InstPrinter/X86IntelInstPrinter.h"
1715 #include "X86MCInstLower.h"
1816 #include "X86.h"
1917 #include "X86COFFMachineModuleInfo.h"
2018 #include "X86MachineFunctionInfo.h"
2119 #include "X86TargetMachine.h"
20 #include "InstPrinter/X86ATTInstPrinter.h"
21 #include "InstPrinter/X86IntelInstPrinter.h"
2222 #include "llvm/CallingConv.h"
2323 #include "llvm/DerivedTypes.h"
2424 #include "llvm/Module.h"
2323
2424 namespace llvm {
2525
26 class MachineJumpTableInfo;
27 class MCContext;
28 class MCInst;
2926 class MCStreamer;
30 class MCSymbol;
3127
3228 class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
3329 const X86Subtarget *Subtarget;
1313 #ifndef X86COFF_MACHINEMODULEINFO_H
1414 #define X86COFF_MACHINEMODULEINFO_H
1515
16 #include "X86MachineFunctionInfo.h"
1617 #include "llvm/CodeGen/MachineModuleInfo.h"
1718 #include "llvm/ADT/DenseSet.h"
18 #include "X86MachineFunctionInfo.h"
1919
2020 namespace llvm {
2121 class X86MachineFunctionInfo;
2525 #define DEBUG_TYPE "x86-codegen"
2626 #include "X86.h"
2727 #include "X86InstrInfo.h"
28 #include "llvm/InlineAsm.h"
2829 #include "llvm/ADT/DepthFirstIterator.h"
2930 #include "llvm/ADT/DenseMap.h"
3031 #include "llvm/ADT/SmallPtrSet.h"
3637 #include "llvm/CodeGen/MachineInstrBuilder.h"
3738 #include "llvm/CodeGen/MachineRegisterInfo.h"
3839 #include "llvm/CodeGen/Passes.h"
39 #include "llvm/InlineAsm.h"
4040 #include "llvm/Support/Debug.h"
4141 #include "llvm/Support/ErrorHandling.h"
4242 #include "llvm/Support/raw_ostream.h"
2020 #include "X86TargetMachine.h"
2121 #include "llvm/Instructions.h"
2222 #include "llvm/Intrinsics.h"
23 #include "llvm/Support/CFG.h"
2423 #include "llvm/Type.h"
2524 #include "llvm/CodeGen/FunctionLoweringInfo.h"
2625 #include "llvm/CodeGen/MachineConstantPool.h"
3130 #include "llvm/CodeGen/SelectionDAGISel.h"
3231 #include "llvm/Target/TargetMachine.h"
3332 #include "llvm/Target/TargetOptions.h"
33 #include "llvm/Support/CFG.h"
3434 #include "llvm/Support/Debug.h"
3535 #include "llvm/Support/ErrorHandling.h"
3636 #include "llvm/Support/MathExtras.h"
2424 #include "llvm/CodeGen/MachineInstrBuilder.h"
2525 #include "llvm/CodeGen/MachineRegisterInfo.h"
2626 #include "llvm/CodeGen/LiveVariables.h"
27 #include "llvm/MC/MCAsmInfo.h"
2728 #include "llvm/MC/MCInst.h"
2829 #include "llvm/Support/CommandLine.h"
2930 #include "llvm/Support/Debug.h"
3031 #include "llvm/Support/ErrorHandling.h"
3132 #include "llvm/Support/raw_ostream.h"
3233 #include "llvm/Target/TargetOptions.h"
33 #include "llvm/MC/MCAsmInfo.h"
3434 #include
3535
3636 #define GET_INSTRINFO_CTOR
1313 #ifndef X86INSTRUCTIONINFO_H
1414 #define X86INSTRUCTIONINFO_H
1515
16 #include "llvm/Target/TargetInstrInfo.h"
1716 #include "X86.h"
1817 #include "X86RegisterInfo.h"
1918 #include "llvm/ADT/DenseMap.h"
19 #include "llvm/Target/TargetInstrInfo.h"
2020
2121 #define GET_INSTRINFO_HEADER
2222 #include "X86GenInstrInfo.inc"
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "InstPrinter/X86ATTInstPrinter.h"
1514 #include "X86MCInstLower.h"
1615 #include "X86AsmPrinter.h"
1716 #include "X86COFFMachineModuleInfo.h"
17 #include "InstPrinter/X86ATTInstPrinter.h"
18 #include "llvm/Type.h"
1819 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
1920 #include "llvm/MC/MCAsmInfo.h"
2021 #include "llvm/MC/MCContext.h"
2526 #include "llvm/Target/Mangler.h"
2627 #include "llvm/Support/FormattedStream.h"
2728 #include "llvm/ADT/SmallString.h"
28 #include "llvm/Type.h"
2929 using namespace llvm;
3030
3131 X86MCInstLower::X86MCInstLower(Mangler *mang, const MachineFunction &mf,
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #include "X86RegisterInfo.h"
1516 #include "X86.h"
16 #include "X86RegisterInfo.h"
1717 #include "X86InstrBuilder.h"
1818 #include "X86MachineFunctionInfo.h"
1919 #include "X86Subtarget.h"
1313 #ifndef X86SUBTARGET_H
1414 #define X86SUBTARGET_H
1515
16 #include "llvm/CallingConv.h"
1617 #include "llvm/ADT/Triple.h"
1718 #include "llvm/Target/TargetSubtargetInfo.h"
18 #include "llvm/CallingConv.h"
1919 #include
2020
2121 #define GET_SUBTARGETINFO_HEADER
2727
2828 namespace llvm {
2929
30 class formatted_raw_ostream;
3130 class StringRef;
3231
3332 class X86TargetMachine : public LLVMTargetMachine {
1414 #include "llvm/Target/TargetLoweringObjectFile.h"
1515
1616 namespace llvm {
17 class X86TargetMachine;
1817
1918 /// X8664_MachoTargetObjectFile - This TLOF implementation is used for Darwin
2019 /// x86-64.
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "XCoreFrameLowering.h"
1415 #include "XCore.h"
15 #include "XCoreFrameLowering.h"
1616 #include "XCoreInstrInfo.h"
1717 #include "XCoreMachineFunctionInfo.h"
1818 #include "llvm/Function.h"
1414 #ifndef XCOREISELLOWERING_H
1515 #define XCOREISELLOWERING_H
1616
17 #include "XCore.h"
1718 #include "llvm/CodeGen/SelectionDAG.h"
1819 #include "llvm/Target/TargetLowering.h"
19 #include "XCore.h"
2020
2121 namespace llvm {
2222
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "XCoreInstrInfo.h"
1314 #include "XCoreMachineFunctionInfo.h"
14 #include "XCoreInstrInfo.h"
1515 #include "XCore.h"
1616 #include "llvm/MC/MCContext.h"
1717 #include "llvm/CodeGen/MachineInstrBuilder.h"
1313 #ifndef XCOREINSTRUCTIONINFO_H
1414 #define XCOREINSTRUCTIONINFO_H
1515
16 #include "XCoreRegisterInfo.h"
1617 #include "llvm/Target/TargetInstrInfo.h"
17 #include "XCoreRegisterInfo.h"
1818
1919 #define GET_INSTRINFO_HEADER
2020 #include "XCoreGenInstrInfo.inc"
1313 #include "XCoreRegisterInfo.h"
1414 #include "XCoreMachineFunctionInfo.h"
1515 #include "XCore.h"
16 #include "llvm/Type.h"
17 #include "llvm/Function.h"
1618 #include "llvm/CodeGen/MachineInstrBuilder.h"
1719 #include "llvm/CodeGen/MachineFunction.h"
1820 #include "llvm/CodeGen/MachineFrameInfo.h"
2325 #include "llvm/Target/TargetMachine.h"
2426 #include "llvm/Target/TargetOptions.h"
2527 #include "llvm/Target/TargetInstrInfo.h"
26 #include "llvm/Type.h"
27 #include "llvm/Function.h"
2828 #include "llvm/ADT/BitVector.h"
2929 #include "llvm/ADT/STLExtras.h"
3030 #include "llvm/Support/Debug.h"
1313 #ifndef XCORETARGETMACHINE_H
1414 #define XCORETARGETMACHINE_H
1515
16 #include "llvm/Target/TargetMachine.h"
17 #include "llvm/Target/TargetData.h"
1816 #include "XCoreFrameLowering.h"
1917 #include "XCoreSubtarget.h"
2018 #include "XCoreInstrInfo.h"
2119 #include "XCoreISelLowering.h"
2220 #include "XCoreSelectionDAGInfo.h"
21 #include "llvm/Target/TargetMachine.h"
22 #include "llvm/Target/TargetData.h"
2323
2424 namespace llvm {
2525