TT-MLIR
Namespaces | Classes | Enumerations | Functions
mlir::tt::ttkernel Namespace Reference

Namespaces

 detail
 

Classes

class  KernelConfigInterface
 
class  AcquireDstOpGenericAdaptor
 
class  AcquireDstOpAdaptor
 
class  AcquireDstOp
 
class  AddOpGenericAdaptor
 
class  AddOpAdaptor
 
class  AddOp
 
class  AddTilesInitOpGenericAdaptor
 
class  AddTilesInitOpAdaptor
 
class  AddTilesInitOp
 
class  AddTilesOpGenericAdaptor
 
class  AddTilesOpAdaptor
 
class  AddTilesOp
 
class  BinaryOpInitCommonOpGenericAdaptor
 
class  BinaryOpInitCommonOpAdaptor
 
class  BinaryOpInitCommonOp
 
class  BuiltinOpGenericAdaptor
 
class  BuiltinOpAdaptor
 
class  BuiltinOp
 
class  CBPopFrontOpGenericAdaptor
 
class  CBPopFrontOpAdaptor
 
class  CBPopFrontOp
 
class  CBPushBackOpGenericAdaptor
 
class  CBPushBackOpAdaptor
 
class  CBPushBackOp
 
class  CBReserveBackOpGenericAdaptor
 
class  CBReserveBackOpAdaptor
 
class  CBReserveBackOp
 
class  CBWaitFrontOpGenericAdaptor
 
class  CBWaitFrontOpAdaptor
 
class  CBWaitFrontOp
 
class  GetNocAddrOpGenericAdaptor
 
class  GetNocAddrOpAdaptor
 
class  GetNocAddrOp
 
class  MatmulOpGenericAdaptor
 
class  MatmulOpAdaptor
 
class  MatmulOp
 
class  MulOpGenericAdaptor
 
class  MulOpAdaptor
 
class  MulOp
 
class  MulTilesInitOpGenericAdaptor
 
class  MulTilesInitOpAdaptor
 
class  MulTilesInitOp
 
class  MulTilesOpGenericAdaptor
 
class  MulTilesOpAdaptor
 
class  MulTilesOp
 
class  NocAsyncReadBarrierOpGenericAdaptor
 
class  NocAsyncReadBarrierOpAdaptor
 
class  NocAsyncReadBarrierOp
 
class  NocAsyncReadOpGenericAdaptor
 
class  NocAsyncReadOpAdaptor
 
class  NocAsyncReadOp
 
class  NocAsyncWriteBarrierOpGenericAdaptor
 
class  NocAsyncWriteBarrierOpAdaptor
 
class  NocAsyncWriteBarrierOp
 
class  NocAsyncWriteOpGenericAdaptor
 
class  NocAsyncWriteOpAdaptor
 
class  NocAsyncWriteOp
 
class  PackOpGenericAdaptor
 
class  PackOpAdaptor
 
class  PackOp
 
class  PackSetDataTypeOpGenericAdaptor
 
class  PackSetDataTypeOpAdaptor
 
class  PackSetDataTypeOp
 
class  PackTileOpGenericAdaptor
 
class  PackTileOpAdaptor
 
class  PackTileOp
 
class  ReleaseDstOpGenericAdaptor
 
class  ReleaseDstOpAdaptor
 
class  ReleaseDstOp
 
class  ReturnOpGenericAdaptor
 
class  ReturnOpAdaptor
 
class  ReturnOp
 
class  SubOpGenericAdaptor
 
class  SubOpAdaptor
 
class  SubOp
 
class  TileRegsAcquireOpGenericAdaptor
 
class  TileRegsAcquireOpAdaptor
 
class  TileRegsAcquireOp
 
class  TileRegsCommitOpGenericAdaptor
 
class  TileRegsCommitOpAdaptor
 
class  TileRegsCommitOp
 
class  TileRegsReleaseOpGenericAdaptor
 
class  TileRegsReleaseOpAdaptor
 
