13 #ifndef MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
14 #define MLIR_DIALECT_SPIRV_IR_SPIRVOPS_H_
27 #include "llvm/Support/PointerLikeTypeTraits.h"
31 #include "mlir/Dialect/SPIRV/IR/SPIRVAvailability.h.inc"
42 #define GET_OP_CLASSES
43 #include "mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc"
49 struct PointerLikeTypeTraits<
mlir::spirv::FuncOp> {
52 return const_cast<void *
>(i.getAsOpaquePointer());
55 return mlir::spirv::FuncOp::getFromOpaquePointer(p);
57 static constexpr
int numLowBitsAvailable = 3;
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)