serene/libserene.v0/include/serene/slir/dialect.h

46 lines
1.6 KiB
C
Raw Normal View History

2021-06-08 22:03:12 +01:00
/* -*- C++ -*-
2021-10-12 20:51:03 +01:00
* Serene Programming Language
2021-06-08 22:03:12 +01:00
*
2022-01-27 11:44:44 +00:00
* Copyright (c) 2019-2022 Sameer Rahmani <lxsameer@gnu.org>
2021-06-08 22:03:12 +01:00
*
2021-10-12 20:51:03 +01:00
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2.
2021-06-08 22:03:12 +01:00
*
2021-10-12 20:51:03 +01:00
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
2021-06-08 22:03:12 +01:00
*
2021-10-12 20:51:03 +01:00
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2021-06-08 22:03:12 +01:00
*/
2021-10-17 20:12:17 +01:00
#ifndef SERENE_SLIR_DIALECT_H
#define SERENE_SLIR_DIALECT_H
2021-06-08 22:03:12 +01:00
#include <serene/export.h>
2022-01-18 19:45:30 +00:00
#include <llvm/ADT/TypeSwitch.h>
#include <mlir/Dialect/Arithmetic/IR/Arithmetic.h>
#include <mlir/Dialect/Func/IR/FuncOps.h>
#include <mlir/Dialect/LLVMIR/LLVMDialect.h>
#include <mlir/IR/BuiltinOps.h>
#include <mlir/IR/Dialect.h>
#include <mlir/IR/DialectRegistry.h>
#include <mlir/IR/FunctionInterfaces.h>
#include <mlir/Interfaces/CallInterfaces.h>
#include <mlir/Interfaces/ControlFlowInterfaces.h>
#include <mlir/Interfaces/InferTypeOpInterface.h>
#include <mlir/Interfaces/SideEffectInterfaces.h>
2021-06-08 22:03:12 +01:00
// Include the auto-generated header file containing the declaration of the
// serene's dialect.
#include "serene/slir/dialect.h.inc"
#include "serene/slir/types.h"
2021-06-08 22:03:12 +01:00
namespace serene::slir {
SERENE_EXPORT void registerTo(mlir::DialectRegistry &registry);
} // namespace serene::slir
//
2021-10-17 20:12:17 +01:00
#endif // SERENE_SLIR_DIALECT_H