[Mlir-commits] [mlir] [mlir] Initial patch to add an MPI dialect (PR #68892)
Anton Lydike
llvmlistbot at llvm.org
Sat Jan 6 05:59:35 PST 2024
================
@@ -0,0 +1,39 @@
+//===- MPITypes.td - Message Passing Interface types -------*- tablegen -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares the Message Passing Interface dialect types.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef MLIR_DIALECT_MPI_IR_MPITYPES_TD
+#define MLIR_DIALECT_MPI_IR_MPITYPES_TD
+
+include "mlir/IR/AttrTypeBase.td"
+include "mlir/Dialect/MPI/IR/MPI.td"
+
+//===----------------------------------------------------------------------===//
+// MPI Types
+//===----------------------------------------------------------------------===//
+
+class MPI_Type<string name, string typeMnemonic, list<Trait> traits = []>
+ : TypeDef<MPI_Dialect, name, traits> {
+ let mnemonic = typeMnemonic;
+}
+
+//===----------------------------------------------------------------------===//
+// mpi::RetvalType
+//===----------------------------------------------------------------------===//
+
+def MPI_Retval : MPI_Type<"Retval", "retval"> {
+ let summary = "MPI function call return value";
+ let description = [{This type represents a value returned from an MPI
+ call.This value can be MPI_SUCCESS,
+ MPI_ERR_IN_STATUS, or any error code.}];
----------------
AntonLydike wrote:
This seems to be a weird artifact of `clang-format`. I asked for help on [discord](https://discord.com/channels/636084430946959380/642426447167881246/1193190420973375518).
For now I manually ignored `clang-format`s hints for this file.
https://github.com/llvm/llvm-project/pull/68892
More information about the Mlir-commits
mailing list