TT-MLIR
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
mlir::tt::ttnn::DeviceComputeKernelConfigAttr Class Reference
Inheritance diagram for mlir::tt::ttnn::DeviceComputeKernelConfigAttr:

Public Member Functions

DeviceComputeKernelConfigAttr withMathFidelity (MathFidelity mathFidelity) const
 
DeviceComputeKernelConfigAttr withMathApproxMode (bool value) const
 
DeviceComputeKernelConfigAttr withFp32DestAccEn (bool value) const
 
DeviceComputeKernelConfigAttr withPackerL1Acc (bool value) const
 
DeviceComputeKernelConfigAttr withDstFullSyncEn (bool value) const
 
void print (::mlir::AsmPrinter &odsPrinter) const
 
std::optional< MathFidelitygetMathFidelity () const
 
BoolAttr getMathApproxMode () const
 
BoolAttr getFp32DestAccEn () const
 
BoolAttr getPackerL1Acc () const
 
BoolAttr getDstFullSyncEn () const
 

Static Public Member Functions

static DeviceComputeKernelConfigAttr get (::mlir::MLIRContext *context, std::optional< MathFidelity > math_fidelity, BoolAttr math_approx_mode, BoolAttr fp32_dest_acc_en, BoolAttr packer_l1_acc, BoolAttr dst_full_sync_en)
 
static DeviceComputeKernelConfigAttr get (::mlir::MLIRContext *context)
 
static constexpr ::llvm::StringLiteral getMnemonic ()
 
::mlir::Attribute parse (::mlir::AsmParser &odsParser, ::mlir::Type odsType)
 

Static Public Attributes

static constexpr ::llvm::StringLiteral name = "ttnn.device_compute_kernel_config"
 
static constexpr ::llvm::StringLiteral dialectName = "ttnn"
 

Member Function Documentation

◆ get() [1/2]

DeviceComputeKernelConfigAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::get ( ::mlir::MLIRContext *  context)
static

◆ get() [2/2]

DeviceComputeKernelConfigAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::get ( ::mlir::MLIRContext *  context,
std::optional< MathFidelity math_fidelity,
BoolAttr  math_approx_mode,
BoolAttr  fp32_dest_acc_en,
BoolAttr  packer_l1_acc,
BoolAttr  dst_full_sync_en 
)
static

◆ getDstFullSyncEn()

BoolAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::getDstFullSyncEn ( ) const

◆ getFp32DestAccEn()

BoolAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::getFp32DestAccEn ( ) const

◆ getMathApproxMode()

BoolAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::getMathApproxMode ( ) const

◆ getMathFidelity()

std::optional< MathFidelity > mlir::tt::ttnn::DeviceComputeKernelConfigAttr::getMathFidelity ( ) const

◆ getMnemonic()

static constexpr ::llvm::StringLiteral mlir::tt::ttnn::DeviceComputeKernelConfigAttr::getMnemonic ( )
inlinestatic

◆ getPackerL1Acc()

BoolAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::getPackerL1Acc ( ) const

◆ parse()

mlir::Attribute mlir::tt::ttnn::DeviceComputeKernelConfigAttr::parse ( ::mlir::AsmParser &  odsParser,
::mlir::Type  odsType 
)
static

◆ print()

void mlir::tt::ttnn::DeviceComputeKernelConfigAttr::print ( ::mlir::AsmPrinter &  odsPrinter) const

◆ withDstFullSyncEn()

DeviceComputeKernelConfigAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::withDstFullSyncEn ( bool  value) const

◆ withFp32DestAccEn()

DeviceComputeKernelConfigAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::withFp32DestAccEn ( bool  value) const

◆ withMathApproxMode()

DeviceComputeKernelConfigAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::withMathApproxMode ( bool  value) const

◆ withMathFidelity()

DeviceComputeKernelConfigAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::withMathFidelity ( MathFidelity  mathFidelity) const

◆ withPackerL1Acc()

DeviceComputeKernelConfigAttr mlir::tt::ttnn::DeviceComputeKernelConfigAttr::withPackerL1Acc ( bool  value) const

Member Data Documentation

◆ dialectName

constexpr ::llvm::StringLiteral mlir::tt::ttnn::DeviceComputeKernelConfigAttr::dialectName = "ttnn"
static

◆ name

constexpr ::llvm::StringLiteral mlir::tt::ttnn::DeviceComputeKernelConfigAttr::name = "ttnn.device_compute_kernel_config"
static

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