LLVM  6.0.0svn
Namespaces | Macros | Functions | Variables
Debug.h File Reference

Go to the source code of this file.

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Macros

#define DEBUG_WITH_TYPE(TYPE, X)
 DEBUG_WITH_TYPE macro - This macro should be used by passes to emit debug information. More...
 
#define DEBUG(X)   DEBUG_WITH_TYPE(DEBUG_TYPE, X)
 

Functions

bool llvm::isCurrentDebugType (const char *Type)
 isCurrentDebugType - Return true if the specified string is the debug type specified on the command line, or if none was specified on the command line with the -debug-only=X option. More...
 
void llvm::setCurrentDebugType (const char *Type)
 setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified. More...
 
void llvm::setCurrentDebugTypes (const char **Types, unsigned Count)
 setCurrentDebugTypes - Set the current debug type, as if the -debug-only=X,Y,Z option were specified. More...
 
raw_ostreamllvm::dbgs ()
 dbgs() - This returns a reference to a raw_ostream for debugging messages. More...
 

Variables

bool llvm::DebugFlag = false
 This boolean is set to true if the '-debug' command line option is specified. More...
 
bool llvm::EnableDebugBuffering = false
 EnableDebugBuffering - This defaults to false. More...
 
Verification flags.

These flags turns on/off that are expensive and are turned off by default, unless macro EXPENSIVE_CHECKS is defined.

The flags allow selectively turning the checks on without need to recompile.

bool llvm::VerifyDomInfo = false
 Enables verification of dominator trees. More...
 
bool llvm::VerifyLoopInfo = false
 Enables verification of loop info. More...
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG (   X)    DEBUG_WITH_TYPE(DEBUG_TYPE, X)

Definition at line 118 of file Debug.h.