class  TileRegsReleaseOp
 
class  TileRegsWaitOpGenericAdaptor
 
class  TileRegsWaitOpAdaptor
 
class  TileRegsWaitOp
 
class  TilizeBlockOpGenericAdaptor
 
class  TilizeBlockOpAdaptor
 
class  TilizeBlockOp
 
class  TilizeInitOpGenericAdaptor
 
class  TilizeInitOpAdaptor
 
class  TilizeInitOp
 
class  UnpackABOpGenericAdaptor
 
class  UnpackABOpAdaptor
 
class  UnpackABOp
 
class  UnpackAOpGenericAdaptor
 
class  UnpackAOpAdaptor
 
class  UnpackAOp
 
class  UnpackSetDataTypeOpGenericAdaptor
 
class  UnpackSetDataTypeOpAdaptor
 
class  UnpackSetDataTypeOp
 
class  UnreachableOpGenericAdaptor
 
class  UnreachableOpAdaptor
 
class  UnreachableOp
 
class  UntilizeBlockOpGenericAdaptor
 
class  UntilizeBlockOpAdaptor
 
class  UntilizeBlockOp
 
class  UntilizeInitOpGenericAdaptor
 
class  UntilizeInitOpAdaptor
 
class  UntilizeInitOp
 
class  TensixConfigAttr
 
class  NocConfigAttr
 
class  EthernetConfigAttr
 
class  ThreadTypeAttr
 
class  TTKernelDialect
 
class  CBType
 
class  NocAddrType
 

Enumerations

enum class  CBPort : uint32_t {
  In0 = 0 , In1 = 1 , In2 = 2 , In3 = 3 ,
  In4 = 4 , In5 = 5 , In6 = 6 , In7 = 7 ,
  DataFlow0 = 8 , DataFlow1 = 9 , DataFlow2 = 10 , DataFlow3 = 11 ,
  DataFlow4 = 12 , DataFlow5 = 13 , DataFlow6 = 14 , DataFlow7 = 15 ,
  Out0 = 16 , Out1 = 17 , Out2 = 18 , Out3 = 19 ,
  Out4 = 20 , Out5 = 21 , Out6 = 22 , Out7 = 23 ,
  Intermed0 = 24 , Intermed1 = 25 , Intermed2 = 26 , Intermed3 = 27 ,
  Intermed4 = 28 , Intermed5 = 29 , Intermed6 = 30 , Intermed7 = 31
}
 
enum class  EthType : uint32_t { Sender = 0 , Receiver = 1 }
 
enum class  MathFidelity : uint32_t { LoFi = 0 , HiFi2 = 2 , HiFi3 = 3 , HiFi4 = 4 }
 
enum class  NocIndex : uint32_t { Noc0 = 0 , Noc1 = 1 }
 
enum class  ThreadType : uint32_t { Noc = 0 , Tensix = 1 , Ethernet = 2 }
 

Functions

::llvm::LogicalResult __mlir_ods_local_type_constraint_TTKernelOps0 (::mlir::Operation *op, ::mlir::Type type, ::llvm::StringRef valueKind, unsigned valueIndex)
 
::llvm::LogicalResult __mlir_ods_local_type_constraint_TTKernelOps1 (::mlir::Operation *op, ::mlir::Type type, ::llvm::StringRef valueKind, unsigned valueIndex)
 
::llvm::LogicalResult __mlir_ods_local_type_constraint_TTKernelOps2 (::mlir::Operation *op, ::mlir::Type type, ::llvm::StringRef valueKind, unsigned valueIndex)
 
::llvm::LogicalResult __mlir_ods_local_type_constraint_TTKernelOps3 (::mlir::Operation *op, ::mlir::Type type, ::llvm::StringRef valueKind, unsigned valueIndex)
 
::llvm::LogicalResult __mlir_ods_local_attr_constraint_TTKernelOps0 (::mlir::Attribute attr, ::llvm::StringRef attrName, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
 
::llvm::LogicalResult __mlir_ods_local_attr_constraint_TTKernelOps0 (::mlir::Operation *op, ::mlir::Attribute attr, ::llvm::StringRef attrName)
 
::llvm::LogicalResult __mlir_ods_local_attr_constraint_TTKernelOps1 (::mlir::Attribute attr, ::llvm::StringRef attrName, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
 
::llvm::LogicalResult __mlir_ods_local_attr_constraint_TTKernelOps1 (::mlir::Operation *op, ::mlir::Attribute attr, ::llvm::StringRef attrName)
 
::llvm::StringRef stringifyCBPort (CBPort val)
 
::std::optional< CBPortsymbolizeCBPort (::llvm::StringRef str)
 
::std::optional< CBPortsymbolizeCBPort (uint32_t value)
 
::llvm::StringRef stringifyEthType (EthType val)
 
::std::optional< EthTypesymbolizeEthType (::llvm::StringRef str)
 
::std::optional< EthTypesymbolizeEthType (uint32_t value)
 
::llvm::StringRef stringifyMathFidelity (MathFidelity val)
 
::std::optional< MathFidelitysymbolizeMathFidelity (::llvm::StringRef str)
 
::std::optional< MathFidelitysymbolizeMathFidelity (uint32_t value)
 
::llvm::StringRef stringifyNocIndex (NocIndex val)
 
::std::optional< NocIndexsymbolizeNocIndex (::llvm::StringRef str)
 
::std::optional< NocIndexsymbolizeNocIndex (uint32_t value)
 
::llvm::StringRef stringifyThreadType (ThreadType val)
 
::std::optional< ThreadTypesymbolizeThreadType (::llvm::StringRef str)
 
::std::optional< ThreadTypesymbolizeThreadType (uint32_t value)
 
constexpr unsigned getMaxEnumValForCBPort ()
 
inline ::llvm::StringRef stringifyEnum (CBPort enumValue)
 
template<typename EnumType >
::std::optional< EnumType > symbolizeEnum (::llvm::StringRef)
 
template<>
inline ::std::optional< CBPortsymbolizeEnum< CBPort > (::llvm::StringRef str)
 
constexpr unsigned getMaxEnumValForEthType ()
 
inline ::llvm::StringRef stringifyEnum (EthType enumValue)
 
template<>
inline ::std::optional< EthTypesymbolizeEnum< EthType > (::llvm::StringRef str)
 
constexpr unsigned getMaxEnumValForMathFidelity ()
 
inline ::llvm::StringRef stringifyEnum (MathFidelity enumValue)
 
template<>
inline ::std::optional< MathFidelitysymbolizeEnum< MathFidelity > (::llvm::StringRef str)
 
constexpr unsigned getMaxEnumValForNocIndex ()
 
inline ::llvm::StringRef stringifyEnum (NocIndex enumValue)
 
template<>
inline ::std::optional< NocIndexsymbolizeEnum< NocIndex > (::llvm::StringRef str)
 
constexpr unsigned getMaxEnumValForThreadType ()
 
inline ::llvm::StringRef stringifyEnum (ThreadType enumValue)
 
template<>
inline ::std::optional< ThreadTypesymbolizeEnum< ThreadType > (::llvm::StringRef str)
 

Enumeration Type Documentation

◆ CBPort

enum mlir::tt::ttkernel::CBPort : uint32_t
strong
Enumerator
In0 
In1 
In2 
In3 
In4 
In5 
In6 
In7 
DataFlow0 
DataFlow1 
DataFlow2 
DataFlow3 
DataFlow4 
DataFlow5 
DataFlow6 
DataFlow7 
Out0 
Out1 
Out2 
Out3 
Out4 
Out5 
Out6 
Out7 
Intermed0 
Intermed1 
Intermed2 
Intermed3 
Intermed4 
Intermed5 
Intermed6 
Intermed7 

◆ EthType

enum mlir::tt::ttkernel::EthType : uint32_t
strong
Enumerator
Sender 
Receiver 

◆ MathFidelity

enum mlir::tt::ttkernel::MathFidelity : uint32_t
strong
Enumerator
LoFi 
HiFi2 
HiFi3 
HiFi4 

◆ NocIndex

enum mlir::tt::ttkernel::NocIndex : uint32_t
strong
Enumerator
Noc0 
Noc1 

◆ ThreadType

enum mlir::tt::ttkernel::ThreadType : uint32_t
strong
Enumerator
Noc 
Tensix 
Ethernet 

Function Documentation

◆ __mlir_ods_local_attr_constraint_TTKernelOps0() [1/2]

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_attr_constraint_TTKernelOps0 ( ::mlir::Attribute  attr,
::llvm::StringRef  attrName,
llvm::function_ref<::mlir::InFlightDiagnostic()>  emitError 
)
static

◆ __mlir_ods_local_attr_constraint_TTKernelOps0() [2/2]

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_attr_constraint_TTKernelOps0 ( ::mlir::Operation *  op,
::mlir::Attribute  attr,
::llvm::StringRef  attrName 
)
static

◆ __mlir_ods_local_attr_constraint_TTKernelOps1() [1/2]

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_attr_constraint_TTKernelOps1 ( ::mlir::Attribute  attr,
::llvm::StringRef  attrName,
llvm::function_ref<::mlir::InFlightDiagnostic()>  emitError 
)
static

◆ __mlir_ods_local_attr_constraint_TTKernelOps1() [2/2]

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_attr_constraint_TTKernelOps1 ( ::mlir::Operation *  op,
::mlir::Attribute  attr,
::llvm::StringRef  attrName 
)
static

◆ __mlir_ods_local_type_constraint_TTKernelOps0()

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_type_constraint_TTKernelOps0 ( ::mlir::Operation *  op,
::mlir::Type  type,
::llvm::StringRef  valueKind,
unsigned  valueIndex 
)
static

◆ __mlir_ods_local_type_constraint_TTKernelOps1()

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_type_constraint_TTKernelOps1 ( ::mlir::Operation *  op,
::mlir::Type  type,
::llvm::StringRef  valueKind,
unsigned  valueIndex 
)
static

◆ __mlir_ods_local_type_constraint_TTKernelOps2()

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_type_constraint_TTKernelOps2 ( ::mlir::Operation *  op,
::mlir::Type  type,
::llvm::StringRef  valueKind,
unsigned  valueIndex 
)
static

◆ __mlir_ods_local_type_constraint_TTKernelOps3()

::llvm::LogicalResult mlir::tt::ttkernel::__mlir_ods_local_type_constraint_TTKernelOps3 ( ::mlir::Operation *  op,
::mlir::Type  type,
::llvm::StringRef  valueKind,
unsigned  valueIndex 
)
static

◆ getMaxEnumValForCBPort()

constexpr unsigned mlir::tt::ttkernel::getMaxEnumValForCBPort ( )
inlineconstexpr

◆ getMaxEnumValForEthType()

constexpr unsigned mlir::tt::ttkernel::getMaxEnumValForEthType ( )
inlineconstexpr

◆ getMaxEnumValForMathFidelity()

constexpr unsigned mlir::tt::ttkernel::getMaxEnumValForMathFidelity ( )
inlineconstexpr

◆ getMaxEnumValForNocIndex()

constexpr unsigned mlir::tt::ttkernel::getMaxEnumValForNocIndex ( )
inlineconstexpr

◆ getMaxEnumValForThreadType()

constexpr unsigned mlir::tt::ttkernel::getMaxEnumValForThreadType ( )
inlineconstexpr

◆ stringifyCBPort()

llvm::StringRef mlir::tt::ttkernel::stringifyCBPort ( CBPort  val)

◆ stringifyEnum() [1/5]

inline ::llvm::StringRef mlir::tt::ttkernel::stringifyEnum ( CBPort  enumValue)

◆ stringifyEnum() [2/5]

inline ::llvm::StringRef mlir::tt::ttkernel::stringifyEnum ( EthType  enumValue)

◆ stringifyEnum() [3/5]

inline ::llvm::StringRef mlir::tt::ttkernel::stringifyEnum ( MathFidelity  enumValue)

◆ stringifyEnum() [4/5]

inline ::llvm::StringRef mlir::tt::ttkernel::stringifyEnum ( NocIndex  enumValue)

◆ stringifyEnum() [5/5]

inline ::llvm::StringRef mlir::tt::ttkernel::stringifyEnum ( ThreadType  enumValue)

◆ stringifyEthType()

llvm::StringRef mlir::tt::ttkernel::stringifyEthType ( EthType  val)

◆ stringifyMathFidelity()

llvm::StringRef mlir::tt::ttkernel::stringifyMathFidelity ( MathFidelity  val)

◆ stringifyNocIndex()

llvm::StringRef mlir::tt::ttkernel::stringifyNocIndex ( NocIndex  val)

◆ stringifyThreadType()

llvm::StringRef mlir::tt::ttkernel::stringifyThreadType ( ThreadType  val)

◆ symbolizeCBPort() [1/2]

std::optional< CBPort > mlir::tt::ttkernel::symbolizeCBPort ( ::llvm::StringRef  str)

◆ symbolizeCBPort() [2/2]

std::optional< CBPort > mlir::tt::ttkernel::symbolizeCBPort ( uint32_t  value)

◆ symbolizeEnum()

template<typename EnumType >
::std::optional<EnumType> mlir::tt::ttkernel::symbolizeEnum ( ::llvm::StringRef  )

◆ symbolizeEnum< CBPort >()

template<>
inline ::std::optional<CBPort> mlir::tt::ttkernel::symbolizeEnum< CBPort > ( ::llvm::StringRef  str)

◆ symbolizeEnum< EthType >()

template<>
inline ::std::optional<EthType> mlir::tt::ttkernel::symbolizeEnum< EthType > ( ::llvm::StringRef  str)

◆ symbolizeEnum< MathFidelity >()

template<>
inline ::std::optional<MathFidelity> mlir::tt::ttkernel::symbolizeEnum< MathFidelity > ( ::llvm::StringRef  str)

◆ symbolizeEnum< NocIndex >()

template<>
inline ::std::optional<NocIndex> mlir::tt::ttkernel::symbolizeEnum< NocIndex > ( ::llvm::StringRef  str)

◆ symbolizeEnum< ThreadType >()

template<>
inline ::std::optional<ThreadType> mlir::tt::ttkernel::symbolizeEnum< ThreadType > ( ::llvm::StringRef  str)

◆ symbolizeEthType() [1/2]

std::optional< EthType > mlir::tt::ttkernel::symbolizeEthType ( ::llvm::StringRef  str)

◆ symbolizeEthType() [2/2]

std::optional< EthType > mlir::tt::ttkernel::symbolizeEthType ( uint32_t  value)

◆ symbolizeMathFidelity() [1/2]

std::optional< MathFidelity > mlir::tt::ttkernel::symbolizeMathFidelity ( ::llvm::StringRef  str)

◆ symbolizeMathFidelity() [2/2]

std::optional< MathFidelity > mlir::tt::ttkernel::symbolizeMathFidelity ( uint32_t  value)

◆ symbolizeNocIndex() [1/2]

std::optional< NocIndex > mlir::tt::ttkernel::symbolizeNocIndex ( ::llvm::StringRef  str)

◆ symbolizeNocIndex() [2/2]

std::optional< NocIndex > mlir::tt::ttkernel::symbolizeNocIndex ( uint32_t  value)

◆ symbolizeThreadType() [1/2]

std::optional< ThreadType > mlir::tt::ttkernel::symbolizeThreadType ( ::llvm::StringRef  str)

◆ symbolizeThreadType() [2/2]

std::optional< ThreadType > mlir::tt::ttkernel::symbolizeThreadType ( uint32_t  value)