forked from OSchip/llvm-project
[Modules] Remove potential ODR violations by sinking the DEBUG_TYPE
define below all header includes in the lib/CodeGen/... tree. While the current modules implementation doesn't check for this kind of ODR violation yet, it is likely to grow support for it in the future. It also removes one layer of macro pollution across all the included headers. Other sub-trees will follow. llvm-svn: 206837
This commit is contained in:
parent
23ef27cd46
commit
1b9dde087e
|
@ -24,6 +24,8 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#define DEBUG_TYPE "block-freq"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UnsignedFloat definition.
|
||||
|
@ -1545,4 +1547,6 @@ raw_ostream &BlockFrequencyInfoImpl<BT>::print(raw_ostream &OS) const {
|
|||
}
|
||||
}
|
||||
|
||||
#undef DEBUG_TYPE
|
||||
|
||||
#endif
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "block-freq"
|
||||
#include "llvm/Analysis/BlockFrequencyInfoImpl.h"
|
||||
#include "llvm/ADT/APFloat.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
@ -19,6 +18,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "block-freq"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UnsignedFloat implementation.
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "post-RA-sched"
|
||||
#include "AggressiveAntiDepBreaker.h"
|
||||
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||
|
@ -29,6 +28,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "post-RA-sched"
|
||||
|
||||
// If DebugDiv > 0 then only break antidep with (ID % DebugDiv) == DebugMod
|
||||
static cl::opt<int>
|
||||
DebugDiv("agg-antidep-debugdiv",
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "AllocationOrder.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
// Compare VirtRegMap::getRegAllocPref().
|
||||
AllocationOrder::AllocationOrder(unsigned VirtReg,
|
||||
const VirtRegMap &VRM,
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "DwarfDebug.h"
|
||||
#include "DwarfException.h"
|
||||
|
@ -53,6 +52,8 @@
|
|||
#include "llvm/Transforms/Utils/GlobalStatus.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
|
||||
static const char *const DWARFGroupName = "DWARF Emission";
|
||||
static const char *const DbgTimerName = "Debug Info Emission";
|
||||
static const char *const EHTimerName = "DWARF Exception Writer";
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
#include "ByteStreamer.h"
|
||||
#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "llvm/ADT/SmallBitVector.h"
|
||||
|
@ -30,6 +29,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Dwarf Emission Helper Routines
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
|
@ -36,6 +35,8 @@
|
|||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
|
||||
namespace {
|
||||
struct SrcMgrDiagInfo {
|
||||
const MDNode *LocInfo;
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "dwarfdebug"
|
||||
|
||||
#include "ByteStreamer.h"
|
||||
#include "DIEHash.h"
|
||||
#include "DIE.h"
|
||||
|
@ -28,6 +26,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "dwarfdebug"
|
||||
|
||||
/// \brief Grabs the string in whichever attribute is passed in and returns
|
||||
/// a reference to it.
|
||||
static StringRef getDIEStringAttr(const DIE &Die, uint16_t Attr) {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "dwarfdebug"
|
||||
#include "ByteStreamer.h"
|
||||
#include "DwarfDebug.h"
|
||||
#include "DIE.h"
|
||||
|
@ -51,6 +50,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "dwarfdebug"
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableDebugInfoPrinting("disable-debug-info-print", cl::Hidden,
|
||||
cl::desc("Disable debug info printing"));
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "dwarfdebug"
|
||||
|
||||
#include "DwarfUnit.h"
|
||||
#include "DwarfAccelTable.h"
|
||||
#include "DwarfDebug.h"
|
||||
|
@ -35,6 +33,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "dwarfdebug"
|
||||
|
||||
static cl::opt<bool>
|
||||
GenerateDwarfTypeUnits("generate-type-units", cl::Hidden,
|
||||
cl::desc("Generate DWARF4 type units."),
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "arm-atomic-expand"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/IR/Function.h"
|
||||
#include "llvm/IR/IRBuilder.h"
|
||||
|
@ -24,6 +23,8 @@
|
|||
#include "llvm/Target/TargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "arm-atomic-expand"
|
||||
|
||||
namespace {
|
||||
class AtomicExpandLoadLinked : public FunctionPass {
|
||||
const TargetLowering *TLI;
|
||||
|
|
|
@ -15,13 +15,14 @@
|
|||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "basictti"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Analysis/TargetTransformInfo.h"
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
#include <utility>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "basictti"
|
||||
|
||||
namespace {
|
||||
|
||||
class BasicTTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "branchfolding"
|
||||
#include "BranchFolding.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
|
@ -38,6 +37,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "branchfolding"
|
||||
|
||||
STATISTIC(NumDeadBlocks, "Number of dead blocks removed");
|
||||
STATISTIC(NumBranchOpts, "Number of branches optimized");
|
||||
STATISTIC(NumTailMerge , "Number of block tails merged");
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "calcspillweights"
|
||||
|
||||
#include "llvm/CodeGen/CalcSpillWeights.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
|
||||
|
@ -22,6 +20,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "calcspillweights"
|
||||
|
||||
void llvm::calculateSpillWeightsAndHints(LiveIntervals &LIS,
|
||||
MachineFunction &MF,
|
||||
const MachineLoopInfo &MLI,
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "codegenprepare"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
|
@ -47,6 +46,8 @@
|
|||
using namespace llvm;
|
||||
using namespace llvm::PatternMatch;
|
||||
|
||||
#define DEBUG_TYPE "codegenprepare"
|
||||
|
||||
STATISTIC(NumBlocksElim, "Number of blocks eliminated");
|
||||
STATISTIC(NumPHIsElim, "Number of trivial PHIs eliminated");
|
||||
STATISTIC(NumGEPsElim, "Number of GEPs converted to casts");
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "post-RA-sched"
|
||||
#include "CriticalAntiDepBreaker.h"
|
||||
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||
|
@ -26,6 +25,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "post-RA-sched"
|
||||
|
||||
CriticalAntiDepBreaker::
|
||||
CriticalAntiDepBreaker(MachineFunction& MFi, const RegisterClassInfo &RCI) :
|
||||
AntiDepBreaker(), MF(MFi),
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "codegen-dce"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
|
@ -23,6 +22,8 @@
|
|||
#include "llvm/Target/TargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "codegen-dce"
|
||||
|
||||
STATISTIC(NumDeletes, "Number of dead instructions deleted");
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "dwarfehprepare"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/IR/CallSite.h"
|
||||
|
@ -28,6 +27,8 @@
|
|||
#include "llvm/Transforms/Utils/SSAUpdater.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "dwarfehprepare"
|
||||
|
||||
STATISTIC(NumResumesLowered, "Number of resume calls lowered");
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "early-ifcvt"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/PostOrderIterator.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
@ -40,6 +39,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "early-ifcvt"
|
||||
|
||||
// Absolute maximum number of instructions allowed per speculated block.
|
||||
// This bypasses all other heuristics, so it should be set fairly high.
|
||||
static cl::opt<unsigned>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "execution-fix"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/PostOrderIterator.h"
|
||||
#include "llvm/CodeGen/LivePhysRegs.h"
|
||||
|
@ -33,6 +32,8 @@
|
|||
#include "llvm/Target/TargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "execution-fix"
|
||||
|
||||
/// A DomainValue is a bit like LiveIntervals' ValNo, but it also keeps track
|
||||
/// of execution domains.
|
||||
///
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "expand-isel-pseudos"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
|
@ -23,6 +22,8 @@
|
|||
#include "llvm/Target/TargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "expand-isel-pseudos"
|
||||
|
||||
namespace {
|
||||
class ExpandISelPseudos : public MachineFunctionPass {
|
||||
public:
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "postrapseudos"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "postrapseudos"
|
||||
|
||||
namespace {
|
||||
struct ExpandPostRA : public MachineFunctionPass {
|
||||
private:
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "ifcvt"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "BranchFolding.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
@ -37,6 +36,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ifcvt"
|
||||
|
||||
// Hidden options for help debugging.
|
||||
static cl::opt<int> IfCvtFnStart("ifcvt-fn-start", cl::init(-1), cl::Hidden);
|
||||
static cl::opt<int> IfCvtFnStop("ifcvt-fn-stop", cl::init(-1), cl::Hidden);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "Spiller.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -39,6 +38,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumSpilledRanges, "Number of spilled live ranges");
|
||||
STATISTIC(NumSnippets, "Number of spilled snippets");
|
||||
STATISTIC(NumSpills, "Number of spills inserted");
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "InterferenceCache.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
|
@ -19,6 +18,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
// Static member used for null interference cursors.
|
||||
InterferenceCache::BlockInterference InterferenceCache::Cursor::NoInterference;
|
||||
|
||||
|
|
|
@ -13,12 +13,13 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "scheduler"
|
||||
#include "llvm/CodeGen/LatencyPriorityQueue.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "scheduler"
|
||||
|
||||
bool latency_sort::operator()(const SUnit *LHS, const SUnit *RHS) const {
|
||||
// The isScheduleHigh flag allows nodes with wraparound dependencies that
|
||||
// cannot easily be modeled as edges with latencies to be scheduled as
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "lexicalscopes"
|
||||
#include "llvm/CodeGen/LexicalScopes.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
#include "llvm/Support/FormattedStream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "lexicalscopes"
|
||||
|
||||
/// ~LexicalScopes - final cleanup after ourselves.
|
||||
LexicalScopes::~LexicalScopes() { reset(); }
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "livedebug"
|
||||
#include "LiveDebugVariables.h"
|
||||
#include "llvm/ADT/IntervalMap.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -45,6 +44,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "livedebug"
|
||||
|
||||
static cl::opt<bool>
|
||||
EnableLDV("live-debug-variables", cl::init(true),
|
||||
cl::desc("Enable the live debug variables pass"), cl::Hidden);
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
#include "LiveRangeCalc.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
|
@ -42,6 +41,8 @@
|
|||
#include <limits>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
char LiveIntervals::ID = 0;
|
||||
char &llvm::LiveIntervalsID = LiveIntervals::ID;
|
||||
INITIALIZE_PASS_BEGIN(LiveIntervals, "liveintervals",
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/LiveIntervalUnion.h"
|
||||
#include "llvm/ADT/SparseBitVector.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
@ -23,6 +22,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
|
||||
// Merge a LiveInterval's segments. Guarantee no overlaps.
|
||||
void LiveIntervalUnion::unify(LiveInterval &VirtReg) {
|
||||
|
|
|
@ -11,13 +11,14 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "LiveRangeCalc.h"
|
||||
#include "llvm/CodeGen/MachineDominators.h"
|
||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
void LiveRangeCalc::reset(const MachineFunction *mf,
|
||||
SlotIndexes *SI,
|
||||
MachineDominatorTree *MDT,
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// is spilled or split.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/LiveRangeEdit.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/CalcSpillWeights.h"
|
||||
|
@ -24,6 +23,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumDCEDeleted, "Number of instructions deleted by DCE");
|
||||
STATISTIC(NumDCEFoldedLoads, "Number of single use loads folded after DCE");
|
||||
STATISTIC(NumFracRanges, "Number of live ranges fractured by DCE");
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/LiveRegMatrix.h"
|
||||
#include "RegisterCoalescer.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumAssigned , "Number of registers assigned");
|
||||
STATISTIC(NumUnassigned , "Number of registers unassigned");
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "livestacks"
|
||||
#include "llvm/CodeGen/LiveStackAnalysis.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
|
@ -24,6 +23,8 @@
|
|||
#include <limits>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "livestacks"
|
||||
|
||||
char LiveStacks::ID = 0;
|
||||
INITIALIZE_PASS_BEGIN(LiveStacks, "livestacks",
|
||||
"Live Stack Slot Analysis", false, false)
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "localstackalloc"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
@ -40,6 +39,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "localstackalloc"
|
||||
|
||||
STATISTIC(NumAllocations, "Number of frame indices allocated into local block");
|
||||
STATISTIC(NumBaseRegisters, "Number of virtual frame base registers allocated");
|
||||
STATISTIC(NumReplacements, "Number of frame indices references replaced");
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "block-freq"
|
||||
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
|
||||
#include "llvm/Analysis/BlockFrequencyInfoImpl.h"
|
||||
#include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "block-freq"
|
||||
|
||||
#ifndef NDEBUG
|
||||
enum GVDAGType {
|
||||
GVDT_None,
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "block-placement2"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
@ -46,6 +45,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "block-placement2"
|
||||
|
||||
STATISTIC(NumCondBranches, "Number of conditional branches");
|
||||
STATISTIC(NumUncondBranches, "Number of uncondittional branches");
|
||||
STATISTIC(CondBranchTakenFreq,
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "machine-cse"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/ScopedHashTable.h"
|
||||
|
@ -28,6 +27,8 @@
|
|||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "machine-cse"
|
||||
|
||||
STATISTIC(NumCoalesces, "Number of copies coalesced");
|
||||
STATISTIC(NumCSEs, "Number of common subexpression eliminated");
|
||||
STATISTIC(NumPhysCSEs,
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "codegen-cp"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
@ -28,6 +27,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "codegen-cp"
|
||||
|
||||
STATISTIC(NumDeletes, "Number of dead copies deleted");
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "machine-licm"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
|
@ -42,6 +41,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "machine-licm"
|
||||
|
||||
static cl::opt<bool>
|
||||
AvoidSpeculation("avoid-speculation",
|
||||
cl::desc("MachineLICM should avoid speculation"),
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "misched"
|
||||
|
||||
#include "llvm/CodeGen/MachineScheduler.h"
|
||||
#include "llvm/ADT/PriorityQueue.h"
|
||||
#include "llvm/Analysis/AliasAnalysis.h"
|
||||
|
@ -35,6 +33,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "misched"
|
||||
|
||||
namespace llvm {
|
||||
cl::opt<bool> ForceTopDown("misched-topdown", cl::Hidden,
|
||||
cl::desc("Force top-down list scheduling"));
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "machine-sink"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -32,6 +31,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "machine-sink"
|
||||
|
||||
static cl::opt<bool>
|
||||
SplitEdges("machine-sink-split",
|
||||
cl::desc("Split critical edges during machine sinking"),
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "machine-trace-metrics"
|
||||
#include "llvm/CodeGen/MachineTraceMetrics.h"
|
||||
#include "llvm/ADT/PostOrderIterator.h"
|
||||
#include "llvm/ADT/SparseSet.h"
|
||||
|
@ -26,6 +25,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "machine-trace-metrics"
|
||||
|
||||
char MachineTraceMetrics::ID = 0;
|
||||
char &llvm::MachineTraceMetricsID = MachineTraceMetrics::ID;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "phi-opt"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -23,6 +22,8 @@
|
|||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "phi-opt"
|
||||
|
||||
STATISTIC(NumPHICycles, "Number of PHI cycles replaced");
|
||||
STATISTIC(NumDeadPHICycles, "Number of dead PHI cycles");
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "phielim"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "PHIEliminationUtils.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
@ -35,6 +34,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "phielim"
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableEdgeSplitting("disable-phi-elim-edge-splitting", cl::init(false),
|
||||
cl::Hidden, cl::desc("Disable critical edge splitting "
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
// C = copy A <-- same-bank copy
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "peephole-opt"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
@ -81,6 +80,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "peephole-opt"
|
||||
|
||||
// Optimize Extensions
|
||||
static cl::opt<bool>
|
||||
Aggressive("aggressive-ext-opt", cl::Hidden,
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "post-RA-sched"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "AggressiveAntiDepBreaker.h"
|
||||
#include "AntiDepBreaker.h"
|
||||
|
@ -47,6 +46,8 @@
|
|||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "post-RA-sched"
|
||||
|
||||
STATISTIC(NumNoops, "Number of noops inserted");
|
||||
STATISTIC(NumStalls, "Number of pipeline stalls");
|
||||
STATISTIC(NumFixedAnti, "Number of fixed anti-dependencies");
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "processimplicitdefs"
|
||||
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
#include "llvm/Analysis/AliasAnalysis.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
|
@ -21,6 +19,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "processimplicitdefs"
|
||||
|
||||
namespace {
|
||||
/// Process IMPLICIT_DEF instructions and make sure there is one implicit_def
|
||||
/// for each use. Add isUndef marker to implicit_def defs and their uses.
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "pei"
|
||||
#include "PrologEpilogInserter.h"
|
||||
#include "llvm/ADT/IndexedMap.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
@ -46,6 +45,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "pei"
|
||||
|
||||
char PEI::ID = 0;
|
||||
char &llvm::PrologEpilogCodeInserterID = PEI::ID;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "RegAllocBase.h"
|
||||
#include "Spiller.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -35,6 +34,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumNewQueued , "Number of new live ranges queued");
|
||||
|
||||
// Temporary verification option until we can put verification inside
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "AllocationOrder.h"
|
||||
#include "LiveDebugVariables.h"
|
||||
|
@ -41,6 +40,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
static RegisterRegAlloc basicRegAlloc("basic", "basic register allocator",
|
||||
createBasicRegisterAllocator);
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/IndexedMap.h"
|
||||
|
@ -38,6 +37,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumStores, "Number of stores added");
|
||||
STATISTIC(NumLoads , "Number of loads added");
|
||||
STATISTIC(NumCopies, "Number of copies coalesced");
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "AllocationOrder.h"
|
||||
#include "InterferenceCache.h"
|
||||
|
@ -49,6 +48,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumGlobalSplits, "Number of split global live ranges");
|
||||
STATISTIC(NumLocalSplits, "Number of split local live ranges");
|
||||
STATISTIC(NumEvicted, "Number of interferences evicted");
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
#include "llvm/CodeGen/RegAllocPBQP.h"
|
||||
#include "RegisterCoalescer.h"
|
||||
#include "Spiller.h"
|
||||
|
@ -59,6 +57,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
static RegisterRegAlloc
|
||||
registerPBQPRepAlloc("pbqp", "PBQP register allocator",
|
||||
createDefaultPBQPRegisterAllocator);
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/RegisterClassInfo.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
static cl::opt<unsigned>
|
||||
StressRA("stress-regalloc", cl::Hidden, cl::init(0), cl::value_desc("N"),
|
||||
cl::desc("Limit all regclasses to N registers"));
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "RegisterCoalescer.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
|
@ -42,6 +41,8 @@
|
|||
#include <cmath>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(numJoins , "Number of interval joins performed");
|
||||
STATISTIC(numCrossRCs , "Number of cross class joins performed");
|
||||
STATISTIC(numCommutes , "Number of instruction commuting performed");
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "reg-scavenging"
|
||||
#include "llvm/CodeGen/RegisterScavenging.h"
|
||||
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||
|
@ -29,6 +28,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "reg-scavenging"
|
||||
|
||||
/// setUsed - Set the register and its sub-registers as being used.
|
||||
void RegScavenger::setUsed(unsigned Reg) {
|
||||
for (MCSubRegIterator SubRegs(Reg, TRI, /*IncludeSelf=*/true);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
#include "llvm/CodeGen/ScheduleDAG.h"
|
||||
#include "llvm/CodeGen/ScheduleHazardRecognizer.h"
|
||||
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
#include <climits>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
|
||||
#ifndef NDEBUG
|
||||
static cl::opt<bool> StressSchedOpt(
|
||||
"stress-sched", cl::Hidden, cl::init(false),
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "misched"
|
||||
#include "llvm/CodeGen/ScheduleDAGInstrs.h"
|
||||
#include "llvm/ADT/MapVector.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
@ -41,6 +40,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "misched"
|
||||
|
||||
static cl::opt<bool> EnableAASchedMI("enable-aa-sched-mi", cl::Hidden,
|
||||
cl::ZeroOrMore, cl::init(false),
|
||||
cl::desc("Enable use of AA during MI GAD construction"));
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE ::llvm::ScoreboardHazardRecognizer::DebugType
|
||||
#include "llvm/CodeGen/ScoreboardHazardRecognizer.h"
|
||||
#include "llvm/CodeGen/ScheduleDAG.h"
|
||||
#include "llvm/MC/MCInstrItineraries.h"
|
||||
|
@ -24,6 +23,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE ::llvm::ScoreboardHazardRecognizer::DebugType
|
||||
|
||||
#ifndef NDEBUG
|
||||
const char *ScoreboardHazardRecognizer::DebugType = "";
|
||||
#endif
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "dagcombine"
|
||||
#include "llvm/CodeGen/SelectionDAG.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -40,6 +39,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "dagcombine"
|
||||
|
||||
STATISTIC(NodesCombined , "Number of dag nodes combined");
|
||||
STATISTIC(PreIndexedNodes , "Number of pre-indexed nodes created");
|
||||
STATISTIC(PostIndexedNodes, "Number of post-indexed nodes created");
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "isel"
|
||||
#include "llvm/CodeGen/FastISel.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -64,6 +63,8 @@
|
|||
#include "llvm/Target/TargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "isel"
|
||||
|
||||
STATISTIC(NumFastIselSuccessIndependent, "Number of insts selected by "
|
||||
"target-independent selector");
|
||||
STATISTIC(NumFastIselSuccessTarget, "Number of insts selected by "
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "function-lowering-info"
|
||||
#include "llvm/CodeGen/FunctionLoweringInfo.h"
|
||||
#include "llvm/ADT/PostOrderIterator.h"
|
||||
#include "llvm/CodeGen/Analysis.h"
|
||||
|
@ -40,6 +39,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "function-lowering-info"
|
||||
|
||||
/// isUsedOutsideOfDefiningBlock - Return true if this instruction is used by
|
||||
/// PHI nodes or outside of the basic block that defines it, or used by a
|
||||
/// switch or atomic instruction, which may expand to multiple basic blocks.
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "instr-emitter"
|
||||
#include "InstrEmitter.h"
|
||||
#include "SDNodeDbgValue.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -31,6 +30,8 @@
|
|||
#include "llvm/Target/TargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "instr-emitter"
|
||||
|
||||
/// MinRCSize - Smallest register class we allow when constraining virtual
|
||||
/// registers. If satisfying all register class constraints would require
|
||||
/// using a smaller register class, emit a COPY to a new virtual register
|
||||
|
|
|
@ -19,12 +19,13 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
#include "LegalizeTypes.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
|
||||
/// GetFPLibCall - Return the right libcall for the given floating point type.
|
||||
static RTLIB::Libcall GetFPLibCall(EVT VT,
|
||||
RTLIB::Libcall Call_F32,
|
||||
|
|
|
@ -18,13 +18,14 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
#include "LegalizeTypes.h"
|
||||
#include "llvm/IR/DerivedTypes.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Integer Result Promotion
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
#include "LegalizeTypes.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
#include "llvm/IR/CallingConv.h"
|
||||
|
@ -23,6 +22,8 @@
|
|||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
|
||||
static cl::opt<bool>
|
||||
EnableExpensiveChecks("enable-legalize-types-checking", cl::Hidden);
|
||||
|
||||
|
|
|
@ -19,11 +19,12 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
#include "LegalizeTypes.h"
|
||||
#include "llvm/IR/DataLayout.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Generic Result Expansion.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -20,13 +20,14 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
#include "LegalizeTypes.h"
|
||||
#include "llvm/IR/DataLayout.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "legalize-types"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Result Vector Scalarization: <1 x ty> -> ty.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "scheduler"
|
||||
#include "llvm/CodeGen/ResourcePriorityQueue.h"
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
||||
|
@ -31,6 +30,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "scheduler"
|
||||
|
||||
static cl::opt<bool> DisableDFASched("disable-dfa-sched", cl::Hidden,
|
||||
cl::ZeroOrMore, cl::init(false),
|
||||
cl::desc("Disable use of DFA during scheduling"));
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
#include "llvm/CodeGen/SchedulerRegistry.h"
|
||||
#include "InstrEmitter.h"
|
||||
#include "ScheduleDAGSDNodes.h"
|
||||
|
@ -28,6 +27,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
|
||||
STATISTIC(NumUnfolds, "Number of nodes unfolded");
|
||||
STATISTIC(NumDups, "Number of duplicated nodes");
|
||||
STATISTIC(NumPRCopies, "Number of physical copies");
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
#include "llvm/CodeGen/SchedulerRegistry.h"
|
||||
#include "ScheduleDAGSDNodes.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
@ -36,6 +35,8 @@
|
|||
#include <climits>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
|
||||
STATISTIC(NumBacktracks, "Number of times scheduler backtracked");
|
||||
STATISTIC(NumUnfolds, "Number of nodes unfolded");
|
||||
STATISTIC(NumDups, "Number of duplicated nodes");
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
#include "ScheduleDAGSDNodes.h"
|
||||
#include "InstrEmitter.h"
|
||||
#include "SDNodeDbgValue.h"
|
||||
|
@ -35,6 +34,8 @@
|
|||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
|
||||
STATISTIC(LoadsClustered, "Number of loads clustered together");
|
||||
|
||||
// This allows latency based scheduler to notice high latency instructions
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
#include "llvm/CodeGen/SchedulerRegistry.h"
|
||||
#include "ScheduleDAGSDNodes.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -35,6 +34,8 @@
|
|||
#include <climits>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
|
||||
STATISTIC(NumNoops , "Number of noops inserted");
|
||||
STATISTIC(NumStalls, "Number of pipeline stalls");
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "isel"
|
||||
#include "SelectionDAGBuilder.h"
|
||||
#include "SDNodeDbgValue.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
|
@ -62,6 +61,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "isel"
|
||||
|
||||
/// LimitFloatPrecision - Generate low-precision inline sequences for
|
||||
/// some float libcalls (6, 8 or 12 bits).
|
||||
static unsigned LimitFloatPrecision;
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "isel"
|
||||
#include "llvm/CodeGen/SelectionDAGISel.h"
|
||||
#include "ScheduleDAGSDNodes.h"
|
||||
#include "SelectionDAGBuilder.h"
|
||||
|
@ -58,6 +57,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "isel"
|
||||
|
||||
STATISTIC(NumFastIselFailures, "Number of instructions fast isel failed on");
|
||||
STATISTIC(NumFastIselSuccess, "Number of instructions fast isel selected");
|
||||
STATISTIC(NumFastIselBlocks, "Number of blocks selected entirely by fast isel");
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "shadowstackgc"
|
||||
#include "llvm/CodeGen/GCs.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/CodeGen/GCStrategy.h"
|
||||
|
@ -36,6 +35,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "shadowstackgc"
|
||||
|
||||
namespace {
|
||||
|
||||
class ShadowStackGC : public GCStrategy {
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "sjljehprepare"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
@ -38,6 +37,8 @@
|
|||
#include <set>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "sjljehprepare"
|
||||
|
||||
STATISTIC(NumInvokes, "Number of invokes replaced");
|
||||
STATISTIC(NumSpilled, "Number of registers live across unwind edges");
|
||||
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "slotindexes"
|
||||
|
||||
#include "llvm/CodeGen/SlotIndexes.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
|
@ -18,6 +16,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "slotindexes"
|
||||
|
||||
char SlotIndexes::ID = 0;
|
||||
INITIALIZE_PASS(SlotIndexes, "slotindexes",
|
||||
"Slot index numbering", false, false)
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "spillplacement"
|
||||
#include "SpillPlacement.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/CodeGen/EdgeBundles.h"
|
||||
|
@ -41,6 +40,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "spillplacement"
|
||||
|
||||
char SpillPlacement::ID = 0;
|
||||
INITIALIZE_PASS_BEGIN(SpillPlacement, "spill-code-placement",
|
||||
"Spill Code Placement Analysis", true, true)
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "spiller"
|
||||
|
||||
#include "Spiller.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
#include "llvm/CodeGen/LiveRangeEdit.h"
|
||||
|
@ -28,6 +26,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "spiller"
|
||||
|
||||
namespace {
|
||||
enum SpillerName { trivial, inline_ };
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "SplitKit.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
|
@ -29,6 +28,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumFinished, "Number of splits finished");
|
||||
STATISTIC(NumSimple, "Number of splits that were simple");
|
||||
STATISTIC(NumCopies, "Number of copies inserted for splitting");
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "stackcoloring"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/DepthFirstIterator.h"
|
||||
|
@ -58,6 +57,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "stackcoloring"
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableColoring("no-stack-coloring",
|
||||
cl::init(false), cl::Hidden,
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "stackmaps"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
|
@ -26,6 +25,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "stackmaps"
|
||||
|
||||
namespace llvm {
|
||||
cl::opt<bool> EnableStackMapLiveness("enable-stackmap-liveness",
|
||||
cl::Hidden, cl::desc("Enable StackMap Liveness Analysis Pass"));
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "stackmaps"
|
||||
|
||||
#include "llvm/CodeGen/StackMaps.h"
|
||||
#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||
|
@ -29,6 +27,8 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "stackmaps"
|
||||
|
||||
PatchPointOpers::PatchPointOpers(const MachineInstr *MI)
|
||||
: MI(MI),
|
||||
HasDef(MI->getOperand(0).isReg() && MI->getOperand(0).isDef() &&
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "stack-protector"
|
||||
#include "llvm/CodeGen/StackProtector.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
|
@ -37,6 +36,8 @@
|
|||
#include <cstdlib>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "stack-protector"
|
||||
|
||||
STATISTIC(NumFunProtected, "Number of functions protected");
|
||||
STATISTIC(NumAddrTaken, "Number of local variables that have their address"
|
||||
" taken.");
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "stackslotcoloring"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
@ -33,6 +32,8 @@
|
|||
#include <vector>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "stackslotcoloring"
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableSharing("no-stack-slot-sharing",
|
||||
cl::init(false), cl::Hidden,
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "tailduplication"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
@ -34,6 +33,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "tailduplication"
|
||||
|
||||
STATISTIC(NumTails , "Number of tails duplicated");
|
||||
STATISTIC(NumTailDups , "Number of tail duplicated blocks");
|
||||
STATISTIC(NumInstrDups , "Additional instructions due to tail duplication");
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "twoaddrinstr"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
@ -51,6 +50,8 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "twoaddrinstr"
|
||||
|
||||
STATISTIC(NumTwoAddressInstrs, "Number of two-address instructions");
|
||||
STATISTIC(NumCommuted , "Number of instructions commuted to coalesce");
|
||||
STATISTIC(NumAggrCommuted , "Number of instructions aggressively commuted");
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "llvm/CodeGen/VirtRegMap.h"
|
||||
#include "LiveDebugVariables.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
@ -40,6 +39,8 @@
|
|||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
|
||||
STATISTIC(NumSpillSlots, "Number of spill slots allocated");
|
||||
STATISTIC(NumIdCopies, "Number of identity moves eliminated after rewriting");
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "valuesymtab"
|
||||
#include "llvm/IR/ValueSymbolTable.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/IR/GlobalValue.h"
|
||||
|
@ -20,6 +19,8 @@
|
|||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "valuesymtab"
|
||||
|
||||
// Class destructor
|
||||
ValueSymbolTable::~ValueSymbolTable() {
|
||||
#ifndef NDEBUG // Only do this in -g mode...
|
||||
|
|
Loading…
Reference in New Issue