LLVM 20.0.0git
|
#include "llvm/IR/FixedPointBuilder.h"
Public Member Functions | |
FixedPointBuilder (IRBuilderTy &Builder) | |
Value * | CreateFixedToFixed (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. | |
Value * | CreateFixedToInteger (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. | |
Value * | CreateIntegerToFixed (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. | |
Value * | CreateFixedToFloating (Value *Src, const FixedPointSemantics &SrcSema, Type *DstTy) |
Value * | CreateFloatingToFixed (Value *Src, const FixedPointSemantics &DstSema) |
Value * | CreateAdd (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Add two fixed-point values and return the result in their common semantic. | |
Value * | CreateSub (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Subtract two fixed-point values and return the result in their common semantic. | |
Value * | CreateMul (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Multiply two fixed-point values and return the result in their common semantic. | |
Value * | CreateDiv (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Divide two fixed-point values and return the result in their common semantic. | |
Value * | CreateShl (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS) |
Left shift a fixed-point value by an unsigned integer value. | |
Value * | CreateShr (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS) |
Right shift a fixed-point value by an unsigned integer value. | |
Value * | CreateEQ (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Compare two fixed-point values for equality. | |
Value * | CreateNE (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Compare two fixed-point values for inequality. | |
Value * | CreateLT (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Compare two fixed-point values as LHS < RHS. | |
Value * | CreateLE (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Compare two fixed-point values as LHS <= RHS. | |
Value * | CreateGT (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Compare two fixed-point values as LHS > RHS. | |
Value * | CreateGE (Value *LHS, const FixedPointSemantics &LHSSema, Value *RHS, const FixedPointSemantics &RHSSema) |
Compare two fixed-point values as LHS >= RHS. | |
Definition at line 32 of file FixedPointBuilder.h.
|
inline |
Definition at line 136 of file FixedPointBuilder.h.
|
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 228 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), llvm::FixedPointSemantics::getCommonSemantics(), LHS, and RHS.
|
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 316 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), llvm::FixedPointSemantics::getCommonSemantics(), llvm::Value::getType(), LHS, and RHS.
|
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 375 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), LHS, and RHS.
|
inline |
Convert an integer value representing a fixed-point number from one fixed-point semantic to another fixed-point semantic.
Src
- The source value SrcSema
- The fixed-point semantic of the source value DstSema
- The resulting fixed-point semantic
Definition at line 143 of file FixedPointBuilder.h.
Referenced by llvm::FixedPointBuilder< IRBuilderTy >::CreateAdd(), llvm::FixedPointBuilder< IRBuilderTy >::CreateDiv(), llvm::FixedPointBuilder< IRBuilderTy >::CreateEQ(), llvm::FixedPointBuilder< IRBuilderTy >::CreateGE(), llvm::FixedPointBuilder< IRBuilderTy >::CreateGT(), llvm::FixedPointBuilder< IRBuilderTy >::CreateLE(), llvm::FixedPointBuilder< IRBuilderTy >::CreateLT(), llvm::FixedPointBuilder< IRBuilderTy >::CreateMul(), llvm::FixedPointBuilder< IRBuilderTy >::CreateNE(), and llvm::FixedPointBuilder< IRBuilderTy >::CreateSub().
|
inline |
Definition at line 174 of file FixedPointBuilder.h.
References llvm::FixedPointSemantics::getScale(), and llvm::FixedPointSemantics::isSigned().
|
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 154 of file FixedPointBuilder.h.
References llvm::FixedPointSemantics::GetIntegerSemantics().
|
inline |
Definition at line 191 of file FixedPointBuilder.h.
References llvm::Constant::getNullValue(), llvm::FixedPointSemantics::getScale(), llvm::FixedPointSemantics::getWidth(), llvm::FixedPointSemantics::hasUnsignedPadding(), llvm::FixedPointSemantics::isSaturated(), and llvm::FixedPointSemantics::isSigned().
|
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 453 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), LHS, and RHS.
|
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 437 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), LHS, and RHS.
|
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 166 of file FixedPointBuilder.h.
References llvm::FixedPointSemantics::GetIntegerSemantics().
|
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 421 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), LHS, and RHS.
|
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 405 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), LHS, and RHS.
|
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 288 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), llvm::FixedPointSemantics::getCommonSemantics(), llvm::Value::getType(), LHS, and RHS.
|
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 390 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), LHS, and 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 343 of file FixedPointBuilder.h.
References llvm::FixedPointSemantics::hasUnsignedPadding(), llvm::FixedPointSemantics::isSaturated(), llvm::FixedPointSemantics::isSigned(), LHS, and 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 364 of file FixedPointBuilder.h.
References llvm::FixedPointSemantics::isSigned(), LHS, and RHS.
|
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 254 of file FixedPointBuilder.h.
References llvm::FixedPointBuilder< IRBuilderTy >::CreateFixedToFixed(), llvm::FixedPointSemantics::getCommonSemantics(), llvm::Constant::getNullValue(), LHS, and RHS.