blob: 8fc548b11336af9b33725041c2104e81251e6ef1 [file] [log] [blame]
//===-- - Utilities for rewrite passes ---------*- tablegen -*-===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// This file contains several utilities for passes that utilize rewrite
// patterns.
include "mlir/Pass/"
def RewritePassUtils {
// A set of options commonly options used for pattern rewrites.
list<Option> options = [
// These two options provide filtering for which patterns are applied. These
// should be passed directly to the FrozenRewritePatternSet when it is
// created.
ListOption<"disabledPatterns", "disable-patterns", "std::string",
"Labels of patterns that should be filtered out during"
" application",
ListOption<"enabledPatterns", "enable-patterns", "std::string",
"Labels of patterns that should be used during"
" application, all other patterns are filtered out",