Support for multi-image features has begun to be integrated into LLVM. A new dialect which simplifies lowering to PRIF wil be proposed in this PR. The initial definition of this dialect (MIF) is based only on operations already upstreamed in LLVM and the current lowering will be moved to this dialect. --------- Co-authored-by: Dan Bonachea <dobonachea@lbl.gov> Co-authored-by: Valentin Clement (バレンタイン クレメン) <clementval@gmail.com>
25 lines
909 B
C++
25 lines
909 B
C++
//===- MIFDialect.cpp - MIF dialect implementation ------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
// C
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "flang/Optimizer/Dialect/MIF/MIFDialect.h"
|
|
#include "flang/Optimizer/Dialect/FIRDialect.h"
|
|
#include "flang/Optimizer/Dialect/MIF/MIFOps.h"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
/// Tablegen Definitions
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "flang/Optimizer/Dialect/MIF/MIFDialect.cpp.inc"
|
|
|
|
void mif::MIFDialect::initialize() {
|
|
addOperations<
|
|
#define GET_OP_LIST
|
|
#include "flang/Optimizer/Dialect/MIF/MIFOps.cpp.inc"
|
|
>();
|
|
}
|