search for: getsectioncontents

Displaying 8 results from an estimated 8 matches for "getsectioncontents".

2015 Oct 05
2
[cfe-dev] Orc Windows C++
...0x00007FF65F7BFF80), abort() + 0x40 bytes(s) 0x00007FFC807ABF78 (0x00007FF65F7BFF80 0x00007FF65F7BFEF0 0xCCCCCCCC000003B7 0xCCCCCCCCCCCCCCCC), _wassert() + 0x108 bytes(s) 0x00007FF65E9E7F57 (0x00000079E6A4AC40 0x00000079E68EE998 0x00000079E6A317FC 0x00000079E68EE968), llvm::object::COFFObjectFile::getSectionContents() + 0x77 bytes(s), c:\llvm\llvm\lib\object\coffobject file.cpp, line 951 + 0x43 byte(s) 0x00007FF65E9E46E4 (0x00000079E6A4AC40 0x00000079E68EEE88 0x00000079E6A317FC 0x00000079E68EEC98), llvm::object::COFFObjectFile::getSectionContents() + 0x74 bytes(s), c:\llvm\llvm\lib\object\coffobject file.cpp,...
2015 Oct 05
2
[cfe-dev] Orc Windows C++
...0), abort() + 0x40 bytes(s) >> 0x00007FFC807ABF78 (0x00007FF65F7BFF80 0x00007FF65F7BFEF0 0xCCCCCCCC000003B7 0xCCCCCCCCCCCCCCCC), _wassert() + 0x108 bytes(s) >> 0x00007FF65E9E7F57 (0x00000079E6A4AC40 0x00000079E68EE998 0x00000079E6A317FC 0x00000079E68EE968), llvm::object::COFFObjectFile::getSectionContents() + 0x77 bytes(s), c:\llvm\llvm\lib\object\coffobject >> file.cpp, line 951 + 0x43 byte(s) >> 0x00007FF65E9E46E4 (0x00000079E6A4AC40 0x00000079E68EEE88 0x00000079E6A317FC 0x00000079E68EEC98), llvm::object::COFFObjectFile::getSectionContents() + 0x74 bytes(s), c:\llvm\llvm\lib\object\cof...
2015 Oct 14
4
[cfe-dev] Orc Windows C++
...0x00007FFC807ABF78 (0x00007FF65F7BFF80 0x00007FF65F7BFEF0 >> 0xCCCCCCCC000003B7 0xCCCCCCCCCCCCCCCC), _wassert() + 0x108 bytes(s) >> >> 0x00007FF65E9E7F57 (0x00000079E6A4AC40 0x00000079E68EE998 >> 0x00000079E6A317FC 0x00000079E68EE968), >> llvm::object::COFFObjectFile::getSectionContents() + 0x77 bytes(s), >> c:\llvm\llvm\lib\object\coffobject >> >> file.cpp, line 951 + 0x43 byte(s) >> >> 0x00007FF65E9E46E4 (0x00000079E6A4AC40 0x00000079E68EEE88 >> 0x00000079E6A317FC 0x00000079E68EEC98), >> llvm::object::COFFObjectFile::getSectionContents()...
2015 Oct 02
2
[cfe-dev] Orc Windows C++
Thanks for the link! There’s some code there that looks extremely relevant to say the least. > On 1 Oct 2015, at 19:00, Hayden Livingston <halivingston at gmail.com> wrote: > > Maybe looking at their code might help: > > https://github.com/dotnet/llilc/blob/dd12743f9cdb5418f1c39b2cd756da1e8396a922/lib/Jit/LLILCJit.cpp#L299 > > On Thu, Oct 1, 2015 at 10:45 AM, David
2015 Oct 19
2
[cfe-dev] Orc Windows C++
...bytes(s) >> >> 0x00007FFC807ABF78 (0x00007FF65F7BFF80 0x00007FF65F7BFEF0 0xCCCCCCCC000003B7 0xCCCCCCCCCCCCCCCC), _wassert() + 0x108 bytes(s) >> >> 0x00007FF65E9E7F57 (0x00000079E6A4AC40 0x00000079E68EE998 0x00000079E6A317FC 0x00000079E68EE968), llvm::object::COFFObjectFile::getSectionContents() + 0x77 bytes(s), c:\llvm\llvm\lib\object\coffobject >> >> file.cpp, line 951 + 0x43 byte(s) >> >> 0x00007FF65E9E46E4 (0x00000079E6A4AC40 0x00000079E68EEE88 0x00000079E6A317FC 0x00000079E68EEC98), llvm::object::COFFObjectFile::getSectionContents() + 0x74 bytes(s), c:\llvm\l...
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
2017 Jun 15
7
[RFC] Profile guided section layout
...r &Sec) { if (Name == ".eh_frame" && !Config->Relocatable) return make<EhInputSection>(this, &Sec, Name); + // Profile data. + if (Name == ".note.llvm.callgraph") { + ArrayRef<uint8_t> CallgraphBuff = + check(this->getObj().getSectionContents(&Sec)); + + StringRef Buff((const char *)CallgraphBuff.data(), CallgraphBuff.size()); + + auto ReadString = [&Buff]() { + size_t F = Buff.find_first_of(" \n"); + StringRef Ret = Buff.substr(0, F); + Buff = Buff.substr(F + 1); + return Ret; + }; + +...
2017 Jul 31
2
[RFC] Profile guided section layout
...r &Sec) { if (Name == ".eh_frame" && !Config->Relocatable) return make<EhInputSection>(this, &Sec, Name); + // Profile data. + if (Name == ".note.llvm.callgraph") { + ArrayRef<uint8_t> CallgraphBuff = + check(this->getObj().getSectionContents(&Sec)); + + StringRef Buff((const char *)CallgraphBuff.data(), CallgraphBuff.size()); + + auto ReadString = [&Buff]() { + size_t F = Buff.find_first_of(" \n"); + StringRef Ret = Buff.substr(0, F); + Buff = Buff.substr(F + 1); + return Ret; + }; + +...