2020-06-14 14:45:43 +08:00
|
|
|
//===------------------------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// 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_CONVERSION_BASICPYTOSTD_PATTERNS_H
|
|
|
|
#define NPCOMP_CONVERSION_BASICPYTOSTD_PATTERNS_H
|
|
|
|
|
|
|
|
#include "mlir/IR/PatternMatch.h"
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace mlir {
|
|
|
|
namespace NPCOMP {
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Conversion patterns
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2021-03-24 05:16:23 +08:00
|
|
|
void populateBasicpyToStdPrimitiveOpPatterns(RewritePatternSet &patterns);
|
2020-06-14 14:45:43 +08:00
|
|
|
|
|
|
|
} // namespace NPCOMP
|
|
|
|
} // namespace mlir
|
|
|
|
|
|
|
|
#endif // NPCOMP_CONVERSION_BASICPYTOSTD_PATTERNS_H
|