Referenced by llvm::InstCombineWorklist::Add(), addData(), addDiscriminators(), addEdge(), addForcedAttributes(), llvm::ExecutionEngine::addGlobalMapping(), llvm::InstCombineWorklist::AddInitialGroup(), llvm::InnerLoopVectorizer::addMetadata(), addNonNullAttrs(), AddReachableCodeToWorklist(), llvm::LoopAccessInfo::addRuntimeChecks(), addSegmentsWithValNo(), llvm::DIEHash::addSLEB128(), llvm::addStringMetadataToLoop(), llvm::BlockFrequencyInfoImplBase::addToDist(), llvm::DIEHash::addULEB128(), llvm::IVUsers::AddUsersImpl(), adjCycles(), llvm::BlockFrequencyInfoImplBase::adjustLoopHeaderMass(), AdjustStackOffset(), llvm::HexagonHazardRecognizer::AdvanceCycle(), llvm::AggressiveAntiDepBreaker::AggressiveAntiDepBreaker(), llvm::RegAllocBase::allocatePhysRegs(), llvm::AllocationOrder::AllocationOrder(), alwaysAvailable(), llvm::HexagonInstrInfo::analyzeBranch(), analyzeLoopUnrollCost(), annotateAllFunctions(), llvm::A57ChainingConstraint::apply(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ApplyNextUpdate(), llvm::applyPPChighesta(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ApplyUpdates(), areCandidatesToMergeOrPair(), llvm::MemoryDepChecker::areDepsSafe(), areStridedAccessesIndependent(), asmClobbersCTR(), llvm::LiveRegMatrix::assign(), llvm::ARCFrameLowering::assignCalleeSavedSpillSlots(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), atomicSizeSupported(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::attachNewSubtree(), llvm::AVRDAGToDAGISel::select< ISD::BRIND >(), BBIsJumpedOver(), bitTrackingDCE(), bothUsedInPHI(), llvm::BranchFolder::BranchFolder(), branchMaxOffsets(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::AggressiveAntiDepBreaker::BreakAntiDependencies(), BreakUpSubtract(), BUCompareLatency(), llvm::coro::buildCoroutineFrame(), llvm::CFGMST< Edge, BBInfo >::buildEdges(), BuildInstOrderMap(), buildMultiplyTree(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::SchedBoundary::bumpCycle(), llvm::SchedBoundary::bumpNode(), BURRSort(), CalcNodeSethiUllmanNumber(), llvm::BranchProbabilityInfo::calculate(), llvm::BlockFrequencyInfoImpl< llvm::BitTracker >::calculate(), llvm::calculateClrEHStateNumbers(), calculateCXXStateNumbers(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::CalculateFromScratch(), calculateOffsetDiff(), llvm::LiveRangeEdit::calculateRegClassAndHint(), calculateSEHStateNumbers(), llvm::calculateSpillWeightsAndHints(), callHasRegMask(), llvm::orc::remote::OrcRemoteTargetClient::callIntVoid(), llvm::orc::remote::OrcRemoteTargetClient::callMain(), callsiteIsHot(), llvm::orc::remote::OrcRemoteTargetClient::callVoidVoid(), canClobberPhysRegDefs(), canEnableCoalescing(), canFoldInAddressingMode(), canFoldIVIncExpr(), canIfConvertPHINodes(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canMoveInstsAcrossMemOp(), llvm::HexagonPacketizerList::canPromoteToDotCur(), CanPropagatePredecessorsForPHIs(), canRenameComdat(), canSafelyUnrollMultiExitLoop(), llvm::MachineBasicBlock::canSplitCriticalEdge(), llvm::TailDuplicator::canTailDuplicate(), CC_Lanai32_VarArg(), CC_MipsO32_FP64(), changeFCMPPredToAArch64CC(), llvm::RuntimeDyldCheckerImpl::check(), llvm::GenericScheduler::checkAcyclicLatency(), CheckForCanReleaseCFGHazard(), CheckForLiveRegDef(), llvm::SchedBoundary::checkHazard(), checkRegOnlyPHIInputs(), clampStackAlignment(), llvm::HexagonPacketizerList::cleanUpDotCur(), llvm::SplitAnalysis::clear(), llvm::objcarc::PtrState::ClearKnownPositiveRefCount(), llvm::RegionBase< RegionTraits< Function > >::clearNodeCache(), cloneConstantExprWithNewAddressSpace(), CloneLoop(), llvm::FunctionComparator::cmpConstants(), collectCallers(), llvm::collectCmpOps(), llvm::ScalarEvolution::collectParametricTerms(), collectPHIs(), CollectSubexprs(), combineInstructionsOverFunction(), CompareMBBNumbers(), completeEphemeralValues(), llvm::ObjectSizeOffsetVisitor::compute(), llvm::ObjectSizeOffsetEvaluator::compute(), llvm::ScalarEvolution::computeAccessFunctions(), llvm::ComputeCrossModuleImport(), llvm::ComputeCrossModuleImportForModule(), llvm::ScheduleDAGMILive::computeCyclicCriticalPath(), llvm::HexagonBlockRanges::computeDeadMap(), llvm::computeDeadSymbols(), computeImportForFunction(), ComputeImportForModule(), llvm::safestack::StackLayout::computeLayout(), llvm::HexagonBlockRanges::computeLiveMap(), computeLiveOuts(), llvm::BlockFrequencyInfoImplBase::computeLoopScale(), llvm::computePeelCount(), ComputePostOrders(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ComputeUnreachableDominators(), computeUnrollCount(), computeWeight(), llvm::InstructionSelector::constrainSelectedInstRegOperands(), llvm::sys::UnicodeCharSet::contains(), containsNewBackedge(), convertFloatingToInteger(), ConvertToSInt(), llvm::X86InstrInfo::copyPhysReg(), llvm::SystemZHazardRecognizer::copyState(), llvm::SchedBoundary::countResource(), llvm::createAArch64ConditionalCompares(), llvm::createAArch64ConditionOptimizerPass(), createAndInstr(), createBBSelectReg(), llvm::InnerLoopVectorizer::createBlockInMask(), createCast(), llvm::createCodeGenPreparePass(), llvm::createConstantHoistingPass(), llvm::createCopyConstrainDAGMutation(), createDevirtTriggerFunc(), llvm::createFalkorMarkStridedAccessesPass(), llvm::createGenericSchedPostRA(), llvm::createGreedyRegisterAllocator(), llvm::createHexagonHardwareLoops(), createIrreducibleLoop(), llvm::createLoopDeletionPass(), llvm::createMergeFunctionsPass(), llvm::createMSP430ISelDag(), llvm::createObjCARCOptPass(), llvm::createPGOInstrumentationUseLegacyPass(), createRdxShuffleMask(), llvm::createRegUsageInfoCollector(), llvm::createSIWholeQuadModePass(), llvm::createStoreClusterDAGMutation(), llvm::createWebAssemblyArgumentMove(), llvm::createWebAssemblyFixIrreducibleControlFlow(), llvm::createWebAssemblyLowerBrUnless(), llvm::createWebAssemblyOptimizeLiveIntervals(), llvm::createWebAssemblyRegNumbering(), llvm::createWebAssemblyReplacePhysRegs(), llvm::createX86FixupBWInsts(), llvm::createX86FixupLEAs(), llvm::createX86OptimizeLEAs(), CriticalPathStep(), DecodeGPR32RegisterClass(), DecodeLdLImmInstruction(), DecodeLdRLImmInstruction(), DecodeStLImmInstruction(), llvm::VPBlockBase::deleteCFG(), deleteDeadInstruction(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteEdge(), deleteIfDead(), deleteLoopIfDead(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteReachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteUnreachable(), llvm::ScalarEvolution::delinearize(), llvm::DependenceInfo::depends(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::BlockFrequencyInfoImplBase::distributeIrrLoopHeaderMass(), llvm::BlockFrequencyInfoImplBase::distributeMass(), doCandidateWalk(), doPromotion(), llvm::GVNExpression::Expression::dump(), llvm::ConstantUniqueMap< llvm::ConstantExpr >::dump(), dumpMachineInstrRangeWithSlotIndex(), dumpRelocs(), llvm::JumpThreadingPass::DuplicateCondBranchOnPHIIntoPred(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), eliminateDeadStores(), eliminateDeadSwitchCases(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), eliminateNoopStore(), llvm::DIEAbbrev::Emit(), llvm::RuntimeDyldImpl::emitCommonSymbols(), llvm::ARCFrameLowering::emitEpilogue(), llvm::PPCDispatchGroupSBHazardRecognizer::EmitInstruction(), llvm::HexagonHazardRecognizer::EmitInstruction(), llvm::WebAssemblyAsmPrinter::EmitInstruction(), llvm::SystemZHazardRecognizer::EmitInstruction(), llvm::ScoreboardHazardRecognizer::EmitInstruction(), llvm::ARCFrameLowering::emitPrologue(), llvm::RuntimeDyldImpl::emitSection(), llvm::HexagonMCCodeEmitter::encodeInstruction(), llvm::HexagonMCCodeEmitter::EncodeSingleInstruction(), llvm::VLIWPacketizerList::endPacket(), ensurePromotedGV(), llvm::SplitEditor::enterIntvAfter(), llvm::SplitEditor::enterIntvAtEnd(), llvm::SplitEditor::enterIntvBefore(), llvm::SystemZPostRASchedStrategy::enterMBB(), llvm::InstCombiner::eraseInstFromFunction(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::Evaluator::EvaluateBlock(), llvm::Evaluator::EvaluateFunction(), EvaluateStaticConstructor(), llvm::VPBasicBlock::execute(), llvm::VPRegionBlock::execute(), expandBounds(), ExpandBVWithShuffles(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), extendSegmentsToUses(), llvm::CodeExtractor::extractCodeRegion(), extractInteger(), extractVector(), llvm::SchedDFSImpl::finalize(), llvm::RuntimeDyldMachOCRTPBase< RuntimeDyldMachOX86_64 >::finalizeLoad(), llvm::orc::remote::OrcRemoteTargetClient::RemoteRTDyldMemoryManager::finalizeMemory(), llvm::BlockFrequencyInfoImplBase::finalizeMetrics(), llvm::GCNScheduleDAGMILive::finalizeSchedule(), llvm::RuntimeDyldMachOI386::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), find_best(), findArgumentCopyElisionCandidates(), llvm::ScalarEvolution::findArrayDimensions(), llvm::SSAUpdaterImpl< UpdaterT >::FindAvailableVals(), findBaseDefiningValueCached(), findBasePointer(), findBestInsertionSet(), findCalledFunction(), FindCallSeqStart(), findGCD(), findGluedUser(), findIBRPredecessor(), FindIDom(), findInitTrampoline(), llvm::CodeExtractor::findInputsOutputs(), findIrreducibleHeaders(), llvm::SchedBoundary::findMaxLatency(), findNextInsertLocation(), findPartitions(), FindPredecessorAutoreleaseWithSafePath(), findRetainForStoreStrongContraction(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::FindRoots(), FindSplitPointForStackProtector(), FindStartOfTree(), llvm::RegScavenger::FindUnusedReg(), fixPhis(), llvm::ScheduleDAGInstrs::fixupKills(), fixupRegionExits(), llvm::AMDGPULibCalls::fold(), foldBlockIntoPredecessor(), llvm::FoldBranchToCommonDest(), FoldIntToFPToInt(), foldMaskAndShiftToScale(), foldReturnAndProcessPred(), llvm::InstCombiner::FoldShiftByConstant(), FoldTwoEntryPHINode(), llvm::formDedicatedExitBlocks(), llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), fuseInstructionPair(), llvm::GCNScheduleDAGMILive::GCNScheduleDAGMILive(), llvm::HexagonInstrInfo::genAllInsnTimingClasses(), generateStackAdjustment(), genLoopLimit(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ChildrenGetter< Inverse >::Get(), llvm::IRTranslator::getAnalysisUsage(), llvm::RegBankSelect::getAnalysisUsage(), llvm::FunctionLoweringInfo::getArgumentFrameIndex(), getBlockName(), getBranchDebugLoc(), getBranchHint(), llvm::MemorySSA::CachingWalker::getClobberingMemoryAccess(), getCmpForPseudo(), getCombinerObjective(), getCompoundInsn(), getConstantPart(), getCopyRewriter(), GetCostForDef(), llvm::coverage::CoverageMapping::getCoverageForExpansion(), llvm::coverage::CoverageMapping::getCoverageForFile(), llvm::coverage::CoverageMapping::getCoverageForFunction(), getDIEStringAttr(), llvm::HexagonMCInstrInfo::getDuplexPossibilties(), getEdgeValueLocal(), getExpandedMinMaxOps(), getFalkorUnrollingPreferences(), GetFPLibCall(), getFPReg(), getFromRangeMetadata(), getFunctionName(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), llvm::ExecutionEngine::getGlobalValueAtAddress(), llvm::HexagonHazardRecognizer::getHazardType(), llvm::ScoreboardHazardRecognizer::getHazardType(), getIncrmentFactorSCEV(), getInductionVariable(), llvm::getInlineCost(), getInstrVecReg(), getIntOperandFromRegisterString(), getLayoutSuccessorProbThreshold(), getLeaOP(), getLoadStoreOffsetAlign(), llvm::VNCoercion::getLoadValueForLoad(), GetLoopInvariantInsertPosition(), getLoopLatchExitBlock(), getNewAlignment(), getNewAlignmentDiff(), getNewValueJumpOpcode(), llvm::DOTGraphTraits< BoUpSLP * >::getNodeAttributes(), getNodeRegMask(), llvm::MemoryDependenceResults::getNonLocalCallDependency(), getNumAllocatableRegsForConstraints(), getNumBytes(), getOModValue(), getOrExecSource(), llvm::SchedBoundary::getOtherResourceCount(), GetPointerOperand(), getPointerOperand(), llvm::HexagonInstrInfo::getPredReg(), getPromotedVectorElementType(), llvm::getPtrStride(), getReassignedChan(), getRegClassFromGRPhysReg(), llvm::WebAssemblyAsmPrinter::getRegType(), getRetComponentType(), getSchedRegions(), llvm::slpvectorizer::BoUpSLP::getSpillCost(), llvm::DependenceInfo::getSplitIteration(), getStartOrEndSlot(), getStoreTarget(), getStrictFPOpcodeAction(), getSuccState(), llvm::object::WasmObjectFile::getSymbolFlags(), getTag(), llvm::MipsTargetMachine::getTargetIRAnalysis(), llvm::DenseMapInfo< CallValue >::getTombstoneKey(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), getTypePartition(), getUnconditionalBrDisp(), getUnderlyingArgReg(), llvm::AMDGPUTTIImpl::getUnrollingPreferences(), llvm::ARMTTIImpl::getUnrollingPreferences(), llvm::MachineSSAUpdater::GetValueInMiddleOfBlock(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), GetVBR(), getVCmpInst(), GetVRegRenameMap(), llvm::getWeightFromBranchProb(), greaterWithBias(), handleADRP(), handleEndBlock(), handleFree(), handleNormalInst(), llvm::objcarc::BottomUpPtrState::HandlePotentialAlterRefCount(), llvm::objcarc::TopDownPtrState::HandlePotentialAlterRefCount(), llvm::objcarc::BottomUpPtrState::HandlePotentialUse(), llvm::objcarc::TopDownPtrState::HandlePotentialUse(), HasArgumentDef(), hasCyclesInLoopBody(), hasDataDependence(), hasDataDependencyPred(), hasOneExitNode(), hasOneNonDBGUseInst(), hasOnlyUniformBranches(), hasOutsideLoopUser(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::HasProperSupport(), hasTiedDef(), hasTrivialSuccessor(), hasValueBeenRAUWed(), hasVRegCycleUse(), hasZeroSignBit(), llvm::HexagonMCShuffle(), hoist(), hoistAndMergeSGPRInits(), llvm::hoistRegion(), llvm::ICallPromotionAnalysis::ICallPromotionAnalysis(), ignoreDependence(), ImmInRange(), llvm::FunctionImporter::importFunctions(), incorporateNewSCCRange(), llvm::objcarc::BottomUpPtrState::InitBottomUp(), llvm::GenericScheduler::initCandidate(), llvm::GCNMaxOccupancySchedStrategy::initialize(), INITIALIZE_PASS(), INITIALIZE_PASS_END(), llvm::ExecutionEngine::InitializeMemory(), llvm::ScheduleDAGMILive::initRegPressure(), initVRegCycle(), inlineCallsImpl(), llvm::HexagonInstrInfo::insertBranch(), insertCopy(), insertDebugValues(), insertDeleteInstructions(), llvm::po_iterator_storage< LoopBounds, true >::insertEdge(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::InsertEdge(), insertInteger(), insertNopBeforeInstruction(), insertPHI(), llvm::InsertPreheaderForLoop(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::InsertReachable(), insertUniqueBackedgeBlock(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::InsertUnreachable(), insertVector(), InstructionStoresToFI(), instrumentMaskedLoadOrStore(), instrumentMemAccess(), instrumentOneFunc(), llvm::InternalizePass::internalizeModule(), intersect(), IntersectUnsignedRange(), llvm::Mips16RegisterInfo::intRegClass(), llvm::MachineTraceMetrics::Ensemble::invalidate(), llvm::MachineTraceMetrics::invalidate(), llvm::HexagonInstrInfo::invertAndChangeJumpTarget(), is_empty(), isACalleeSavedRegister(), isAlwaysFoldable(), isAtomic(), isBitfieldExtractOpFromAnd(), isBitfieldExtractOpFromShr(), isBroadcastShuffle(), isCallPromotable(), llvm::CoalescerPair::isCoalescable(), isCrossCopy(), isDefInSubRange(), llvm::MemoryDepChecker::Dependence::isForward(), llvm::AArch64TargetLowering::isFPImmLegal(), isFpMulInstruction(), isFullCopyOf(), isFullUndefDef(), isFunctionEntryBlock(), isFusableLoadOpStorePattern(), llvm::HexagonTargetObjectFile::isGlobalInSmallSection(), isIgnorableInst(), isImmValidForOpcode(), llvm::InductionDescriptor::isInductionPHI(), isInRage(), isIntegerLoopHeaderPHI(), isIrreducibleCFG(), isKnownTypeIdMember(), llvm::HexagonInstrInfo::isLateInstrFeedsEarlyInstr(), isLEASimpleIncOrDec(), llvm::AArch64TargetLowering::isLegalAddImmediate(), isLegalArithImmed(), llvm::X86Subtarget::isLegalToCallImmediateAddr(), llvm::isLegalToPromote(), isLiveOut(), isLoadConditional(), isLoopIncrement(), isLoopInvariant(), isMergeableLdStUpdate(), isMinSize(), IsNonLocalValue(), isNoWrap(), isObjectDereferencedInBlock(), llvm::AArch64TargetLowering::isOffsetFoldingLegal(), isOnlyReachableViaThisEdge(), isOperandOf(), isOverwrite(), isPCRel(), isPHIRegionIndex(), isProfitableChain(), isProfitableForVectorization(), isPromotedInstructionLegal(), IsPseudoCallIndirect(), isReassociableOp(), llvm::RecurrenceDescriptor::isReductionPHI(), isReInterleaveMask(), isRemainderZero(), IsSafeAndProfitableToMove(), isSafeToPromoteArgument(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), isSourceDefinedByImplicitDef(), llvm::FullDependence::isSplitable(), isSubregOf(), isTargetConstant(), isTerminalReg(), isTrivialLoopExitBlock(), isUnconditionalBranch(), isValidIndexedLoad(), isVectorReductionOp(), isVirtualRegisterOperand(), isWrapperOnlyCall(), iterativelySinkInstructions(), KnuthDiv(), llvm::LazyCallGraph::LazyCallGraph(), llvm::SplitEditor::leaveIntvAfter(), llvm::SplitEditor::leaveIntvAtTop(), llvm::SplitEditor::leaveIntvBefore(), llvm::SystemZPostRASchedStrategy::leaveMBB(), llvm::LegalizerHelper::legalizeInstrStep(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::LegalizeUpdates(), LinearizeExprTree(), LLVMSetLinkage(), llvm::coverage::CoverageMapping::load(), loadFile(), llvm::RuntimeDyldELF::loadObject(), llvm::RuntimeDyldImpl::loadObjectImpl(), llvm::ARCInstrInfo::loadRegFromStackSlot(), llvm::log2(), lookForCompound(), lookupCandidateBaseReg(), LoopIsOuterMostWithPredecessor(), llvm::HexagonTargetLowering::LowerCall(), lowerCallResult(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::RISCVTargetLowering::LowerOperation(), llvm::AArch64TargetLowering::LowerOperation(), llvm::ARMTargetLowering::LowerOperation(), makeBitReverse(), makeCombineInst(), mapBinOpcode(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::MarkBlockExecutable(), MarkBlocksLiveIn(), maskMatters(), matchBinaryPredicate(), llvm::gvn::AvailableValue::MaterializeAdjustedValue(), MaybeRewriteToFallthrough(), mayLoadFromGOTOrConstantPool(), mayLoopAccessLocation(), mayTailCallThisCC(), mergeCleanupPad(), mergeInlinedArrayAllocas(), mergeOperations(), llvm::DebugLocEntry::MergeValues(), minAPInt(), MoveAndTeeForMultiUse(), moveBBContents(), MoveForSingleUse(), moveSpillUsesAfterCoroBegin(), moveUp(), multipleIterations(), nearest_common_dominator(), needsFP(), llvm::TargetRegisterInfo::needsStackRealignment(), NewSDValueDbgMsg(), nextIfDebug(), node_eq(), NormalizeBuildVector(), normalizePBQPSpillWeight(), llvm::orc::remote::OrcRemoteTargetClient::RemoteRTDyldMemoryManager::notifyObjectLoaded(), llvm::AggressiveAntiDepBreaker::Observe(), okayForPHIOfOps(), operator new(), false::IntervalSorter::operator()(), llvm::bfi_detail::BlockEdgesAdder< BT >::operator()(), llvm::operator<<(), operator<<(), llvm::OProfileWrapper::OProfileWrapper(), OptimizeAwayTrappingUsesOfLoads(), optimizeCall(), llvm::slpvectorizer::BoUpSLP::optimizeGatherSequence(), OptimizeGlobalAddressOfMalloc(), llvm::optimizeGlobalCtorsList(), llvm::MemorySSA::OptimizeUses::OptimizeUses(), llvm::OptLevelChanger::OptLevelChanger(), llvm::SplitEditor::overlapIntv(), llvm::BlockFrequencyInfoImplBase::packageLoop(), packCmovGroup(), llvm::VLIWPacketizerList::PacketizeMIs(), parseCond(), patchAndReplaceAllUsesWith(), PeepholePPC64ZExtGather(), false::LibCallsShrinkWrap::perform(), performBitcastCombine(), performConcatVectorsCombine(), llvm::MipsSETargetLowering::PerformDAGCombine(), llvm::AArch64TargetLowering::PerformDAGCombine(), PerformHeapAllocSRoA(), performMaskedAtomicOp(), PerformSHLSimplify(), llvm::GCNMaxOccupancySchedStrategy::pickNode(), llvm::R600SchedStrategy::pickNode(), llvm::SystemZPostRASchedStrategy::pickNode(), llvm::ConvergingVLIWScheduler::pickNode(), llvm::GenericScheduler::pickNode(), llvm::PostGenericScheduler::pickNode(), llvm::GenericScheduler::pickNodeBidirectional(), llvm::ConvergingVLIWScheduler::pickNodeBidrectional(), llvm::ConvergingVLIWScheduler::pickNodeFromQueue(), llvm::GenericScheduler::pickNodeFromQueue(), llvm::PostGenericScheduler::pickNodeFromQueue(), llvm::SchedBoundary::pickOnlyChoice(), PlaceMarkers(), llvm::LoopVectorizationPlanner::plan(), populateCandidates(), populateDependencyMatrix(), llvm::RuntimeDyldMachO::populateIndirectSymbolPointersSection(), populateWorklist(), llvm::PPCHazardRecognizer970::PPCHazardRecognizer970(), llvm::HexagonInstrInfo::PredicateInstruction(), preheader(), PrepareCall(), llvm::MemoryDepChecker::Dependence::print(), llvm::AVROperand::print(), llvm::LiveIntervals::print(), printExtendedName(), llvm::AlignmentFromAssumptionsPass::processAssumption(), llvm::JumpThreadingPass::ProcessBlock(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), processInternalGlobal(), llvm::LoopVectorizePass::processLoop(), processPHI(), llvm::RuntimeDyldCOFFI386::processRelocationRef(), llvm::RuntimeDyldCOFFThumb::processRelocationRef(), llvm::RuntimeDyldCOFFX86_64::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::JumpThreadingPass::ProcessThreadableEdges(), ProfitableToMerge(), profitImm(), promoteArguments(), llvm::promoteIndirectCall(), promoteIndirectCalls(), llvm::promoteLoopAccessesToScalars(), propagateMetadata(), llvm::pruneCache(), pushDepHeight(), llvm::CFLAndersAAResult::query(), llvm::CFLSteensAAResult::query(), llvm::GVNHoist::rank(), readInstruction32(), readsVCCZ(), llvm::RuntimeDyldImpl::reassignSectionAddress(), llvm::AArch64TargetLowering::ReconstructShuffle(), llvm::StackMaps::recordStatepoint(), llvm::ScheduleDAGInstrs::reduceHugeMemNodeMaps(), RedzoneSizeForScale(), RefineErrorLoc(), llvm::RegisterBankInfo::RegisterBankInfo(), registerDefinedBetween(), llvm::GenericScheduler::registerRoots(), llvm::PostGenericScheduler::registerRoots(), regOverlapsSet(), llvm::R600SchedStrategy::releaseBottomNode(), llvm::ConvergingVLIWScheduler::releaseBottomNode(), llvm::LazyMachineBlockFrequencyInfoPass::releaseMemory(), llvm::DemandedBitsWrapperPass::releaseMemory(), llvm::R600SchedStrategy::releaseTopNode(), RematerializeCheapDef(), llvm::safestack::StackColoring::removeAllMarkers(), llvm::HexagonInstrInfo::removeBranch(), removeConvergentAttrs(), RemoveDeadAddBetweenLEAAndJT(), removeDeadSegment(), removeExternalCFGEdges(), llvm::MemoryDependenceResults::removeInstruction(), removePhis(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::RemoveRedundantRoots(), removeUndefIntroducingPredecessor(), removeUseSoftFloat(), llvm::SlotIndexes::renumberIndexes(), ReplaceDominatedUses(), replaceDominatedUsesWith(), ReplaceFrameIndex(), llvm::InstCombiner::replaceInstUsesWith(), llvm::replaceSymbolicStrideSCEV(), ReplaceUsesOfWith(), reportFastISelFailure(), reportLoadElim(), reportMayClobberedLoad(), rescheduleCanonically(), llvm::GenericScheduler::reschedulePhysRegCopies(), llvm::orc::remote::OrcRemoteTargetClient::RemoteRTDyldMemoryManager::reserveAllocationSpace(), llvm::VLIWResourceModel::reserveResources(), llvm::HexagonHazardRecognizer::Reset(), llvm::SystemZHazardRecognizer::Reset(), llvm::cl::ResetAllOptionOccurrences(), llvm::objcarc::PtrState::ResetSequenceProgress(), llvm::MipsTargetMachine::resetSubtarget(), llvm::HexagonMCShuffler::reshuffleTo(), llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), llvm::RuntimeDyldELFMips::resolveMIPSO32Relocation(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldImpl::resolveRelocations(), llvm::ARCFrameLowering::restoreCalleeSavedRegisters(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::HexagonInstrInfo::reversePredSense(), RewriteP2Align(), llvm::LoopPredicationPass::run(), llvm::LoopDataPrefetchPass::run(), llvm::LoopDeletionPass::run(), llvm::SimpleLoopUnswitchPass::run(), llvm::PassManager< Function >::run(), llvm::DeadArgumentEliminationPass::run(), llvm::ThinLTOCodeGenerator::run(), llvm::InlinerPass::run(), llvm::Interpreter::run(), llvm::safestack::StackColoring::run(), llvm::DAGTypeLegalizer::run(), llvm::InstCombiner::run(), llvm::ModuleToPostOrderCGSCCPassAdaptor< CGSCCPassT >::run(), llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::run(), llvm::DevirtSCCRepeatedPass< PassT >::run(), llvm::Float2IntPass::runImpl(), llvm::SpeculativeExecutionPass::runImpl(), llvm::SLPVectorizerPass::runImpl(), llvm::JumpThreadingPass::runImpl(), runIPSCCP(), runOnBasicBlock(), llvm::RGPassManager::runOnFunction(), llvm::InstructionSelect::runOnMachineFunction(), llvm::Legalizer::runOnMachineFunction(), llvm::Localizer::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::MachineRegionInfoPass::runOnMachineFunction(), llvm::ExecutionDepsFix::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::SlotIndexes::runOnMachineFunction(), llvm::RegBankSelect::runOnMachineFunction(), runSCCP(), llvm::salvageDebugInfo(), llvm::SelectionDAG::salvageDebugInfo(), scaleCaseProbality(), scaleWeights(), scanInlinedCode(), llvm::scavengeFrameVirtualRegs(), llvm::RegScavenger::scavengeRegister(), llvm::RegScavenger::scavengeRegisterBackwards(), scavengeStackSlot(), llvm::R600SchedStrategy::schedNode(), llvm::SystemZPostRASchedStrategy::schedNode(), llvm::GCNIterativeScheduler::schedule(), llvm::VLIWMachineScheduler::schedule(), llvm::GCNScheduleDAGMILive::schedule(), llvm::GCNIterativeScheduler::OverrideLegacyStrategy::schedule(), llvm::ScheduleDAGMI::schedule(), llvm::SIScheduleDAGMI::schedule(), llvm::ScheduleDAGMILive::schedule(), llvm::GCNIterativeScheduler::scheduleLegacyMaxOccupancy(), llvm::ScheduleDAGMILive::scheduleMI(), llvm::GCNIterativeScheduler::scheduleMinReg(), llvm::SchedDFSResult::scheduleTree(), llvm::ConvergingVLIWScheduler::SchedulingCost(), llvm::ScoreboardHazardRecognizer::ScoreboardHazardRecognizer(), llvm::SelectionDAGISel::SelectCodeCommon(), selectCopy(), selectI64Imm(), llvm::FastISel::selectIntrinsicCall(), llvm::SplitEditor::selectIntv(), separateNestedLoop(), llvm::FaultMaps::serializeToFaultMapSection(), llvm::StackMaps::serializeToStackMapSection(), llvm::LoopVectorizationPlanner::setBestPlan(), llvm::BlockFrequencyInfoImpl< llvm::BitTracker >::setBlockFreq(), setBranchWeights(), llvm::BranchProbabilityInfo::setEdgeProbability(), setFastFlags(), llvm::SelectionDAG::setGraphColor(), llvm::objcarc::PtrState::SetKnownPositiveRefCount(), llvm::GenericSchedulerBase::setPolicy(), llvm::setProfMetadata(), llvm::objcarc::PtrState::SetSeq(), llvm::ARMBaseRegisterInfo::shouldCoalesce(), shouldConvert(), shouldInline(), shouldReorderOperands(), shouldSpeculateInstrs(), shouldUseLA(), shrinkScalarCompare(), llvm::LiveIntervals::shrinkToUses(), llvm::HexagonShuffler::shuffle(), simplifyAllocaArraySize(), SimplifyBranchOnICmpChain(), SimplifyCondBranchToCondBranch(), SimplifyCondBranchToTwoReturns(), simplifyOneLoop(), sink(), sinkAndCmp0Expression(), SinkingPreventsImplicitNullCheck(), SinkInstruction(), sinkInstruction(), llvm::sinkRegion(), SinkThenElseCodeToEnd(), llvm::SIScheduleBlockScheduler::SIScheduleBlockScheduler(), llvm::BasicBlockPass::skipBasicBlock(), llvm::FunctionPass::skipFunction(), llvm::LoopPass::skipLoop(), llvm::RegionPass::skipRegion(), skipToNextUser(), SkipVRegs(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::Solve(), SortBlocks(), SortCallTargets(), SortNonLocalDepInfoCache(), speculatePHINodeLoads(), speculateSelectInstLoads(), SpeculativelyExecuteBB(), llvm::ARCFrameLowering::spillCalleeSavedRegisters(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), split(), splitCallSite(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SplitEditor::splitLiveThroughBlock(), llvm::SplitEditor::splitRegInBlock(), llvm::SplitEditor::splitRegOutBlock(), llvm::LiveIntervals::splitSeparateComponents(), SRAGlobal(), StackMallocSizeClass(), llvm::DbgValueHistoryMap::startInstrRange(), llvm::ARCInstrInfo::storeRegToStackSlot(), false::Chain::str(), stripRegisterPrefix(), subRangeLiveAt(), SumCanReachMin(), sumEdgeCount(), llvm::TailDuplicator::tailDuplicateBlocks(), llvm::thinLTOResolveWeakForLinkerModule(), llvm::JumpThreadingPass::ThreadEdge(), llvm::JumpThreadingPass::ThreadGuard(), tracePick(), TransferBlock(), truncateIVUse(), llvm::LegalizationArtifactCombiner::tryCombineAnyExt(), llvm::LegalizationArtifactCombiner::tryCombineSExt(), llvm::LegalizationArtifactCombiner::tryCombineZExt(), llvm::HexagonMCInstrInfo::tryCompound(), llvm::LegalizationArtifactCombiner::tryFoldImplicitDef(), tryFoldInst(), tryLowerToSLI(), llvm::GCNIterativeScheduler::tryMaximizeOccupancy(), tryPromoteAllocaToVector(), tryToElideArgumentCopy(), tryToReplaceWithConstant(), tryToReplaceWithConstantRange(), tryToShorten(), TryToShrinkGlobalToBoolean(), llvm::TryToSimplifyUncondBranchFromEmptyBlock(), tryToUnrollLoop(), tryToVectorizeHorReductionOrInstOperands(), TypeSizeToSizeIndex(), llvm::LiveRegMatrix::unassign(), llvm::UnrollLoop(), llvm::UnrollRuntimeLoopRemainder(), unsupportedBinOp(), unswitchLoop(), unswitchTrivialBranch(), unswitchTrivialSwitch(), unwrapLoop(), llvm::LiveIntervals::HMEditor::updateAllRanges(), llvm::InnerLoopVectorizer::updateAnalysis(), llvm::updateCGAndAnalysisManagerForFunctionPass(), llvm::MachineTraceMetrics::Ensemble::updateDepth(), llvm::MachineTraceMetrics::Ensemble::updateDepths(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateInsertion(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateLevelsAfterInsertion(), updateOperand(), llvm::ScheduleDAGMILive::updatePressureDiffs(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateRootsAfterUpdate(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateRootsBeforeInsertion(), llvm::ScheduleDAGMILive::updateScheduledPressure(), llvm::MipsSubtarget::useConstantIslands(), usedAsAddr(), llvm::SplitEditor::useIntv(), UseReg(), useSinCos(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), Verify(), verifyCTRBranch(), VerifyLowRegs(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyParentProperty(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::Interpreter::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VisitInsertion(), llvm::ObjectSizeOffsetVisitor::visitInstruction(), llvm::ObjectSizeOffsetEvaluator::visitInstruction(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitTrunc(), llvm::InstCombiner::visitZExt(), llvm::object::WasmObjectFile::WasmObjectFile(), llvm::InnerLoopVectorizer::widenInstruction(), llvm::MachObjectWriter::writeObject(), X86SelectAddress(), llvm::LiveDebugVariables::~LiveDebugVariables(), llvm::OptLevelChanger::~OptLevelChanger(), and llvm::orc::remote::OrcRemoteTargetClient::RemoteRTDyldMemoryManager::~RemoteRTDyldMemoryManager().

◆ DEBUG_WITH_TYPE

#define DEBUG_WITH_TYPE (   TYPE,
  X 
)
Value:
do { if (::llvm::DebugFlag && ::llvm::isCurrentDebugType(TYPE)) { X; } \
} while (false)
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
bool DebugFlag
This boolean is set to true if the &#39;-debug&#39; command line option is specified.
Definition: Debug.cpp:43
bool isCurrentDebugType(const char *Type)
isCurrentDebugType - Return true if the specified string is the debug type specified on the command l...
Definition: Debug.cpp:50

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 64 of file Debug.h.

Referenced by llvm::calculateClrEHStateNumbers(), llvm::colorEHFunclets(), llvm::InstructionSelector::executeMatchTable(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), llvm::AMDGPULibCalls::initNativeFuncs(), llvm::MCAssembler::layout(), llvm::object::MachORebaseEntry::moveNext(), llvm::object::MachOBindEntry::moveNext(), llvm::HexagonDAGToDAGISel::PreprocessISelDAG(), llvm::SCEVExpander::replaceCongruentIVs(), and llvm::AMDGPULibCalls::useNative().