[PATCH] D74159: [MachineInstr] Add isCandidateForCallSiteEntry predicate

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 13:20:17 PST 2020


vsk created this revision.
vsk added reviewers: djtodoro, aprantl, dstenb.
Herald added subscribers: hiraditya, MatzeB.
Herald added a project: LLVM.

Add the isCandidateForCallSiteEntry predicate to MachineInstr to
determine whether a DWARF call site entry should be created for an
instruction.

For now, it's enough to have any call instruction that doesn't belong to
a blacklisted set of opcodes. For these opcodes, a call site entry isn't
meaningful.

c.f. https://reviews.llvm.org/D74121, which takes a whitelisting approach.


https://reviews.llvm.org/D74159

Files:
  llvm/include/llvm/CodeGen/MachineFunction.h
  llvm/include/llvm/CodeGen/MachineInstr.h
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/CodeGen/MachineInstr.cpp
  llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
  llvm/test/CodeGen/AArch64/arm64-anyregcc.ll
  llvm/test/CodeGen/AArch64/arm64-patchpoint.ll
  llvm/test/CodeGen/X86/statepoint-allocas.ll
  llvm/test/CodeGen/X86/xray-custom-log.ll
  llvm/test/CodeGen/X86/xray-typed-event-log.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74159.242988.patch
Type: text/x-patch
Size: 6836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200206/7fe2b24b/attachment.bin>


More information about the llvm-commits mailing list