Lines Matching refs:unwrap

159     auto Err = unwrap(TryToGenerate(::wrap(this), Ctx, &LSR, CLookupKind,  in tryToGenerate()
164 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(LSR)); in tryToGenerate()
240 unwrap(ES)->setErrorReporter( in LLVMOrcExecutionSessionSetErrorReporter()
246 return wrap(unwrap(ES)->getSymbolStringPool().get()); in LLVMOrcExecutionSessionGetSymbolStringPool()
250 unwrap(SSP)->clearDeadEntries(); in LLVMOrcSymbolStringPoolClearDeadEntries()
256 OrcV2CAPIHelper::moveFromSymbolStringPtr(unwrap(ES)->intern(Name))); in LLVMOrcExecutionSessionIntern()
260 OrcV2CAPIHelper::retainPoolEntry(unwrap(S)); in LLVMOrcRetainSymbolStringPoolEntry()
264 OrcV2CAPIHelper::releasePoolEntry(unwrap(S)); in LLVMOrcReleaseSymbolStringPoolEntry()
268 return unwrap(S)->getKey().data(); in LLVMOrcSymbolStringPoolEntryStr()
273 auto RT = unwrap(JD)->createResourceTracker(); in LLVMOrcJITDylibCreateResourceTracker()
281 auto RT = unwrap(JD)->getDefaultResourceTracker(); in LLVMOrcJITDylibGetDefaultResourceTracker()
287 ResourceTrackerSP TmpRT(unwrap(RT)); in LLVMOrcReleaseResourceTracker()
293 ResourceTrackerSP TmpRT(unwrap(SrcRT)); in LLVMOrcResourceTrackerTransferTo()
294 TmpRT->transferTo(*unwrap(DstRT)); in LLVMOrcResourceTrackerTransferTo()
298 ResourceTrackerSP TmpRT(unwrap(RT)); in LLVMOrcResourceTrackerRemove()
303 std::unique_ptr<DefinitionGenerator> TmpDG(unwrap(DG)); in LLVMOrcDisposeDefinitionGenerator()
307 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcDisposeMaterializationUnit()
318 SFM[OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Syms[I].Name))] = in LLVMOrcCreateCustomMaterializationUnit()
321 auto IS = OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(InitSym)); in LLVMOrcCreateCustomMaterializationUnit()
332 SM[OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Syms[I].Name))] = in LLVMOrcAbsoluteSymbols()
342 return wrap(&unwrap(ES)->createBareJITDylib(Name)); in LLVMOrcExecutionSessionCreateBareJITDylib()
349 auto JD = unwrap(ES)->createJITDylib(Name); in LLVMOrcExecutionSessionCreateJITDylib()
359 return wrap(unwrap(ES)->getJITDylibByName(Name)); in LLVMOrcExecutionSessionGetJITDylibByName()
364 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcJITDylibDefine()
366 if (auto Err = unwrap(JD)->define(TmpMU)) { in LLVMOrcJITDylibDefine()
374 return wrap(unwrap(JD)->clear()); in LLVMOrcJITDylibClear()
379 unwrap(JD)->addGenerator(std::unique_ptr<DefinitionGenerator>(unwrap(DG))); in LLVMOrcJITDylibAddGenerator()
419 return wrap(unwrap(TSCtx)->getContext()); in LLVMOrcThreadSafeContextGetContext()
423 delete unwrap(TSCtx); in LLVMOrcDisposeThreadSafeContext()
430 new ThreadSafeModule(std::unique_ptr<Module>(unwrap(M)), *unwrap(TSCtx))); in LLVMOrcCreateNewThreadSafeModule()
434 delete unwrap(TSM); in LLVMOrcDisposeThreadSafeModule()
453 auto *TemplateTM = unwrap(TM); in LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine()
473 delete unwrap(JTMB); in LLVMOrcDisposeJITTargetMachineBuilder()
478 auto Tmp = unwrap(JTMB)->getTargetTriple().str(); in LLVMOrcJITTargetMachineBuilderGetTargetTriple()
486 unwrap(JTMB)->getTargetTriple() = Triple(TargetTriple); in LLVMOrcJITTargetMachineBuilderSetTargetTriple()
492 return wrap(unwrap(ObjLayer)->add( in LLVMOrcObjectLayerAddObjectFile()
493 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcObjectLayerAddObjectFile()
500 unwrap(ObjLayer)->add(ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddObjectFileWithRT()
501 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFileWithRT()
507 unwrap(ObjLayer)->emit( in LLVMOrcObjectLayerEmit()
508 std::unique_ptr<MaterializationResponsibility>(unwrap(R)), in LLVMOrcObjectLayerEmit()
509 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer))); in LLVMOrcObjectLayerEmit()
513 delete unwrap(ObjLayer); in LLVMOrcDisposeObjectLayer()
521 delete unwrap(Builder); in LLVMOrcDisposeLLJITBuilder()
526 unwrap(Builder)->setJITTargetMachineBuilder(std::move(*unwrap(JTMB))); in LLVMOrcLLJITBuilderSetJITTargetMachineBuilder()
533 unwrap(Builder)->setObjectLinkingLayerCreator( in LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator()
537 unwrap(F(Ctx, wrap(&ES), TTStr.c_str()))); in LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator()
548 auto J = unwrap(Builder)->create(); in LLVMOrcCreateLLJIT()
561 delete unwrap(J); in LLVMOrcDisposeLLJIT()
566 return wrap(&unwrap(J)->getExecutionSession()); in LLVMOrcLLJITGetExecutionSession()
570 return wrap(&unwrap(J)->getMainJITDylib()); in LLVMOrcLLJITGetMainJITDylib()
574 return unwrap(J)->getTargetTriple().str().c_str(); in LLVMOrcLLJITGetTripleString()
578 return unwrap(J)->getDataLayout().getGlobalPrefix(); in LLVMOrcLLJITGetGlobalPrefix()
584 unwrap(J)->mangleAndIntern(UnmangledName))); in LLVMOrcLLJITMangleAndIntern()
589 return wrap(unwrap(J)->addObjectFile( in LLVMOrcLLJITAddObjectFile()
590 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFile()
596 return wrap(unwrap(J)->addObjectFile( in LLVMOrcLLJITAddObjectFileWithRT()
597 ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddObjectFileWithRT()
598 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFileWithRT()
604 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcLLJITAddLLVMIRModule()
605 return wrap(unwrap(J)->addIRModule(*unwrap(JD), std::move(*TmpTSM))); in LLVMOrcLLJITAddLLVMIRModule()
611 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcLLJITAddLLVMIRModuleWithRT()
612 return wrap(unwrap(J)->addIRModule(ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddLLVMIRModuleWithRT()
621 auto Sym = unwrap(J)->lookup(Name); in LLVMOrcLLJITLookup()
632 return wrap(&unwrap(J)->getObjLinkingLayer()); in LLVMOrcLLJITGetObjLinkingLayer()
640 *unwrap(ES), [] { return std::make_unique<SectionMemoryManager>(); })); in LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager()
648 reinterpret_cast<RTDyldObjectLinkingLayer *>(unwrap(RTDyldObjLinkingLayer)) in LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener()
649 ->registerJITEventListener(*unwrap(Listener)); in LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener()