MLIR 22.0.0git
UBToSPIRV.h
Go to the documentation of this file.
1//===- UBToSPIRV.h - UB to SPIR-V dialect conversion ------------*- 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#ifndef MLIR_CONVERSION_UBTOSPIRV_UBSPIRV_H
10#define MLIR_CONVERSION_UBTOSPIRV_UBSPIRV_H
11
12#include <memory>
13
14namespace mlir {
15
18class Pass;
19
20#define GEN_PASS_DECL_UBTOSPIRVCONVERSIONPASS
21#include "mlir/Conversion/Passes.h.inc"
22
23namespace ub {
24void populateUBToSPIRVConversionPatterns(const SPIRVTypeConverter &converter,
25 RewritePatternSet &patterns);
26} // namespace ub
27} // namespace mlir
28
29#endif // MLIR_CONVERSION_UBTOSPIRV_UBSPIRV_H
The abstract base pass class.
Definition Pass.h:51
Type conversion from builtin types to SPIR-V types for shader interface.
void populateUBToSPIRVConversionPatterns(const SPIRVTypeConverter &converter, RewritePatternSet &patterns)
Definition UBToSPIRV.cpp:76
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns