1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Dialect Declarations *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* From: XeVMOps.td *|
7|* *|
8\*===----------------------------------------------------------------------===*/
9
10#include "mlir/IR/Dialect.h"
11
12namespace mlir::xevm {
13
14/// The XeVM dialect that extends LLVM dialect and models Intel GPU's hardware features.
15/// The XeVM dialect is extension to the LLVM dialect that models hardware
16/// features of Intel GPUs. The dialect is designed to work with the Xe
17/// architecture for Intel GPUs, supporting advanced operations like 2D block
18/// loads, stores, prefetch and matrix multiply-add (MMA) operations.
19class XeVMDialect : public ::mlir::Dialect {
20 explicit XeVMDialect(::mlir::MLIRContext *context);
21
22 void initialize();
23 friend class ::mlir::MLIRContext;
24public:
25 ~XeVMDialect() override;
26 static constexpr ::llvm::StringLiteral getDialectNamespace() {
27 return ::llvm::StringLiteral("xevm");
28 }
29
30 /// Parse an attribute registered to this dialect.
31 ::mlir::Attribute parseAttribute(::mlir::DialectAsmParser &parser,
32 ::mlir::Type type) const override;
33
34 /// Print an attribute registered to this dialect.
35 void printAttribute(::mlir::Attribute attr,
36 ::mlir::DialectAsmPrinter &os) const override;
37
38 /// Get the name for the attribute used to specify cache control
39 /// decorations.
40 static constexpr ::llvm::StringRef getCacheControlsAttrName() {
41 return ::llvm::StringLiteral("xevm.DecorationCacheControl");
42 }
43 };
44
45} // namespace mlir::xevm
46MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::xevm::XeVMDialect)
47