LLVM  8.0.1
Static Public Member Functions | Public Attributes | List of all members
llvm::SelectPatternResult Struct Reference

#include "llvm/Analysis/ValueTracking.h"

Collaboration diagram for llvm::SelectPatternResult:
Collaboration graph
[legend]

Static Public Member Functions

static bool isMinOrMax (SelectPatternFlavor SPF)
 When implementing this min/max pattern as fcmp; select, does the fcmp have to be ordered? More...
 

Public Attributes

SelectPatternFlavor Flavor
 
SelectPatternNaNBehavior NaNBehavior
 
bool Ordered
 Only applicable if Flavor is SPF_FMINNUM or SPF_FMAXNUM. More...
 

Detailed Description

Definition at line 541 of file ValueTracking.h.

Member Function Documentation

◆ isMinOrMax()

static bool llvm::SelectPatternResult::isMinOrMax ( SelectPatternFlavor  SPF)
inlinestatic

When implementing this min/max pattern as fcmp; select, does the fcmp have to be ordered?

Return true if SPF is a min or a max pattern.

Definition at line 550 of file ValueTracking.h.

References llvm::Depth, llvm::matchSelectPattern(), llvm::SPF_ABS, llvm::SPF_NABS, and llvm::SPF_UNKNOWN.

Referenced by canonicalizeSaturatedSubtract(), computeKnownBitsFromOperator(), isObjectDereferencedInBlock(), matchMinMaxOfMinMax(), llvm::InstCombiner::visitSub(), and llvm::InstCombiner::visitXor().

Member Data Documentation

◆ Flavor

SelectPatternFlavor llvm::SelectPatternResult::Flavor

◆ NaNBehavior

SelectPatternNaNBehavior llvm::SelectPatternResult::NaNBehavior

Definition at line 543 of file ValueTracking.h.

◆ Ordered

bool llvm::SelectPatternResult::Ordered

Only applicable if Flavor is SPF_FMINNUM or SPF_FMAXNUM.

Definition at line 545 of file ValueTracking.h.

Referenced by canonicalizeSaturatedSubtract().


The documentation for this struct was generated from the following file: