Displaying 5 results from an estimated 5 matches for "logicalmodules".
2016 Jul 29
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...n of
getLogicalModuleResourcesForSymbol work for you (unfortunately I don't have
a local test case for this yet):
LogicalModuleResources*
getLogicalModuleResourcesForSymbol(const std::string &Name,
bool ExportedSymbolsOnly) {
for (auto LMI = LogicalModules.begin(), LME = LogicalModules.end();
LMI != LME; ++LMI)
if (auto Sym = LMI->Resources.findSymbol(Name, ExportedSymbolsOnly))
return &LMI->Resources;
return nullptr;
}
If so I'd be happy to commit this on your behalf.
It might be nice to plumb support for...
2016 Jul 28
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...raw_string_ostream MangledNameStream(MangledName);
+ Mangler::getNameWithPrefix(MangledNameStream, Name, DL);
+ }
+ return MangledName;
+ }
+
+ LogicalModuleResources* getLogicalModuleResourcesForSymbol(const
std::string &Name, bool ExportedSymbolsOnly) {
+ for (auto LMI = LogicalModules.begin(), LME = LogicalModules.end();
+ LMI != LME; ++LMI)
+ if (auto Sym = findSymbolInLogicalModule(LMI,
mangle(Name,LMI->Resources.SourceModule->getResource().getDataLayout()),
ExportedSymbolsOnly))
+ return &LMI->Resources;
+ return nullptr;
+ }
+
+
-------...
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...for you (unfortunately I don't
> have a local test case for this yet):
>
>
>
>
>
> LogicalModuleResources*
> getLogicalModuleResourcesForSymbol(const std::string &Name,
> bool ExportedSymbolsOnly) {
> for (auto LMI = LogicalModules.begin(), LME = LogicalModules.end();
> LMI != LME; ++LMI)
> if (auto Sym = LMI->Resources.findSymbol(Name, ExportedSymbolsOnly))
> return &LMI->Resources;
> return nullptr;
> }
>
> If so I'd be happy to commit this on your behalf.
>...
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...am(MangledName);
> + Mangler::getNameWithPrefix(MangledNameStream, Name, DL);
> + }
> + return MangledName;
> + }
> +
> + LogicalModuleResources* getLogicalModuleResourcesForSymbol(const
> std::string &Name, bool ExportedSymbolsOnly) {
> + for (auto LMI = LogicalModules.begin(), LME = LogicalModules.end();
> + LMI != LME; ++LMI)
> + if (auto Sym = findSymbolInLogicalModule(LMI,
> mangle(Name,LMI->Resources.SourceModule->getResource().getDataLayout()),
> ExportedSymbolsOnly))
> + return &LMI->Resources;
> + re...
2016 Jul 30
1
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...gt; have a local test case for this yet):
>>
>>
>>
>>
>>
>> LogicalModuleResources*
>> getLogicalModuleResourcesForSymbol(const std::string &Name,
>> bool ExportedSymbolsOnly) {
>> for (auto LMI = LogicalModules.begin(), LME = LogicalModules.end();
>> LMI != LME; ++LMI)
>> if (auto Sym = LMI->Resources.findSymbol(Name, ExportedSymbolsOnly))
>> return &LMI->Resources;
>> return nullptr;
>> }
>>
>> If so I'd be happy to comm...