Lines Matching refs:wrap
37 return wrap(context); in mlirContextCreate()
70 return wrap(unwrap(context)->getOrLoadDialect(unwrap(name))); in mlirContextGetOrLoadDialect()
90 return wrap(unwrap(dialect)->getContext()); in mlirDialectGetContext()
98 return wrap(unwrap(dialect)->getNamespace()); in mlirDialectGetNamespace()
106 return wrap(new DialectRegistry()); in mlirDialectRegistryCreate()
118 return wrap(new OpPrintingFlags()); in mlirOpPrintingFlagsCreate()
150 return wrap(Location( in mlirLocationFileLineColGet()
155 return wrap(Location(CallSiteLoc::get(unwrap(callee), unwrap(caller)))); in mlirLocationCallSiteGet()
163 return wrap(FusedLoc::get(unwrappedLocs, unwrap(metadata), unwrap(ctx))); in mlirLocationFusedGet()
169 return wrap( in mlirLocationNameGet()
171 return wrap(Location(NameLoc::get( in mlirLocationNameGet()
176 return wrap(Location(UnknownLoc::get(unwrap(context)))); in mlirLocationUnknownGet()
184 return wrap(unwrap(location).getContext()); in mlirLocationGetContext()
198 return wrap(ModuleOp::create(unwrap(location))); in mlirModuleCreateEmpty()
210 return wrap(unwrap(module).getContext()); in mlirModuleGetContext()
214 return wrap(unwrap(module).getBody()); in mlirModuleGetBody()
224 return wrap(unwrap(module).getOperation()); in mlirModuleGetOperation()
228 return wrap(dyn_cast<ModuleOp>(unwrap(op))); in mlirModuleFromOperation()
354 MlirOperation result = wrap(Operation::create(cppState)); in mlirOperationCreate()
359 return wrap(unwrap(op)->clone()); in mlirOperationClone()
371 return wrap(unwrap(op)->getContext()); in mlirOperationGetContext()
375 return wrap(unwrap(op)->getLoc()); in mlirOperationGetLocation()
380 return wrap(info->getTypeID()); in mlirOperationGetTypeID()
385 return wrap(unwrap(op)->getName().getIdentifier()); in mlirOperationGetName()
389 return wrap(unwrap(op)->getBlock()); in mlirOperationGetBlock()
393 return wrap(unwrap(op)->getParentOp()); in mlirOperationGetParentOperation()
401 return wrap(&unwrap(op)->getRegion(static_cast<unsigned>(pos))); in mlirOperationGetRegion()
407 return wrap(static_cast<Region *>(nullptr)); in mlirOperationGetFirstRegion()
408 return wrap(&cppOp->getRegion(0)); in mlirOperationGetFirstRegion()
416 return wrap(&parent->getRegion(next)); in mlirRegionGetNextInOperation()
417 return wrap(static_cast<Region *>(nullptr)); in mlirRegionGetNextInOperation()
421 return wrap(unwrap(op)->getNextNode()); in mlirOperationGetNextInBlock()
429 return wrap(unwrap(op)->getOperand(static_cast<unsigned>(pos))); in mlirOperationGetOperand()
442 return wrap(unwrap(op)->getResult(static_cast<unsigned>(pos))); in mlirOperationGetResult()
450 return wrap(unwrap(op)->getSuccessor(static_cast<unsigned>(pos))); in mlirOperationGetSuccessor()
459 return MlirNamedAttribute{wrap(attr.getName()), wrap(attr.getValue())}; in mlirOperationGetAttribute()
464 return wrap(unwrap(op)->getAttr(unwrap(name))); in mlirOperationGetAttributeByName()
506 MlirRegion mlirRegionCreate() { return wrap(new Region); } in mlirRegionCreate()
515 return wrap(static_cast<Block *>(nullptr)); in mlirRegionGetFirstBlock()
516 return wrap(&cppRegion->front()); in mlirRegionGetFirstBlock()
567 return wrap(b); in mlirBlockCreate()
575 return wrap(unwrap(block)->getParentOp()); in mlirBlockGetParentOperation()
579 return wrap(unwrap(block)->getParent()); in mlirBlockGetParentRegion()
583 return wrap(unwrap(block)->getNextNode()); in mlirBlockGetNextInRegion()
589 return wrap(static_cast<Operation *>(nullptr)); in mlirBlockGetFirstOperation()
590 return wrap(&cppBlock->front()); in mlirBlockGetFirstOperation()
596 return wrap(static_cast<Operation *>(nullptr)); in mlirBlockGetTerminator()
599 return wrap(static_cast<Operation *>(nullptr)); in mlirBlockGetTerminator()
600 return wrap(&back); in mlirBlockGetTerminator()
653 return wrap(unwrap(block)->addArgument(unwrap(type), unwrap(loc))); in mlirBlockAddArgument()
657 return wrap(unwrap(block)->getArgument(static_cast<unsigned>(pos))); in mlirBlockGetArgument()
683 return wrap(unwrap(value).cast<BlockArgument>().getOwner()); in mlirBlockArgumentGetOwner()
696 return wrap(unwrap(value).cast<OpResult>().getOwner()); in mlirOpResultGetOwner()
705 return wrap(unwrap(value).getType()); in mlirValueGetType()
721 return wrap(mlir::parseType(unwrap(type), unwrap(context))); in mlirTypeParseGet()
725 return wrap(unwrap(type).getContext()); in mlirTypeGetContext()
729 return wrap(unwrap(type).getTypeID()); in mlirTypeGetTypeID()
748 return wrap(mlir::parseAttribute(unwrap(attr), unwrap(context))); in mlirAttributeParseGet()
752 return wrap(unwrap(attribute).getContext()); in mlirAttributeGetContext()
756 return wrap(unwrap(attribute).getType()); in mlirAttributeGetType()
760 return wrap(unwrap(attr).getTypeID()); in mlirAttributeGetTypeID()
785 return wrap(StringAttr::get(unwrap(context), unwrap(str))); in mlirIdentifierGet()
789 return wrap(unwrap(ident).getContext()); in mlirIdentifierGetContext()
797 return wrap(unwrap(ident).strref()); in mlirIdentifierStr()
805 return wrap(SymbolTable::getSymbolAttrName()); in mlirSymbolTableGetSymbolAttributeName()
809 return wrap(SymbolTable::getVisibilityAttrName()); in mlirSymbolTableGetVisibilityAttributeName()
814 return wrap(static_cast<SymbolTable *>(nullptr)); in mlirSymbolTableCreate()
815 return wrap(new SymbolTable(unwrap(operation))); in mlirSymbolTableCreate()
824 return wrap(unwrap(symbolTable)->lookup(StringRef(name.data, name.length))); in mlirSymbolTableLookup()
829 return wrap((Attribute)unwrap(symbolTable)->insert(unwrap(operation))); in mlirSymbolTableInsert()
844 return wrap(SymbolTable::replaceAllSymbolUses(oldSymbolAttr, newSymbolAttr, in mlirSymbolTableReplaceAllSymbolUses()
854 callback(wrap(foundOpCpp), isVisible, in mlirSymbolTableWalkSymbolTables()