13 #ifndef MLIR_IR_BUILTINOPS_H_
14 #define MLIR_IR_BUILTINOPS_H_
23 #include "llvm/Support/PointerLikeTypeTraits.h"
29 #define GET_OP_CLASSES
30 #include "mlir/IR/BuiltinOps.h.inc"
35 struct PointerLikeTypeTraits<
mlir::ModuleOp> {
38 return const_cast<void *
>(val.getAsOpaquePointer());
41 return mlir::ModuleOp::getFromOpaquePointer(p);
43 static constexpr
int numLowBitsAvailable = 3;
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.
static mlir::ModuleOp getFromVoidPointer(void *p)
static void * getAsVoidPointer(mlir::ModuleOp val)