mirror of https://github.com/llvm/torch-mlir
29 lines
1.1 KiB
TableGen
29 lines
1.1 KiB
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_BASICPY_PASSES
|
|
#define NPCOMP_BASICPY_PASSES
|
|
|
|
include "mlir/Pass/PassBase.td"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// TypeInference
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def FunctionTypeInference : Pass<"basicpy-type-inference", "FuncOp"> {
|
|
let summary = "Performs function level type inference";
|
|
let constructor = "mlir::NPCOMP::Basicpy::createFunctionTypeInferencePass()";
|
|
}
|
|
|
|
def CPAFunctionTypeInference : Pass<"basicpy-cpa-type-inference", "FuncOp"> {
|
|
let summary = "Performs CPA function level type inference";
|
|
let constructor = "mlir::NPCOMP::Basicpy::createCPAFunctionTypeInferencePass()";
|
|
}
|
|
|
|
#endif // NPCOMP_BASICPY_PASSES
|