Displaying 5 results from an estimated 5 matches for "readstring".
Did you mean:
read_string
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
2014 Oct 17
3
[LLVMdev] oprofile support?
...const*, std::allocator<llvm::PassInfo const*> >::begin() const
1 1.5152 ld-2.19.so _dl_check_map_versions
1 1.5152 ld-2.19.so _dl_fixup
1 1.5152 ld-2.19.so do_lookup_x
1 1.5152 libLLVMAsmParser.so
llvm::LLLexer::ReadString(llvm::lltok::Kind)
1 1.5152 libLLVMCodeGen.so llvm::MachineFunction::getName()
const
1 1.5152 libLLVMCodeGen.so llvm::MachineOperand::isReg()
const
....
>From this you can see that lli is calling the oprofile interface. Oprofile
is counting 6949 samples, but attr...
2017 Jun 15
7
[RFC] Profile guided section layout
...;(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;
+ };
+
+ while (!Buff.empty()) {
+ StringRef From = ReadString();
+ StringRef To = ReadString();
+ uint64_t Co...
2014 Nov 29
2
[LLVMdev] oprofile support?
...t;llvm::PassInfo const*> >::begin() const
> 1 1.5152 ld-2.19.so _dl_check_map_versions
> 1 1.5152 ld-2.19.so _dl_fixup
> 1 1.5152 ld-2.19.so do_lookup_x
> 1 1.5152 libLLVMAsmParser.so
> llvm::LLLexer::ReadString(llvm::lltok::Kind)
> 1 1.5152 libLLVMCodeGen.so
> llvm::MachineFunction::getName() const
> 1 1.5152 libLLVMCodeGen.so llvm::MachineOperand::isReg()
> const
> ....
>
> From this you can see that lli is calling the oprofile interface. Oprofile
> is cou...
2017 Jul 31
2
[RFC] Profile guided section layout
...;(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;
+ };
+
+ while (!Buff.empty()) {
+ StringRef From = ReadString();
+ StringRef To = ReadString();
+ uint64_t Co...