1//===- MLProgramTypes.td - Type definitions ----------------*- tablegen -*-===// 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 9#ifndef MLPROGRAM_TYPES 10#define MLPROGRAM_TYPES 11 12include "mlir/IR/AttrTypeBase.td" 13include "mlir/Dialect/MLProgram/IR/MLProgramBase.td" 14 15class MLProgram_Type<string name, list<Trait> traits = [], 16 string baseCppClass = "::mlir::Type"> 17 : TypeDef<MLProgram_Dialect, name, traits, baseCppClass> {} 18 19def MLProgram_TokenType : MLProgram_Type<"Token"> { 20 let summary = "Token for establishing execution ordering in a graph"; 21 let mnemonic = "token"; 22} 23 24#endif // MLPROGRAM_TYPES 25