search for: definedregular

Displaying 11 results from an estimated 11 matches for "definedregular".

2018 Jun 07
2
[lld] ObjFile::createRegular is oblivious of PendingComdat
...COFFObj->getSymbolName(Sym, Name); - if (SC) + if (SC && SC != PendingComdat) return Symtab->addRegular(this, Name, Sym.getGeneric(), SC); return Symtab->addUndefined(Name, this, false); } - if (SC) + if (SC && SC != PendingComdat) return make<DefinedRegular>(this, /*Name*/ "", false, /*IsExternal*/ false, Sym.getGeneric(), SC); return nullptr; I can upload this to Phabricator in case this is the right fix. If not, I'll upload a reproducer for further investigation. (I omitted it to avoid manually...
2018 Jun 07
2
[lld] ObjFile::createRegular is oblivious of PendingComdat
...if (SC && SC != PendingComdat) >> return Symtab->addRegular(this, Name, Sym.getGeneric(), SC); >> return Symtab->addUndefined(Name, this, false); >> } >> - if (SC) >> + if (SC && SC != PendingComdat) >> return make<DefinedRegular>(this, /*Name*/ "", false, >> /*IsExternal*/ false, Sym.getGeneric(), >> SC); >> return nullptr; >> >> I can upload this to Phabricator in case this is the right fix. If not, >> I'll upload a reproducer for fu...
2017 Jul 31
3
[RFC] Profile guided section layout
Hi Rafael, On 07/31/2017 04:20 PM, Rafael Avila de Espindola via llvm-dev wrote: > However, do we need to start with instrumentation? The original paper > uses sampling with good results and current intel cpus can record every > branch in a program. > > I would propose starting with just an lld patch that reads the call > graph from a file. The format would be very similar to
2019 Jul 16
2
lld-link crash when build openssl with LTO
...vm/lib/Support/Signals.cpp:68:0 > > #2 0x000056348d5bf7c2 SignalHandler(int) > /home/jshi19/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:357:0 > > #3 0x00007f200467a890 __restore_rt > (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890) > > #4 0x000056348d614025 lld::coff::DefinedRegular::getChunk() const > /home/jshi19/llvm/llvm-project/lld/COFF/Symbols.h:176:0 > > #5 0x000056348d614025 operator() > /home/jshi19/llvm/llvm-project/lld/COFF/MarkLive.cpp:46:0 > > #6 0x000056348d614025 > lld::coff::markLive(llvm::ArrayRef<lld::coff::Chunk*>) > /home/jshi1...
2019 Jul 15
2
lld-link crash when build openssl with LTO
...lers() /home/jshi19/llvm/llvm-project/llvm/lib/Support/Signals.cpp:68:0 #2 0x000055f11ed837c2 SignalHandler(int) /home/jshi19/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:357:0 #3 0x00007f172a5f2890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890) #4 0x000055f11edd8025 lld::coff::DefinedRegular::getChunk() const /home/jshi19/llvm/llvm-project/lld/COFF/Symbols.h:176:0 #5 0x000055f11edd8025 operator() /home/jshi19/llvm/llvm-project/lld/COFF/MarkLive.cpp:46:0 #6 0x000055f11edd8025 lld::coff::markLive(llvm::ArrayRef<lld::coff::Chunk*>) /home/jshi19/llvm/llvm-project/lld/COFF/MarkLive.cp...
2019 Jul 16
2
lld-link crash when build openssl with LTO
...vm/lib/Support/Signals.cpp:68:0 > > #2 0x000055f11ed837c2 SignalHandler(int) > /home/jshi19/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:357:0 > > #3 0x00007f172a5f2890 __restore_rt > (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890) > > #4 0x000055f11edd8025 lld::coff::DefinedRegular::getChunk() const > /home/jshi19/llvm/llvm-project/lld/COFF/Symbols.h:176:0 > > #5 0x000055f11edd8025 operator() > /home/jshi19/llvm/llvm-project/lld/COFF/MarkLive.cpp:46:0 > > #6 0x000055f11edd8025 > lld::coff::markLive(llvm::ArrayRef<lld::coff::Chunk*>) > /home/jshi1...
2019 Jul 16
3
lld-link crash when build openssl with LTO
...00056348d5bf7c2 SignalHandler(int) >>> /home/jshi19/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:357:0 >>> >>> #3 0x00007f200467a890 __restore_rt >>> (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890) >>> >>> #4 0x000056348d614025 lld::coff::DefinedRegular::getChunk() const >>> /home/jshi19/llvm/llvm-project/lld/COFF/Symbols.h:176:0 >>> >>> #5 0x000056348d614025 operator() >>> /home/jshi19/llvm/llvm-project/lld/COFF/MarkLive.cpp:46:0 >>> >>> #6 0x000056348d614025 >>> lld::coff::markLive(l...
2019 Jul 16
2
lld-link crash when build openssl with LTO
...vm/lib/Support/Signals.cpp:68:0 > > #2 0x000055f11ed837c2 SignalHandler(int) > /home/jshi19/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:357:0 > > #3 0x00007f172a5f2890 __restore_rt > (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890) > > #4 0x000055f11edd8025 lld::coff::DefinedRegular::getChunk() const > /home/jshi19/llvm/llvm-project/lld/COFF/Symbols.h:176:0 > > #5 0x000055f11edd8025 operator() > /home/jshi19/llvm/llvm-project/lld/COFF/MarkLive.cpp:46:0 > > #6 0x000055f11edd8025 > lld::coff::markLive(llvm::ArrayRef<lld::coff::Chunk*>) > /home/jshi1...
2017 Jul 31
2
[RFC] Profile guided section layout
...auto Res = SecToNode.insert(std::make_pair(IS, Nodes.size())); + if (Res.second) + Nodes.emplace_back(IS); + return Res.first->second; + }; + + // Create the graph. + for (const auto &C : Config->CFGProfile) { + if (C.second == 0) + continue; + DefinedRegular *FromDR = + dyn_cast_or_null<DefinedRegular>(Symtab->find(C.first.first)); + DefinedRegular *ToDR = + dyn_cast_or_null<DefinedRegular>(Symtab->find(C.first.second)); + if (!FromDR || !ToDR) + continue; + auto FromSB = dyn_cast_or_null<con...
2017 Jun 15
7
[RFC] Profile guided section layout
...auto Res = SecToNode.insert(std::make_pair(IS, Nodes.size())); + if (Res.second) + Nodes.emplace_back(IS); + return Res.first->second; + }; + + // Create the graph. + for (const auto &C : Config->CFGProfile) { + if (C.second == 0) + continue; + DefinedRegular *FromDR = dyn_cast_or_null<DefinedRegular>( + Symtab<ELFT>::X->find(C.first.first)); + DefinedRegular *ToDR = dyn_cast_or_null<DefinedRegular>( + Symtab<ELFT>::X->find(C.first.second)); + if (!FromDR || !ToDR) + continue; + auto...
2017 Aug 01
2
[RFC] Profile guided section layout
...auto Res = SecToNode.insert(std::make_pair(IS, Nodes.size())); + if (Res.second) + Nodes.emplace_back(IS); + return Res.first->second; + }; + + // Create the graph. + for (const auto &C : Config->CFGProfile) { + if (C.second == 0) + continue; + DefinedRegular *FromDR = + dyn_cast_or_null<DefinedRegular>(Symtab->find(C.first.first)); + DefinedRegular *ToDR = + dyn_cast_or_null<DefinedRegular>(Symtab->find(C.first.second)); + if (!FromDR || !ToDR) + continue; + auto FromSB = dyn_cast_or_null<con...