MLIR
22.0.0git
include
mlir
Conversion
FuncToSPIRV
FuncToSPIRV.h
Go to the documentation of this file.
1
//===- FuncToSPIRV.h - Func 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 Func dialect to SPIR-V dialect.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef MLIR_CONVERSION_FUNCTOSPIRV_FUNCTOSPIRV_H
14
#define MLIR_CONVERSION_FUNCTOSPIRV_FUNCTOSPIRV_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 Func ops
22
/// to SPIR-V ops. Also adds the patterns to legalize ops not directly
23
/// translated to SPIR-V dialect.
24
void
populateFuncToSPIRVPatterns
(
const
SPIRVTypeConverter
&typeConverter,
25
RewritePatternSet
&
patterns
);
26
27
}
// namespace mlir
28
29
#endif
// MLIR_CONVERSION_FUNCTOSPIRV_FUNCTOSPIRV_H
DialectConversion.h
mlir::RewritePatternSet
Definition
PatternMatch.h:816
mlir::SPIRVTypeConverter
Type conversion from builtin types to SPIR-V types for shader interface.
Definition
SPIRVConversion.h:74
mlir
Include the generated interface declarations.
Definition
AliasAnalysis.h:19
mlir::populateFuncToSPIRVPatterns
void populateFuncToSPIRVPatterns(const SPIRVTypeConverter &typeConverter, RewritePatternSet &patterns)
Appends to a pattern list additional patterns for translating Func ops to SPIR-V ops.
Definition
FuncToSPIRV.cpp:87
mlir::patterns
const FrozenRewritePatternSet & patterns
Definition
GreedyPatternRewriteDriver.h:283
Generated on
for MLIR by
1.14.0