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
20 lines
617 B
TableGen
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;
|
|
}
|