clang 24.0.0git
clang::CIRGen::CIRGenFixedPointBuilder Struct Reference

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFixedPointBuilder.h"

Public Member Functions

 CIRGenFixedPointBuilder (CIRGenBuilderTy &builder, mlir::Location loc)
mlir::Value createFixedToFloating (mlir::Value src, const llvm::FixedPointSemantics &srcSema, mlir::Type dstTy)
mlir::Value createFloatingToFixed (mlir::Value src, const llvm::FixedPointSemantics &dstSema)
mlir::Value createFixedToInteger (mlir::Value src, const llvm::FixedPointSemantics &srcSema, unsigned dstWidth, bool dstIsSigned)
mlir::Value createIntegerToFixed (mlir::Value src, unsigned srcIsSigned, const llvm::FixedPointSemantics &dstSema)
mlir::Value createFixedToFixed (mlir::Value src, const llvm::FixedPointSemantics &srcSema, const llvm::FixedPointSemantics &dstSema)
mlir::Value createAdd (mlir::Value lhs, const llvm::FixedPointSemantics &lhsSema, mlir::Value rhs, const llvm::FixedPointSemantics &rhsSema)
mlir::Value createSub (mlir::Value lhs, const llvm::FixedPointSemantics &lhsSema, mlir::Value rhs, const llvm::FixedPointSemantics &rhsSema)
mlir::Value createMul (mlir::Value lhs, const llvm::FixedPointSemantics &lhsSema, mlir::Value rhs, const llvm::FixedPointSemantics &rhsSema)
mlir::Value createDiv (mlir::Value lhs, const llvm::FixedPointSemantics &lhsSema, mlir::Value rhs, const llvm::FixedPointSemantics &rhsSema)
mlir::Value createCmp (mlir::Value lhs, const llvm::FixedPointSemantics &lhsSema, mlir::Value rhs, const llvm::FixedPointSemantics &rhsSema, cir::CmpOpKind kind)
mlir::Value createShl (mlir::Value lhs, const llvm::FixedPointSemantics &lhsSema, mlir::Value rhs)
mlir::Value createShr (mlir::Value lhs, mlir::Value rhs)

Detailed Description

Definition at line 19 of file CIRGenFixedPointBuilder.h.

Constructor & Destructor Documentation

◆ CIRGenFixedPointBuilder()

clang::CIRGen::CIRGenFixedPointBuilder::CIRGenFixedPointBuilder ( CIRGenBuilderTy & builder,
mlir::Location loc )
inline

Definition at line 20 of file CIRGenFixedPointBuilder.h.

Member Function Documentation

◆ createAdd()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createAdd ( mlir::Value lhs,
const llvm::FixedPointSemantics & lhsSema,
mlir::Value rhs,
const llvm::FixedPointSemantics & rhsSema )
inline

Definition at line 128 of file CIRGenFixedPointBuilder.h.

References createFixedToFixed(), and cir::Saturated.

◆ createCmp()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createCmp ( mlir::Value lhs,
const llvm::FixedPointSemantics & lhsSema,
mlir::Value rhs,
const llvm::FixedPointSemantics & rhsSema,
cir::CmpOpKind kind )
inline

Definition at line 243 of file CIRGenFixedPointBuilder.h.

References createFixedToFixed(), and kind.

◆ createDiv()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createDiv ( mlir::Value lhs,
const llvm::FixedPointSemantics & lhsSema,
mlir::Value rhs,
const llvm::FixedPointSemantics & rhsSema )
inline

Definition at line 211 of file CIRGenFixedPointBuilder.h.

References createFixedToFixed().

◆ createFixedToFixed()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createFixedToFixed ( mlir::Value src,
const llvm::FixedPointSemantics & srcSema,
const llvm::FixedPointSemantics & dstSema )
inline

Definition at line 122 of file CIRGenFixedPointBuilder.h.

Referenced by createAdd(), createCmp(), createDiv(), createMul(), and createSub().

◆ createFixedToFloating()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createFixedToFloating ( mlir::Value src,
const llvm::FixedPointSemantics & srcSema,
mlir::Type dstTy )
inline

Definition at line 23 of file CIRGenFixedPointBuilder.h.

References pow.

◆ createFixedToInteger()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createFixedToInteger ( mlir::Value src,
const llvm::FixedPointSemantics & srcSema,
unsigned dstWidth,
bool dstIsSigned )
inline

Definition at line 96 of file CIRGenFixedPointBuilder.h.

◆ createFloatingToFixed()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createFloatingToFixed ( mlir::Value src,
const llvm::FixedPointSemantics & dstSema )
inline

Definition at line 50 of file CIRGenFixedPointBuilder.h.

References pow.

◆ createIntegerToFixed()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createIntegerToFixed ( mlir::Value src,
unsigned srcIsSigned,
const llvm::FixedPointSemantics & dstSema )
inline

Definition at line 105 of file CIRGenFixedPointBuilder.h.

◆ createMul()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createMul ( mlir::Value lhs,
const llvm::FixedPointSemantics & lhsSema,
mlir::Value rhs,
const llvm::FixedPointSemantics & rhsSema )
inline

Definition at line 179 of file CIRGenFixedPointBuilder.h.

References createFixedToFixed().

◆ createShl()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createShl ( mlir::Value lhs,
const llvm::FixedPointSemantics & lhsSema,
mlir::Value rhs )
inline

Definition at line 256 of file CIRGenFixedPointBuilder.h.

◆ createShr()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createShr ( mlir::Value lhs,
mlir::Value rhs )
inline

Definition at line 283 of file CIRGenFixedPointBuilder.h.

◆ createSub()

mlir::Value clang::CIRGen::CIRGenFixedPointBuilder::createSub ( mlir::Value lhs,
const llvm::FixedPointSemantics & lhsSema,
mlir::Value rhs,
const llvm::FixedPointSemantics & rhsSema )
inline

Definition at line 149 of file CIRGenFixedPointBuilder.h.

References createFixedToFixed(), and cir::Saturated.


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