Match an ordered or unordered floating‐point minimum.
Synopsis
Declared in <llvm/IR/PatternMatch.h>
template<
typename LHS,
typename RHS>
match_combine_or<FMaxMin_match<LHS, RHS, ofmin_pred_ty>, FMaxMin_match<LHS, RHS, ufmin_pred_ty>>
m_OrdOrUnordFMin(
LHS const& L,
RHS const& R);
Description
Floating point has one special value 'NaN'. Therefore, there is no total order. However, if we can ignore the 'NaN' value (for example, because of a 'no‐nans‐float‐math' flag) a combination of a fcmp and select has 'minimum' semantics.
Return Value
A matcher for an ordered or unordered floating‐point minimum.
Parameters
Name |
Description |
L |
Left‐hand matcher. |
R |
Right‐hand matcher. |
Created with MrDocs