MLIR 22.0.0git
XeGPUDialect.cpp File Reference
#include "mlir/Dialect/Affine/Utils.h"
#include "mlir/Dialect/Arith/Utils/Utils.h"
#include "mlir/Dialect/Index/IR/IndexOps.h"
#include "mlir/Dialect/Utils/IndexingUtils.h"
#include "mlir/Dialect/XeGPU/IR/XeGPU.h"
#include "mlir/Dialect/XeGPU/uArch/IntelGpuXe2.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/Debug.h"
#include <mlir/Dialect/XeGPU/IR/XeGPUTypes.cpp.inc>
#include <mlir/Dialect/XeGPU/IR/XeGPU.cpp.inc>
#include <mlir/Dialect/XeGPU/IR/XeGPUAttrs.cpp.inc>
#include <mlir/Dialect/XeGPU/IR/XeGPUDialect.cpp.inc>

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::xegpu

Macros

#define GET_TYPEDEF_LIST
#define GET_OP_LIST
#define GET_ATTRDEF_LIST
#define div(a, b)
#define rem(a, b)
#define mul(a, b)
#define add(a, b)
#define GET_ATTRDEF_CLASSES
#define GET_TYPEDEF_CLASSES

Functions

static SmallVector< SmallVector< Value > > mlir::xegpu::genCoordinates (OpBuilder &builder, Location loc, SmallVector< Value > delinearizedId, ArrayRef< int64_t > subShapesLayout, ArrayRef< int64_t > subShape, ArrayRef< int64_t > srcShape)
template<typename ArithOp>
OpFoldResult mlir::xegpu::genBinOp (OpFoldResult a, OpFoldResult b, Location loc, OpBuilder &builder)
SmallVector< OpFoldResultmlir::xegpu::getBlockedOffsets (OpBuilder &builder, Location loc, ArrayRef< OpFoldResult > offsets, ArrayRef< int64_t > blockShape)

Macro Definition Documentation

◆ add

◆ div

#define div ( a,
b )
Value:
genBinOp<arith::DivSIOp>(a, builder.getIndexAttr(b), loc, builder)

Definition at line 822 of file XeGPUDialect.cpp.

Referenced by convertAtanhOp(), convertPowfOp(), convertTanOp(), mlir::xegpu::getBlockedOffsets(), getLargestKnownDivisor(), isQTimesDPlusR(), and mlir::presburger::MultiAffineFunction::mergeDivs().

◆ GET_ATTRDEF_CLASSES

#define GET_ATTRDEF_CLASSES

Definition at line 960 of file XeGPUDialect.cpp.

◆ GET_ATTRDEF_LIST

#define GET_ATTRDEF_LIST

◆ GET_OP_LIST

#define GET_OP_LIST

◆ GET_TYPEDEF_CLASSES

#define GET_TYPEDEF_CLASSES

Definition at line 962 of file XeGPUDialect.cpp.

◆ GET_TYPEDEF_LIST

#define GET_TYPEDEF_LIST

◆ mul

◆ rem

#define rem ( a,
b )
Value:
genBinOp<arith::RemSIOp>(a, builder.getIndexAttr(b), loc, builder)

Definition at line 826 of file XeGPUDialect.cpp.

Referenced by mlir::detail::allocAligned(), mlir::sparse_tensor::SparseIterator::genWhileCond(), mlir::xegpu::getBlockedOffsets(), isQTimesDPlusR(), mlir::presburger::round(), and simplifyExprAndOperands().