13#ifndef MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
14#define MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
29#include "llvm/Support/PointerLikeTypeTraits.h"
33#include "mlir/Dialect/SPIRV/IR/SPIRVAvailability.h.inc"
45#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc"
51struct PointerLikeTypeTraits<
mlir::spirv::FuncOp> {
54 return const_cast<void *
>(i.getAsOpaquePointer());
57 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