LLVM API Documentation
#include "llvm/Support/Compiler.h"#include <string>
Go to the source code of this file.
Namespaces | |
| namespace | llvm |
Defines | |
| #define | llvm_unreachable(msg) llvm_unreachable_internal(msg, __FILE__, __LINE__) |
Typedefs | |
| typedef void(* | llvm::llvm_error_handler_t )(void *user_data, const std::string &reason) |
| An error handler callback. | |
Functions | |
| void | llvm::llvm_install_error_handler (llvm_error_handler_t handler, void *user_data=0) |
| void | llvm::llvm_remove_error_handler () |
| void | llvm::llvm_report_error (const char *reason) NORETURN |
| void | llvm::llvm_report_error (const std::string &reason) NORETURN |
| void | llvm::llvm_report_error (const Twine &reason) NORETURN |
| void | llvm::llvm_unreachable_internal (const char *msg=0, const char *file=0, unsigned line=0) NORETURN |
| #define llvm_unreachable | ( | msg | ) | llvm_unreachable_internal(msg, __FILE__, __LINE__) |
Prints the message and location info to stderr in !NDEBUG builds. This is intended to be used for "impossible" situations that imply a bug in the compiler.
In NDEBUG mode it only prints "UNREACHABLE executed". Use this instead of assert(0), so that the compiler knows this path is not reachable even for NDEBUG builds.
Definition at line 82 of file ErrorHandling.h.
Referenced by llvm::dwarf::AccessibilityString(), llvm::PMDataManager::add(), llvm::FoldingSetNodeID::AddInteger(), llvm::PMDataManager::addLowerLevelRequiredPass(), AddNodeIDCustom(), llvm::X86JITInfo::allocateThreadLocalMemory(), AlphaCompilationCallback(), AlphaRevCondCode(), llvm::CCState::AnalyzeCallOperands(), llvm::CCState::AnalyzeCallResult(), llvm::CCState::AnalyzeFormalArguments(), llvm::CCState::AnalyzeReturn(), ARMCompilationCallback(), ARMCompilationCallbackC(), llvm::ARMCondCodeToString(), llvm::dwarf::ArrayOrderString(), llvm::dwarf::AttributeEncodingString(), llvm::dwarf::AttributeString(), BuildSplat(), llvm::dwarf::CallFrameString(), llvm::dwarf::CaseString(), categorize(), llvm::dwarf::ChildrenString(), llvm::X86InstrInfo::commuteInstruction(), llvm::APFloat::compare(), ConstantFoldBinaryFP(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), ConstantFoldFP(), llvm::ConstantFoldInstOperands(), llvm::dwarf::ConventionString(), llvm::ConvertConstant< ConstantClass, TypeClass >::convert(), llvm::BlackfinInstrInfo::copyRegToReg(), llvm::ConstantCreator< ConstantExpr, Type, ExprMapKeyType >::create(), createTLOF(), llvm::createVirtRegRewriter(), llvm::dwarf::DecimalSignString(), llvm::X86ATTAsmPrinter::DecorateCygMingName(), llvm::X86IntelAsmPrinter::decorateName(), DescKind(), llvm::GlobalValue::destroyConstant(), llvm::dwarf::DiscriminantString(), llvm::AsmPrinter::doFinalization(), llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::SelectionDAGLowering::EmitBranchForMergedCondition(), llvm::SystemZTargetLowering::EmitCmp(), EmitCMP(), llvm::AsmPrinter::EmitConstantPool(), llvm::AsmPrinter::EmitConstantValueOnly(), llvm::X86RegisterInfo::emitEpilogue(), llvm::MSP430RegisterInfo::emitEpilogue(), llvm::Dwarf::EmitFrameMoves(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), llvm::ARMJITInfo::emitFunctionStub(), llvm::ARMJITInfo::emitGlobalValueIndirectSym(), llvm::PPCHazardRecognizer970::EmitInstruction(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::AsmPrinter::EmitMachineConstantPoolValue(), llvm::ScheduleDAGSDNodes::EmitNode(), llvm::DIEBlock::EmitValue(), llvm::DIEInteger::EmitValue(), llvm::dwarf::EndianityString(), EvaluateStoreInto(), EVTToAPFloatSemantics(), executeCmpInst(), executeFAddInst(), executeFCMP_OEQ(), executeFCMP_OGE(), executeFCMP_OGT(), executeFCMP_OLE(), executeFCMP_OLT(), executeFCMP_ONE(), executeFDivInst(), executeFMulInst(), executeFRemInst(), executeFSubInst(), executeICMP_EQ(), executeICMP_NE(), executeICMP_SGE(), executeICMP_SGT(), executeICMP_SLE(), executeICMP_SLT(), executeICMP_UGE(), executeICMP_UGT(), executeICMP_ULE(), executeICMP_ULT(), llvm::MachOCodeEmitter::finishFunction(), llvm::ELFCodeEmitter::finishFunction(), fold(), FoldOperationIntoSelectOperand(), llvm::SelectionDAG::FoldSetCC(), llvm::dwarf::FormEncodingString(), FPBranchCodeToOpc(), FPCCToARMCC(), FPCondCCodeToFCC(), GeneratePerfectShuffle(), GetAddressedElementFromGlobal(), getAddrModeUPBits(), llvm::GlobalAlias::getAliasedGlobal(), getAlphaRegNumber(), llvm::ARM_AM::getAMSubModeAltStr(), llvm::ARM_AM::getAMSubModeStr(), llvm::MSILWriter::getBitWidth(), llvm::SystemZInstrInfo::getBrCond(), llvm::ConstantExpr::getCast(), llvm::CastInst::getCastOpcode(), llvm::ConstantExpr::getCompareTy(), GetCondBranchFromCond(), llvm::X86::GetCondBranchFromCond(), llvm::Mips::GetCondBranchFromCond(), llvm::ExecutionEngine::getConstantValue(), getConstraintGenerality(), llvm::MSILWriter::getConvModopt(), getCopyFromParts(), getCopyToParts(), getCRIdxForSetCC(), llvm::X86ELFWriterInfo::getDefaultAddendForRelTy(), getDisplacementFieldSize(), getDoubleRegPair(), llvm::SparcRegisterInfo::getDwarfRegNum(), llvm::PIC16RegisterInfo::getDwarfRegNum(), llvm::MSP430RegisterInfo::getDwarfRegNum(), llvm::MipsRegisterInfo::getDwarfRegNum(), llvm::BlackfinRegisterInfo::getDwarfRegNum(), llvm::AlphaRegisterInfo::getDwarfRegNum(), llvm::X86RegisterInfo::getEHExceptionRegister(), llvm::SparcRegisterInfo::getEHExceptionRegister(), llvm::MipsRegisterInfo::getEHExceptionRegister(), llvm::BlackfinRegisterInfo::getEHExceptionRegister(), llvm::ARMBaseRegisterInfo::getEHExceptionRegister(), llvm::AlphaRegisterInfo::getEHExceptionRegister(), llvm::X86RegisterInfo::getEHHandlerRegister(), llvm::SparcRegisterInfo::getEHHandlerRegister(), llvm::MipsRegisterInfo::getEHHandlerRegister(), llvm::BlackfinRegisterInfo::getEHHandlerRegister(), llvm::ARMBaseRegisterInfo::getEHHandlerRegister(), llvm::AlphaRegisterInfo::getEHHandlerRegister(), GetEncodedBinaryOpcode(), GetEncodedCastOpcode(), getEncodedLinkage(), getEncodedVisibility(), llvm::EVT::getEVT(), llvm::EVT::getEVTString(), getFCmpCode(), getFCmpCondCode(), getFCmpValue(), getFloatBitCastField(), llvm::SparcRegisterInfo::getFrameRegister(), llvm::PIC16RegisterInfo::getFrameRegister(), llvm::PPCHazardRecognizer970::getHazardType(), GetHeapSROAValue(), getICmpCode(), getICmpCondCode(), getICmpValue(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), GetInstSizeWithDesc(), getIntrinsicName(), llvm::TargetLoweringObjectFile::getKindForGlobal(), getLoadRegOpcode(), getLoadStoreMultipleOpcode(), llvm::SystemZInstrInfo::getLongDispOpc(), llvm::getMatchingCondBranchOpcode(), GetNegatedExpression(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOperationName(), GetOppositeBranchCondition(), llvm::X86::GetOppositeBranchCondition(), llvm::Mips::GetOppositeBranchCondition(), llvm::SystemZInstrInfo::getOppositeCondition(), llvm::ARMCC::getOppositeCondition(), GetPointerOperand(), llvm::X86RegisterInfo::getPointerRegClass(), llvm::ExecutionEngine::getPointerToGlobal(), getPostIndexedLoadStoreOpcode(), getPredicateForSetCC(), getPreIndexedLoadStoreOpcode(), llvm::MSILWriter::getPrimitiveTypeName(), llvm::SparcRegisterInfo::getRARegister(), llvm::PIC16RegisterInfo::getRARegister(), llvm::AlphaRegisterInfo::getRARegister(), llvm::PPCRegisterInfo::getRegisterNumbering(), llvm::MipsRegisterInfo::getRegisterNumbering(), llvm::ARMBaseRegisterInfo::getRegisterNumbering(), llvm::X86ELFWriterInfo::getRelocationType(), llvm::X86ELFWriterInfo::getRelocationTySize(), llvm::ScalarEvolution::getSCEVAtScope(), GetSelectFoldableConstant(), llvm::ARM_AM::getShiftOpcStr(), getStdLibCallName(), getStoreRegOpcode(), llvm::PPCMachOWriterInfo::GetTargetRelocation(), llvm::SCEVCouldNotCompute::getType(), llvm::MSILWriter::getTypeName(), llvm::MSILWriter::getTypePostfix(), llvm::TargetData::getTypeSizeInBits(), llvm::LiveIntervals::getVNInfoSourceReg(), llvm::SelectionDAG::getVTList(), llvm::X86RegisterInfo::getX86RegNum(), llvm::SCEVCouldNotCompute::hasComputableLoopEvolution(), llvm::SCEVCouldNotCompute::hasOperand(), llvm::ExecutionEngine::InitializeMemory(), llvm::MachOWriter::InitMem(), llvm::dwarf::InlineCodeString(), llvm::MSP430InstrInfo::InsertBranch(), llvm::BlackfinInstrInfo::InsertBranch(), llvm::TargetInstrInfo::insertNoop(), IntCCToARMCC(), IntCCToPIC16CC(), IntCondCCodeToICC(), llvm::PPC::InvertPredicate(), llvm::PseudoSourceValue::isConstant(), isEquivalentType(), llvm::MachineOperand::isIdenticalTo(), llvm::ScalarEvolution::isKnownPredicate(), llvm::SCEVCouldNotCompute::isLoopInvariant(), llvm::X86ELFWriterInfo::isPCRelativeRel(), llvm::isSignedComparison(), isSignedOp(), isVMOVSplat(), llvm::dwarf::LanguageString(), LinkGlobalInits(), llvm::Linker::LinkInFile(), llvm::Linker::LinkInLibrary(), LLVMCreateGenericValueOfFloat(), LLVMGenericValueToFloat(), LLVMGetInstructionCallConv(), LLVMSetInstructionCallConv(), llvm::dwarf::LNExtendedString(), llvm::dwarf::LNStandardString(), llvm::BlackfinInstrInfo::loadRegFromAddr(), llvm::SystemZInstrInfo::loadRegFromStackSlot(), llvm::SPUInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::PIC16InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::BlackfinInstrInfo::loadRegFromStackSlot(), llvm::AlphaInstrInfo::loadRegFromStackSlot(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), LowerBSWAP(), llvm::SPUTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall(), LowerConstantPool(), LowerEXTRACT_VECTOR_ELT(), llvm::SparcTargetLowering::LowerFormalArguments(), llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand(), LowerI8Math(), LowerJumpTable(), llvm::XCoreTargetLowering::LowerOperation(), llvm::X86TargetLowering::LowerOperation(), llvm::SystemZTargetLowering::LowerOperation(), llvm::SPUTargetLowering::LowerOperation(), llvm::SparcTargetLowering::LowerOperation(), llvm::TargetLowering::LowerOperation(), llvm::PPCTargetLowering::LowerOperation(), llvm::MSP430TargetLowering::LowerOperation(), llvm::BlackfinTargetLowering::LowerOperation(), llvm::ARMTargetLowering::LowerOperation(), llvm::AlphaTargetLowering::LowerOperation(), LowerSCALAR_TO_VECTOR(), LowerVECTOR_SHUFFLE(), LowerVSETCC(), llvm::MachOSym::MachOSym(), llvm::dwarf::MacinfoString(), llvm::ICmpInst::makeConstantRange(), llvm::MapValue(), MergeCompare(), llvm::Mips::MipsFCCToString(), llvm::dwarf::OperationEncodingString(), llvm::WeakMetadataVH::operator Value *(), OptimizeGlobalAddressOfMalloc(), llvm::cl::ParseCommandLineOptions(), llvm::PassNameParser::passRegistered(), llvm::GCStrategy::performCustomLowering(), PerformExtendCombine(), PerformIntrinsicCombine(), PerformShiftCombine(), llvm::PIC16CondCodeToString(), PPC32CompilationCallback(), PPC64CompilationCallback(), llvm::Value::print(), llvm::AliasSet::print(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::MSILWriter::printCastInstruction(), llvm::MSILWriter::printConstantExpr(), llvm::MSILWriter::printConstLoad(), llvm::MSILWriter::printConvToPtr(), llvm::AsmPrinter::printDataDirective(), llvm::MSILWriter::printFCmpInstruction(), llvm::MSILWriter::printFunctionCall(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), llvm::MSILWriter::printICmpInstruction(), llvm::MSILWriter::printInstruction(), llvm::MSILWriter::printIntrinsicCall(), llvm::X86ATTAsmPrinter::printLeaMemReference(), PrintLinkage(), PrintLLVMName(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::AsmPrinter::printMCInst(), llvm::X86ATTAsmPrinter::printOperand(), llvm::X86ATTAsmPrinter::printPICLabel(), llvm::MSILWriter::printPtrLoad(), llvm::X86ATTAsmPrinter::printSSECC(), llvm::MSILWriter::printStaticConstant(), llvm::MSILWriter::printStaticInitializer(), llvm::MSILWriter::printStaticInitializerList(), llvm::X86ATTAsmPrinter::printSymbolOperand(), llvm::MSILWriter::printValueLoad(), llvm::MSILWriter::printValueSave(), PrintVisibility(), llvm::PPCRegisterInfo::processFunctionBeforeFrameFinalized(), ProvideOption(), llvm::PPCJITInfo::relocate(), llvm::AlphaJITInfo::relocate(), RemapOperand(), llvm::RemoveSuccessor(), ReplaceFPIntrinsicWithCall(), llvm::AlphaJITInfo::replaceMachineCodeForFunction(), llvm::XCoreTargetLowering::ReplaceNodeResults(), llvm::BlackfinTargetLowering::ReplaceNodeResults(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::NamedMDNode::replaceUsesOfWithOnConstant(), llvm::MDNode::replaceUsesOfWithOnConstant(), llvm::ConstantExpr::replaceUsesOfWithOnConstant(), llvm::rewriteARMFrameIndex(), llvm::DAGTypeLegalizer::run(), llvm::Interpreter::run(), llvm::JIT::runFunction(), llvm::X86IntelAsmPrinter::runOnMachineFunction(), llvm::TargetLowering::SimplifySetCC(), llvm::DIEBlock::SizeOf(), llvm::DIEInteger::SizeOf(), llvm::X86InstrInfo::sizeOfImm(), llvm::SPARCCondCodeToString(), llvm::SplitCriticalEdge(), llvm::APInt::sqrt(), llvm::BlackfinInstrInfo::storeRegToAddr(), llvm::SystemZInstrInfo::storeRegToStackSlot(), llvm::SPUInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::PIC16InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::BlackfinInstrInfo::storeRegToStackSlot(), llvm::AlphaInstrInfo::storeRegToStackSlot(), llvm::dwarf::TagString(), TranslateX86CC(), TypesEqual(), llvm::UpgradeIntrinsicCall(), llvm::PMDataManager::verifyDomInfo(), llvm::dwarf::VirtualityString(), llvm::dwarf::VisibilityString(), llvm::SelectionDAGLowering::visit(), llvm::SCEVVisitor< llvm::SCEVExpander, llvm::Value * >::visit(), llvm::Interpreter::visitBinaryOperator(), llvm::SCEVVisitor< llvm::SCEVExpander, llvm::Value * >::visitCouldNotCompute(), llvm::Interpreter::visitFCmpInst(), llvm::Interpreter::visitICmpInst(), llvm::Interpreter::visitInstruction(), llvm::Interpreter::visitPHINode(), llvm::Interpreter::visitVAArgInst(), WriteBlockInfo(), WriteConstantInt(), WriteConstants(), WriteFileData(), WriteTypeTable(), and X86CompilationCallback().