My Project
SPIRVOps.h
Go to the documentation of this file.
1 //===- SPIRVOps.h - MLIR SPIR-V operations ----------------------*- C++ -*-===//
2 //
3 // Part of the MLIR 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 the operations in the SPIR-V dialect.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_DIALECT_SPIRV_SPIRVOPS_H_
14 #define MLIR_DIALECT_SPIRV_SPIRVOPS_H_
15 
17 #include "mlir/IR/Function.h"
18 
19 namespace mlir {
20 class OpBuilder;
21 
22 namespace spirv {
23 
24 // TableGen'erated operation interfaces for querying versions, extensions, and
25 // capabilities.
26 #include "mlir/Dialect/SPIRV/SPIRVAvailability.h.inc"
27 
28 // TablenGen'erated operation declarations.
29 #define GET_OP_CLASSES
30 #include "mlir/Dialect/SPIRV/SPIRVOps.h.inc"
31 
32 // TableGen'erated helper functions.
33 //
34 // Get the name used in the Op to refer to an enum value of the given
35 // `EnumClass`.
36 // template <typename EnumClass> StringRef attributeName();
37 //
38 // Get the function that can be used to symbolize an enum value.
39 // template <typename EnumClass>
40 // Optional<EnumClass> (*)(StringRef) symbolizeEnum();
41 #include "mlir/Dialect/SPIRV/SPIRVOpUtils.inc"
42 
43 } // end namespace spirv
44 } // end namespace mlir
45 
46 #endif // MLIR_DIALECT_SPIRV_SPIRVOPS_H_
Definition: InferTypeOpInterface.cpp:20