MLIR
20.0.0git
include
mlir
Conversion
MathToSPIRV
MathToSPIRV.h
Go to the documentation of this file.
1
//===- MathToSPIRV.h - Math to SPIR-V Patterns ------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// Provides patterns to convert Math dialect to SPIR-V dialect.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef MLIR_CONVERSION_MATHTOSPIRV_MATHTOSPIRV_H
14
#define MLIR_CONVERSION_MATHTOSPIRV_MATHTOSPIRV_H
15
16
#include "
mlir/Transforms/DialectConversion.h
"
17
18
namespace
mlir
{
19
class
SPIRVTypeConverter;
20
21
/// Appends to a pattern list additional patterns for translating Math ops
22
/// to SPIR-V ops.
23
void
populateMathToSPIRVPatterns
(
const
SPIRVTypeConverter &typeConverter,
24
RewritePatternSet &
patterns
);
25
26
}
// namespace mlir
27
28
#endif
// MLIR_CONVERSION_MATHTOSPIRV_MATHTOSPIRV_H
DialectConversion.h
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
mlir::populateMathToSPIRVPatterns
void populateMathToSPIRVPatterns(const SPIRVTypeConverter &typeConverter, RewritePatternSet &patterns)
Appends to a pattern list additional patterns for translating Math ops to SPIR-V ops.
Definition:
MathToSPIRV.cpp:488
mlir::patterns
const FrozenRewritePatternSet & patterns
Definition:
GreedyPatternRewriteDriver.h:233
Generated on Wed Dec 25 2024 04:31:51 for MLIR by
1.9.1