MLIR
20.0.0git
lib
Dialect
Ptr
IR
PtrDialect.cpp
Go to the documentation of this file.
1
//===- PtrDialect.cpp - Pointer dialect ---------------------*- C++ -*-===//
2
//
3
// This file is licensed 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 implements the Pointer dialect.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "
mlir/Dialect/Ptr/IR/PtrOps.h
"
14
#include "
mlir/IR/DialectImplementation.h
"
15
#include "
mlir/IR/PatternMatch.h
"
16
#include "
mlir/Transforms/InliningUtils.h
"
17
#include "llvm/ADT/SmallString.h"
18
#include "llvm/ADT/TypeSwitch.h"
19
20
using namespace
mlir
;
21
using namespace
mlir::ptr;
22
23
//===----------------------------------------------------------------------===//
24
// Pointer dialect
25
//===----------------------------------------------------------------------===//
26
27
void
PtrDialect::initialize() {
28
addOperations<
29
#define GET_OP_LIST
30
#include "mlir/Dialect/Ptr/IR/PtrOps.cpp.inc"
31
>();
32
addAttributes<
33
#define GET_ATTRDEF_LIST
34
#include "mlir/Dialect/Ptr/IR/PtrOpsAttrs.cpp.inc"
35
>();
36
addTypes<
37
#define GET_TYPEDEF_LIST
38
#include "mlir/Dialect/Ptr/IR/PtrOpsTypes.cpp.inc"
39
>();
40
}
41
42
//===----------------------------------------------------------------------===//
43
// Pointer API.
44
//===----------------------------------------------------------------------===//
45
46
#include "mlir/Dialect/Ptr/IR/PtrOpsDialect.cpp.inc"
47
48
#define GET_ATTRDEF_CLASSES
49
#include "mlir/Dialect/Ptr/IR/PtrOpsAttrs.cpp.inc"
50
51
#define GET_TYPEDEF_CLASSES
52
#include "mlir/Dialect/Ptr/IR/PtrOpsTypes.cpp.inc"
53
54
#define GET_OP_CLASSES
55
#include "mlir/Dialect/Ptr/IR/PtrOps.cpp.inc"
DialectImplementation.h
InliningUtils.h
PatternMatch.h
PtrOps.h
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
Generated on Tue Nov 19 2024 08:32:31 for MLIR by
1.9.1