[all-commits] [llvm/llvm-project] 7c7c8e: [xray] Option to omit the function index

Ian Levesque via All-commits all-commits at lists.llvm.org
Wed Jun 17 10:58:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c7c8e0da4e0c400e7e06c4c6658372ea0b487ea
      https://github.com/llvm/llvm-project/commit/7c7c8e0da4e0c400e7e06c4c6658372ea0b487ea
  Author: Ian Levesque <ianlevesque at fb.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

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

  Log Message:
  -----------
  [xray] Option to omit the function index

Summary:
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.

Reviewers: dberris, MaskRay, johnislarry

Subscribers: hiraditya, arphaman, cfe-commits, #sanitizers, llvm-commits

Tags: #clang, #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D81995




More information about the All-commits mailing list