LLVM API Documentation
Go to the source code of this file.
Namespaces | |
| namespace | llvm |
List of target independent CodeGen pass IDs. | |
Defines | |
| #define | DEBUG_TYPE "" |
| #define | DEBUG_WITH_TYPE(TYPE, X) |
| #define | DEBUG(X) DEBUG_WITH_TYPE(DEBUG_TYPE, X) |
Functions | |
| bool | llvm::isCurrentDebugType (const char *Type) |
| void | llvm::setCurrentDebugType (const char *Type) |
| raw_ostream & | llvm::dbgs () |
| dbgs - Return a circular-buffered debug stream. | |
Variables | |
| bool | llvm::DebugFlag |
| bool | llvm::EnableDebugBuffering = false |
Definition at line 97 of file Debug.h.
Referenced by llvm::InstCombineWorklist::Add(), llvm::MipsTargetMachine::addAnalysisPasses(), addChainDependency(), llvm::ProfileInfoT< FType, BType >::addEdgeWeight(), llvm::ProfileInfoT< FType, BType >::addExecutionCount(), llvm::ExecutionEngine::addGlobalMapping(), llvm::InstCombineWorklist::AddInitialGroup(), AddReachableCodeToWorklist(), llvm::IVUsers::AddUsersImpl(), AdjustStackOffset(), llvm::AggressiveAntiDepBreaker::AggressiveAntiDepBreaker(), llvm::RegAllocBase::allocatePhysRegs(), llvm::AllocationOrder::AllocationOrder(), llvm::HexagonInstrInfo::AnalyzeBranch(), analyzeFrameIndexes(), llvm::LiveRegMatrix::assign(), llvm::DwarfDebug::beginFunction(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::AggressiveAntiDepBreaker::BreakAntiDependencies(), BreakUpSubtract(), BUCompareLatency(), BURRSort(), llvm::ProfileInfoT< FType, BType >::CalculateMissingEdge(), llvm::BallLarusDag::calculatePathNumbers(), llvm::LiveRangeEdit::calculateRegClassAndHint(), CanPropagatePredecessorsForPHIs(), clampStackAlignment(), llvm::ObjectSizeOffsetVisitor::compute(), llvm::X86InstrInfo::copyPhysReg(), DeleteInstructionInBlock(), llvm::DependenceAnalysis::depends(), determineFrameLayout(), llvm::ProfileInfoT< FType, BType >::divertFlow(), DoesRetainableObjPtrEscape(), llvm::InstCombiner::DoOneIteration(), llvm::ConstantUniqueMap< ExprMapKeyType, const ExprMapKeyType &, Type, ConstantExpr >::dump(), llvm::ConstantAggrUniqueMap< ArrayType, ConstantArray >::dump(), llvm::DWARFContextInMemory::DWARFContextInMemory(), llvm::LiveRangeEdit::eliminateDeadDefs(), EliminateDeadSwitchCases(), llvm::MBlazeRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::RuntimeDyldImpl::emitCommonSymbols(), llvm::ARMJITInfo::emitFunctionStub(), llvm::ScoreboardHazardRecognizer::EmitInstruction(), llvm::RuntimeDyldImpl::emitSection(), llvm::SplitEditor::enterIntvAfter(), llvm::SplitEditor::enterIntvAtEnd(), llvm::SplitEditor::enterIntvBefore(), llvm::InstCombiner::EraseInstFromFunction(), EvaluateStaticConstructor(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), llvm::CodeExtractor::extractCodeRegion(), extractInteger(), extractVector(), llvm::SchedDFSImpl::finalize(), llvm::SSAUpdaterImpl< UpdaterT >::FindAvailableVals(), findGCD(), llvm::RegScavenger::FindUnusedReg(), llvm::SplitEditor::finish(), FoldBlockIntoPredecessor(), llvm::FoldBranchToCommonDest(), llvm::InstCombiner::FoldShiftByConstant(), FoldTwoEntryPHINode(), llvm::FunctionLoweringInfo::getArgumentFrameIndex(), llvm::ScoreboardHazardRecognizer::getHazardType(), llvm::InlineCostAnalysis::getInlineCost(), GetLoadValueForLoad(), llvm::MemoryDependenceAnalysis::getNonLocalCallDependency(), getPreStartForSignExtend(), llvm::BoUpSLP::getTreeCost(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), llvm::MachineSSAUpdater::GetValueInMiddleOfBlock(), hasOutsideLoopUser(), hasVRegCycleUse(), llvm::ExecutionEngine::InitializeMemory(), llvm::ScheduleDAGMI::initRegPressure(), initVRegCycle(), InlineCallIfPossible(), insertInteger(), llvm::InsertPreheaderForLoop(), insertVector(), llvm::MachineTraceMetrics::Ensemble::invalidate(), llvm::MachineTraceMetrics::invalidate(), isProfitableChain(), KnuthDiv(), llvm::SplitEditor::leaveIntvAfter(), llvm::SplitEditor::leaveIntvAtTop(), llvm::SplitEditor::leaveIntvBefore(), LinearizeExprTree(), LLVMSetLinkage(), LLVMX86CompilationCallback2(), llvm::RuntimeDyldImpl::loadObject(), llvm::HexagonTargetLowering::LowerCall(), llvm::TargetLowering::LowerCallTo(), llvm::MBlazeSubtarget::MBlazeSubtarget(), llvm::AggressiveAntiDepBreaker::Observe(), OptimizeAwayTrappingUsesOfLoads(), OptimizeGlobalAddressOfMalloc(), llvm::SplitEditor::overlapIntv(), llvm::cl::ParseCommandLineOptions(), PerformHeapAllocSRoA(), llvm::R600SchedStrategy::pickNode(), llvm::ConvergingVLIWScheduler::pickNode(), llvm::ConvergingVLIWScheduler::pickNodeFromQueue(), printEdgeCounter(), printEdgeError(), llvm::RuntimeDyldELF::processRelocationRef(), ProfitableToMerge(), llvm::R600SchedStrategy::releaseBottomNode(), llvm::R600SchedStrategy::releaseTopNode(), llvm::ProfileInfoT< FType, BType >::removeBlock(), llvm::ProfileInfoT< FType, BType >::removeEdge(), llvm::MemoryDependenceAnalysis::removeInstruction(), llvm::SlotIndexes::renumberIndexes(), llvm::ProfileInfoT< FType, BType >::replaceAllUses(), llvm::ProfileInfoT< FType, BType >::replaceEdge(), replaceFrameIndexes(), llvm::InstCombiner::ReplaceInstUsesWith(), ReplaceUsesOfWith(), llvm::VLIWResourceModel::reserveResources(), llvm::MipsSubtarget::resetSubtarget(), llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), llvm::RuntimeDyldImpl::resolveRelocations(), llvm::DAGTypeLegalizer::run(), llvm::Interpreter::run(), llvm::BranchProbabilityInfo::runOnFunction(), llvm::RGPassManager::runOnFunction(), llvm::MipsModuleDAGToDAGISel::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::CalculateSpillWeights::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::SlotIndexes::runOnMachineFunction(), llvm::Mips16HardFloat::runOnModule(), llvm::MipsOs16::runOnModule(), llvm::Inliner::runOnSCC(), llvm::RegScavenger::scavengeRegister(), llvm::R600SchedStrategy::schedNode(), llvm::VLIWMachineScheduler::schedule(), llvm::ScheduleDAGMI::schedule(), llvm::SchedDFSResult::scheduleTree(), llvm::ConvergingVLIWScheduler::SchedulingCost(), llvm::ScoreboardHazardRecognizer::ScoreboardHazardRecognizer(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::SplitEditor::selectIntv(), llvm::BranchProbabilityInfo::setEdgeWeight(), llvm::ProfileInfoT< FType, BType >::setExecutionCount(), llvm::LiveIntervals::shrinkToUses(), SimplifyBranchOnICmpChain(), SimplifyCondBranchToCondBranch(), SimplifyCondBranchToTwoReturns(), SinkThenElseCodeToEnd(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::SparseSolver::Solve(), SpeculativelyExecuteBB(), llvm::ProfileInfoT< FType, BType >::splitBlock(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SplitEditor::splitLiveThroughBlock(), llvm::SplitEditor::splitRegInBlock(), llvm::SplitEditor::splitRegOutBlock(), SRAGlobal(), tracePick(), llvm::ProfileInfoT< FType, BType >::transfer(), TryToShrinkGlobalToBoolean(), llvm::TryToSimplifyUncondBranchFromEmptyBlock(), llvm::LiveRegMatrix::unassign(), llvm::UnrollLoop(), llvm::LiveIntervals::HMEditor::updateAllRanges(), llvm::ScheduleDAGMI::updateScheduledPressure(), llvm::SplitEditor::useIntv(), verifyCTRBranch(), llvm::Interpreter::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::ObjectSizeOffsetVisitor::visitInstruction(), llvm::ObjectSizeOffsetEvaluator::visitInstruction(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitTrunc(), llvm::InstCombiner::visitZExt(), and llvm::MachObjectWriter::WriteObject().
| #define DEBUG_TYPE "" |
| #define DEBUG_WITH_TYPE | ( | TYPE, | |
| X | |||
| ) |
do { if (::llvm::DebugFlag && ::llvm::isCurrentDebugType(TYPE)) { X; } \ } while (0)
DEBUG_WITH_TYPE macro - This macro should be used by passes to emit debug information. In the '-debug' option is specified on the commandline, and if this is a debug build, then the code specified as the option to the macro will be executed. Otherwise it will not be. Example:
DEBUG_WITH_TYPE("bitset", dbgs() << "Bitset contains: " << Bitset << "\n");
This will emit the debug information if -debug is present, and -debug-only is not specified, or is specified as "bitset".
Definition at line 67 of file Debug.h.
Referenced by llvm::MCAssembler::Finish(), llvm::SCEVExpander::replaceCongruentIVs(), and llvm::ProfileInfoT< FType, BType >::setEdgeWeight().