search for: getvalueor

Displaying 4 results from an estimated 4 matches for "getvalueor".

Did you mean: getvalue
2019 Jan 13
2
Problem using BlockFrequencyInfo's getBlockProfileCount
...llvm::BlockFrequencyInfo* BFI = &bfiPass.getBFI();     //Works - shows all info I want     BFI->print(llvm::dbgs());     for (const llvm::BasicBlock& B : F) {         //Fails with SIGSEGV -> *getFunction() returns 0xa         dbgs() << BFI->getBlockProfileCount(&B).getValueOr(0) << "\n";     } } lib/Analysis/BlockFrequencyInfo.cpp#L211 return BFI->getBlockProfileCount(*getFunction(), BB);
2018 Jan 24
2
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...urn getPointer(); } > + T *operator->() { return getPointer(); } > + const T &operator*() const LLVM_LVALUE_FUNCTION { return *getPointer(); > } > + T &operator*() LLVM_LVALUE_FUNCTION { return *getPointer(); } > + > template <typename U> > constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION { > return hasValue() ? getValue() : std::forward<U>(value); > } > > #if LLVM_HAS_RVALUE_REFERENCE_THIS > - T &&getValue() && { > - assert(hasVal); > - return std::move(*getPointer()); > - }...
2018 Jan 24
0
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...+ T *operator->() { return getPointer(); } >> + const T &operator*() const LLVM_LVALUE_FUNCTION { return *getPointer(); >> } >> + T &operator*() LLVM_LVALUE_FUNCTION { return *getPointer(); } >> + >> template <typename U> >> constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION { >> return hasValue() ? getValue() : std::forward<U>(value); >> } >> >> #if LLVM_HAS_RVALUE_REFERENCE_THIS >> - T &&getValue() && { >> - assert(hasVal); >> - return std::mo...
2018 Jan 24
1
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...Pointer(); } > >> + const T &operator*() const LLVM_LVALUE_FUNCTION { return > *getPointer(); > >> } > >> + T &operator*() LLVM_LVALUE_FUNCTION { return *getPointer(); } > >> + > >> template <typename U> > >> constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION { > >> return hasValue() ? getValue() : std::forward<U>(value); > >> } > >> > >> #if LLVM_HAS_RVALUE_REFERENCE_THIS > >> - T &&getValue() && { > >> - assert(hasVal)...