Displaying 11 results from an estimated 11 matches for "srcm".
Did you mean:
src
2012 Jun 01
0
[LLVMdev] [llvm-commits] [PATCH] Allow per-thread re-direction of outs()/errs()
...> ability to re-direct this output as it sees fit. If no such functionality
> is needed, the default behavior is to write to stdout/stderr as it does now.
>
Perhaps I'm just getting the wrong impression from the current LLVM code
base. Take this snippet from LinkModules.cpp:
if (!SrcM->getDataLayout().empty() && !DstM->getDataLayout().empty() &&
SrcM->getDataLayout() != DstM->getDataLayout())
errs() << "WARNING: Linking two modules of different data layouts!\n";
if (!SrcM->getTargetTriple().empty() &&
DstM-...
2012 Jun 01
2
[LLVMdev] [llvm-commits] [PATCH] Allow per-thread re-direction of outs()/errs()
On Thu, May 31, 2012 at 8:06 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 31, 2012, at 2:39 PM, Justin Holewinski wrote:
>
> > The attached patch add the ability to programmatically re-direct
> outs()/errs() to an arbitrary raw_ostream instance, maintaining the
> raw_ostream instances in a stack structure so clients can push/pop streams
> at will. The
2012 Jun 01
3
[LLVMdev] [llvm-commits] [PATCH] Allow per-thread re-direction of outs()/errs()
...errors/warnings to some compiler-controlled stream for message triaging.
Yes, this is broken. The fix should be in the linker though, not in errs().
> Perhaps I'm just getting the wrong impression from the current LLVM code base. Take this snippet from LinkModules.cpp:
>
> if (!SrcM->getDataLayout().empty() && !DstM->getDataLayout().empty() &&
> SrcM->getDataLayout() != DstM->getDataLayout())
> errs() << "WARNING: Linking two modules of different data layouts!\n";
> if (!SrcM->getTargetTriple().empty() &&a...
2016 Jul 28
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...Address
FnBodyAddr) {
+ //Find out which logical dylib contains our symbol
+ auto LDI = LogicalDylibs.begin();
+ for (auto LDE = LogicalDylibs.end(); LDI != LDE; ++LDI) {
+ if (auto LMResources =
LDI->getLogicalModuleResourcesForSymbol(FuncName, false)) {
+ Module &SrcM = LMResources->SourceModule->getResource();
+ std::string CalledFnName = mangle(FuncName,
SrcM.getDataLayout());
+ if (auto EC =
LMResources->StubsMgr->updatePointer(CalledFnName, FnBodyAddr)) {
+ return 0;
+ }
+ else
+...
2017 Jun 19
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...fied, and full-LTO
otherwise.
To resolve this, we have locally patched
llvm/lib/Linker/LinkModules.cpp with:
bool ModuleLinker::run() {
// ....
if (shouldImportIntrinsicGlobalVariables()) {
auto addIntrinsicGlobalVariable = [ValuesToLink,
srcM](llvm::StringRef name) {
if (GlobalValue *GV = SrcM->getGlobalVariable(name)) {
ValuesToLink.insert(GV);
}
};
// These are added here, because they must not be internalized.
addIntrinsicGlobalVariable("llvm.used");
addIntrinsicGlobalVa...
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...//Find out which logical dylib contains our symbol
> + auto LDI = LogicalDylibs.begin();
> + for (auto LDE = LogicalDylibs.end(); LDI != LDE; ++LDI) {
> + if (auto LMResources =
> LDI->getLogicalModuleResourcesForSymbol(FuncName, false)) {
> + Module &SrcM = LMResources->SourceModule->getResource();
> + std::string CalledFnName = mangle(FuncName,
> SrcM.getDataLayout());
> + if (auto EC =
> LMResources->StubsMgr->updatePointer(CalledFnName, FnBodyAddr)) {
> + return 0;
> +...
2016 Jul 29
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...ogical dylib contains our symbol
>> + auto LDI = LogicalDylibs.begin();
>> + for (auto LDE = LogicalDylibs.end(); LDI != LDE; ++LDI) {
>> + if (auto LMResources =
>> LDI->getLogicalModuleResourcesForSymbol(FuncName, false)) {
>> + Module &SrcM = LMResources->SourceModule->getResource();
>> + std::string CalledFnName = mangle(FuncName,
>> SrcM.getDataLayout());
>> + if (auto EC =
>> LMResources->StubsMgr->updatePointer(CalledFnName, FnBodyAddr)) {
>> + return 0...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...solve this, we have locally patched
>llvm/lib/Linker/LinkModules.cpp with:
>
> bool ModuleLinker::run() {
>
> // ....
>
> if (shouldImportIntrinsicGlobalVariables()) {
> auto addIntrinsicGlobalVariable = [ValuesToLink,
> srcM](llvm::StringRef name) {
> if (GlobalValue *GV = SrcM->getGlobalVariable(name)) {
> ValuesToLink.insert(GV);
> }
> };
>
> // These are added here, because they must not be internalized.
> addIntrinsicGlobalVariable("llvm.used")...
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...s our symbol
>>> + auto LDI = LogicalDylibs.begin();
>>> + for (auto LDE = LogicalDylibs.end(); LDI != LDE; ++LDI) {
>>> + if (auto LMResources =
>>> LDI->getLogicalModuleResourcesForSymbol(FuncName, false)) {
>>> + Module &SrcM = LMResources->SourceModule->getResource();
>>> + std::string CalledFnName = mangle(FuncName,
>>> SrcM.getDataLayout());
>>> + if (auto EC =
>>> LMResources->StubsMgr->updatePointer(CalledFnName, FnBodyAddr)) {
>>> +...
2016 Jul 30
1
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...;>> + auto LDI = LogicalDylibs.begin();
>>>> + for (auto LDE = LogicalDylibs.end(); LDI != LDE; ++LDI) {
>>>> + if (auto LMResources =
>>>> LDI->getLogicalModuleResourcesForSymbol(FuncName, false)) {
>>>> + Module &SrcM = LMResources->SourceModule->getResource();
>>>> + std::string CalledFnName = mangle(FuncName,
>>>> SrcM.getDataLayout());
>>>> + if (auto EC =
>>>> LMResources->StubsMgr->updatePointer(CalledFnName, FnBodyAddr)) {
&g...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...>>llvm/lib/Linker/LinkModules.cpp with:
>>
>> bool ModuleLinker::run() {
>>
>> // ....
>>
>> if (shouldImportIntrinsicGlobalVariables()) {
>> auto addIntrinsicGlobalVariable = [ValuesToLink,
>> srcM](llvm::StringRef name) {
>> if (GlobalValue *GV = SrcM->getGlobalVariable(name)) {
>> ValuesToLink.insert(GV);
>> }
>> };
>>
>> // These are added here, because they must not be internalized.
>> addIntrinsicGlobalVar...