MLIR  20.0.0git
IndexDialect.cpp
Go to the documentation of this file.
1 //===- IndexDialect.cpp - Index dialect definition -------------------------==//
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 
11 
12 using namespace mlir;
13 using namespace mlir::index;
14 
15 //===----------------------------------------------------------------------===//
16 // IndexDialect
17 //===----------------------------------------------------------------------===//
18 
19 void IndexDialect::initialize() {
20  registerAttributes();
21  registerOperations();
22  declarePromisedInterface<ConvertToLLVMPatternInterface, IndexDialect>();
23 }
24 
25 //===----------------------------------------------------------------------===//
26 // ODS-Generated Definitions
27 //===----------------------------------------------------------------------===//
28 
29 #include "mlir/Dialect/Index/IR/IndexOpsDialect.cpp.inc"
Include the generated interface declarations.