Lines Matching refs:unwrap

46 inline SymbolStringPoolEntryUnsafe unwrap(LLVMOrcSymbolStringPoolEntryRef E) {  in unwrap()  function
157 Result.insert(unwrap(Symbols.Symbols[I]).moveToSymbolStringPtr()); in toSymbolNameSet()
165 SM[unwrap(Syms[I].Name).moveToSymbolStringPtr()] = { in toSymbolMap()
175 JITDylib *JD = unwrap(Pairs[I].JD); in toSymbolDependenceMap()
180 Names.insert(unwrap(Sym).moveToSymbolStringPtr()); in toSymbolDependenceMap()
296 auto Err = unwrap(TryToGenerate(::wrap(this), Ctx, &LSR, CLookupKind, in tryToGenerate()
301 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(LSR)); in tryToGenerate()
318 unwrap(ES)->setErrorReporter( in LLVMOrcExecutionSessionSetErrorReporter()
325 unwrap(ES)->getExecutorProcessControl().getSymbolStringPool().get()); in LLVMOrcExecutionSessionGetSymbolStringPool()
329 unwrap(SSP)->clearDeadEntries(); in LLVMOrcSymbolStringPoolClearDeadEntries()
334 return wrap(SymbolStringPoolEntryUnsafe::take(unwrap(ES)->intern(Name))); in LLVMOrcExecutionSessionIntern()
349 SO.push_back({unwrap(SearchOrder[I].JD), in LLVMOrcExecutionSessionLookup()
354 SLS.add(unwrap(Symbols[I].Name).moveToSymbolStringPtr(), in LLVMOrcExecutionSessionLookup()
357 unwrap(ES)->lookup( in LLVMOrcExecutionSessionLookup()
374 unwrap(S).retain(); in LLVMOrcRetainSymbolStringPoolEntry()
378 unwrap(S).release(); in LLVMOrcReleaseSymbolStringPoolEntry()
382 return unwrap(S).rawPtr()->getKey().data(); in LLVMOrcSymbolStringPoolEntryStr()
387 auto RT = unwrap(JD)->createResourceTracker(); in LLVMOrcJITDylibCreateResourceTracker()
395 auto RT = unwrap(JD)->getDefaultResourceTracker(); in LLVMOrcJITDylibGetDefaultResourceTracker()
401 ResourceTrackerSP TmpRT(unwrap(RT)); in LLVMOrcReleaseResourceTracker()
407 ResourceTrackerSP TmpRT(unwrap(SrcRT)); in LLVMOrcResourceTrackerTransferTo()
408 TmpRT->transferTo(*unwrap(DstRT)); in LLVMOrcResourceTrackerTransferTo()
412 ResourceTrackerSP TmpRT(unwrap(RT)); in LLVMOrcResourceTrackerRemove()
417 std::unique_ptr<DefinitionGenerator> TmpDG(unwrap(DG)); in LLVMOrcDisposeDefinitionGenerator()
421 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcDisposeMaterializationUnit()
432 SFM[unwrap(Syms[I].Name).moveToSymbolStringPtr()] = in LLVMOrcCreateCustomMaterializationUnit()
435 auto IS = unwrap(InitSym).moveToSymbolStringPtr(); in LLVMOrcCreateCustomMaterializationUnit()
456 SymbolStringPtr Name = unwrap(pair.Entry.Name).moveToSymbolStringPtr(); in LLVMOrcLazyReexports()
457 SAM[unwrap(pair.Name).moveToSymbolStringPtr()] = in LLVMOrcLazyReexports()
461 return wrap(lazyReexports(*unwrap(LCTM), *unwrap(ISM), *unwrap(SourceJD), in LLVMOrcLazyReexports()
468 std::unique_ptr<MaterializationResponsibility> TmpMR(unwrap(MR)); in LLVMOrcDisposeMaterializationResponsibility()
473 return wrap(&unwrap(MR)->getTargetJITDylib()); in LLVMOrcMaterializationResponsibilityGetTargetDylib()
479 return wrap(&unwrap(MR)->getExecutionSession()); in LLVMOrcMaterializationResponsibilityGetExecutionSession()
485 auto Symbols = unwrap(MR)->getSymbols(); in LLVMOrcMaterializationResponsibilityGetSymbols()
506 auto Sym = unwrap(MR)->getInitializerSymbol(); in LLVMOrcMaterializationResponsibilityGetInitializerSymbol()
514 auto Symbols = unwrap(MR)->getRequestedSymbols(); in LLVMOrcMaterializationResponsibilityGetRequestedSymbols()
535 return wrap(unwrap(MR)->notifyResolved(std::move(SM))); in LLVMOrcMaterializationResponsibilityNotifyResolved()
550 return wrap(unwrap(MR)->notifyEmitted(SDGs)); in LLVMOrcMaterializationResponsibilityNotifyEmitted()
558 SFM[unwrap(Syms[I].Name).moveToSymbolStringPtr()] = in LLVMOrcMaterializationResponsibilityDefineMaterializing()
561 return wrap(unwrap(MR)->defineMaterializing(std::move(SFM))); in LLVMOrcMaterializationResponsibilityDefineMaterializing()
567 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcMaterializationResponsibilityReplace()
568 return wrap(unwrap(MR)->replace(std::move(TmpMU))); in LLVMOrcMaterializationResponsibilityReplace()
577 Syms.insert(unwrap(Symbols[I]).moveToSymbolStringPtr()); in LLVMOrcMaterializationResponsibilityDelegate()
579 auto OtherMR = unwrap(MR)->delegate(Syms); in LLVMOrcMaterializationResponsibilityDelegate()
590 unwrap(MR)->failMaterialization(); in LLVMOrcMaterializationResponsibilityFailMaterialization()
596 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcIRTransformLayerEmit()
597 unwrap(IRLayer)->emit( in LLVMOrcIRTransformLayerEmit()
598 std::unique_ptr<MaterializationResponsibility>(unwrap(MR)), in LLVMOrcIRTransformLayerEmit()
605 return wrap(&unwrap(ES)->createBareJITDylib(Name)); in LLVMOrcExecutionSessionCreateBareJITDylib()
612 auto JD = unwrap(ES)->createJITDylib(Name); in LLVMOrcExecutionSessionCreateJITDylib()
622 return wrap(unwrap(ES)->getJITDylibByName(Name)); in LLVMOrcExecutionSessionGetJITDylibByName()
627 std::unique_ptr<MaterializationUnit> TmpMU(unwrap(MU)); in LLVMOrcJITDylibDefine()
629 if (auto Err = unwrap(JD)->define(TmpMU)) { in LLVMOrcJITDylibDefine()
637 return wrap(unwrap(JD)->clear()); in LLVMOrcJITDylibClear()
642 unwrap(JD)->addGenerator(std::unique_ptr<DefinitionGenerator>(unwrap(DG))); in LLVMOrcJITDylibAddGenerator()
655 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(S)); in LLVMOrcLookupStateContinueLookup()
656 LS.continueLookup(unwrap(Err)); in LLVMOrcLookupStateContinueLookup()
718 StaticLibraryDefinitionGenerator::Load(*unwrap(ObjLayer), FileName); in LLVMOrcCreateStaticLibrarySearchGeneratorForPath()
733 return wrap(unwrap(TSCtx)->getContext()); in LLVMOrcThreadSafeContextGetContext()
737 delete unwrap(TSCtx); in LLVMOrcDisposeThreadSafeContext()
744 return wrap(unwrap(TSM)->withModuleDo( in LLVMOrcThreadSafeModuleWithModuleDo()
745 [&](Module &M) { return unwrap(F(Ctx, wrap(&M))); })); in LLVMOrcThreadSafeModuleWithModuleDo()
752 new ThreadSafeModule(std::unique_ptr<Module>(unwrap(M)), *unwrap(TSCtx))); in LLVMOrcCreateNewThreadSafeModule()
756 delete unwrap(TSM); in LLVMOrcDisposeThreadSafeModule()
775 auto *TemplateTM = unwrap(TM); in LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine()
795 delete unwrap(JTMB); in LLVMOrcDisposeJITTargetMachineBuilder()
800 auto Tmp = unwrap(JTMB)->getTargetTriple().str(); in LLVMOrcJITTargetMachineBuilderGetTargetTriple()
808 unwrap(JTMB)->getTargetTriple() = Triple(TargetTriple); in LLVMOrcJITTargetMachineBuilderSetTargetTriple()
814 return wrap(unwrap(ObjLayer)->add( in LLVMOrcObjectLayerAddObjectFile()
815 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcObjectLayerAddObjectFile()
822 unwrap(ObjLayer)->add(ResourceTrackerSP(unwrap(RT)), in LLVMOrcObjectLayerAddObjectFileWithRT()
823 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcObjectLayerAddObjectFileWithRT()
829 unwrap(ObjLayer)->emit( in LLVMOrcObjectLayerEmit()
830 std::unique_ptr<MaterializationResponsibility>(unwrap(R)), in LLVMOrcObjectLayerEmit()
831 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer))); in LLVMOrcObjectLayerEmit()
835 delete unwrap(ObjLayer); in LLVMOrcDisposeObjectLayer()
841 unwrap(IRTransformLayer) in LLVMOrcIRTransformLayerSetTransform()
849 return unwrap(Err); in LLVMOrcIRTransformLayerSetTransform()
852 ThreadSafeModule Result = std::move(*unwrap(TSMRef)); in LLVMOrcIRTransformLayerSetTransform()
861 unwrap(ObjTransformLayer) in LLVMOrcObjectTransformLayerSetTransform()
867 return unwrap(Err); in LLVMOrcObjectTransformLayerSetTransform()
869 return std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)); in LLVMOrcObjectTransformLayerSetTransform()
881 delete unwrap(DumpObjects); in LLVMOrcDisposeDumpObjects()
886 std::unique_ptr<MemoryBuffer> OB(unwrap(*ObjBuffer)); in LLVMOrcDumpObjects_CallOperator()
887 if (auto Result = (*unwrap(DumpObjects))(std::move(OB))) { in LLVMOrcDumpObjects_CallOperator()
901 delete unwrap(Builder); in LLVMOrcDisposeLLJITBuilder()
906 unwrap(Builder)->setJITTargetMachineBuilder(std::move(*unwrap(JTMB))); in LLVMOrcLLJITBuilderSetJITTargetMachineBuilder()
913 unwrap(Builder)->setObjectLinkingLayerCreator( in LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator()
917 unwrap(F(Ctx, wrap(&ES), TTStr.c_str()))); in LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator()
928 auto J = unwrap(Builder)->create(); in LLVMOrcCreateLLJIT()
941 delete unwrap(J); in LLVMOrcDisposeLLJIT()
946 return wrap(&unwrap(J)->getExecutionSession()); in LLVMOrcLLJITGetExecutionSession()
950 return wrap(&unwrap(J)->getMainJITDylib()); in LLVMOrcLLJITGetMainJITDylib()
954 return unwrap(J)->getTargetTriple().str().c_str(); in LLVMOrcLLJITGetTripleString()
958 return unwrap(J)->getDataLayout().getGlobalPrefix(); in LLVMOrcLLJITGetGlobalPrefix()
964 unwrap(J)->mangleAndIntern(UnmangledName))); in LLVMOrcLLJITMangleAndIntern()
969 return wrap(unwrap(J)->addObjectFile( in LLVMOrcLLJITAddObjectFile()
970 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFile()
976 return wrap(unwrap(J)->addObjectFile( in LLVMOrcLLJITAddObjectFileWithRT()
977 ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddObjectFileWithRT()
978 std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFileWithRT()
984 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcLLJITAddLLVMIRModule()
985 return wrap(unwrap(J)->addIRModule(*unwrap(JD), std::move(*TmpTSM))); in LLVMOrcLLJITAddLLVMIRModule()
991 std::unique_ptr<ThreadSafeModule> TmpTSM(unwrap(TSM)); in LLVMOrcLLJITAddLLVMIRModuleWithRT()
992 return wrap(unwrap(J)->addIRModule(ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddLLVMIRModuleWithRT()
1001 auto Sym = unwrap(J)->lookup(Name); in LLVMOrcLLJITLookup()
1012 return wrap(&unwrap(J)->getObjLinkingLayer()); in LLVMOrcLLJITGetObjLinkingLayer()
1017 return wrap(&unwrap(J)->getObjTransformLayer()); in LLVMOrcLLJITGetObjTransformLayer()
1025 *unwrap(ES), [] { return std::make_unique<SectionMemoryManager>(); })); in LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager()
1131 return wrap(new RTDyldObjectLinkingLayer(*unwrap(ES), [CBs = std::move(CBs)] { in LLVMOrcCreateRTDyldObjectLinkingLayerWithMCJITMemoryManagerLikeCallbacks()
1143 reinterpret_cast<RTDyldObjectLinkingLayer *>(unwrap(RTDyldObjLinkingLayer)) in LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener()
1144 ->registerJITEventListener(*unwrap(Listener)); in LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener()
1148 return wrap(&unwrap(J)->getIRTransformLayer()); in LLVMOrcLLJITGetIRTransformLayer()
1152 return unwrap(J)->getDataLayout().getStringRepresentation().c_str(); in LLVMOrcLLJITGetDataLayoutStr()
1162 std::unique_ptr<IndirectStubsManager> TmpISM(unwrap(ISM)); in LLVMOrcDisposeIndirectStubsManager()
1170 Triple(TargetTriple), *unwrap(ES), ExecutorAddr(ErrorHandlerAddr)); in LLVMOrcCreateLocalLazyCallThroughManager()
1180 std::unique_ptr<LazyCallThroughManager> TmpLCM(unwrap(LCM)); in LLVMOrcDisposeLazyCallThroughManager()