[PATCH] D81995: [xray] Option to omit the function index

Ian Levesque via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 17 00:30:21 PDT 2020


ianlevesque created this revision.
ianlevesque added reviewers: dberris, MaskRay, johnislarry.
Herald added subscribers: llvm-commits, Sanitizers, cfe-commits, arphaman, hiraditya.
Herald added projects: clang, Sanitizers, LLVM.

Add a flag to omit the xray_fn_idx to cut size overhead and relocations
roughly in half at the cost of reduced performance for single function
patching.  Minor additions to compiler-rt support per-function patching
without the index.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81995

Files:
  clang/include/clang/Basic/CodeGenOptions.def
  clang/include/clang/Driver/Options.td
  clang/include/clang/Driver/XRayArgs.h
  clang/lib/CodeGen/BackendUtil.cpp
  clang/lib/Driver/XRayArgs.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/Driver/XRay/xray-function-index-flags.cpp
  compiler-rt/lib/xray/xray_init.cpp
  compiler-rt/lib/xray/xray_interface.cpp
  compiler-rt/test/xray/TestCases/Posix/coverage-sample.cpp
  compiler-rt/test/xray/TestCases/Posix/func-id-utils.cpp
  compiler-rt/test/xray/TestCases/Posix/patching-unpatching.cpp
  llvm/include/llvm/CodeGen/CommandFlags.h
  llvm/include/llvm/Target/TargetOptions.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/CodeGen/CommandFlags.cpp
  llvm/test/CodeGen/AArch64/xray-omit-function-index.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81995.271286.patch
Type: text/x-patch
Size: 17081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200617/40820c9c/attachment.bin>


More information about the llvm-commits mailing list