llvm.org GIT mirror llvm / 792a1d7
Replace '#include ValueTypes.h' with forward declarations. In some cases the include is pushed "downstream" (or removed if unused). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203644 91177308-0d34-0410-b5e6-96231b3b80d8 Patrik Hagglund 6 years ago
15 changed file(s) with 18 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
1616 #include "llvm/ADT/ArrayRef.h"
1717 #include "llvm/ADT/SmallVector.h"
1818 #include "llvm/CodeGen/ISDOpcodes.h"
19 #include "llvm/CodeGen/ValueTypes.h"
2019 #include "llvm/IR/CallSite.h"
2120 #include "llvm/IR/InlineAsm.h"
2221 #include "llvm/IR/Instructions.h"
2322
2423 namespace llvm {
25
2624 class GlobalVariable;
27 class TargetLowering;
2825 class TargetLoweringBase;
2926 class SDNode;
3027 class SDValue;
3128 class SelectionDAG;
29 class TargetLowering;
30 struct EVT;
3231
3332 /// ComputeLinearIndex - Given an LLVM IR aggregate type and a sequence
3433 /// of insertvalue or extractvalue indices that identify a member, return
1717 #include "llvm/ADT/SmallVector.h"
1818 #include "llvm/CodeGen/MachineFrameInfo.h"
1919 #include "llvm/CodeGen/MachineFunction.h"
20 #include "llvm/CodeGen/ValueTypes.h"
2120 #include "llvm/IR/CallingConv.h"
2221 #include "llvm/Target/TargetCallingConv.h"
2322
2423 namespace llvm {
25 class TargetRegisterInfo;
26 class TargetMachine;
27 class CCState;
24 class CCState;
25 class MVT;
26 class TargetMachine;
27 class TargetRegisterInfo;
2828
2929 /// CCValAssign - Represent assignment of one arg/retval to a location.
3030 class CCValAssign {
1616
1717 #include "llvm/ADT/DenseMap.h"
1818 #include "llvm/CodeGen/MachineBasicBlock.h"
19 #include "llvm/CodeGen/ValueTypes.h"
2019
2120 namespace llvm {
2221
2322 class AllocaInst;
2423 class Constant;
2524 class ConstantFP;
25 class DataLayout;
2626 class FunctionLoweringInfo;
2727 class Instruction;
2828 class LoadInst;
29 class MVT;
2930 class MachineConstantPool;
31 class MachineFrameInfo;
3032 class MachineFunction;
3133 class MachineInstr;
32 class MachineFrameInfo;
3334 class MachineRegisterInfo;
34 class DataLayout;
3535 class TargetInstrInfo;
3636 class TargetLibraryInfo;
3737 class TargetLowering;
2020 #include "llvm/ADT/SmallPtrSet.h"
2121 #include "llvm/ADT/SmallVector.h"
2222 #include "llvm/CodeGen/MachineBasicBlock.h"
23 #include "llvm/CodeGen/ValueTypes.h"
2423 #include "llvm/IR/InlineAsm.h"
2524 #include "llvm/IR/Instructions.h"
2625 #include "llvm/Target/TargetRegisterInfo.h"
4140 class MachineModuleInfo;
4241 class MachineRegisterInfo;
4342 class SelectionDAG;
43 class MVT;
4444 class TargetLowering;
4545 class Value;
4646
1313 #ifndef LLVM_TARGET_TARGETCALLINGCONV_H
1414 #define LLVM_TARGET_TARGETCALLINGCONV_H
1515
16 #include "llvm/CodeGen/ValueTypes.h"
1617 #include "llvm/Support/DataTypes.h"
1718 #include "llvm/Support/MathExtras.h"
1819 #include
1717 #include "llvm/ADT/DenseMap.h"
1818 #include "llvm/CodeGen/SelectionDAG.h"
1919 #include "llvm/CodeGen/SelectionDAGNodes.h"
20 #include "llvm/CodeGen/ValueTypes.h"
2120 #include "llvm/IR/CallSite.h"
2221 #include "llvm/IR/Constants.h"
2322 #include "llvm/Support/ErrorHandling.h"
5655 class MachineInstr;
5756 class MachineRegisterInfo;
5857 class MDNode;
58 class MVT;
5959 class PHINode;
6060 class PtrToIntInst;
6161 class ReturnInst;
1818 #include "llvm/ADT/SmallVector.h"
1919 #include "llvm/CodeGen/CallingConvLower.h"
2020 #include "llvm/CodeGen/SelectionDAGNodes.h"
21 #include "llvm/CodeGen/ValueTypes.h"
2221
2322 //
2423 // Need to handle varargs.
2827 class TargetMachine;
2928 class Hexagon_CCState;
3029 class SDNode;
31
30 struct EVT;
3231
3332 /// Hexagon_CCAssignFn - This function assigns a location for Val, updating
3433 /// State to reflect the change.
2323 #include "llvm/CodeGen/MachineFunction.h"
2424 #include "llvm/CodeGen/MachineInstrBuilder.h"
2525 #include "llvm/CodeGen/MachineRegisterInfo.h"
26 #include "llvm/CodeGen/ValueTypes.h"
2726 #include "llvm/IR/Constants.h"
2827 #include "llvm/IR/DebugInfo.h"
2928 #include "llvm/IR/Function.h"
2323 #include "llvm/CodeGen/MachineFrameInfo.h"
2424 #include "llvm/CodeGen/MachineFunction.h"
2525 #include "llvm/CodeGen/MachineInstrBuilder.h"
26 #include "llvm/CodeGen/ValueTypes.h"
2726 #include "llvm/IR/Constants.h"
2827 #include "llvm/IR/DebugInfo.h"
2928 #include "llvm/IR/Function.h"
2323 #include "llvm/CodeGen/MachineFunction.h"
2424 #include "llvm/CodeGen/MachineInstrBuilder.h"
2525 #include "llvm/CodeGen/MachineRegisterInfo.h"
26 #include "llvm/CodeGen/ValueTypes.h"
2726 #include "llvm/IR/Constants.h"
2827 #include "llvm/IR/DebugInfo.h"
2928 #include "llvm/IR/Function.h"
2626 #include "llvm/CodeGen/MachineModuleInfo.h"
2727 #include "llvm/CodeGen/MachineRegisterInfo.h"
2828 #include "llvm/CodeGen/RegisterScavenging.h"
29 #include "llvm/CodeGen/ValueTypes.h"
3029 #include "llvm/IR/CallingConv.h"
3130 #include "llvm/IR/Constants.h"
3231 #include "llvm/IR/Function.h"
1515 #include "MCTargetDesc/X86MCTargetDesc.h"
1616 #include "Utils/X86ShuffleDecode.h"
1717 #include "llvm/MC/MCInst.h"
18 #include "llvm/CodeGen/ValueTypes.h"
1819 #include "llvm/Support/raw_ostream.h"
20
1921 using namespace llvm;
2022
2123 //===----------------------------------------------------------------------===//
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "X86ShuffleDecode.h"
15 #include "llvm/CodeGen/ValueTypes.h"
1516
1617 //===----------------------------------------------------------------------===//
1718 // Vector Mask Decoding
1515 #define X86_SHUFFLE_DECODE_H
1616
1717 #include "llvm/ADT/SmallVector.h"
18 #include "llvm/CodeGen/ValueTypes.h"
1918
2019 //===----------------------------------------------------------------------===//
2120 // Vector Mask Decoding
2221 //===----------------------------------------------------------------------===//
2322
2423 namespace llvm {
24 class MVT;
25
2526 enum {
2627 SM_SentinelZero = -1
2728 };
1515 #include "llvm/CodeGen/AsmPrinter.h"
1616 #include "llvm/CodeGen/MachineModuleInfo.h"
1717 #include "llvm/CodeGen/StackMaps.h"
18 #include "llvm/CodeGen/ValueTypes.h"
1918 #include "llvm/Support/Compiler.h"
2019
2120 namespace llvm {