Fold a select with target‐dependent constant folding.

Synopsis

Declared in <llvm/Analysis/TargetFolder.h>

virtual
Value*
FoldSelect(
    Value* C,
    Value* True,
    Value* False,
    FastMathFlags FMF) const override;

Return Value

The folded value, or nullptr if the operation cannot be folded.

Parameters

Name

Description

C

The select condition.

True

The value selected when the condition is true.

False

The value selected when the condition is false.

FMF

Fast‐math flags for the select.

Created with MrDocs