mirror of https://github.com/llvm/torch-mlir
25 lines
977 B
TableGen
25 lines
977 B
TableGen
//===-- Passes.td - Pass 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef NPCOMP_BACKEND_IREE_PASSES
|
|
#define NPCOMP_BACKEND_IREE_PASSES
|
|
|
|
include "mlir/Pass/PassBase.td"
|
|
|
|
def LowerLinkage : Pass<"npcomp-iree-backend-lower-linkage", "ModuleOp"> {
|
|
let summary = "Lower linkage of symbols to IREE's interfaces";
|
|
let description = [{
|
|
IREE has a specific input modeling for linkage, which differs from
|
|
MLIR's native modeling. This pass lowers MLIR's native linkage constructs
|
|
(which are otherwise used by npcomp) into the form IREE requires.
|
|
}];
|
|
let constructor = "mlir::NPCOMP::IREEBackend::createLowerLinkagePass()";
|
|
}
|
|
|
|
#endif // NPCOMP_BACKEND_IREE_PASSES
|