|
LLVM
4.0.0
|
#include <Optional.h>
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| Optional (NoneType) | |
| Optional () | |
| Optional (const T &y) | |
| Optional (const Optional &O) | |
| Optional (T &&y) | |
| Optional (Optional< T > &&O) | |
| Optional & | operator= (T &&y) |
| Optional & | operator= (Optional &&O) |
| 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) |
| void | reset () |
| ~Optional () | |
| 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 29 of file Optional.h.
| typedef T llvm::Optional< T >::value_type |
Definition at line 33 of file Optional.h.
|
inline |
Definition at line 35 of file Optional.h.
|
inlineexplicit |
Definition at line 36 of file Optional.h.
Referenced by llvm::Optional< uint64_t >::create().
|
inline |
Definition at line 37 of file Optional.h.
Definition at line 40 of file Optional.h.
|
inline |
Definition at line 45 of file Optional.h.
|
inline |
Definition at line 48 of file Optional.h.
|
inline |
Definition at line 115 of file Optional.h.
|
inlinestatic |
Definition at line 81 of file Optional.h.
|
inline |
Create a new object by constructing it in place with the given arguments.
Definition at line 75 of file Optional.h.
Referenced by llvm::LegacyInlinerBase::inlineCalls(), and llvm::NamedMDNode::print().
|
inline |
Definition at line 119 of file Optional.h.
Referenced by llvm::Optional< uint64_t >::getValue(), llvm::Optional< uint64_t >::operator*(), and llvm::Optional< uint64_t >::operator->().
|
inline |
Definition at line 120 of file Optional.h.
|
inline |
Definition at line 121 of file Optional.h.
Referenced by llvm::CodeExtractor::extractCodeRegion(), llvm::sys::Process::FindInEnvPath(), llvm::DWARFDie::getAttributeValueAsString(), GetDeoptBundleOperands(), llvm::SCEVExpander::getExactExistingExpansion(), llvm::Optional< uint64_t >::getValueOr(), IntersectRange(), llvm::ProfileSummaryInfo::isColdCount(), llvm::ProfileSummaryInfo::isHotCount(), llvm::raw_ostream::operator<<(), and processAdd().
|
inline |
Definition at line 122 of file Optional.h.
|
inline |
Definition at line 132 of file Optional.h.
Referenced by packAllocSizeArgs(), simplifyICmpOfBools(), llvm::write_double(), and llvm::write_hex().
|
inline |
Definition at line 125 of file Optional.h.
Referenced by llvm::buildModuleSummaryIndex(), computeKnownBitsFromShiftOperator(), llvm::CodeExtractor::extractCodeRegion(), llvm::sys::Process::FindInEnvPath(), findPreviousSpillSlot(), llvm::format_provider< T, typename std::enable_if< detail::use_double_formatter< T >::value >::type >::format(), gatherUnrollingPreferences(), llvm::Attribute::getAsString(), llvm::DWARFDie::getAttributeValueAsString(), GetDeoptBundleOperands(), llvm::getEffectiveRelocModel(), getEffectiveRelocModel(), getSearchPaths(), llvm::Optional< uint64_t >::getValueOr(), llvm::MachineFunction::hasWinCFI(), IntersectRange(), llvm::libDriverMain(), llvm::codeview::CodeViewRecordIO::maxFieldLength(), llvm::raw_ostream::operator<<(), llvm::operator==(), packAllocSizeArgs(), llvm::DWARFDebugFrame::parse(), reservePreviousStackSlotForValue(), llvm::JumpThreadingPass::run(), llvm::codeview::TypeRecordMapping::visitMemberBegin(), llvm::codeview::TypeSerializer::visitMemberBegin(), llvm::codeview::TypeRecordMapping::visitMemberEnd(), llvm::codeview::SymbolSerializer::visitSymbolBegin(), llvm::codeview::SymbolSerializer::visitSymbolEnd(), llvm::codeview::TypeRecordMapping::visitTypeBegin(), and llvm::codeview::TypeRecordMapping::visitTypeEnd().
|
inlineexplicit |
Definition at line 124 of file Optional.h.
|
inline |
Definition at line 128 of file Optional.h.
|
inline |
Definition at line 129 of file Optional.h.
|
inline |
Definition at line 126 of file Optional.h.
|
inline |
Definition at line 127 of file Optional.h.
|
inline |
Definition at line 54 of file Optional.h.
|
inline |
Definition at line 63 of file Optional.h.
|
inline |
Definition at line 90 of file Optional.h.
Definition at line 100 of file Optional.h.
|
inline |
Definition at line 108 of file Optional.h.
Referenced by llvm::Optional< uint64_t >::emplace(), llvm::DWARFAbbreviationDeclaration::extract(), llvm::Optional< uint64_t >::operator=(), llvm::codeview::TypeRecordMapping::visitMemberEnd(), llvm::codeview::TypeSerializer::visitMemberEnd(), llvm::codeview::SymbolSerializer::visitSymbolEnd(), and llvm::Optional< uint64_t >::~Optional().
1.8.6