LLVM  14.0.0git
Public Member Functions | List of all members
llvm::FixedPointBuilder< IRBuilderTy > Class Template Reference

#include "llvm/IR/FixedPointBuilder.h"

Public Member Functions

 FixedPointBuilder (IRBuilderTy &Builder)
 
ValueCreateFixedToFixed (Value *Src, const FixedPointSemantics &SrcSema, const FixedPointSemantics &DstSema)
 Convert an integer value representing a fixed-point number from one fixed-point semantic to another fixed-point semantic. More...
 
ValueCreateFixedToInteger (Value *Src, const FixedPointSemantics &SrcSema, unsigned DstWidth, bool DstIsSigned)
 Convert an integer value representing a fixed-point number to an integer with the given bit width and signedness. More...
 
ValueCreateIntegerToFixed (Value *Src, unsigned SrcIsSigned, const FixedPointSemantics &DstSema)
 Convert an integer value with the given signedness to an integer value representing the given fixed-point semantic. More...
 
ValueCreateFixedToFloating (Value *Src, const FixedPointSemantics &SrcSema, Type *DstTy)
 
ValueCreateFloatingToFixed (Value *Src, const FixedPointSemantics &DstSema)
 
ValueCreateAdd (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Add two fixed-point values and return the result in their common semantic. More...
 
ValueCreateSub (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Subtract two fixed-point values and return the result in their common semantic. More...
 
ValueCreateMul (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Multiply two fixed-point values and return the result in their common semantic. More...
 
ValueCreateDiv (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Divide two fixed-point values and return the result in their common semantic. More...
 
ValueCreateShl (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS)
 Left shift a fixed-point value by an unsigned integer value. More...
 
ValueCreateShr (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS)
 Right shift a fixed-point value by an unsigned integer value. More...
 
ValueCreateEQ (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Compare two fixed-point values for equality. More...
 
ValueCreateNE (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Compare two fixed-point values for inequality. More...
 
ValueCreateLT (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Compare two fixed-point values as LHS < RHS. More...
 
ValueCreateLE (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Compare two fixed-point values as LHS <= RHS. More...
 
ValueCreateGT (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Compare two fixed-point values as LHS > RHS. More...
 
ValueCreateGE (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema)
 Compare two fixed-point values as LHS >= RHS. More...
 

Detailed Description

template<class IRBuilderTy>
class llvm::FixedPointBuilder< IRBuilderTy >

Definition at line 30 of file FixedPointBuilder.h.

Constructor & Destructor Documentation

◆ FixedPointBuilder()

template<class IRBuilderTy >
llvm::FixedPointBuilder< IRBuilderTy >::FixedPointBuilder ( IRBuilderTy &  Builder)
inline

Definition at line 134 of file FixedPointBuilder.h.

References B.

Member Function Documentation

◆ CreateAdd()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateAdd ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Add two fixed-point values and return the result in their common semantic.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 226 of file FixedPointBuilder.h.

References B, llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), and llvm::FixedPointSemantics::getCommonSemantics().

◆ CreateDiv()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateDiv ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Divide two fixed-point values and return the result in their common semantic.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 314 of file FixedPointBuilder.h.

References B, llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), llvm::FixedPointSemantics::getCommonSemantics(), and llvm::Value::getType().

◆ CreateEQ()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateEQ ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Compare two fixed-point values for equality.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 373 of file FixedPointBuilder.h.

References B, and llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed().

◆ CreateFixedToFixed()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed ( Value Src,
const FixedPointSemantics SrcSema,
const FixedPointSemantics DstSema 
)
inline

◆ CreateFixedToFloating()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFloating ( Value Src,
const FixedPointSemantics SrcSema,
Type DstTy 
)
inline

◆ CreateFixedToInteger()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToInteger ( Value Src,
const FixedPointSemantics SrcSema,
unsigned  DstWidth,
bool  DstIsSigned 
)
inline

Convert an integer value representing a fixed-point number to an integer with the given bit width and signedness.

Src - The source value SrcSema - The fixed-point semantic of the source value DstWidth - The bit width of the result value DstIsSigned - The signedness of the result value

Definition at line 152 of file FixedPointBuilder.h.

References llvm::FixedPointSemantics::GetIntegerSemantics().

◆ CreateFloatingToFixed()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateFloatingToFixed ( Value Src,
const FixedPointSemantics DstSema 
)
inline

◆ CreateGE()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateGE ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Compare two fixed-point values as LHS >= RHS.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 451 of file FixedPointBuilder.h.

References B, and llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed().

◆ CreateGT()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateGT ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Compare two fixed-point values as LHS > RHS.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 435 of file FixedPointBuilder.h.

References B, and llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed().

◆ CreateIntegerToFixed()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateIntegerToFixed ( Value Src,
unsigned  SrcIsSigned,
const FixedPointSemantics DstSema 
)
inline

Convert an integer value with the given signedness to an integer value representing the given fixed-point semantic.

Src - The source value SrcIsSigned - The signedness of the source value DstSema - The resulting fixed-point semantic

Definition at line 164 of file FixedPointBuilder.h.

References llvm::FixedPointSemantics::GetIntegerSemantics().

◆ CreateLE()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateLE ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Compare two fixed-point values as LHS <= RHS.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 419 of file FixedPointBuilder.h.

References B, and llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed().

◆ CreateLT()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateLT ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Compare two fixed-point values as LHS < RHS.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 403 of file FixedPointBuilder.h.

References B, and llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed().

◆ CreateMul()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateMul ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Multiply two fixed-point values and return the result in their common semantic.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 286 of file FixedPointBuilder.h.

References B, llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), llvm::FixedPointSemantics::getCommonSemantics(), and llvm::Value::getType().

◆ CreateNE()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateNE ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Compare two fixed-point values for inequality.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 388 of file FixedPointBuilder.h.

References B, and llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed().

◆ CreateShl()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateShl ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS 
)
inline

Left shift a fixed-point value by an unsigned integer value.

The integer value can be any bit width. LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side

Definition at line 341 of file FixedPointBuilder.h.

References B, llvm::Value::getType(), llvm::FixedPointSemantics::hasUnsignedPadding(), llvm::FixedPointSemantics::isSaturated(), and llvm::FixedPointSemantics::isSigned().

◆ CreateShr()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateShr ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS 
)
inline

Right shift a fixed-point value by an unsigned integer value.

The integer value can be any bit width. LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side

Definition at line 362 of file FixedPointBuilder.h.

References B, llvm::Value::getType(), and llvm::FixedPointSemantics::isSigned().

◆ CreateSub()

template<class IRBuilderTy >
Value* llvm::FixedPointBuilder< IRBuilderTy >::CreateSub ( Value LHS,
const FixedPointSemantics LHSSema,
Value RHS,
const FixedPointSemantics RHSSema 
)
inline

Subtract two fixed-point values and return the result in their common semantic.

LHS - The left hand side LHSSema - The semantic of the left hand side RHS - The right hand side RHSSema - The semantic of the right hand side

Definition at line 252 of file FixedPointBuilder.h.

References B, llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), llvm::FixedPointSemantics::getCommonSemantics(), and llvm::Constant::getNullValue().


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