brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 183d0e3 Raw
30 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "mlir/Dialect/Index/IR/IndexDialect.h"10#include "mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h"11 12using namespace mlir;13using namespace mlir::index;14 15//===----------------------------------------------------------------------===//16// IndexDialect17//===----------------------------------------------------------------------===//18 19void IndexDialect::initialize() {20  registerAttributes();21  registerOperations();22  declarePromisedInterface<ConvertToLLVMPatternInterface, IndexDialect>();23}24 25//===----------------------------------------------------------------------===//26// ODS-Generated Definitions27//===----------------------------------------------------------------------===//28 29#include "mlir/Dialect/Index/IR/IndexOpsDialect.cpp.inc"30