llvm.org GIT mirror llvm / 42e8630
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE definition below all of the header #include lines, lib/Target/... edition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206842 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
152 changed file(s) with 304 addition(s) and 186 deletion(s). Raw diff Collapse all Expand all
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "AArch64AsmPrinter.h"
1615 #include "InstPrinter/AArch64InstPrinter.h"
1716 #include "llvm/ADT/SmallString.h"
2524 #include "llvm/Support/TargetRegistry.h"
2625
2726 using namespace llvm;
27
28 #define DEBUG_TYPE "asm-printer"
2829
2930 /// Try to print a floating-point register as if it belonged to a specified
3031 /// register-class. For example the inline asm operand modifier "b" requires its
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "aarch64-branch-fixup"
1514 #include "AArch64.h"
1615 #include "AArch64InstrInfo.h"
1716 #include "Utils/AArch64BaseInfo.h"
2322 #include "llvm/Support/Format.h"
2423 #include "llvm/Support/raw_ostream.h"
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "aarch64-branch-fixup"
2627
2728 STATISTIC(NumSplit, "Number of uncond branches inserted");
2829 STATISTIC(NumCBrFixed, "Number of cond branches fixed");
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "aarch64-isel"
1413 #include "AArch64.h"
1514 #include "AArch64InstrInfo.h"
1615 #include "AArch64Subtarget.h"
2322 #include "llvm/Support/raw_ostream.h"
2423
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "aarch64-isel"
2627
2728 //===--------------------------------------------------------------------===//
2829 /// AArch64 specific code to select AArch64 machine instructions for
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "aarch64-isel"
1514 #include "AArch64.h"
1615 #include "AArch64ISelLowering.h"
1716 #include "AArch64MachineFunctionInfo.h"
2827 #include "llvm/Support/MathExtras.h"
2928
3029 using namespace llvm;
30
31 #define DEBUG_TYPE "aarch64-isel"
3132
3233 static TargetLoweringObjectFile *createTLOF(AArch64TargetMachine &TM) {
3334 assert (TM.getSubtarget().isTargetELF() &&
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "arm-selectiondag-info"
1413 #include "AArch64TargetMachine.h"
1514 #include "llvm/CodeGen/SelectionDAG.h"
1615 using namespace llvm;
16
17 #define DEBUG_TYPE "arm-selectiondag-info"
1718
1819 AArch64SelectionDAGInfo::AArch64SelectionDAGInfo(const AArch64TargetMachine &TM)
1920 : TargetSelectionDAGInfo(TM),
1313 ///
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "aarch64tti"
1716 #include "AArch64.h"
1817 #include "AArch64TargetMachine.h"
1918 #include "llvm/Analysis/TargetTransformInfo.h"
2120 #include "llvm/Target/CostTable.h"
2221 #include "llvm/Target/TargetLowering.h"
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "aarch64tti"
2425
2526 // Declare the pass initialization routine locally as target-specific passes
2627 // don't have a target-wide initialization entry point, and so we rely on the
1111 // the instruction definitions).
1212 //
1313 //===----------------------------------------------------------------------===//
14
15 #define DEBUG_TYPE "arm-disassembler"
1614
1715 #include "AArch64.h"
1816 #include "AArch64RegisterInfo.h"
3129 #include "llvm/Support/raw_ostream.h"
3230
3331 using namespace llvm;
32
33 #define DEBUG_TYPE "arm-disassembler"
3434
3535 typedef MCDisassembler::DecodeStatus DecodeStatus;
3636
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "AArch64InstPrinter.h"
1514 #include "MCTargetDesc/AArch64MCTargetDesc.h"
1615 #include "Utils/AArch64BaseInfo.h"
2221 #include "llvm/Support/raw_ostream.h"
2322
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "asm-printer"
2526
2627 #define GET_INSTRUCTION_NAME
2728 #define PRINT_ALIAS_INSTR
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mccodeemitter"
1413 #include "MCTargetDesc/AArch64FixupKinds.h"
1514 #include "MCTargetDesc/AArch64MCExpr.h"
1615 #include "MCTargetDesc/AArch64MCTargetDesc.h"
2524 #include "llvm/Support/raw_ostream.h"
2625
2726 using namespace llvm;
27
28 #define DEBUG_TYPE "mccodeemitter"
2829
2930 namespace {
3031 class AArch64MCCodeEmitter : public MCCodeEmitter {
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "aarch64mcexpr"
1514 #include "AArch64MCExpr.h"
1615 #include "llvm/MC/MCAssembler.h"
1716 #include "llvm/MC/MCContext.h"
1918 #include "llvm/Object/ELF.h"
2019
2120 using namespace llvm;
21
22 #define DEBUG_TYPE "aarch64mcexpr"
2223
2324 const AArch64MCExpr*
2425 AArch64MCExpr::Create(VariantKind Kind, const MCExpr *Expr,
2323 //
2424 //===----------------------------------------------------------------------===//
2525
26 #define DEBUG_TYPE "a15-sd-optimizer"
2726 #include "ARM.h"
2827 #include "ARMBaseInstrInfo.h"
2928 #include "ARMBaseRegisterInfo.h"
3736 #include
3837
3938 using namespace llvm;
39
40 #define DEBUG_TYPE "a15-sd-optimizer"
4041
4142 namespace {
4243 struct A15SDOptimizer : public MachineFunctionPass {
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "ARMAsmPrinter.h"
1615 #include "ARM.h"
1716 #include "ARMConstantPoolValue.h"
5352 #include "llvm/Target/TargetMachine.h"
5453 #include
5554 using namespace llvm;
55
56 #define DEBUG_TYPE "asm-printer"
5657
5758 void ARMAsmPrinter::EmitFunctionBodyEnd() {
5859 // Make sure to terminate any constant pools that were at the end
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "jit"
1514 #include "ARM.h"
1615 #include "ARMBaseInstrInfo.h"
1716 #include "ARMConstantPoolValue.h"
3837 #include
3938 #endif
4039 using namespace llvm;
40
41 #define DEBUG_TYPE "jit"
4142
4243 STATISTIC(NumEmitted, "Number of machine instructions emitted");
4344
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "arm-cp-islands"
1615 #include "ARM.h"
1716 #include "ARMMachineFunctionInfo.h"
1817 #include "MCTargetDesc/ARMAddressingModes.h"
3433 #include "llvm/Target/TargetMachine.h"
3534 #include
3635 using namespace llvm;
36
37 #define DEBUG_TYPE "arm-cp-islands"
3738
3839 STATISTIC(NumCPEs, "Number of constpool entries");
3940 STATISTIC(NumSplit, "Number of uncond branches inserted");
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "arm-pseudo"
1716 #include "ARM.h"
1817 #include "ARMBaseInstrInfo.h"
1918 #include "ARMBaseRegisterInfo.h"
2928 #include "llvm/Target/TargetFrameLowering.h"
3029 #include "llvm/Target/TargetRegisterInfo.h"
3130 using namespace llvm;
31
32 #define DEBUG_TYPE "arm-pseudo"
3233
3334 static cl::opt
3435 VerifyARMPseudo("verify-arm-pseudo-expand", cl::Hidden,
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "arm-isel"
1413 #include "ARM.h"
1514 #include "ARMBaseInstrInfo.h"
1615 #include "ARMTargetMachine.h"
3534 #include "llvm/Target/TargetOptions.h"
3635
3736 using namespace llvm;
37
38 #define DEBUG_TYPE "arm-isel"
3839
3940 static cl::opt
4041 DisableShifterOp("disable-shifter-op", cl::Hidden,
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "arm-isel"
1514 #include "ARMISelLowering.h"
1615 #include "ARMCallingConv.h"
1716 #include "ARMConstantPoolValue.h"
4847 #include "llvm/Target/TargetOptions.h"
4948 #include
5049 using namespace llvm;
50
51 #define DEBUG_TYPE "arm-isel"
5152
5253 STATISTIC(NumTailCalls, "Number of tail calls");
5354 STATISTIC(NumMovwMovt, "Number of GAs materialized with movw + movt");
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "jit"
1413 #include "ARMJITInfo.h"
1514 #include "ARMConstantPoolValue.h"
1615 #include "ARMRelocations.h"
2322 #include "llvm/Support/raw_ostream.h"
2423 #include
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "jit"
2627
2728 void ARMJITInfo::replaceMachineCodeForFunction(void *Old, void *New) {
2829 report_fatal_error("ARMJITInfo::replaceMachineCodeForFunction");
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "arm-ldst-opt"
1514 #include "ARM.h"
1615 #include "ARMBaseInstrInfo.h"
1716 #include "ARMBaseRegisterInfo.h"
4039 #include "llvm/Target/TargetMachine.h"
4140 #include "llvm/Target/TargetRegisterInfo.h"
4241 using namespace llvm;
42
43 #define DEBUG_TYPE "arm-ldst-opt"
4344
4445 STATISTIC(NumLDMGened , "Number of ldm instructions generated");
4546 STATISTIC(NumSTMGened , "Number of stm instructions generated");
77 //
88 //===------------------------------------------------------------------------------------------===//
99
10 #define DEBUG_TYPE "double barriers"
11
1210 #include "ARM.h"
1311 #include "ARMMachineFunctionInfo.h"
1412 #include "ARMInstrInfo.h"
1513 #include "llvm/ADT/Statistic.h"
1614 #include "llvm/CodeGen/MachineFunctionPass.h"
1715 using namespace llvm;
16
17 #define DEBUG_TYPE "double barriers"
1818
1919 STATISTIC(NumDMBsRemoved, "Number of DMBs removed");
2020
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "arm-selectiondag-info"
1413 #include "ARMTargetMachine.h"
1514 #include "llvm/CodeGen/SelectionDAG.h"
1615 #include "llvm/IR/DerivedTypes.h"
1716 using namespace llvm;
17
18 #define DEBUG_TYPE "arm-selectiondag-info"
1819
1920 ARMSelectionDAGInfo::ARMSelectionDAGInfo(const TargetMachine &TM)
2021 : TargetSelectionDAGInfo(TM),
1313 ///
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "armtti"
1716 #include "ARM.h"
1817 #include "ARMTargetMachine.h"
1918 #include "llvm/Analysis/TargetTransformInfo.h"
2120 #include "llvm/Target/CostTable.h"
2221 #include "llvm/Target/TargetLowering.h"
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "armtti"
2425
2526 // Declare the pass initialization routine locally as target-specific passes
2627 // don't havve a target-wide initialization entry point, and so we rely on the
55 // License. See LICENSE.TXT for details.
66 //
77 //===----------------------------------------------------------------------===//
8
9 #define DEBUG_TYPE "arm-disassembler"
108
119 #include "llvm/MC/MCDisassembler.h"
1210 #include "MCTargetDesc/ARMAddressingModes.h"
2725 #include
2826
2927 using namespace llvm;
28
29 #define DEBUG_TYPE "arm-disassembler"
3030
3131 typedef MCDisassembler::DecodeStatus DecodeStatus;
3232
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "ARMInstPrinter.h"
1514 #include "MCTargetDesc/ARMAddressingModes.h"
1615 #include "MCTargetDesc/ARMBaseInfo.h"
2120 #include "llvm/MC/MCRegisterInfo.h"
2221 #include "llvm/Support/raw_ostream.h"
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "asm-printer"
2425
2526 #include "ARMGenAsmWriter.inc"
2627
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mccodeemitter"
1413 #include "MCTargetDesc/ARMMCTargetDesc.h"
1514 #include "MCTargetDesc/ARMAddressingModes.h"
1615 #include "MCTargetDesc/ARMBaseInfo.h"
2928 #include "llvm/Support/raw_ostream.h"
3029
3130 using namespace llvm;
31
32 #define DEBUG_TYPE "mccodeemitter"
3233
3334 STATISTIC(MCNumEmitted, "Number of MC instructions emitted.");
3435 STATISTIC(MCNumCPRelocations, "Number of constant pool relocations created.");
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "armmcexpr"
109 #include "ARMMCExpr.h"
1110 #include "llvm/MC/MCAssembler.h"
1211 #include "llvm/MC/MCContext.h"
1312 using namespace llvm;
13
14 #define DEBUG_TYPE "armmcexpr"
1415
1516 const ARMMCExpr*
1617 ARMMCExpr::Create(VariantKind Kind, const MCExpr *Expr,
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "mlx-expansion"
1514 #include "ARM.h"
1615 #include "ARMBaseInstrInfo.h"
1716 #include "ARMSubtarget.h"
2625 #include "llvm/Support/raw_ostream.h"
2726 #include "llvm/Target/TargetRegisterInfo.h"
2827 using namespace llvm;
28
29 #define DEBUG_TYPE "mlx-expansion"
2930
3031 static cl::opt
3132 ForceExapnd("expand-all-fp-mlx", cl::init(false), cl::Hidden);
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "thumb2-it"
109 #include "ARM.h"
1110 #include "ARMMachineFunctionInfo.h"
1211 #include "Thumb2InstrInfo.h"
1716 #include "llvm/CodeGen/MachineInstrBuilder.h"
1817 #include "llvm/CodeGen/MachineInstrBundle.h"
1918 using namespace llvm;
19
20 #define DEBUG_TYPE "thumb2-it"
2021
2122 STATISTIC(NumITs, "Number of IT blocks inserted");
2223 STATISTIC(NumMovedInsts, "Number of predicated instructions moved");
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "t2-reduce-size"
109 #include "ARM.h"
1110 #include "ARMBaseInstrInfo.h"
1211 #include "ARMSubtarget.h"
2322 #include "llvm/Support/Debug.h"
2423 #include "llvm/Target/TargetMachine.h"
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "t2-reduce-size"
2627
2728 STATISTIC(NumNarrows, "Number of 32-bit instrs reduced to 16-bit ones");
2829 STATISTIC(Num2Addrs, "Number of 32-bit instrs reduced to 2addr 16-bit ones");
2828 // FIXME: This pass may be useful for other targets too.
2929 // ===---------------------------------------------------------------------===//
3030
31 #define DEBUG_TYPE "arm64-type-promotion"
3231 #include "ARM64.h"
3332 #include "llvm/ADT/DenseMap.h"
3433 #include "llvm/ADT/SmallPtrSet.h"
4443 #include "llvm/Support/Debug.h"
4544
4645 using namespace llvm;
46
47 #define DEBUG_TYPE "arm64-type-promotion"
4748
4849 static cl::opt
4950 EnableAddressTypePromotion("arm64-type-promotion", cl::Hidden,
3232 // solution.
3333 //===----------------------------------------------------------------------===//
3434
35 #define DEBUG_TYPE "arm64-simd-scalar"
3635 #include "ARM64.h"
3736 #include "ARM64InstrInfo.h"
3837 #include "ARM64RegisterInfo.h"
4645 #include "llvm/Support/Debug.h"
4746 #include "llvm/Support/raw_ostream.h"
4847 using namespace llvm;
48
49 #define DEBUG_TYPE "arm64-simd-scalar"
4950
5051 static cl::opt
5152 AdvSIMDScalar("arm64-simd-scalar",
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "ARM64.h"
1615 #include "ARM64MachineFunctionInfo.h"
1716 #include "ARM64MCInstLower.h"
3736 #include "llvm/Support/Debug.h"
3837 #include "llvm/Support/TargetRegistry.h"
3938 using namespace llvm;
39
40 #define DEBUG_TYPE "asm-printer"
4041
4142 namespace {
4243
88 //
99 //===----------------------------------------------------------------------===//
1010
11 #define DEBUG_TYPE "arm64-branch-relax"
1211 #include "ARM64.h"
1312 #include "ARM64InstrInfo.h"
1413 #include "ARM64MachineFunctionInfo.h"
2221 #include "llvm/ADT/Statistic.h"
2322 #include "llvm/Support/CommandLine.h"
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "arm64-branch-relax"
2526
2627 static cl::opt
2728 BranchRelaxation("arm64-branch-relax", cl::Hidden, cl::init(true),
9797 // - Other ObjectWriters ignore them.
9898 //===----------------------------------------------------------------------===//
9999
100 #define DEBUG_TYPE "arm64-collect-loh"
101100 #include "ARM64.h"
102101 #include "ARM64InstrInfo.h"
103102 #include "ARM64MachineFunctionInfo.h"
121120 #include "llvm/Support/raw_ostream.h"
122121 #include "llvm/ADT/Statistic.h"
123122 using namespace llvm;
123
124 #define DEBUG_TYPE "arm64-collect-loh"
124125
125126 static cl::opt
126127 PreCollectRegister("arm64-collect-loh-pre-collect-register", cl::Hidden,
1616 //
1717 //===----------------------------------------------------------------------===//
1818
19 #define DEBUG_TYPE "arm64-ccmp"
2019 #include "ARM64.h"
2120 #include "llvm/ADT/BitVector.h"
2221 #include "llvm/ADT/DepthFirstIterator.h"
4140 #include "llvm/Target/TargetSubtargetInfo.h"
4241
4342 using namespace llvm;
43
44 #define DEBUG_TYPE "arm64-ccmp"
4445
4546 // Absolute maximum number of instructions allowed per speculated block.
4647 // This bypasses all other heuristics, so it should be set fairly high.
1010 // hardware's register renamer.
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "arm64-dead-defs"
1413 #include "ARM64.h"
1514 #include "ARM64RegisterInfo.h"
1615 #include "llvm/ADT/Statistic.h"
2019 #include "llvm/Support/Debug.h"
2120 #include "llvm/Support/raw_ostream.h"
2221 using namespace llvm;
22
23 #define DEBUG_TYPE "arm64-dead-defs"
2324
2425 STATISTIC(NumDeadDefsReplaced, "Number of dead definitions replaced");
2526
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "frame-info"
1413 #include "ARM64FrameLowering.h"
1514 #include "ARM64InstrInfo.h"
1615 #include "ARM64MachineFunctionInfo.h"
3029 #include "llvm/Support/raw_ostream.h"
3130
3231 using namespace llvm;
32
33 #define DEBUG_TYPE "frame-info"
3334
3435 static cl::opt EnableRedZone("arm64-redzone",
3536 cl::desc("enable use of redzone on ARM64"),
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "arm64-isel"
1413 #include "ARM64TargetMachine.h"
1514 #include "MCTargetDesc/ARM64AddressingModes.h"
1615 #include "llvm/ADT/APSInt.h"
2423 #include "llvm/Support/raw_ostream.h"
2524
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "arm64-isel"
2728
2829 //===--------------------------------------------------------------------===//
2930 /// ARM64DAGToDAGISel - ARM64 specific code to select ARM64 machine
99 // This file implements the ARM64TargetLowering class.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "arm64-lower"
1412
1513 #include "ARM64ISelLowering.h"
1614 #include "ARM64PerfectShuffle.h"
3432 #include "llvm/Support/raw_ostream.h"
3533 #include "llvm/Target/TargetOptions.h"
3634 using namespace llvm;
35
36 #define DEBUG_TYPE "arm64-lower"
3737
3838 STATISTIC(NumTailCalls, "Number of tail calls");
3939 STATISTIC(NumShiftInserts, "Number of vector shift inserts");
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "arm64-ldst-opt"
1514 #include "ARM64InstrInfo.h"
1615 #include "MCTargetDesc/ARM64AddressingModes.h"
1716 #include "llvm/ADT/BitVector.h"
2827 #include "llvm/Support/raw_ostream.h"
2928 #include "llvm/ADT/Statistic.h"
3029 using namespace llvm;
30
31 #define DEBUG_TYPE "arm64-ldst-opt"
3132
3233 /// ARM64AllocLoadStoreOpt - Post-register allocation pass to combine
3334 /// load / store instructions to form ldp / stp instructions.
2020 // FIXME: This pass may be useful for other targets too.
2121 //===----------------------------------------------------------------------===//
2222
23 #define DEBUG_TYPE "arm64-promote-const"
2423 #include "ARM64.h"
2524 #include "llvm/ADT/Statistic.h"
2625 #include "llvm/ADT/DenseMap.h"
4039 #include "llvm/Support/Debug.h"
4140
4241 using namespace llvm;
42
43 #define DEBUG_TYPE "arm64-promote-const"
4344
4445 // Stress testing mode - disable heuristics.
4546 static cl::opt Stress("arm64-stress-promote-const", cl::Hidden,
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "arm64-selectiondag-info"
1413 #include "ARM64TargetMachine.h"
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "arm64-selectiondag-info"
1617
1718 ARM64SelectionDAGInfo::ARM64SelectionDAGInfo(const TargetMachine &TM)
1819 : TargetSelectionDAGInfo(TM),
1010 // store pairs. Later we may do the same for floating point loads.
1111 // ===---------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "arm64-stp-suppress"
1413 #include "ARM64InstrInfo.h"
1514 #include "llvm/CodeGen/MachineFunction.h"
1615 #include "llvm/CodeGen/MachineFunctionPass.h"
2221 #include "llvm/Support/raw_ostream.h"
2322
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "arm64-stp-suppress"
2526
2627 namespace {
2728 class ARM64StorePairSuppress : public MachineFunctionPass {
1313 ///
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "arm64tti"
1716 #include "ARM64.h"
1817 #include "ARM64TargetMachine.h"
1918 #include "MCTargetDesc/ARM64AddressingModes.h"
2322 #include "llvm/Target/TargetLowering.h"
2423 #include
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "arm64tti"
2627
2728 // Declare the pass initialization routine locally as target-specific passes
2829 // don't havve a target-wide initialization entry point, and so we rely on the
99 //
1010 //===----------------------------------------------------------------------===//
1111
12 #define DEBUG_TYPE "arm64-disassembler"
13
1412 #include "ARM64Disassembler.h"
1513 #include "ARM64ExternalSymbolizer.h"
1614 #include "ARM64Subtarget.h"
2422 #include "llvm/Support/ErrorHandling.h"
2523
2624 using namespace llvm;
25
26 #define DEBUG_TYPE "arm64-disassembler"
2727
2828 // Pull DecodeStatus and its enum values into the global namespace.
2929 typedef llvm::MCDisassembler::DecodeStatus DecodeStatus;
55 // License. See LICENSE.TXT for details.
66 //
77 //===----------------------------------------------------------------------===//
8
9 #define DEBUG_TYPE "arm64-disassembler"
108
119 #include "ARM64ExternalSymbolizer.h"
1210 #include "ARM64Subtarget.h"
1917 #include "llvm/Support/raw_ostream.h"
2018
2119 using namespace llvm;
20
21 #define DEBUG_TYPE "arm64-disassembler"
2222
2323 static MCSymbolRefExpr::VariantKind
2424 getVariant(uint64_t LLVMDisassembler_VariantKind) {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "ARM64InstPrinter.h"
1514 #include "MCTargetDesc/ARM64AddressingModes.h"
1615 #include "Utils/ARM64BaseInfo.h"
2221 #include "llvm/Support/Format.h"
2322 #include "llvm/Support/raw_ostream.h"
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "asm-printer"
2526
2627 #define GET_INSTRUCTION_NAME
2728 #define PRINT_ALIAS_INSTR
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mccodeemitter"
1413 #include "MCTargetDesc/ARM64AddressingModes.h"
1514 #include "MCTargetDesc/ARM64FixupKinds.h"
1615 #include "MCTargetDesc/ARM64MCExpr.h"
2423 #include "llvm/ADT/Statistic.h"
2524 #include "llvm/Support/raw_ostream.h"
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "mccodeemitter"
2728
2829 STATISTIC(MCNumEmitted, "Number of MC instructions emitted.");
2930 STATISTIC(MCNumFixups, "Number of MC fixups created.");
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "aarch64symbolrefexpr"
1514 #include "ARM64MCExpr.h"
1615 #include "llvm/MC/MCAssembler.h"
1716 #include "llvm/MC/MCContext.h"
2221 #include "llvm/Support/ErrorHandling.h"
2322
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "aarch64symbolrefexpr"
2526
2627 const ARM64MCExpr *ARM64MCExpr::Create(const MCExpr *Expr, VariantKind Kind,
2728 MCContext &Ctx) {
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "asm-printer"
1615 #include "Hexagon.h"
1716 #include "HexagonAsmPrinter.h"
1817 #include "HexagonMachineFunctionInfo.h"
5554
5655 using namespace llvm;
5756
57 #define DEBUG_TYPE "asm-printer"
58
5859 static cl::opt AlignCalls(
5960 "hexagon-align-calls", cl::Hidden, cl::init(true),
6061 cl::desc("Insert falign after call instruction for Hexagon target"));
55 //
66 //===----------------------------------------------------------------------===//
77
8 #define DEBUG_TYPE "hexagon_cfg"
98 #include "Hexagon.h"
109 #include "HexagonMachineFunctionInfo.h"
1110 #include "HexagonSubtarget.h"
2423 #include "llvm/Target/TargetRegisterInfo.h"
2524
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "hexagon_cfg"
2728
2829 namespace llvm {
2930 void initializeHexagonCFGOptimizerPass(PassRegistry&);
1010 // to move them together. If we can move them next to each other we do so and
1111 // replace them with a combine instruction.
1212 //===----------------------------------------------------------------------===//
13 #define DEBUG_TYPE "hexagon-copy-combine"
14
1513 #include "llvm/PassSupport.h"
1614 #include "Hexagon.h"
1715 #include "HexagonInstrInfo.h"
3432 #include "llvm/Target/TargetRegisterInfo.h"
3533
3634 using namespace llvm;
35
36 #define DEBUG_TYPE "hexagon-copy-combine"
3737
3838 static
3939 cl::opt IsCombinesDisabled("disable-merge-into-combines",
2525 //
2626 //===----------------------------------------------------------------------===//
2727
28 #define DEBUG_TYPE "hwloops"
2928 #include "llvm/ADT/SmallSet.h"
3029 #include "Hexagon.h"
3130 #include "HexagonTargetMachine.h"
4544 #include
4645
4746 using namespace llvm;
47
48 #define DEBUG_TYPE "hwloops"
4849
4950 #ifndef NDEBUG
5051 static cl::opt HWLoopLimit("max-hwloop", cl::Hidden, cl::init(-1));
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "hexagon-isel"
1413 #include "Hexagon.h"
1514 #include "HexagonISelLowering.h"
1615 #include "HexagonTargetMachine.h"
2120 #include "llvm/Support/Compiler.h"
2221 #include "llvm/Support/Debug.h"
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "hexagon-isel"
2425
2526 static
2627 cl::opt
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "misched"
15
1614 #include "HexagonMachineScheduler.h"
1715 #include "llvm/CodeGen/MachineLoopInfo.h"
1816 #include "llvm/IR/Function.h"
1917
2018 using namespace llvm;
19
20 #define DEBUG_TYPE "misched"
2121
2222 /// Platform specific modifications to DAG.
2323 void VLIWMachineScheduler::postprocessDAG() {
2020 //
2121 //
2222 //===----------------------------------------------------------------------===//
23 #define DEBUG_TYPE "hexagon-nvj"
2423 #include "llvm/PassSupport.h"
2524 #include "Hexagon.h"
2625 #include "HexagonInstrInfo.h"
4544 #include "llvm/Target/TargetRegisterInfo.h"
4645 #include
4746 using namespace llvm;
47
48 #define DEBUG_TYPE "hexagon-nvj"
4849
4950 STATISTIC(NumNVJGenerated, "Number of New Value Jump Instructions created");
5051
3434
3535 //===----------------------------------------------------------------------===//
3636
37 #define DEBUG_TYPE "hexagon-peephole"
3837 #include "Hexagon.h"
3938 #include "HexagonTargetMachine.h"
4039 #include "llvm/ADT/DenseMap.h"
5554 #include
5655
5756 using namespace llvm;
57
58 #define DEBUG_TYPE "hexagon-peephole"
5859
5960 static cl::opt DisableHexagonPeephole("disable-hexagon-peephole",
6061 cl::Hidden, cl::ZeroOrMore, cl::init(false),
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "hexagon-selectiondag-info"
1413 #include "HexagonTargetMachine.h"
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "hexagon-selectiondag-info"
1617
1718 bool llvm::flag_aligned_memcpy;
1819
1515 // scheduled after register allocation.
1616 //
1717 //===----------------------------------------------------------------------===//
18
19 #define DEBUG_TYPE "xfer"
2018
2119 #include "HexagonTargetMachine.h"
2220 #include "HexagonMachineFunctionInfo.h"
4240 #include
4341
4442 using namespace llvm;
43
44 #define DEBUG_TYPE "xfer"
4545
4646 namespace {
4747
2525 //
2626 //===----------------------------------------------------------------------===//
2727
28 #define DEBUG_TYPE "xfer"
2928 #include "Hexagon.h"
3029 #include "HexagonMachineFunctionInfo.h"
3130 #include "HexagonSubtarget.h"
4847
4948 using namespace llvm;
5049
50 #define DEBUG_TYPE "xfer"
51
5152 namespace llvm {
5253 void initializeHexagonSplitTFRCondSetsPass(PassRegistry&);
5354 }
1515 // prune the dependence.
1616 //
1717 //===----------------------------------------------------------------------===//
18 #define DEBUG_TYPE "packets"
1918 #include "llvm/CodeGen/DFAPacketizer.h"
2019 #include "Hexagon.h"
2120 #include "HexagonMachineFunctionInfo.h"
5049
5150 using namespace llvm;
5251
52 #define DEBUG_TYPE "packets"
53
5354 static cl::opt PacketizeVolatiles("hexagon-packetize-volatiles",
5455 cl::ZeroOrMore, cl::Hidden, cl::init(true),
5556 cl::desc("Allow non-solo packetization of volatile memory references"));
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "HexagonAsmPrinter.h"
1514 #include "Hexagon.h"
1615 #include "HexagonInstPrinter.h"
2322
2423 using namespace llvm;
2524
25 #define DEBUG_TYPE "asm-printer"
26
2627 #define GET_INSTRUCTION_NAME
2728 #include "HexagonGenAsmWriter.inc"
2829
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "MSP430InstPrinter.h"
1514 #include "MSP430.h"
1615 #include "llvm/MC/MCAsmInfo.h"
1918 #include "llvm/Support/ErrorHandling.h"
2019 #include "llvm/Support/FormattedStream.h"
2120 using namespace llvm;
21
22 #define DEBUG_TYPE "asm-printer"
2223
2324
2425 // Include the auto-generated portion of the assembly writer.
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "MSP430.h"
1615 #include "InstPrinter/MSP430InstPrinter.h"
1716 #include "MSP430InstrInfo.h"
3332 #include "llvm/Support/TargetRegistry.h"
3433 #include "llvm/Support/raw_ostream.h"
3534 using namespace llvm;
35
36 #define DEBUG_TYPE "asm-printer"
3637
3738 namespace {
3839 class MSP430AsmPrinter : public AsmPrinter {
1414 //
1515 //===----------------------------------------------------------------------===//
1616
17 #define DEBUG_TYPE "msp430-branch-select"
1817 #include "MSP430.h"
1918 #include "MSP430InstrInfo.h"
2019 #include "llvm/ADT/Statistic.h"
2322 #include "llvm/Support/MathExtras.h"
2423 #include "llvm/Target/TargetMachine.h"
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "msp430-branch-select"
2627
2728 STATISTIC(NumExpanded, "Number of branches expanded to long format");
2829
99 // This file implements the MSP430TargetLowering class.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "msp430-lower"
1412
1513 #include "MSP430ISelLowering.h"
1614 #include "MSP430.h"
3634 #include "llvm/Support/ErrorHandling.h"
3735 #include "llvm/Support/raw_ostream.h"
3836 using namespace llvm;
37
38 #define DEBUG_TYPE "msp430-lower"
3939
4040 typedef enum {
4141 NoHWMult,
99 // This file contains the MSP430 implementation of the TargetRegisterInfo class.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "msp430-reg-info"
1412
1513 #include "MSP430RegisterInfo.h"
1614 #include "MSP430.h"
2624 #include "llvm/Target/TargetOptions.h"
2725
2826 using namespace llvm;
27
28 #define DEBUG_TYPE "msp430-reg-info"
2929
3030 #define GET_REGINFO_TARGET_DESC
3131 #include "MSP430GenRegisterInfo.inc"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "msp430-selectiondag-info"
1413 #include "MSP430TargetMachine.h"
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "msp430-selectiondag-info"
1617
1718 MSP430SelectionDAGInfo::MSP430SelectionDAGInfo(const MSP430TargetMachine &TM)
1819 : TargetSelectionDAGInfo(TM) {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "MipsInstPrinter.h"
1514 #include "MCTargetDesc/MipsMCExpr.h"
1615 #include "MipsInstrInfo.h"
2221 #include "llvm/Support/ErrorHandling.h"
2322 #include "llvm/Support/raw_ostream.h"
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "asm-printer"
2526
2627 #define PRINT_ALIAS_INSTR
2728 #include "MipsGenAsmWriter.inc"
1010 //
1111 //===----------------------------------------------------------------------===//
1212 //
13
14 #define DEBUG_TYPE "mccodeemitter"
1513
1614 #include "MipsMCCodeEmitter.h"
1715 #include "MCTargetDesc/MipsFixupKinds.h"
2624 #include "llvm/MC/MCFixup.h"
2725 #include "llvm/MC/MCSubtargetInfo.h"
2826 #include "llvm/Support/raw_ostream.h"
27
28 #define DEBUG_TYPE "mccodeemitter"
2929
3030 #define GET_INSTRMAP_INFO
3131 #include "MipsGenInstrInfo.inc"
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "mipsmcexpr"
109 #include "MipsMCExpr.h"
1110 #include "llvm/MC/MCAsmInfo.h"
1211 #include "llvm/MC/MCAssembler.h"
1312 #include "llvm/MC/MCContext.h"
1413
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "mipsmcexpr"
1617
1718 bool MipsMCExpr::isSupportedBinaryExpr(MCSymbolRefExpr::VariantKind VK,
1819 const MCBinaryExpr *BE) {
1616 //
1717 //===----------------------------------------------------------------------===//
1818
19 #define DEBUG_TYPE "mips-mc-nacl"
20
2119 #include "Mips.h"
2220 #include "MipsELFStreamer.h"
2321 #include "MipsMCNaCl.h"
2422 #include "llvm/MC/MCELFStreamer.h"
2523
2624 using namespace llvm;
25
26 #define DEBUG_TYPE "mips-mc-nacl"
2727
2828 namespace {
2929
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mips16-hard-float"
1413 #include "Mips16HardFloat.h"
1514 #include "llvm/IR/Module.h"
1615 #include "llvm/IR/Value.h"
1817 #include "llvm/Support/raw_ostream.h"
1918 #include
2019 #include
20
21 #define DEBUG_TYPE "mips16-hard-float"
2122
2223 static void inlineAsmOut
2324 (LLVMContext &C, StringRef AsmString, BasicBlock *BB ) {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mips-isel"
1413 #include "Mips16ISelDAGToDAG.h"
1514 #include "MCTargetDesc/MipsBaseInfo.h"
1615 #include "Mips.h"
3332 #include "llvm/Support/raw_ostream.h"
3433 #include "llvm/Target/TargetMachine.h"
3534 using namespace llvm;
35
36 #define DEBUG_TYPE "mips-isel"
3637
3738 bool Mips16DAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
3839 if (!Subtarget.inMips16Mode())
99 // Subclass of MipsTargetLowering specialized for mips16.
1010 //
1111 //===----------------------------------------------------------------------===//
12 #define DEBUG_TYPE "mips-lower"
1312 #include "Mips16ISelLowering.h"
1413 #include "MCTargetDesc/MipsBaseInfo.h"
1514 #include "MipsRegisterInfo.h"
2120 #include
2221
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "mips-lower"
2425
2526 static cl::opt DontExpandCondPseudos16(
2627 "mips16-dont-expand-cond-pseudo",
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "mips-asm-printer"
1514 #include "InstPrinter/MipsInstPrinter.h"
1615 #include "MCTargetDesc/MipsBaseInfo.h"
1716 #include "MCTargetDesc/MipsMCNaCl.h"
5049 #include
5150
5251 using namespace llvm;
52
53 #define DEBUG_TYPE "mips-asm-printer"
5354
5455 MipsTargetStreamer &MipsAsmPrinter::getTargetStreamer() {
5556 return static_cast(*OutStreamer.getTargetStreamer());
1111 //
1212 //===---------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "jit"
1514 #include "Mips.h"
1615 #include "MCTargetDesc/MipsBaseInfo.h"
1716 #include "MipsInstrInfo.h"
4039
4140 using namespace llvm;
4241
42 #define DEBUG_TYPE "jit"
43
4344 STATISTIC(NumEmitted, "Number of machine instructions emitted");
4445
4546 namespace {
2020 //
2121 //
2222
23 #define DEBUG_TYPE "mips-constant-islands"
24
2523 #include "Mips.h"
2624 #include "MCTargetDesc/MipsBaseInfo.h"
2725 #include "Mips16InstrInfo.h"
4543 #include
4644
4745 using namespace llvm;
46
47 #define DEBUG_TYPE "mips-constant-islands"
4848
4949 STATISTIC(NumCPEs, "Number of constpool entries");
5050 STATISTIC(NumSplit, "Number of uncond branches inserted");
99 // Simple pass to fill delay slots with useful instructions.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "delay-slot-filler"
1412
1513 #include "MCTargetDesc/MipsMCNaCl.h"
1614 #include "Mips.h"
3230
3331 using namespace llvm;
3432
33 #define DEBUG_TYPE "delay-slot-filler"
34
3535 STATISTIC(FilledSlots, "Number of delay slots filled");
3636 STATISTIC(UsefulSlots, "Number of delay slots filled with instructions that"
3737 " are not NOP.");
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mips-isel"
1413 #include "MipsISelDAGToDAG.h"
1514 #include "MCTargetDesc/MipsBaseInfo.h"
1615 #include "Mips.h"
3534 #include "llvm/Target/TargetMachine.h"
3635 using namespace llvm;
3736
37 #define DEBUG_TYPE "mips-isel"
38
3839 //===----------------------------------------------------------------------===//
3940 // Instruction Selector Implementation
4041 //===----------------------------------------------------------------------===//
1010 // selection DAG.
1111 //
1212 //===----------------------------------------------------------------------===//
13 #define DEBUG_TYPE "mips-lower"
1413 #include "MipsISelLowering.h"
1514 #include "InstPrinter/MipsInstPrinter.h"
1615 #include "MCTargetDesc/MipsBaseInfo.h"
3736 #include
3837
3938 using namespace llvm;
39
40 #define DEBUG_TYPE "mips-lower"
4041
4142 STATISTIC(NumTailCalls, "Number of tail calls");
4243
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "jit"
1413 #include "MipsJITInfo.h"
1514 #include "MipsInstrInfo.h"
1615 #include "MipsRelocations.h"
2322 #include "llvm/Support/raw_ostream.h"
2423 #include
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "jit"
2627
2728
2829 void MipsJITInfo::replaceMachineCodeForFunction(void *Old, void *New) {
1515 // determined accurately, load branch target addresses from the GOT.
1616 //===----------------------------------------------------------------------===//
1717
18 #define DEBUG_TYPE "mips-long-branch"
19
2018 #include "Mips.h"
2119 #include "MCTargetDesc/MipsBaseInfo.h"
2220 #include "MipsTargetMachine.h"
3129 #include "llvm/Target/TargetRegisterInfo.h"
3230
3331 using namespace llvm;
32
33 #define DEBUG_TYPE "mips-long-branch"
3434
3535 STATISTIC(LongBranches, "Number of long branches.");
3636
1010 // instructions that load target function addresses with copy instructions.
1111 //
1212 //===----------------------------------------------------------------------===//
13
14 #define DEBUG_TYPE "optimize-mips-pic-call"
1513
1614 #include "Mips.h"
1715 #include "MCTargetDesc/MipsBaseInfo.h"
2321 #include "llvm/Support/CommandLine.h"
2422
2523 using namespace llvm;
24
25 #define DEBUG_TYPE "optimize-mips-pic-call"
2626
2727 static cl::opt LoadTargetFromGOT("mips-load-target-from-got",
2828 cl::init(true),
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mips-os16"
1413 #include "MipsOs16.h"
1514 #include "llvm/IR/Module.h"
1615 #include "llvm/Support/CommandLine.h"
1716 #include "llvm/Support/Debug.h"
1817 #include "llvm/Support/raw_ostream.h"
18
19 #define DEBUG_TYPE "mips-os16"
1920
2021
2122 static cl::opt Mips32FunctionMask(
99 // This file contains the MIPS implementation of the TargetRegisterInfo class.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "mips-reg-info"
1412
1513 #include "MipsRegisterInfo.h"
1614 #include "Mips.h"
3836
3937 using namespace llvm;
4038
39 #define DEBUG_TYPE "mips-reg-info"
40
4141 #define GET_REGINFO_TARGET_DESC
4242 #include "MipsGenRegisterInfo.inc"
4343
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mips-isel"
1413 #include "MipsSEISelDAGToDAG.h"
1514 #include "MCTargetDesc/MipsBaseInfo.h"
1615 #include "Mips.h"
3433 #include "llvm/Target/TargetMachine.h"
3534 using namespace llvm;
3635
36 #define DEBUG_TYPE "mips-isel"
37
3738 bool MipsSEDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
3839 if (Subtarget.inMips16Mode())
3940 return false;
99 // Subclass of MipsTargetLowering specialized for mips32/64.
1010 //
1111 //===----------------------------------------------------------------------===//
12 #define DEBUG_TYPE "mips-isel"
1312 #include "MipsSEISelLowering.h"
1413 #include "MipsRegisterInfo.h"
1514 #include "MipsTargetMachine.h"
2221 #include "llvm/Target/TargetInstrInfo.h"
2322
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "mips-isel"
2526
2627 static cl::opt
2728 EnableMipsTailCalls("enable-mips-tail-calls", cl::Hidden,
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mips-selectiondag-info"
1413 #include "MipsTargetMachine.h"
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "mips-selectiondag-info"
1617
1718 MipsSelectionDAGInfo::MipsSelectionDAGInfo(const MipsTargetMachine &TM)
1819 : TargetSelectionDAGInfo(TM) {
99 // This file implements the Mips specific subclass of TargetSubtargetInfo.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "mips-subtarget"
1412
1513 #include "MipsMachineFunction.h"
1614 #include "Mips.h"
2523 #include "llvm/Support/raw_ostream.h"
2624
2725 using namespace llvm;
26
27 #define DEBUG_TYPE "mips-subtarget"
2828
2929 #define GET_SUBTARGETINFO_TARGET_DESC
3030 #define GET_SUBTARGETINFO_CTOR
3636
3737 #define DEBUG_TYPE "mips"
3838
39
40
4139 extern "C" void LLVMInitializeMipsTarget() {
4240 // Register the target.
4341 RegisterTargetMachine X(TheMipsTarget);
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "InstPrinter/NVPTXInstPrinter.h"
1514 #include "MCTargetDesc/NVPTXBaseInfo.h"
1615 #include "NVPTX.h"
2322 #include "llvm/Support/FormattedStream.h"
2423 #include
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "asm-printer"
2627
2728 #include "NVPTXGenAsmWriter.inc"
2829
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "nvptx-isel"
1413 #include "NVPTXISelDAGToDAG.h"
1514 #include "llvm/IR/GlobalValue.h"
1615 #include "llvm/IR/Instructions.h"
2120 #include "llvm/Target/TargetIntrinsicInfo.h"
2221
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "nvptx-isel"
2425
2526 static cl::opt
2627 FMAContractLevel("nvptx-fma-level", cl::ZeroOrMore, cl::Hidden,
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "nvptx-mcexpr"
109 #include "NVPTXMCExpr.h"
1110 #include "llvm/ADT/StringExtras.h"
1211 #include "llvm/MC/MCAssembler.h"
1312 #include "llvm/MC/MCContext.h"
1413 using namespace llvm;
14
15 #define DEBUG_TYPE "nvptx-mcexpr"
1516
1617 const NVPTXFloatMCExpr*
1718 NVPTXFloatMCExpr::Create(VariantKind Kind, APFloat Flt, MCContext &Ctx) {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "nvptx-reg-info"
14
1513 #include "NVPTXRegisterInfo.h"
1614 #include "NVPTX.h"
1715 #include "NVPTXSubtarget.h"
2321 #include "llvm/Target/TargetInstrInfo.h"
2422
2523 using namespace llvm;
24
25 #define DEBUG_TYPE "nvptx-reg-info"
2626
2727 namespace llvm {
2828 std::string getNVPTXRegClassName(TargetRegisterClass const *RC) {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "PPCInstPrinter.h"
1514 #include "MCTargetDesc/PPCMCTargetDesc.h"
1615 #include "MCTargetDesc/PPCPredicates.h"
2120 #include "llvm/Support/raw_ostream.h"
2221 #include "llvm/Target/TargetOpcodes.h"
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "asm-printer"
2425
2526 // FIXME: Once the integrated assembler supports full register names, tie this
2627 // to the verbose-asm setting.
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mccodeemitter"
1413 #include "MCTargetDesc/PPCMCTargetDesc.h"
1514 #include "MCTargetDesc/PPCFixupKinds.h"
1615 #include "llvm/ADT/Statistic.h"
2423 #include "llvm/Support/raw_ostream.h"
2524 #include "llvm/Target/TargetOpcodes.h"
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "mccodeemitter"
2728
2829 STATISTIC(MCNumEmitted, "Number of MC instructions emitted");
2930
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "ppcmcexpr"
109 #include "PPCMCExpr.h"
1110 #include "llvm/MC/MCAsmInfo.h"
1211 #include "llvm/MC/MCAssembler.h"
1312 #include "llvm/MC/MCContext.h"
1413
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "ppcmcexpr"
1617
1718 const PPCMCExpr*
1819 PPCMCExpr::Create(VariantKind Kind, const MCExpr *Expr,
1515 //
1616 //===----------------------------------------------------------------------===//
1717
18 #define DEBUG_TYPE "asmprinter"
1918 #include "PPC.h"
2019 #include "InstPrinter/PPCInstPrinter.h"
2120 #include "MCTargetDesc/PPCMCExpr.h"
5857 #include "llvm/Target/TargetRegisterInfo.h"
5958 using namespace llvm;
6059
60 #define DEBUG_TYPE "asmprinter"
61
6162 namespace {
6263 class PPCAsmPrinter : public AsmPrinter {
6364 protected:
1414 //
1515 //===----------------------------------------------------------------------===//
1616
17 #define DEBUG_TYPE "ppc-branch-select"
1817 #include "PPC.h"
1918 #include "MCTargetDesc/PPCPredicates.h"
2019 #include "PPCInstrBuilder.h"
2423 #include "llvm/Support/MathExtras.h"
2524 #include "llvm/Target/TargetMachine.h"
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "ppc-branch-select"
2728
2829 STATISTIC(NumExpanded, "Number of branches expanded to long format");
2930
2222 //
2323 //===----------------------------------------------------------------------===//
2424
25 #define DEBUG_TYPE "ctrloops"
26
2725 #include "llvm/Transforms/Scalar.h"
2826 #include "PPC.h"
2927 #include "PPCTargetMachine.h"
5957 #include
6058
6159 using namespace llvm;
60
61 #define DEBUG_TYPE "ctrloops"
6262
6363 #ifndef NDEBUG
6464 static cl::opt CTRLoopLimit("ppc-max-ctrloop", cl::Hidden, cl::init(-1));
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "ppcfastisel"
1615 #include "PPC.h"
1716 #include "MCTargetDesc/PPCPredicates.h"
1817 #include "PPCISelLowering.h"
5655 //
5756 //===----------------------------------------------------------------------===//
5857 using namespace llvm;
58
59 #define DEBUG_TYPE "ppcfastisel"
5960
6061 namespace {
6162
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "pre-RA-sched"
1413 #include "PPCHazardRecognizers.h"
1514 #include "PPC.h"
1615 #include "PPCInstrInfo.h"
2019 #include "llvm/Support/ErrorHandling.h"
2120 #include "llvm/Support/raw_ostream.h"
2221 using namespace llvm;
22
23 #define DEBUG_TYPE "pre-RA-sched"
2324
2425 bool PPCDispatchGroupSBHazardRecognizer::isLoadAfterStore(SUnit *SU) {
2526 // FIXME: Move this.
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "ppc-codegen"
1514 #include "PPC.h"
1615 #include "MCTargetDesc/PPCPredicates.h"
1716 #include "PPCTargetMachine.h"
3332 #include "llvm/Support/raw_ostream.h"
3433 #include "llvm/Target/TargetOptions.h"
3534 using namespace llvm;
35
36 #define DEBUG_TYPE "ppc-codegen"
3637
3738 // FIXME: Remove this once the bug has been fixed!
3839 cl::opt ANDIGlueBug("expose-ppc-andi-glue-bug",
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "jit"
1413 #include "PPCJITInfo.h"
1514 #include "PPCRelocations.h"
1615 #include "PPCTargetMachine.h"
2019 #include "llvm/Support/Memory.h"
2120 #include "llvm/Support/raw_ostream.h"
2221 using namespace llvm;
22
23 #define DEBUG_TYPE "jit"
2324
2425 static TargetJITInfo::JITCompilerFn JITCompilerFunction;
2526
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "reginfo"
1514 #include "PPCRegisterInfo.h"
1615 #include "PPC.h"
1716 #include "PPCFrameLowering.h"
4342
4443 using namespace llvm;
4544
45 #define DEBUG_TYPE "reginfo"
46
4647 #define GET_REGINFO_TARGET_DESC
4748 #include "PPCGenRegisterInfo.inc"
4849
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "powerpc-selectiondag-info"
1413 #include "PPCTargetMachine.h"
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "powerpc-selectiondag-info"
1617
1718 PPCSelectionDAGInfo::PPCSelectionDAGInfo(const PPCTargetMachine &TM)
1819 : TargetSelectionDAGInfo(TM) {
1313 ///
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "ppctti"
1716 #include "PPC.h"
1817 #include "PPCTargetMachine.h"
1918 #include "llvm/Analysis/TargetTransformInfo.h"
2221 #include "llvm/Target/CostTable.h"
2322 #include "llvm/Target/TargetLowering.h"
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "ppctti"
2526
2627 static cl::opt DisablePPCConstHoist("disable-ppc-constant-hoisting",
2728 cl::desc("disable constant hoisting on PPC"), cl::init(false), cl::Hidden);
1414 //
1515 //===----------------------------------------------------------------------===//
1616
17 #define DEBUG_TYPE "AMDGPUtti"
1817 #include "AMDGPU.h"
1918 #include "AMDGPUTargetMachine.h"
2019 #include "llvm/Analysis/LoopInfo.h"
2423 #include "llvm/Target/CostTable.h"
2524 #include "llvm/Target/TargetLowering.h"
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "AMDGPUtti"
2728
2829 // Declare the pass initialization routine locally as target-specific passes
2930 // don't have a target-wide initialization entry point, and so we rely on the
66 //
77 /// \file
88 //==-----------------------------------------------------------------------===//
9
10 #define DEBUG_TYPE "structcfg"
119
1210 #include "AMDGPU.h"
1311 #include "AMDGPUInstrInfo.h"
3230 #include "llvm/Target/TargetMachine.h"
3331
3432 using namespace llvm;
33
34 #define DEBUG_TYPE "structcfg"
3535
3636 #define DEFAULT_VEC_SLOTS 8
3737
1212 /// It needs to be called after IfCvt for best results.
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "r600mergeclause"
1615 #include "AMDGPU.h"
1716 #include "R600Defines.h"
1817 #include "R600InstrInfo.h"
2524 #include "llvm/Support/raw_ostream.h"
2625
2726 using namespace llvm;
27
28 #define DEBUG_TYPE "r600mergeclause"
2829
2930 namespace {
3031
1111 /// computing their address on the fly ; it also sets STACK_SIZE info.
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "r600cf"
1514 #include "llvm/Support/Debug.h"
1615 #include "AMDGPU.h"
1716 #include "R600Defines.h"
2423 #include "llvm/Support/raw_ostream.h"
2524
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "r600cf"
2728
2829 namespace {
2930
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "misched"
15
1614 #include "R600MachineScheduler.h"
1715 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
1816 #include "llvm/CodeGen/MachineRegisterInfo.h"
2119 #include "llvm/Support/raw_ostream.h"
2220
2321 using namespace llvm;
22
23 #define DEBUG_TYPE "misched"
2424
2525 void R600SchedStrategy::initialize(ScheduleDAGMI *dag) {
2626 assert(dag->hasVRegLiveness() && "R600SchedStrategy needs vreg liveness");
2626 /// to reduce MOV count.
2727 //===----------------------------------------------------------------------===//
2828
29 #define DEBUG_TYPE "vec-merger"
3029 #include "llvm/Support/Debug.h"
3130 #include "AMDGPU.h"
3231 #include "R600InstrInfo.h"
4039 #include "llvm/Support/raw_ostream.h"
4140
4241 using namespace llvm;
42
43 #define DEBUG_TYPE "vec-merger"
4344
4445 namespace {
4546
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "packets"
1716 #include "llvm/Support/Debug.h"
1817 #include "AMDGPU.h"
1918 #include "R600InstrInfo.h"
2625 #include "llvm/Support/raw_ostream.h"
2726
2827 using namespace llvm;
28
29 #define DEBUG_TYPE "packets"
2930
3031 namespace {
3132
1010 /// Annotates the control flow with hardware specific intrinsics.
1111 //
1212 //===----------------------------------------------------------------------===//
13
14 #define DEBUG_TYPE "si-annotate-control-flow"
1513
1614 #include "AMDGPU.h"
1715 #include "llvm/ADT/DepthFirstIterator.h"
2422 #include "llvm/Transforms/Utils/SSAUpdater.h"
2523
2624 using namespace llvm;
25
26 #define DEBUG_TYPE "si-annotate-control-flow"
2727
2828 namespace {
2929
6464 /// ultimately led to the creation of an illegal COPY.
6565 //===----------------------------------------------------------------------===//
6666
67 #define DEBUG_TYPE "sgpr-copies"
6867 #include "AMDGPU.h"
6968 #include "SIInstrInfo.h"
7069 #include "llvm/CodeGen/MachineFunctionPass.h"
7574 #include "llvm/Target/TargetMachine.h"
7675
7776 using namespace llvm;
77
78 #define DEBUG_TYPE "sgpr-copies"
7879
7980 namespace {
8081
1111 // NOP is placed.
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "delay-slot-filler"
1514 #include "Sparc.h"
1615 #include "SparcSubtarget.h"
1716 #include "llvm/ADT/SmallSet.h"
2625
2726 using namespace llvm;
2827
28 #define DEBUG_TYPE "delay-slot-filler"
29
2930 STATISTIC(FilledSlots, "Number of delay slots filled");
3031
3132 static cl::opt DisableDelaySlotFiller(
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "sparc-disassembler"
14
1513 #include "Sparc.h"
1614 #include "SparcRegisterInfo.h"
1715 #include "SparcSubtarget.h"
2119 #include "llvm/Support/TargetRegistry.h"
2220
2321 using namespace llvm;
22
23 #define DEBUG_TYPE "sparc-disassembler"
2424
2525 typedef MCDisassembler::DecodeStatus DecodeStatus;
2626
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "SparcInstPrinter.h"
1514 #include "Sparc.h"
1615 #include "llvm/MC/MCExpr.h"
1817 #include "llvm/MC/MCSymbol.h"
1918 #include "llvm/Support/raw_ostream.h"
2019 using namespace llvm;
20
21 #define DEBUG_TYPE "asm-printer"
2122
2223 // The generated AsmMatcher SparcGenAsmWriter uses "Sparc" as the target
2324 // namespace. But SPARC backend uses "SP" as its namespace.
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mccodeemitter"
1413 #include "SparcMCExpr.h"
1514 #include "MCTargetDesc/SparcFixupKinds.h"
1615 #include "SparcMCTargetDesc.h"
2423 #include "llvm/Support/raw_ostream.h"
2524
2625 using namespace llvm;
26
27 #define DEBUG_TYPE "mccodeemitter"
2728
2829 STATISTIC(MCNumEmitted, "Number of MC instructions emitted");
2930
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "sparcmcexpr"
1514 #include "SparcMCExpr.h"
1615 #include "llvm/MC/MCAssembler.h"
1716 #include "llvm/MC/MCContext.h"
2120
2221
2322 using namespace llvm;
23
24 #define DEBUG_TYPE "sparcmcexpr"
2425
2526 const SparcMCExpr*
2627 SparcMCExpr::Create(VariantKind Kind, const MCExpr *Expr,
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "Sparc.h"
1615 #include "InstPrinter/SparcInstPrinter.h"
1716 #include "MCTargetDesc/SparcMCExpr.h"
3332 #include "llvm/Support/TargetRegistry.h"
3433 #include "llvm/Support/raw_ostream.h"
3534 using namespace llvm;
35
36 #define DEBUG_TYPE "asm-printer"
3637
3738 namespace {
3839 class SparcAsmPrinter : public AsmPrinter {
1111 //
1212 //===---------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "jit"
1514 #include "Sparc.h"
1615 #include "MCTargetDesc/SparcMCExpr.h"
1716 #include "SparcRelocations.h"
2322 #include "llvm/Support/Debug.h"
2423
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "jit"
2627
2728 STATISTIC(NumEmitted, "Number of machine instructions emitted");
2829
99 // This file implements the JIT interfaces for the Sparc target.
1010 //
1111 //===----------------------------------------------------------------------===//
12 #define DEBUG_TYPE "jit"
1312 #include "SparcJITInfo.h"
1413 #include "Sparc.h"
1514 #include "SparcRelocations.h"
1817 #include "llvm/Support/Memory.h"
1918
2019 using namespace llvm;
20
21 #define DEBUG_TYPE "jit"
2122
2223 /// JITCompilerFunction - This contains the address of the JIT function used to
2324 /// compile a function lazily.
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "sparc-selectiondag-info"
1413 #include "SparcTargetMachine.h"
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "sparc-selectiondag-info"
1617
1718 SparcSelectionDAGInfo::SparcSelectionDAGInfo(const SparcTargetMachine &TM)
1819 : TargetSelectionDAGInfo(TM) {
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "asm-printer"
10
119 #include "SystemZInstPrinter.h"
1210 #include "llvm/MC/MCExpr.h"
1311 #include "llvm/MC/MCInstrInfo.h"
1412 #include "llvm/Support/raw_ostream.h"
1513
1614 using namespace llvm;
15
16 #define DEBUG_TYPE "asm-printer"
1717
1818 #include "SystemZGenAsmWriter.inc"
1919
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mccodeemitter"
1413 #include "MCTargetDesc/SystemZMCTargetDesc.h"
1514 #include "MCTargetDesc/SystemZMCFixups.h"
1615 #include "llvm/MC/MCCodeEmitter.h"
1918 #include "llvm/MC/MCInstrInfo.h"
2019
2120 using namespace llvm;
21
22 #define DEBUG_TYPE "mccodeemitter"
2223
2324 namespace {
2425 class SystemZMCCodeEmitter : public MCCodeEmitter {
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "systemz-elim-compare"
16
1715 #include "SystemZTargetMachine.h"
1816 #include "llvm/ADT/Statistic.h"
1917 #include "llvm/CodeGen/MachineFunctionPass.h"
2624 #include "llvm/Target/TargetRegisterInfo.h"
2725
2826 using namespace llvm;
27
28 #define DEBUG_TYPE "systemz-elim-compare"
2929
3030 STATISTIC(BranchOnCounts, "Number of branch-on-count instructions");
3131 STATISTIC(EliminatedComparisons, "Number of eliminated comparisons");
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "systemz-lower"
14
1513 #include "SystemZISelLowering.h"
1614 #include "SystemZCallingConv.h"
1715 #include "SystemZConstantPoolValue.h"
2422 #include
2523
2624 using namespace llvm;
25
26 #define DEBUG_TYPE "systemz-lower"
2727
2828 namespace {
2929 // Represents a sequence for extracting a 0/1 value from an IPM result:
5252 //
5353 //===----------------------------------------------------------------------===//
5454
55 #define DEBUG_TYPE "systemz-long-branch"
56
5755 #include "SystemZTargetMachine.h"
5856 #include "llvm/ADT/Statistic.h"
5957 #include "llvm/CodeGen/MachineFunctionPass.h"
6664 #include "llvm/Target/TargetRegisterInfo.h"
6765
6866 using namespace llvm;
67
68 #define DEBUG_TYPE "systemz-long-branch"
6969
7070 STATISTIC(LongBranches, "Number of long branches.");
7171
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "systemz-selectiondag-info"
1413 #include "SystemZTargetMachine.h"
1514 #include "llvm/CodeGen/SelectionDAG.h"
1615
1716 using namespace llvm;
17
18 #define DEBUG_TYPE "systemz-selectiondag-info"
1819
1920 SystemZSelectionDAGInfo::
2021 SystemZSelectionDAGInfo(const SystemZTargetMachine &TM)
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "systemz-shorten-inst"
16
1715 #include "SystemZTargetMachine.h"
1816 #include "llvm/CodeGen/MachineFunctionPass.h"
1917
2018 using namespace llvm;
19
20 #define DEBUG_TYPE "systemz-shorten-inst"
2121
2222 namespace {
2323 class SystemZShortenInst : public MachineFunctionPass {
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "X86ATTInstPrinter.h"
1615 #include "MCTargetDesc/X86BaseInfo.h"
1716 #include "MCTargetDesc/X86MCTargetDesc.h"
2625 #include "llvm/Support/FormattedStream.h"
2726 #include
2827 using namespace llvm;
28
29 #define DEBUG_TYPE "asm-printer"
2930
3031 // Include the auto-generated portion of the assembly writer.
3132 #define PRINT_ALIAS_INSTR
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "X86IntelInstPrinter.h"
1615 #include "MCTargetDesc/X86BaseInfo.h"
1716 #include "MCTargetDesc/X86MCTargetDesc.h"
2322 #include "llvm/Support/FormattedStream.h"
2423 #include
2524 using namespace llvm;
25
26 #define DEBUG_TYPE "asm-printer"
2627
2728 #include "X86GenAsmWriter1.inc"
2829
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "mccodeemitter"
1413 #include "MCTargetDesc/X86MCTargetDesc.h"
1514 #include "MCTargetDesc/X86BaseInfo.h"
1615 #include "MCTargetDesc/X86FixupKinds.h"
2524 #include "llvm/Support/raw_ostream.h"
2625
2726 using namespace llvm;
27
28 #define DEBUG_TYPE "mccodeemitter"
2829
2930 namespace {
3031 class X86MCCodeEmitter : public MCCodeEmitter {
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "x86-emitter"
1514 #include "X86.h"
1615 #include "X86InstrInfo.h"
1716 #include "X86JITInfo.h"
3433 #include "llvm/Support/raw_ostream.h"
3534 #include "llvm/Target/TargetOptions.h"
3635 using namespace llvm;
36
37 #define DEBUG_TYPE "x86-emitter"
3738
3839 STATISTIC(NumEmitted, "Number of machine instructions emitted");
3940
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "x86-fixup-LEAs"
1615 #include "X86.h"
1716 #include "X86InstrInfo.h"
1817 #include "X86Subtarget.h"
2625 #include "llvm/Support/raw_ostream.h"
2726 #include "llvm/Target/TargetInstrInfo.h"
2827 using namespace llvm;
28
29 #define DEBUG_TYPE "x86-fixup-LEAs"
2930
3031 STATISTIC(NumLEAs, "Number of LEA instructions created");
3132
2222 //
2323 //===----------------------------------------------------------------------===//
2424
25 #define DEBUG_TYPE "x86-codegen"
2625 #include "X86.h"
2726 #include "X86InstrInfo.h"
2827 #include "llvm/ADT/DepthFirstIterator.h"
4342 #include "llvm/Target/TargetMachine.h"
4443 #include
4544 using namespace llvm;
45
46 #define DEBUG_TYPE "x86-codegen"
4647
4748 STATISTIC(NumFXCH, "Number of fxch instructions inserted");
4849 STATISTIC(NumFP , "Number of floating point instructions");
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "x86-isel"
1514 #include "X86.h"
1615 #include "X86InstrBuilder.h"
1716 #include "X86MachineFunctionInfo.h"
3433 #include "llvm/Target/TargetMachine.h"
3534 #include "llvm/Target/TargetOptions.h"
3635 using namespace llvm;
36
37 #define DEBUG_TYPE "x86-isel"
3738
3839 STATISTIC(NumLoadMoved, "Number of loads moved below TokenFactor");
3940
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "x86-isel"
1514 #include "X86ISelLowering.h"
1615 #include "Utils/X86ShuffleDecode.h"
1716 #include "X86CallingConv.h"
5049 #include
5150 #include
5251 using namespace llvm;
52
53 #define DEBUG_TYPE "x86-isel"
5354
5455 STATISTIC(NumTailCalls, "Number of tail calls");
5556
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "jit"
1413 #include "X86JITInfo.h"
1514 #include "X86Relocations.h"
1615 #include "X86Subtarget.h"
2221 #include
2322 #include
2423 using namespace llvm;
24
25 #define DEBUG_TYPE "jit"
2526
2627 // Determine the platform we're running on
2728 #if defined (__x86_64__) || defined (_M_AMD64) || defined (_M_X64)
1414
1515 #include
1616
17 #define DEBUG_TYPE "x86-pad-short-functions"
1817 #include "X86.h"
1918 #include "X86InstrInfo.h"
2019 #include "llvm/ADT/Statistic.h"
2827 #include "llvm/Target/TargetInstrInfo.h"
2928
3029 using namespace llvm;
30
31 #define DEBUG_TYPE "x86-pad-short-functions"
3132
3233 STATISTIC(NumBBsPadded, "Number of basic blocks padded");
3334
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "x86-selectiondag-info"
1413 #include "X86TargetMachine.h"
1514 #include "llvm/CodeGen/SelectionDAG.h"
1615 #include "llvm/IR/DerivedTypes.h"
1716 using namespace llvm;
17
18 #define DEBUG_TYPE "x86-selectiondag-info"
1819
1920 X86SelectionDAGInfo::X86SelectionDAGInfo(const X86TargetMachine &TM) :
2021 TargetSelectionDAGInfo(TM),
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "subtarget"
1413 #include "X86Subtarget.h"
1514 #include "X86InstrInfo.h"
1615 #include "llvm/IR/Attributes.h"
2322 #include "llvm/Target/TargetMachine.h"
2423 #include "llvm/Target/TargetOptions.h"
2524
26 using namespace llvm;
27
2825 #if defined(_MSC_VER)
2926 #include
3027 #endif
28
29 using namespace llvm;
30
31 #define DEBUG_TYPE "subtarget"
3132
3233 #define GET_SUBTARGETINFO_TARGET_DESC
3334 #define GET_SUBTARGETINFO_CTOR
1313 ///
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "x86tti"
1716 #include "X86.h"
1817 #include "X86TargetMachine.h"
1918 #include "llvm/ADT/DepthFirstIterator.h"
2524 #include "llvm/Target/CostTable.h"
2625 #include "llvm/Target/TargetLowering.h"
2726 using namespace llvm;
27
28 #define DEBUG_TYPE "x86tti"
2829
2930 // Declare the pass initialization routine locally as target-specific passes
3031 // don't havve a target-wide initialization entry point, and so we rely on the
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "x86-vzeroupper"
1716 #include "X86.h"
1817 #include "X86InstrInfo.h"
1918 #include "X86Subtarget.h"
2625 #include "llvm/Support/raw_ostream.h"
2726 #include "llvm/Target/TargetInstrInfo.h"
2827 using namespace llvm;
28
29 #define DEBUG_TYPE "x86-vzeroupper"
2930
3031 STATISTIC(NumVZU, "Number of vzeroupper instructions inserted");
3132
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "asm-printer"
1413 #include "XCoreInstPrinter.h"
1514 #include "llvm/ADT/StringExtras.h"
1615 #include "llvm/MC/MCExpr.h"
2019 #include "llvm/Support/ErrorHandling.h"
2120 #include "llvm/Support/raw_ostream.h"
2221 using namespace llvm;
22
23 #define DEBUG_TYPE "asm-printer"
2324
2425 #include "XCoreGenAsmWriter.inc"
2526
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "asm-printer"
1514 #include "XCore.h"
1615 #include "InstPrinter/XCoreInstPrinter.h"
1716 #include "XCoreInstrInfo.h"
4645 #include
4746 using namespace llvm;
4847
48 #define DEBUG_TYPE "asm-printer"
49
4950 namespace {
5051 class XCoreAsmPrinter : public AsmPrinter {
5152 const XCoreSubtarget &Subtarget;
99 // This file implements the XCoreTargetLowering class.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "xcore-lower"
1412
1513 #include "XCoreISelLowering.h"
1614 #include "XCore.h"
3937 #include
4038
4139 using namespace llvm;
40
41 #define DEBUG_TYPE "xcore-lower"
4242
4343 const char *XCoreTargetLowering::
4444 getTargetNodeName(unsigned Opcode) const
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "xcore-selectiondag-info"
1413 #include "XCoreTargetMachine.h"
1514 using namespace llvm;
15
16 #define DEBUG_TYPE "xcore-selectiondag-info"
1617
1718 XCoreSelectionDAGInfo::XCoreSelectionDAGInfo(const XCoreTargetMachine &TM)
1819 : TargetSelectionDAGInfo(TM) {
1313 ///
1414 //===----------------------------------------------------------------------===//
1515
16 #define DEBUG_TYPE "xcoretti"
1716 #include "XCore.h"
1817 #include "llvm/Analysis/TargetTransformInfo.h"
1918 #include "llvm/Support/Debug.h"
2019 #include "llvm/Target/CostTable.h"
2120 #include "llvm/Target/TargetLowering.h"
2221 using namespace llvm;
22
23 #define DEBUG_TYPE "xcoretti"
2324
2425 // Declare the pass initialization routine locally as target-specific passes
2526 // don't havve a target-wide initialization entry point, and so we rely on the