llvm.org GIT mirror llvm / ac732eb
Prune includes in ARM target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204548 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 6 years ago
32 changed file(s) with 25 addition(s) and 55 deletion(s). Raw diff Collapse all Expand all
2626 #define DEBUG_TYPE "a15-sd-optimizer"
2727 #include "ARM.h"
2828 #include "ARMBaseInstrInfo.h"
29 #include "ARMISelLowering.h"
30 #include "ARMSubtarget.h"
31 #include "ARMTargetMachine.h"
32 #include "llvm/ADT/SmallPtrSet.h"
29 #include "ARMBaseRegisterInfo.h"
3330 #include "llvm/ADT/Statistic.h"
3431 #include "llvm/CodeGen/MachineFunctionPass.h"
3532 #include "llvm/CodeGen/MachineInstr.h"
3633 #include "llvm/CodeGen/MachineInstrBuilder.h"
3734 #include "llvm/CodeGen/MachineRegisterInfo.h"
38 #include "llvm/Support/CommandLine.h"
3935 #include "llvm/Support/Debug.h"
40 #include "llvm/Support/raw_ostream.h"
4136 #include "llvm/Target/TargetRegisterInfo.h"
4237 #include
4338
1414 #ifndef TARGET_ARM_H
1515 #define TARGET_ARM_H
1616
17 #include "MCTargetDesc/ARMBaseInfo.h"
18 #include "MCTargetDesc/ARMMCTargetDesc.h"
19 #include "llvm/Support/DataTypes.h"
20 #include "llvm/Target/TargetMachine.h"
17 #include "llvm/Support/CodeGen.h"
2118
2219 namespace llvm {
2320
2421 class ARMAsmPrinter;
2522 class ARMBaseTargetMachine;
2623 class FunctionPass;
24 class ImmutablePass;
2725 class JITCodeEmitter;
2826 class MachineInstr;
2927 class MCInst;
28 class TargetLowering;
3029
3130 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
3231 CodeGenOpt::Level OptLevel);
99 #ifndef ARMASMPRINTER_H
1010 #define ARMASMPRINTER_H
1111
12 #include "ARM.h"
13 #include "ARMTargetMachine.h"
12 #include "ARMSubtarget.h"
1413 #include "llvm/CodeGen/AsmPrinter.h"
15 #include "llvm/Support/Compiler.h"
14 #include "llvm/Target/TargetMachine.h"
1615
1716 namespace llvm {
1817
18 class ARMFunctionInfo;
1919 class MCOperand;
20 class MachineConstantPool;
21 class MachineOperand;
2022
2123 namespace ARM {
2224 enum DW_ISA {
1313 #ifndef ARMBASEINSTRUCTIONINFO_H
1414 #define ARMBASEINSTRUCTIONINFO_H
1515
16 #include "ARM.h"
16 #include "MCTargetDesc/ARMBaseInfo.h"
1717 #include "llvm/ADT/DenseMap.h"
1818 #include "llvm/ADT/SmallSet.h"
1919 #include "llvm/CodeGen/MachineInstrBuilder.h"
1313 #ifndef ARMBASEREGISTERINFO_H
1414 #define ARMBASEREGISTERINFO_H
1515
16 #include "ARM.h"
16 #include "MCTargetDesc/ARMBaseInfo.h"
1717 #include "llvm/Target/TargetRegisterInfo.h"
1818
1919 #define GET_REGINFO_HEADER
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "ARM.h"
16 #include "ARMBaseInstrInfo.h"
16 #include "ARMBaseRegisterInfo.h"
1717 #include "ARMCallingConv.h"
1818 #include "ARMConstantPoolValue.h"
19 #include "ARMISelLowering.h"
20 #include "ARMMachineFunctionInfo.h"
1921 #include "ARMSubtarget.h"
20 #include "ARMTargetMachine.h"
2122 #include "MCTargetDesc/ARMAddressingModes.h"
2223 #include "llvm/ADT/STLExtras.h"
2324 #include "llvm/CodeGen/Analysis.h"
1313 #ifndef TARGET_ARM_FEATURES_H
1414 #define TARGET_ARM_FEATURES_H
1515
16 #include "ARM.h"
16 #include "MCTargetDesc/ARMMCTargetDesc.h"
1717
1818 template // could be MachineInstr or MCInst
1919 bool IsCPSRDead(InstrType *Instr);
1313 #ifndef ARM_FRAMEINFO_H
1414 #define ARM_FRAMEINFO_H
1515
16 #include "ARM.h"
1716 #include "ARMSubtarget.h"
1817 #include "llvm/Target/TargetFrameLowering.h"
1918
3131 #include "llvm/Support/Compiler.h"
3232 #include "llvm/Support/Debug.h"
3333 #include "llvm/Support/ErrorHandling.h"
34 #include "llvm/Support/raw_ostream.h"
3534 #include "llvm/Target/TargetLowering.h"
3635 #include "llvm/Target/TargetOptions.h"
3736
1313
1414 #define DEBUG_TYPE "arm-isel"
1515 #include "ARMISelLowering.h"
16 #include "ARM.h"
1716 #include "ARMCallingConv.h"
1817 #include "ARMConstantPoolValue.h"
1918 #include "ARMMachineFunctionInfo.h"
4544 #include "llvm/Support/CommandLine.h"
4645 #include "llvm/Support/ErrorHandling.h"
4746 #include "llvm/Support/MathExtras.h"
48 #include "llvm/Support/raw_ostream.h"
4947 #include "llvm/Target/TargetOptions.h"
5048 #include
5149 using namespace llvm;
1414 #ifndef ARMISELLOWERING_H
1515 #define ARMISELLOWERING_H
1616
17 #include "ARM.h"
18 #include "ARMSubtarget.h"
17 #include "MCTargetDesc/ARMBaseInfo.h"
1918 #include "llvm/CodeGen/CallingConvLower.h"
20 #include "llvm/CodeGen/FastISel.h"
2119 #include "llvm/CodeGen/SelectionDAG.h"
2220 #include "llvm/Target/TargetLowering.h"
23 #include "llvm/Target/TargetRegisterInfo.h"
2421 #include
2522
2623 namespace llvm {
2724 class ARMConstantPoolValue;
25 class ARMSubtarget;
2826
2927 namespace ARMISD {
3028 // ARM Specific DAG Nodes
1313 #ifndef ARMINSTRUCTIONINFO_H
1414 #define ARMINSTRUCTIONINFO_H
1515
16 #include "ARM.h"
1716 #include "ARMBaseInstrInfo.h"
1817 #include "ARMRegisterInfo.h"
19 #include "ARMSubtarget.h"
2018
2119 namespace llvm {
2220 class ARMSubtarget;
1212
1313 #define DEBUG_TYPE "jit"
1414 #include "ARMJITInfo.h"
15 #include "ARM.h"
1615 #include "ARMConstantPoolValue.h"
1716 #include "ARMRelocations.h"
18 #include "ARMSubtarget.h"
17 #include "MCTargetDesc/ARMBaseInfo.h"
1918 #include "llvm/CodeGen/JITCodeEmitter.h"
2019 #include "llvm/IR/Function.h"
2120 #include "llvm/Support/Debug.h"
1616 #include "ARMBaseInstrInfo.h"
1717 #include "ARMBaseRegisterInfo.h"
1818 #include "ARMMachineFunctionInfo.h"
19 #include "ARMSubtarget.h"
1920 #include "MCTargetDesc/ARMAddressingModes.h"
2021 #include "llvm/ADT/DenseMap.h"
2122 #include "llvm/ADT/STLExtras.h"
3536 #include "llvm/IR/Function.h"
3637 #include "llvm/Support/Debug.h"
3738 #include "llvm/Support/ErrorHandling.h"
38 #include "llvm/Support/raw_ostream.h"
3939 #include "llvm/Target/TargetInstrInfo.h"
4040 #include "llvm/Target/TargetMachine.h"
4141 #include "llvm/Target/TargetRegisterInfo.h"
1313
1414 #include "ARM.h"
1515 #include "ARMAsmPrinter.h"
16 #include "MCTargetDesc/ARMBaseInfo.h"
1617 #include "MCTargetDesc/ARMMCExpr.h"
1718 #include "llvm/CodeGen/MachineBasicBlock.h"
1819 #include "llvm/IR/Constants.h"
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "ARMRegisterInfo.h"
14 #include "ARM.h"
15 #include "ARMBaseInstrInfo.h"
1614 using namespace llvm;
1715
1816 void ARMRegisterInfo::anchor() { }
1313 #ifndef ARMREGISTERINFO_H
1414 #define ARMREGISTERINFO_H
1515
16 #include "ARM.h"
1716 #include "ARMBaseRegisterInfo.h"
18 #include "llvm/Target/TargetRegisterInfo.h"
1917
2018 namespace llvm {
2119
99 //
1010 //===----------------------------------------------------------------------===//
1111
12 #include "ARM.h"
1213 #include "ARMTargetMachine.h"
13 #include "ARM.h"
1414 #include "ARMFrameLowering.h"
1515 #include "llvm/CodeGen/Passes.h"
1616 #include "llvm/MC/MCAsmInfo.h"
1212 #include "MCTargetDesc/ARMArchName.h"
1313 #include "MCTargetDesc/ARMBaseInfo.h"
1414 #include "MCTargetDesc/ARMMCExpr.h"
15 #include "llvm/ADT/BitVector.h"
16 #include "llvm/ADT/MapVector.h"
1715 #include "llvm/ADT/OwningPtr.h"
1816 #include "llvm/ADT/STLExtras.h"
1917 #include "llvm/ADT/SmallVector.h"
1616 #include "ARMFPUName.h"
1717 #include "ARMRegisterInfo.h"
1818 #include "ARMUnwindOpAsm.h"
19 #include "llvm/ADT/SmallPtrSet.h"
2019 #include "llvm/ADT/StringExtras.h"
2120 #include "llvm/ADT/Twine.h"
2221 #include "llvm/MC/MCAsmBackend.h"
1515 #define ARM_UNWIND_OP_ASM_H
1616
1717 #include "llvm/ADT/SmallVector.h"
18 #include "llvm/ADT/StringRef.h"
1918 #include "llvm/Support/ARMEHABI.h"
2019 #include "llvm/Support/DataTypes.h"
2120
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "ARM.h"
9 #include "MCTargetDesc/ARMMCTargetDesc.h"
1010 #include "llvm/IR/Module.h"
1111 #include "llvm/Support/TargetRegistry.h"
1212 using namespace llvm;
1313 #ifndef __THUMB_FRAMEINFO_H_
1414 #define __THUMB_FRAMEINFO_H_
1515
16 #include "ARM.h"
1716 #include "ARMFrameLowering.h"
1817 #include "ARMSubtarget.h"
1918 #include "Thumb1InstrInfo.h"
2120 #include "llvm/Target/TargetFrameLowering.h"
2221
2322 namespace llvm {
24 class ARMSubtarget;
2523
2624 class Thumb1FrameLowering : public ARMFrameLowering {
2725 public:
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "Thumb1InstrInfo.h"
14 #include "ARM.h"
1514 #include "llvm/CodeGen/MachineFrameInfo.h"
1615 #include "llvm/CodeGen/MachineInstrBuilder.h"
1716 #include "llvm/CodeGen/MachineMemOperand.h"
1313 #ifndef THUMB1INSTRUCTIONINFO_H
1414 #define THUMB1INSTRUCTIONINFO_H
1515
16 #include "ARM.h"
1716 #include "ARMBaseInstrInfo.h"
1817 #include "Thumb1RegisterInfo.h"
1918
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "Thumb1RegisterInfo.h"
15 #include "ARM.h"
1615 #include "ARMBaseInstrInfo.h"
1716 #include "ARMMachineFunctionInfo.h"
1817 #include "ARMSubtarget.h"
2928 #include "llvm/IR/LLVMContext.h"
3029 #include "llvm/Support/CommandLine.h"
3130 #include "llvm/Support/ErrorHandling.h"
32 #include "llvm/Support/raw_ostream.h"
3331 #include "llvm/Target/TargetFrameLowering.h"
3432 #include "llvm/Target/TargetMachine.h"
3533
1414 #ifndef THUMB1REGISTERINFO_H
1515 #define THUMB1REGISTERINFO_H
1616
17 #include "ARM.h"
1817 #include "ARMBaseRegisterInfo.h"
1918 #include "llvm/Target/TargetRegisterInfo.h"
2019
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "Thumb2InstrInfo.h"
14 #include "ARM.h"
1514 #include "ARMConstantPoolValue.h"
1615 #include "ARMMachineFunctionInfo.h"
1716 #include "MCTargetDesc/ARMAddressingModes.h"
1313 #ifndef THUMB2INSTRUCTIONINFO_H
1414 #define THUMB2INSTRUCTIONINFO_H
1515
16 #include "ARM.h"
1716 #include "ARMBaseInstrInfo.h"
1817 #include "Thumb2RegisterInfo.h"
1918
1313
1414 #include "Thumb2RegisterInfo.h"
1515 #include "ARM.h"
16 #include "ARMBaseInstrInfo.h"
1716 #include "ARMSubtarget.h"
1817 #include "llvm/CodeGen/MachineConstantPool.h"
1918 #include "llvm/CodeGen/MachineFunction.h"
2120 #include "llvm/IR/Constants.h"
2221 #include "llvm/IR/DerivedTypes.h"
2322 #include "llvm/IR/Function.h"
23 #include "llvm/Target/TargetInstrInfo.h"
24 #include "llvm/Target/TargetMachine.h"
2425 using namespace llvm;
2526
2627 Thumb2RegisterInfo::Thumb2RegisterInfo(const ARMSubtarget &sti)
1414 #ifndef THUMB2REGISTERINFO_H
1515 #define THUMB2REGISTERINFO_H
1616
17 #include "ARM.h"
1817 #include "ARMBaseRegisterInfo.h"
19 #include "llvm/Target/TargetRegisterInfo.h"
2018
2119 namespace llvm {
2220
99 #define DEBUG_TYPE "t2-reduce-size"
1010 #include "ARM.h"
1111 #include "ARMBaseInstrInfo.h"
12 #include "ARMBaseRegisterInfo.h"
1312 #include "ARMSubtarget.h"
1413 #include "MCTargetDesc/ARMAddressingModes.h"
1514 #include "Thumb2InstrInfo.h"
2221 #include "llvm/IR/Function.h" // To access Function attributes
2322 #include "llvm/Support/CommandLine.h"
2423 #include "llvm/Support/Debug.h"
25 #include "llvm/Support/raw_ostream.h"
24 #include "llvm/Target/TargetMachine.h"
2625 using namespace llvm;
2726
2827 STATISTIC(NumNarrows, "Number of 32-bit instrs reduced to 16-bit ones");