Files
gps/tools/local/circt/include/mlir/Dialect/SPIRV/IR/SPIRVGLCanonicalization.h
T
2026-07-12 11:01:51 +03:00

35 lines
1.3 KiB
C++

//===- SPIRVGLCanonicalization.h - GLSL-specific patterns -----*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This file declares a function to register SPIR-V GLSL-specific
// canonicalization patterns.
//
//===----------------------------------------------------------------------===//
#ifndef MLIR_DIALECT_SPIRV_IR_SPIRVGLCANONICALIZATION_H_
#define MLIR_DIALECT_SPIRV_IR_SPIRVGLCANONICALIZATION_H_
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/PatternMatch.h"
//===----------------------------------------------------------------------===//
// GLSL canonicalization patterns
//===----------------------------------------------------------------------===//
namespace mlir {
namespace spirv {
/// Populates patterns to run canoncalization that involves GL ops.
///
/// These patterns cannot be run in default canonicalization because GL ops
/// aren't always available. So they should be involed specifically when needed.
void populateSPIRVGLCanonicalizationPatterns(RewritePatternSet &results);
} // namespace spirv
} // namespace mlir
#endif // MLIR_DIALECT_SPIRV_IR_SPIRVGLCANONICALIZATION_H_