MLIR  20.0.0git
SPIRVGLCanonicalization.h
Go to the documentation of this file.
1 //===- SPIRVGLCanonicalization.h - GLSL-specific 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 // This file declares a function to register SPIR-V GLSL-specific
10 // canonicalization patterns.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_DIALECT_SPIRV_IR_SPIRVGLCANONICALIZATION_H_
15 #define MLIR_DIALECT_SPIRV_IR_SPIRVGLCANONICALIZATION_H_
16 
17 #include "mlir/IR/MLIRContext.h"
18 #include "mlir/IR/PatternMatch.h"
19 
20 //===----------------------------------------------------------------------===//
21 // GLSL canonicalization patterns
22 //===----------------------------------------------------------------------===//
23 
24 namespace mlir {
25 namespace spirv {
26 /// Populates patterns to run canoncalization that involves GL ops.
27 ///
28 /// These patterns cannot be run in default canonicalization because GL ops
29 /// aren't always available. So they should be involed specifically when needed.
30 void populateSPIRVGLCanonicalizationPatterns(RewritePatternSet &results);
31 } // namespace spirv
32 } // namespace mlir
33 
34 #endif // MLIR_DIALECT_SPIRV_IR_SPIRVGLCANONICALIZATION_H_
void populateSPIRVGLCanonicalizationPatterns(RewritePatternSet &results)
Populates patterns to run canoncalization that involves GL ops.
Include the generated interface declarations.