MLIR 24.0.0git
NVVMMmaOps.h
Go to the documentation of this file.
1//===- NVVMMmaOps.h - NVVM dialect MMA ops ----------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file declares the ops of op partition `Mma` of the NVVM dialect: the
10// warp-level matrix multiply-accumulate ops, including wmma and the matrix
11// loads, stores and transpositions.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef MLIR_DIALECT_LLVMIR_NVVMMMAOPS_H_
16#define MLIR_DIALECT_LLVMIR_NVVMMMAOPS_H_
17
23#include "llvm/IR/IntrinsicsNVPTX.h"
24
25#define GET_OP_CLASSES
26#include "mlir/Dialect/LLVMIR/NVVMMmaOps.h.inc"
27
28namespace mlir {
29namespace NVVM {
30/// Return the element type and number of elements associated with a wmma matrix
31/// of given chracteristics. This matches the logic in IntrinsicsNVVM.td
32/// WMMA_REGS structure.
33std::pair<mlir::Type, unsigned> inferMMAType(mlir::NVVM::MMATypes type,
34 mlir::NVVM::MMAFrag frag, int nRow,
35 int nCol,
36 mlir::MLIRContext *context);
37} // namespace NVVM
38} // namespace mlir
39
40#endif // MLIR_DIALECT_LLVMIR_NVVMMMAOPS_H_
MLIRContext is the top-level object for a collection of MLIR operations.
Definition MLIRContext.h:71
std::pair< mlir::Type, unsigned > inferMMAType(mlir::NVVM::MMATypes type, mlir::NVVM::MMAFrag frag, int nRow, int nCol, mlir::MLIRContext *context)
Return the element type and number of elements associated with a wmma matrix of given chracteristics.
Include the generated interface declarations.