LLVM
8.0.1
|
#include "llvm/ADT/APInt.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) |
using llvm::Optional< T >::value_type = T |
Definition at line 117 of file Optional.h.
|
inline |
Definition at line 119 of file Optional.h.
|
inline |
Definition at line 120 of file Optional.h.
|
inline |
Definition at line 122 of file Optional.h.
|
inline |
Definition at line 125 of file Optional.h.
|
default |
|
inlinestatic |
Definition at line 141 of file Optional.h.
|
inline |
Create a new object by constructing it in place with the given arguments.
Definition at line 135 of file Optional.h.
Referenced by FunctionNumber(), llvm::DIFile::ChecksumInfo< T >::getKindAsString(), llvm::ValueMap< const Function *, FuncInfo >::MD(), llvm::LegacyAARGetter::operator()(), and llvm::NamedMDNode::print().
|
inline |
Definition at line 153 of file Optional.h.
Referenced by llvm::LoopRotatePass::run(), llvm::LoopInstSimplifyPass::run(), llvm::LoopSimplifyCFGPass::run(), llvm::SimpleLoopUnswitchPass::run(), and simplifyLoopInst().
|
inline |
Definition at line 157 of file Optional.h.
|
inline |
Definition at line 161 of file Optional.h.
Referenced by llvm::vfs::YAMLVFSWriter::addFileMapping(), assertBranchOrSelectConditionHoisted(), llvm::VPlanSlp::buildGraph(), calculateOffsetDiff(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), cloneConstantExprWithNewAddressSpace(), CloneLoopBlocks(), llvm::InnerLoopVectorizer::createVectorizedLoopSkeleton(), llvm::DWARFFormValue::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::MCSymbolWasm::getEventType(), llvm::SCEVExpander::getExactExistingExpansion(), llvm::MCSymbolWasm::getGlobalType(), llvm::ProfileSummaryInfo::getHotCountThreshold(), llvm::MCSymbolWasm::getImportModule(), llvm::MCSymbolWasm::getImportName(), llvm::ProfileSummaryInfo::getOrCompColdCountThreshold(), llvm::ProfileSummaryInfo::getOrCompHotCountThreshold(), llvm::slpvectorizer::BoUpSLP::getORE(), GetRangeFromMetadata(), llvm::MCSchedModel::getReciprocalThroughput(), llvm::ProfileSummaryInfo::hasHugeWorkingSetSize(), llvm::hasUnrollAndJamTransformation(), llvm::hasUnrollTransformation(), IntersectSignedRange(), IntersectUnsignedRange(), llvm::ProfileSummaryInfo::isColdCount(), llvm::ProfileSummaryInfo::isHotCount(), isObjectDereferencedInBlock(), llvm::raw_ostream::operator<<(), parseV5DirFileTables(), pickOpcodeForVT(), llvm::LoopVectorizationPlanner::plan(), llvm::MachineBasicBlock::print(), processAdd(), llvm::LoopVectorizePass::processLoop(), PushDefUseChildren(), llvm::RegsForValue::RegsForValue(), llvm::IRCEPass::run(), llvm::InlinerPass::run(), tryToUnrollAndJamLoop(), and tryToUnrollLoop().
|
inline |
Definition at line 162 of file Optional.h.
|
inline |
Definition at line 172 of file Optional.h.
Referenced by llvm::OptimizationRemarkEmitter::emit(), getBooleanLoopAttribute(), llvm::DIFile::getChecksumKind(), llvm::MDNodeKeyImpl< DIFile >::getHashValue(), llvm::AAResults::getModRefInfo(), llvm::AArch64InstrInfo::isFunctionSafeToOutlineFrom(), packAllocSizeArgs(), simplifyICmpOfBools(), llvm::vfs::InMemoryFileSystem::toString(), warnAboutLeftoverTransformations(), llvm::write_double(), and llvm::write_hex().
|
inline |
Definition at line 165 of file Optional.h.
Referenced by llvm::vfs::YAMLVFSWriter::addFileMapping(), llvm::DIExpression::appendToStack(), llvm::DWARFAbbreviationDeclaration::AttributeSpec::AttributeSpec(), llvm::codeview::ContinuationRecordBuilder::begin(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), cloneConstantExprWithNewAddressSpace(), CloneLoopBlocks(), collectContributionData(), llvm::pdb::PDBFileBuilder::commit(), computeKnownBitsFromShiftOperator(), llvm::InnerLoopVectorizer::createVectorizedLoopSkeleton(), llvm::DWARFFormValue::dump(), llvm::MCObjectStreamer::EmitRelocDirective(), 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::MCSymbolWasm::getEventType(), llvm::MCSymbolWasm::getGlobalType(), llvm::MCSymbolWasm::getImportModule(), llvm::MCSymbolWasm::getImportName(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::getLength(), llvm::slpvectorizer::BoUpSLP::getORE(), getRangeForAffineARHelper(), GetRangeFromMetadata(), llvm::MCSchedModel::getReciprocalThroughput(), getRelocModel(), getSearchPaths(), llvm::hasUnrollAndJamTransformation(), llvm::hasUnrollTransformation(), IntersectSignedRange(), IntersectUnsignedRange(), llvm::RegsForValue::isABIMangled(), isObjectDereferencedInBlock(), llvm::codeview::CodeViewRecordIO::mapVectorTail(), llvm::codeview::CodeViewRecordIO::maxFieldLength(), llvm::MCDwarfDwoLineTable::maybeSetRootFile(), MinOptional(), llvm::raw_ostream::operator<<(), llvm::operator==(), packAllocSizeArgs(), llvm::DWARFDebugFrame::parse(), llvm::LoopVectorizationPlanner::plan(), llvm::LoopVectorizePass::processLoop(), PushDefUseChildren(), reservePreviousStackSlotForValue(), llvm::IRCEPass::run(), llvm::LoopRotatePass::run(), llvm::LoopInstSimplifyPass::run(), llvm::LoopSimplifyCFGPass::run(), llvm::SimpleLoopUnswitchPass::run(), llvm::InlinerPass::run(), llvm::MCDwarfLineTable::setRootFile(), simplifyLoopInst(), SolveQuadraticAddRecExact(), SolveQuadraticAddRecRange(), TruncIfPossible(), tryToUnrollAndJamLoop(), tryToUnrollLoop(), llvm::codeview::SymbolSerializer::visitSymbolBegin(), llvm::codeview::SymbolSerializer::visitSymbolEnd(), and llvm::codeview::ContinuationRecordBuilder::writeMemberType().
|
inlineexplicit |
Definition at line 164 of file Optional.h.
|
inline |
Definition at line 168 of file Optional.h.
|
inline |
Definition at line 169 of file Optional.h.
|
inline |
Definition at line 166 of file Optional.h.
|
inline |
Definition at line 167 of file Optional.h.
|
inline |
Definition at line 128 of file Optional.h.
|
default |
|
inline |
Definition at line 145 of file Optional.h.
|
inline |
Definition at line 151 of file Optional.h.
Referenced by llvm::ValueMap< const Function *, FuncInfo >::clear(), llvm::DWARFAbbreviationDeclaration::extract(), llvm::DbgVariableLocation::extractFromMachineInstruction(), and llvm::codeview::SymbolSerializer::visitSymbolEnd().