Files
clang-p2996/mlir/unittests/TableGen/passes.td
Vladislav Vinogradov 628e136738 [mlir][ODS] Fix copy ctor for generate Pass classes
Redirect the copy ctor to the actual class instead of
overwriting it with `TypeID` based ctor.

This allows the final Pass classes to have extra fields and logic for their copy.

Reviewed By: lattner

Differential Revision: https://reviews.llvm.org/D104302
2021-06-21 14:07:31 +03:00

20 lines
617 B
TableGen

//===-- passes.td - PassGen test definition file -----------*- 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
//
//===----------------------------------------------------------------------===//
include "mlir/Pass/PassBase.td"
include "mlir/Pass/PassBase.td"
include "mlir/Rewrite/PassUtil.td"
def TestPass : Pass<"test"> {
let summary = "Test pass";
let constructor = "::createTestPass()";
let options = RewritePassUtils.options;
}