13#ifndef MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
14#define MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
28#include "llvm/Support/PointerLikeTypeTraits.h"
32#include "mlir/Dialect/SPIRV/IR/SPIRVAvailability.h.inc"
44#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc"
50struct PointerLikeTypeTraits<
mlir::spirv::FuncOp> {
53 return const_cast<void *
>(i.getAsOpaquePointer());
56 return mlir::spirv::FuncOp::getFromOpaquePointer(p);
This class helps build Operations.
An attribute that specifies the SPIR-V (version, capabilities, extensions) triple.
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.
static void * getAsVoidPointer(mlir::spirv::FuncOp i)
static mlir::spirv::FuncOp getFromVoidPointer(void *p)
static constexpr int numLowBitsAvailable