LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::FMFSource Class Reference

This provides a helper for copying FMF from an instruction or setting specified flags. More...

#include "llvm/IR/IRBuilder.h"

Public Member Functions

 FMFSource ()=default
 
 FMFSource (Instruction *Source)
 
 FMFSource (FastMathFlags FMF)
 
FastMathFlags get (FastMathFlags Default) const
 

Static Public Member Functions

static FMFSource intersect (Value *A, Value *B)
 Intersect the FMF from two instructions.
 

Detailed Description

This provides a helper for copying FMF from an instruction or setting specified flags.

Definition at line 92 of file IRBuilder.h.

Constructor & Destructor Documentation

◆ FMFSource() [1/3]

llvm::FMFSource::FMFSource ( )
default

Referenced by intersect().

◆ FMFSource() [2/3]

llvm::FMFSource::FMFSource ( Instruction Source)
inline

Definition at line 97 of file IRBuilder.h.

◆ FMFSource() [3/3]

llvm::FMFSource::FMFSource ( FastMathFlags  FMF)
inline

Definition at line 101 of file IRBuilder.h.

Member Function Documentation

◆ get()

FastMathFlags llvm::FMFSource::get ( FastMathFlags  Default) const
inline

◆ intersect()

static FMFSource llvm::FMFSource::intersect ( Value A,
Value B 
)
inlinestatic

Intersect the FMF from two instructions.

Definition at line 106 of file IRBuilder.h.

References A, B, and FMFSource().

Referenced by matchIsFiniteTest(), and llvm::InstCombinerImpl::visitCallInst().


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