[PATCH] D147310: [Orc] Add AutoRegisterCode option for DebugObjectManagerPlugin

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 31 03:26:57 PDT 2023


sgraenitz created this revision.
sgraenitz added reviewers: lhames, drmeister.
Herald added a subscriber: hiraditya.
Herald added a project: All.
sgraenitz requested review of this revision.
Herald added a project: LLVM.

Configure the plugin to automatically call the debugger rendezvous breakpoint `__jit_debug_register_code()` for every translation unit (enabled) or never at all (disabled). Default API and behavior remain unchanged.

If AutoRegisterCode is turned off, it's the client's own responsibility to call the rendezvous breakpoint function at an appropriate time.
Depending on the complexity of the debugger's rendezvous breakpoint implementation, this can provide significant performance improvements in cases where many debug objects are added in sequence.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147310

Files:
  llvm/include/llvm/ExecutionEngine/Orc/DebugObjectManagerPlugin.h
  llvm/include/llvm/ExecutionEngine/Orc/EPCDebugObjectRegistrar.h
  llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
  llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp
  llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147310.509960.patch
Type: text/x-patch
Size: 6876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230331/22e8b9fe/attachment.bin>


More information about the llvm-commits mailing list