1//===-- Passes.td - pass definition file -------------------*- 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 MLIR_DIALECT_EMITC_TRANSFORMS_PASSES 10#define MLIR_DIALECT_EMITC_TRANSFORMS_PASSES 11 12include "mlir/Pass/PassBase.td" 13 14def FormExpressions : Pass<"form-expressions"> { 15 let summary = "Form C-style expressions from C-operator ops"; 16 let description = [{ 17 The pass wraps emitc ops modelling C operators in emitc.expression ops and 18 then folds single-use expressions into their users where possible. 19 }]; 20 let constructor = "mlir::emitc::createFormExpressionsPass()"; 21 let dependentDialects = ["emitc::EmitCDialect"]; 22} 23 24#endif // MLIR_DIALECT_EMITC_TRANSFORMS_PASSES 25