Lines Matching refs:unwrap

187     SM[OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Syms[I].Name))] =  in toSymbolMap()
197 JITDylib *JD = unwrap(Pairs[I].JD); in toSymbolDependenceMap()
202 Names.insert(OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Sym))); in toSymbolDependenceMap()
318 auto Err = unwrap(TryToGenerate(::wrap(this), Ctx, &LSR, CLookupKind, in tryToGenerate()
323 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(LSR)); in tryToGenerate()
340 unwrap(ES)->setErrorReporter( in LLVMOrcExecutionSessionSetErrorReporter()
347 unwrap(ES)->getExecutorProcessControl().getSymbolStringPool().get()); in LLVMOrcExecutionSessionGetSymbolStringPool()
351 unwrap(SSP)->clearDeadEntries(); in LLVMOrcSymbolStringPoolClearDeadEntries()
357 OrcV2CAPIHelper::moveFromSymbolStringPtr(unwrap(ES)->intern(Name))); in LLVMOrcExecutionSessionIntern()
372 SO.push_back({unwrap(SearchOrder[I].JD), in LLVMOrcExecutionSessionLookup()
377 SLS.add(OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Symbols[I].Name)), in LLVMOrcExecutionSessionLookup()
380 unwrap(ES)->lookup( in LLVMOrcExecutionSessionLookup()
397 OrcV2CAPIHelper::retainPoolEntry(unwrap(S)); in LLVMOrcRetainSymbolStringPoolEntry()
401 OrcV2CAPIHelper::releasePoolEntry(unwrap(S)); in LLVMOrcReleaseSymbolStringPoolEntry()
405 return unwrap(S)->getKey().data(); in LLVMOrcSymbolStringPoolEntryStr()
410 auto RT = unwrap(JD)->createResourceTracker(); in LLVMOrcJITDylibCreateResourceTracker()
418 auto RT = unwrap(JD)->getDefaultResourceTracker(); in LLVMOrcJITDylibGetDefaultResourceTracker()
424 ResourceTrackerSP TmpRT(unwrap(RT)); in LLVMOrcReleaseResourceTracker()
430 ResourceTrackerSP TmpRT(unwrap(SrcRT)); in LLVMOrcResourceTrackerTransferTo()
431 TmpRT->transferTo(*unwrap(DstRT)); in LLVMOrcResourceTrackerTransferTo()
435 ResourceTrackerSP TmpRT(unwrap(RT)); in LLVMOrcResourceTrackerRemove()
440 std::unique_ptr<DefinitionGenerator> TmpDG(unwrap(DG)); in LLVMOrcDisposeDefinitionGenerator()
444 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcDisposeMaterializationUnit()
455 SFM[OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Syms[I].Name))] = in LLVMOrcCreateCustomMaterializationUnit()
458 auto IS = OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(InitSym)); in LLVMOrcCreateCustomMaterializationUnit()
480 OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(pair.Entry.Name)); in LLVMOrcLazyReexports()
481 SAM[OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(pair.Name))] = in LLVMOrcLazyReexports()
485 return wrap(lazyReexports(*unwrap(LCTM), *unwrap(ISM), *unwrap(SourceJD), in LLVMOrcLazyReexports()
492 std::unique_ptr<MaterializationResponsibility> TmpMR(unwrap(MR)); in LLVMOrcDisposeMaterializationResponsibility()
497 return wrap(&unwrap(MR)->getTargetJITDylib()); in LLVMOrcMaterializationResponsibilityGetTargetDylib()
503 return wrap(&unwrap(MR)->getExecutionSession()); in LLVMOrcMaterializationResponsibilityGetExecutionSession()
509 auto Symbols = unwrap(MR)->getSymbols(); in LLVMOrcMaterializationResponsibilityGetSymbols()
530 auto Sym = unwrap(MR)->getInitializerSymbol(); in LLVMOrcMaterializationResponsibilityGetInitializerSymbol()
538 auto Symbols = unwrap(MR)->getRequestedSymbols(); in LLVMOrcMaterializationResponsibilityGetRequestedSymbols()
559 return wrap(unwrap(MR)->notifyResolved(std::move(SM))); in LLVMOrcMaterializationResponsibilityNotifyResolved()
564 return wrap(unwrap(MR)->notifyEmitted()); in LLVMOrcMaterializationResponsibilityNotifyEmitted()
572 SFM[OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Syms[I].Name))] = in LLVMOrcMaterializationResponsibilityDefineMaterializing()
575 return wrap(unwrap(MR)->defineMaterializing(std::move(SFM))); in LLVMOrcMaterializationResponsibilityDefineMaterializing()
581 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcMaterializationResponsibilityReplace()
582 return wrap(unwrap(MR)->replace(std::move(TmpMU))); in LLVMOrcMaterializationResponsibilityReplace()
591 Syms.insert(OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Symbols[I]))); in LLVMOrcMaterializationResponsibilityDelegate()
593 auto OtherMR = unwrap(MR)->delegate(Syms); in LLVMOrcMaterializationResponsibilityDelegate()
608 auto Sym = OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Name)); in LLVMOrcMaterializationResponsibilityAddDependencies()
609 unwrap(MR)->addDependencies(Sym, SDM); in LLVMOrcMaterializationResponsibilityAddDependencies()
617 unwrap(MR)->addDependenciesForAll(SDM); in LLVMOrcMaterializationResponsibilityAddDependenciesForAll()
622 unwrap(MR)->failMaterialization(); in LLVMOrcMaterializationResponsibilityFailMaterialization()
628 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcIRTransformLayerEmit()
629 unwrap(IRLayer)->emit( in LLVMOrcIRTransformLayerEmit()
630 std::unique_ptr<MaterializationResponsibility>(unwrap(MR)), in LLVMOrcIRTransformLayerEmit()
637 return wrap(&unwrap(ES)->createBareJITDylib(Name)); in LLVMOrcExecutionSessionCreateBareJITDylib()
644 auto JD = unwrap(ES)->createJITDylib(Name); in LLVMOrcExecutionSessionCreateJITDylib()
654 return wrap(unwrap(ES)->getJITDylibByName(Name)); in LLVMOrcExecutionSessionGetJITDylibByName()
659 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcJITDylibDefine()
661 if (auto Err = unwrap(JD)->define(TmpMU)) { in LLVMOrcJITDylibDefine()
669 return wrap(unwrap(JD)->clear()); in LLVMOrcJITDylibClear()
674 unwrap(JD)->addGenerator(std::unique_ptr<DefinitionGenerator>(unwrap(DG))); in LLVMOrcJITDylibAddGenerator()
687 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(S)); in LLVMOrcLookupStateContinueLookup()
688 LS.continueLookup(unwrap(Err)); in LLVMOrcLookupStateContinueLookup()
752 StaticLibraryDefinitionGenerator::Load(*unwrap(ObjLayer), FileName, TT); in LLVMOrcCreateStaticLibrarySearchGeneratorForPath()
761 StaticLibraryDefinitionGenerator::Load(*unwrap(ObjLayer), FileName); in LLVMOrcCreateStaticLibrarySearchGeneratorForPath()
777 return wrap(unwrap(TSCtx)->getContext()); in LLVMOrcThreadSafeContextGetContext()
781 delete unwrap(TSCtx); in LLVMOrcDisposeThreadSafeContext()
788 return wrap(unwrap(TSM)->withModuleDo( in LLVMOrcThreadSafeModuleWithModuleDo()
789 [&](Module &M) { return unwrap(F(Ctx, wrap(&M))); })); in LLVMOrcThreadSafeModuleWithModuleDo()
796 new ThreadSafeModule(std::unique_ptr<Module>(unwrap(M)), *unwrap(TSCtx))); in LLVMOrcCreateNewThreadSafeModule()
800 delete unwrap(TSM); in LLVMOrcDisposeThreadSafeModule()
819 auto *TemplateTM = unwrap(TM); in LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine()
839 delete unwrap(JTMB); in LLVMOrcDisposeJITTargetMachineBuilder()
844 auto Tmp = unwrap(JTMB)->getTargetTriple().str(); in LLVMOrcJITTargetMachineBuilderGetTargetTriple()
852 unwrap(JTMB)->getTargetTriple() = Triple(TargetTriple); in LLVMOrcJITTargetMachineBuilderSetTargetTriple()
858 return wrap(unwrap(ObjLayer)->add( in LLVMOrcObjectLayerAddObjectFile()
859 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcObjectLayerAddObjectFile()
866 unwrap(ObjLayer)->add(ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddObjectFileWithRT()
867 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFileWithRT()
873 unwrap(ObjLayer)->emit( in LLVMOrcObjectLayerEmit()
874 std::unique_ptr<MaterializationResponsibility>(unwrap(R)), in LLVMOrcObjectLayerEmit()
875 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer))); in LLVMOrcObjectLayerEmit()
879 delete unwrap(ObjLayer); in LLVMOrcDisposeObjectLayer()
885 unwrap(IRTransformLayer) in LLVMOrcIRTransformLayerSetTransform()
893 return unwrap(Err); in LLVMOrcIRTransformLayerSetTransform()
895 return std::move(*unwrap(TSMRef)); in LLVMOrcIRTransformLayerSetTransform()
902 unwrap(ObjTransformLayer) in LLVMOrcObjectTransformLayerSetTransform()
908 return unwrap(Err); in LLVMOrcObjectTransformLayerSetTransform()
910 return std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)); in LLVMOrcObjectTransformLayerSetTransform()
922 delete unwrap(DumpObjects); in LLVMOrcDisposeDumpObjects()
927 std::unique_ptr<MemoryBuffer> OB(unwrap(*ObjBuffer)); in LLVMOrcDumpObjects_CallOperator()
928 if (auto Result = (*unwrap(DumpObjects))(std::move(OB))) { in LLVMOrcDumpObjects_CallOperator()
942 delete unwrap(Builder); in LLVMOrcDisposeLLJITBuilder()
947 unwrap(Builder)->setJITTargetMachineBuilder(std::move(*unwrap(JTMB))); in LLVMOrcLLJITBuilderSetJITTargetMachineBuilder()
954 unwrap(Builder)->setObjectLinkingLayerCreator( in LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator()
958 unwrap(F(Ctx, wrap(&ES), TTStr.c_str()))); in LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator()
969 auto J = unwrap(Builder)->create(); in LLVMOrcCreateLLJIT()
982 delete unwrap(J); in LLVMOrcDisposeLLJIT()
987 return wrap(&unwrap(J)->getExecutionSession()); in LLVMOrcLLJITGetExecutionSession()
991 return wrap(&unwrap(J)->getMainJITDylib()); in LLVMOrcLLJITGetMainJITDylib()
995 return unwrap(J)->getTargetTriple().str().c_str(); in LLVMOrcLLJITGetTripleString()
999 return unwrap(J)->getDataLayout().getGlobalPrefix(); in LLVMOrcLLJITGetGlobalPrefix()
1005 unwrap(J)->mangleAndIntern(UnmangledName))); in LLVMOrcLLJITMangleAndIntern()
1010 return wrap(unwrap(J)->addObjectFile( in LLVMOrcLLJITAddObjectFile()
1011 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFile()
1017 return wrap(unwrap(J)->addObjectFile( in LLVMOrcLLJITAddObjectFileWithRT()
1018 ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddObjectFileWithRT()
1019 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFileWithRT()
1025 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcLLJITAddLLVMIRModule()
1026 return wrap(unwrap(J)->addIRModule(*unwrap(JD), std::move(*TmpTSM))); in LLVMOrcLLJITAddLLVMIRModule()
1032 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcLLJITAddLLVMIRModuleWithRT()
1033 return wrap(unwrap(J)->addIRModule(ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddLLVMIRModuleWithRT()
1042 auto Sym = unwrap(J)->lookup(Name); in LLVMOrcLLJITLookup()
1053 return wrap(&unwrap(J)->getObjLinkingLayer()); in LLVMOrcLLJITGetObjLinkingLayer()
1058 return wrap(&unwrap(J)->getObjTransformLayer()); in LLVMOrcLLJITGetObjTransformLayer()
1066 *unwrap(ES), [] { return std::make_unique<SectionMemoryManager>(); })); in LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager()
1074 reinterpret_cast<RTDyldObjectLinkingLayer *>(unwrap(RTDyldObjLinkingLayer)) in LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener()
1075 ->registerJITEventListener(*unwrap(Listener)); in LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener()
1079 return wrap(&unwrap(J)->getIRTransformLayer()); in LLVMOrcLLJITGetIRTransformLayer()
1083 return unwrap(J)->getDataLayout().getStringRepresentation().c_str(); in LLVMOrcLLJITGetDataLayoutStr()
1093 std::unique_ptr<IndirectStubsManager> TmpISM(unwrap(ISM)); in LLVMOrcDisposeIndirectStubsManager()
1101 *unwrap(ES), ErrorHandlerAddr); in LLVMOrcCreateLocalLazyCallThroughManager()
1111 std::unique_ptr<LazyCallThroughManager> TmpLCM(unwrap(LCM)); in LLVMOrcDisposeLazyCallThroughManager()