[PATCH] D135912: [PseudoProbe] Replace relocation with offset for entry probe.
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 11:02:21 PDT 2022
hoy added inline comments.
================
Comment at: llvm/include/llvm/IR/PseudoProbe.h:33
+ Reserved = 0x1,
+ Sentinel = 0x2, // A place holder for function entry address.
+};
----------------
wenlei wrote:
> nit on comment: split function entry address? main body doesn't have it.
Sounds good. Strictly speaking, main body can also have a sentinel probe if its source name doesn't equal binary name, like with the .llvm. suffix, but split function here would make it more obvious.
================
Comment at: llvm/lib/MC/MCPseudoProbe.cpp:80
} else {
- // Emit label as a symbolic code address.
- MCOS->emitSymbolValue(
- Label, MCOS->getContext().getAsmInfo()->getCodePointerSize());
+ // Emit the GUID of the code range that the sentinel probe represents.
+ MCOS->emitInt64(Guid);
----------------
wenlei wrote:
> hoy wrote:
> > wenlei wrote:
> > > To be accurate, this is the GUID of the (split) binary function name / elf symbol name?
> > Exactly.
> nit on comment: function -> split function?
Done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135912/new/
https://reviews.llvm.org/D135912
More information about the llvm-commits
mailing list