|
LLVM
7.0.0
|
#include "llvm/ADT/Optional.h"
Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | Optional () |
| constexpr | Optional (NoneType) |
| Optional (const T &y) | |
| Optional (const Optional &O)=default | |
| Optional (T &&y) | |
| Optional (Optional &&O)=default | |
| Optional & | operator= (T &&y) |
| Optional & | operator= (Optional &&O)=default |
| template<typename... ArgTypes> | |
| void | emplace (ArgTypes &&... Args) |
| Create a new object by constructing it in place with the given arguments. More... | |
| Optional & | operator= (const T &y) |
| Optional & | operator= (const Optional &O)=default |
| void | reset () |
| const T * | getPointer () const |
| T * | getPointer () |
| const T & | getValue () const LLVM_LVALUE_FUNCTION |
| T & | getValue () LLVM_LVALUE_FUNCTION |
| operator bool () const | |
| bool | hasValue () const |
| const T * | operator-> () const |
| T * | operator-> () |
| const T & | operator* () const LLVM_LVALUE_FUNCTION |
| T & | operator* () LLVM_LVALUE_FUNCTION |
| template<typename U > | |
| constexpr T | getValueOr (U &&value) const LLVM_LVALUE_FUNCTION |
Static Public Member Functions | |
| static Optional | create (const T *y) |
Definition at line 131 of file Optional.h.
| using llvm::Optional< T >::value_type = T |
Definition at line 135 of file Optional.h.
|
inline |
Definition at line 137 of file Optional.h.
|
inline |
Definition at line 138 of file Optional.h.
|
inline |
Definition at line 140 of file Optional.h.
|
inline |
Definition at line 143 of file Optional.h.
|
default |
|
inlinestatic |
Definition at line 159 of file Optional.h.
|
inline |
Create a new object by constructing it in place with the given arguments.
Definition at line 153 of file Optional.h.
Referenced by llvm::DIFile::ChecksumInfo< T >::getKindAsString(), isValidVariableType(), llvm::ValueMap< const Function *, FuncInfo >::MD(), llvm::LegacyAARGetter::operator()(), and llvm::NamedMDNode::print().
|
inline |
Definition at line 171 of file Optional.h.
|
inline |
Definition at line 175 of file Optional.h.
|
inline |
Definition at line 179 of file Optional.h.
Referenced by calculateOffsetDiff(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), cloneConstantExprWithNewAddressSpace(), llvm::DWARFFormValue::dump(), llvm::DWARFContext::dump(), dumpAttribute(), llvm::InstructionSelector::executeMatchTable(), llvm::BitstreamWriter::ExitBlock(), llvm::sys::Process::FindInEnvPath(), llvm::ProfileSummaryInfo::getColdCountThreshold(), getComparePred(), getCopyFromPartsVector(), llvm::RegsForValue::getCopyFromRegs(), getCopyToPartsVector(), llvm::RegsForValue::getCopyToRegs(), GetDeoptBundleOperands(), llvm::SCEVExpander::getExactExistingExpansion(), llvm::ProfileSummaryInfo::getHotCountThreshold(), llvm::ProfileSummaryInfo::getOrCompColdCountThreshold(), llvm::ProfileSummaryInfo::getOrCompHotCountThreshold(), llvm::slpvectorizer::BoUpSLP::getORE(), GetRangeFromMetadata(), llvm::MCSchedModel::getReciprocalThroughput(), llvm::ProfileSummaryInfo::hasHugeWorkingSetSize(), IntersectSignedRange(), IntersectUnsignedRange(), llvm::ProfileSummaryInfo::isColdCount(), llvm::ProfileSummaryInfo::isHotCount(), llvm::raw_ostream::operator<<(), parseV5DirFileTables(), pickOpcodeForVT(), llvm::LoopVectorizationPlanner::plan(), llvm::MachineBasicBlock::print(), processAdd(), PushDefUseChildren(), llvm::RegsForValue::RegsForValue(), llvm::IRCEPass::run(), and llvm::BlockFrequencyInfoImpl< llvm::BitTracker >::setBlockFreq().
|
inline |
Definition at line 180 of file Optional.h.
|
inline |
Definition at line 190 of file Optional.h.
Referenced by llvm::OptimizationRemarkEmitter::emit(), llvm::DIFile::getChecksumKind(), llvm::MDNodeKeyImpl< DIFile >::getHashValue(), llvm::AAResults::getModRefInfo(), llvm::AArch64InstrInfo::isFunctionSafeToOutlineFrom(), packAllocSizeArgs(), simplifyICmpOfBools(), llvm::write_double(), and llvm::write_hex().
|
inline |
Definition at line 183 of file Optional.h.
Referenced by llvm::DIExpression::appendToStack(), llvm::DWARFAbbreviationDeclaration::AttributeSpec::AttributeSpec(), llvm::codeview::ContinuationRecordBuilder::begin(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), cloneConstantExprWithNewAddressSpace(), llvm::pdb::PDBFileBuilder::commit(), computeKnownBitsFromShiftOperator(), llvm::DWARFFormValue::dump(), EvaluateConstantChrecAtConstant(), llvm::InstructionSelector::executeMatchTable(), llvm::sys::Process::FindInEnvPath(), findPreviousSpillSlot(), llvm::codeview::TypeCollection::ForEachRecord(), llvm::format_provider< T, typename std::enable_if< detail::use_double_formatter< T >::value >::type >::format(), llvm::gatherUnrollingPreferences(), llvm::Attribute::getAsString(), getCopyFromPartsVector(), getCopyToPartsVector(), GetDeoptBundleOperands(), llvm::getEffectiveRelocModel(), getEffectiveRelocModel(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::getLength(), llvm::slpvectorizer::BoUpSLP::getORE(), getRangeForAffineARHelper(), GetRangeFromMetadata(), llvm::MCSchedModel::getReciprocalThroughput(), getRelocModel(), getSearchPaths(), llvm::MachineFunction::hasWinCFI(), IntersectSignedRange(), IntersectUnsignedRange(), llvm::RegsForValue::isABIMangled(), llvm::codeview::CodeViewRecordIO::mapVectorTail(), llvm::codeview::CodeViewRecordIO::maxFieldLength(), llvm::MCDwarfDwoLineTable::maybeSetRootFile(), llvm::raw_ostream::operator<<(), llvm::operator==(), packAllocSizeArgs(), llvm::DWARFDebugFrame::parse(), llvm::LoopVectorizationPlanner::plan(), PushDefUseChildren(), reservePreviousStackSlotForValue(), llvm::IRCEPass::run(), llvm::MCDwarfLineTable::setRootFile(), llvm::codeview::SymbolSerializer::visitSymbolBegin(), llvm::codeview::SymbolSerializer::visitSymbolEnd(), and llvm::codeview::ContinuationRecordBuilder::writeMemberType().
|
inlineexplicit |
Definition at line 182 of file Optional.h.
|
inline |
Definition at line 186 of file Optional.h.
|
inline |
Definition at line 187 of file Optional.h.
|
inline |
Definition at line 184 of file Optional.h.
|
inline |
Definition at line 185 of file Optional.h.
|
inline |
Definition at line 146 of file Optional.h.
|
default |
|
inline |
Definition at line 163 of file Optional.h.
|
inline |
Definition at line 169 of file Optional.h.
Referenced by llvm::ValueMap< const Function *, FuncInfo >::clear(), llvm::DWARFAbbreviationDeclaration::extract(), llvm::DbgVariableLocation::extractFromMachineInstruction(), llvm::LazyCallGraph::Node::populate(), and llvm::codeview::SymbolSerializer::visitSymbolEnd().
1.8.13