|
LLVM
7.0.0
|
Implementation details of the pass manager interfaces. More...
Typedefs | |
| template<typename RangeT > | |
| using | IterOfRange = decltype(std::begin(std::declval< RangeT & >())) |
| template<typename RangeT > | |
| using | ValueOfRange = typename std::remove_reference< decltype(*std::begin(std::declval< RangeT & >()))>::type |
| template<typename ZipType , typename... Iters> | |
| using | zip_traits = iterator_facade_base< ZipType, typename std::common_type< std::bidirectional_iterator_tag, typename std::iterator_traits< Iters >::iterator_category... >::type, typename ZipTupleType< Iters... >::type, typename std::iterator_traits< typename std::tuple_element< 0, std::tuple< Iters... > >::type >::difference_type, typename ZipTupleType< Iters... >::type *, typename ZipTupleType< Iters... >::type > |
| template<typename IterT > | |
| using | IterValue = typename std::iterator_traits< IterT >::value_type |
Functions | |
| hash_code | hash_value (const IEEEFloat &Arg) |
| int | ilogb (const IEEEFloat &Arg) |
| IEEEFloat | scalbn (IEEEFloat X, int Exp, IEEEFloat::roundingMode) |
| IEEEFloat | frexp (const IEEEFloat &Val, int &Exp, IEEEFloat::roundingMode RM) |
| hash_code | hash_value (const DoubleAPFloat &Arg) |
| template<typename F , typename Tuple , std::size_t... I> | |
| auto | apply_tuple_impl (F &&f, Tuple &&t, index_sequence< I... >) -> decltype(std::forward< F >(f)(std::get< I >(std::forward< Tuple >(t))...)) |
| template<typename N > | |
| bool | to_float (const Twine &T, N &Num, N(*StrTo)(const char *, char **)) |
| template<typename IteratorT > | |
| std::string | join_impl (IteratorT Begin, IteratorT End, StringRef Separator, std::input_iterator_tag) |
| template<typename IteratorT > | |
| std::string | join_impl (IteratorT Begin, IteratorT End, StringRef Separator, std::forward_iterator_tag) |
| template<typename Sep > | |
| void | join_items_impl (std::string &Result, Sep Separator) |
| template<typename Sep , typename Arg > | |
| void | join_items_impl (std::string &Result, Sep Separator, const Arg &Item) |
| template<typename Sep , typename Arg1 , typename... Args> | |
| void | join_items_impl (std::string &Result, Sep Separator, const Arg1 &A1, Args &&... Items) |
| size_t | join_one_item_size (char C) |
| size_t | join_one_item_size (const char *S) |
| template<typename T > | |
| size_t | join_one_item_size (const T &Str) |
| size_t | join_items_size () |
| template<typename A1 > | |
| size_t | join_items_size (const A1 &A) |
| template<typename A1 , typename... Args> | |
| size_t | join_items_size (const A1 &A, Args &&... Items) |
| void | printBumpPtrAllocatorStats (unsigned NumSlabs, size_t BytesAllocated, size_t TotalMemory) |
| template<typename T > | |
| std::enable_if< uses_format_member< T >::value, T >::type | build_format_adapter (T &&Item) |
| template<typename T > | |
| std::enable_if< uses_format_provider< T >::value, provider_format_adapter< T > >::type | build_format_adapter (T &&Item) |
| template<typename T > | |
| std::enable_if< uses_stream_operator< T >::value, stream_operator_format_adapter< T > >::type | build_format_adapter (T &&Item) |
| template<typename T > | |
| std::enable_if< uses_missing_provider< T >::value, missing_format_adapter< T > >::type | build_format_adapter (T &&Item) |
| ErrorHolder | TakeError (Error Err) |
| template<typename T > | |
| ExpectedHolder< T > | TakeExpected (Expected< T > &Exp) |
| template<typename T > | |
| ExpectedHolder< T > | TakeExpected (Expected< T > &&Exp) |
| void | PrintTo (const ErrorHolder &Err, std::ostream *Out) |
| template<typename T > | |
| void | PrintTo (const ExpectedHolder< T > &Item, std::ostream *Out) |
| template<typename LayerT > | |
| std::unique_ptr< GenericLayerImpl< LayerT > > | createGenericLayer (LayerT &Layer) |
| DoubleAPFloat | scalbn (DoubleAPFloat Arg, int Exp, APFloat::roundingMode RM) |
| DoubleAPFloat | frexp (const DoubleAPFloat &Arg, int &Exp, APFloat::roundingMode RM) |
Implementation details of the pass manager interfaces.
Implementation of format_provider<T> for duration types.
The options string of a duration type has the grammar:
duration_options ::= [unit][show_unit [number_options]] unit ::= h|m|s|ms|us|ns show_unit ::=+|-` number_options ::= options string for a integral or floating point type
| "" | 1s | 1 s | | "ms" | 1s | 1000 ms | | "ms-" | 1s | 1000 | | "ms-n" | 1s | 1,000 |
If the unit of the duration type is not one of the units specified above, it is still possible to format it, provided you explicitly request a display unit or you request that the unit is not displayed.
| using llvm::detail::IterOfRange = typedef decltype(std::begin(std::declval<RangeT &>())) |
Definition at line 52 of file STLExtras.h.
| using llvm::detail::IterValue = typedef typename std::iterator_traits<IterT>::value_type |
Definition at line 326 of file FormatProviders.h.
| using llvm::detail::ValueOfRange = typedef typename std::remove_reference<decltype( *std::begin(std::declval<RangeT &>()))>::type |
Definition at line 56 of file STLExtras.h.
| using llvm::detail::zip_traits = typedef iterator_facade_base< ZipType, typename std::common_type<std::bidirectional_iterator_tag, typename std::iterator_traits< Iters>::iterator_category...>::type, typename ZipTupleType<Iters...>::type, typename std::iterator_traits<typename std::tuple_element< 0, std::tuple<Iters...> >::type>::difference_type, typename ZipTupleType<Iters...>::type *, typename ZipTupleType<Iters...>::type> |
Definition at line 453 of file STLExtras.h.
| auto llvm::detail::apply_tuple_impl | ( | F && | f, |
| Tuple && | t, | ||
| index_sequence< I... > | |||
| ) | -> decltype(std::forward<F>(f)(std::get<I>(std::forward<Tuple>(t))...)) |
Definition at line 1244 of file STLExtras.h.
Referenced by llvm::apply_tuple().
| std::enable_if<uses_format_member<T>::value, T>::type llvm::detail::build_format_adapter | ( | T && | Item | ) |
Definition at line 130 of file FormatVariadicDetails.h.
Referenced by llvm::detail::AlignAdapter< T >::format(), llvm::detail::PadAdapter< T >::format(), llvm::detail::RepeatAdapter< T >::format(), and llvm::formatv().
| std::enable_if<uses_format_provider<T>::value, provider_format_adapter<T> >::type llvm::detail::build_format_adapter | ( | T && | Item | ) |
Definition at line 137 of file FormatVariadicDetails.h.
| std::enable_if<uses_stream_operator<T>::value, stream_operator_format_adapter<T> >::type llvm::detail::build_format_adapter | ( | T && | Item | ) |
Definition at line 144 of file FormatVariadicDetails.h.
| std::enable_if<uses_missing_provider<T>::value, missing_format_adapter<T> >::type llvm::detail::build_format_adapter | ( | T && | Item | ) |
Definition at line 157 of file FormatVariadicDetails.h.
| std::unique_ptr<GenericLayerImpl<LayerT> > llvm::detail::createGenericLayer | ( | LayerT & | Layer | ) |
Definition at line 100 of file OrcCBindingsStack.h.
| IEEEFloat llvm::detail::frexp | ( | const IEEEFloat & | Val, |
| int & | Exp, | ||
| IEEEFloat::roundingMode | RM | ||
| ) |
Definition at line 3828 of file APFloat.cpp.
References llvm::APFloatBase::IEK_Inf, llvm::APFloatBase::IEK_NaN, llvm::APFloatBase::IEK_Zero, llvm::detail::IEEEFloat::ilogb, llvm::detail::IEEEFloat::makeQuiet(), and llvm::detail::IEEEFloat::scalbn.
| DoubleAPFloat llvm::detail::frexp | ( | const DoubleAPFloat & | Arg, |
| int & | Exp, | ||
| APFloat::roundingMode | RM | ||
| ) |
Definition at line 4401 of file APFloat.cpp.
References llvm::lltok::APFloat, assert(), llvm::detail::DoubleAPFloat::DoubleAPFloat(), F(), llvm::APFloatBase::fcNormal, llvm::detail::DoubleAPFloat::frexp, llvm::detail::DoubleAPFloat::getCategory(), llvm::detail::IEEEFloat::getSemantics(), llvm::FPDenormal::IEEE, llvm_unreachable, and llvm::detail::DoubleAPFloat::scalbn.
Note that the use of hash codes for floating point values is in general frought with peril. Equality is hard to define for these values. For example, should negative and positive zero hash to different codes? Are they equal or not? This hash value implementation specifically emphasizes producing different codes for different inputs in order to be used in canonicalization and memoization. As such, equality is bitwiseIsEqual, and 0 != -0.
Definition at line 2773 of file APFloat.cpp.
References assert(), llvm::detail::IEEEFloat::convert(), llvm::APFloatBase::fcInfinity, llvm::APFloatBase::fcNaN, llvm::APFloatBase::fcZero, llvm::APInt::getRawData(), llvm::hash_combine(), llvm::hash_combine_range(), llvm::detail::IEEEFloat::isFiniteNonZero(), llvm::detail::IEEEFloat::isNaN(), llvm::fltSemantics::minExponent, llvm::APFloatBase::opInexact, llvm::APFloatBase::opOK, llvm::fltSemantics::precision, llvm::APFloatBase::rmNearestTiesToEven, and llvm::detail::IEEEFloat::subtract().
| hash_code llvm::detail::hash_value | ( | const DoubleAPFloat & | Arg | ) |
Definition at line 4265 of file APFloat.cpp.
References llvm::hash_combine(), and llvm::detail::DoubleAPFloat::hash_value.
Because the radix of APFloat is 2, this is equivalent to floor(log2(x)). For special APFloat values, this returns special error codes:
NaN -> IEK_NaN 0 -> IEK_Zero Inf -> IEK_Inf
Definition at line 3789 of file APFloat.cpp.
References llvm::detail::IEEEFloat::getSemantics(), llvm::APFloatBase::IEK_Inf, llvm::APFloatBase::IEK_NaN, llvm::APFloatBase::IEK_Zero, llvm::detail::IEEEFloat::isDenormal(), llvm::detail::IEEEFloat::isInfinity(), llvm::detail::IEEEFloat::isNaN(), llvm::detail::IEEEFloat::isZero(), llvm::lfExactlyZero, llvm::fltSemantics::precision, and llvm::APFloatBase::rmNearestTiesToEven.
Referenced by llvm::detail::DoubleAPFloat::getSecond(), llvm::detail::IEEEFloat::isNegZero(), and llvm::InstCombiner::visitICmpInst().
|
inline |
Definition at line 298 of file StringExtras.h.
|
inline |
Definition at line 313 of file StringExtras.h.
|
inline |
Definition at line 332 of file StringExtras.h.
Referenced by llvm::join_items(), and join_items_impl().
|
inline |
Definition at line 335 of file StringExtras.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args.
|
inline |
Definition at line 341 of file StringExtras.h.
References join_items_impl().
|
inline |
Definition at line 355 of file StringExtras.h.
Referenced by llvm::join_items(), and join_items_size().
Definition at line 357 of file StringExtras.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, and join_one_item_size().
|
inline |
Definition at line 361 of file StringExtras.h.
References join_items_size(), and join_one_item_size().
Definition at line 348 of file StringExtras.h.
Referenced by llvm::join_items(), and join_items_size().
Definition at line 349 of file StringExtras.h.
Definition at line 351 of file StringExtras.h.
| void llvm::detail::printBumpPtrAllocatorStats | ( | unsigned | NumSlabs, |
| size_t | BytesAllocated, | ||
| size_t | TotalMemory | ||
| ) |
Definition at line 21 of file Allocator.cpp.
References llvm::errs().
Referenced by llvm::MallocAllocator::PrintStats(), and llvm::BumpPtrAllocatorImpl< MallocAllocator, 65536 >::PrintStats().
|
inline |
Definition at line 32 of file SupportHelpers.h.
Referenced by PrintTo().
| void llvm::detail::PrintTo | ( | const ExpectedHolder< T > & | Item, |
| std::ostream * | Out | ||
| ) |
Definition at line 47 of file SupportHelpers.h.
References llvm::detail::ExpectedHolder< T >::Exp, PrintTo(), and llvm::detail::ErrorHolder::Success().
| IEEEFloat llvm::detail::scalbn | ( | IEEEFloat | X, |
| int | Exp, | ||
| IEEEFloat::roundingMode | RoundingMode | ||
| ) |
Definition at line 3807 of file APFloat.cpp.
References llvm::detail::IEEEFloat::getSemantics(), llvm::detail::IEEEFloat::isNaN(), llvm::lfExactlyZero, llvm::detail::IEEEFloat::makeQuiet(), llvm::max(), llvm::fltSemantics::maxExponent, llvm::fltSemantics::minExponent, llvm::fltSemantics::precision, and X.
| DoubleAPFloat llvm::detail::scalbn | ( | DoubleAPFloat | Arg, |
| int | Exp, | ||
| APFloat::roundingMode | RM | ||
| ) |
Definition at line 4395 of file APFloat.cpp.
References assert(), llvm::detail::DoubleAPFloat::DoubleAPFloat(), and llvm::detail::DoubleAPFloat::scalbn.
| llvm::detail::ErrorHolder llvm::detail::TakeError | ( | llvm::Error | Err | ) |
Definition at line 16 of file Error.cpp.
Referenced by TakeExpected().
| ExpectedHolder<T> llvm::detail::TakeExpected | ( | Expected< T > & | Exp | ) |
Definition at line 24 of file Error.h.
References TakeError(), and llvm::Expected< T >::takeError().
Referenced by TakeExpected().
| ExpectedHolder<T> llvm::detail::TakeExpected | ( | Expected< T > && | Exp | ) |
Definition at line 28 of file Error.h.
References TakeExpected().
|
inline |
Definition at line 199 of file StringExtras.h.
References llvm::Twine::toNullTerminatedStringRef().
Referenced by llvm::to_float().
1.8.13