28 lines
1016 B
C++
28 lines
1016 B
C++
//===- MathToXeVM.h - Utils for converting Math to XeVM -------------------===//
|
|
//
|
|
// 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 MLIR_CONVERSION_MATHTOXEVM_MATHTOXEVM_H_
|
|
#define MLIR_CONVERSION_MATHTOXEVM_MATHTOXEVM_H_
|
|
|
|
#include "mlir/Conversion/LLVMCommon/TypeConverter.h"
|
|
#include "mlir/Dialect/LLVMIR/XeVMDialect.h"
|
|
#include "mlir/IR/PatternMatch.h"
|
|
#include <memory>
|
|
|
|
namespace mlir {
|
|
class Pass;
|
|
|
|
#define GEN_PASS_DECL_CONVERTMATHTOXEVM
|
|
#include "mlir/Conversion/Passes.h.inc"
|
|
|
|
/// Populate the given list with patterns that convert from Math to XeVM calls.
|
|
void populateMathToXeVMConversionPatterns(RewritePatternSet &patterns,
|
|
bool convertArith);
|
|
} // namespace mlir
|
|
|
|
#endif // MLIR_CONVERSION_MATHTOXEVM_MATHTOXEVM_H_
|