13 #ifndef MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
14 #define MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
26 #include "llvm/Support/PointerLikeTypeTraits.h"
30 #include "mlir/Dialect/SPIRV/IR/SPIRVAvailability.h.inc"
41 #define GET_OP_CLASSES
42 #include "mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc"
48 struct PointerLikeTypeTraits<
mlir::spirv::FuncOp> {
51 return const_cast<void *
>(i.getAsOpaquePointer());
54 return mlir::spirv::FuncOp::getFromOpaquePointer(p);
56 static constexpr
int numLowBitsAvailable = 3;
Include the generated interface declarations.
Include the generated interface declarations.
static void * getAsVoidPointer(mlir::spirv::FuncOp i)
static mlir::spirv::FuncOp getFromVoidPointer(void *p)