[all-commits] [llvm/llvm-project] e10514: [Driver] Allow XRay for more architectures on ELF ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 20 20:42:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e1051414a16e970c2e36c2ab7dfe2b17353c4751
      https://github.com/llvm/llvm-project/commit/e1051414a16e970c2e36c2ab7dfe2b17353c4751
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-06-20 (Tue, 20 Jun 2023)

  Changed paths:
    M clang/lib/Driver/XRayArgs.cpp
    R clang/test/Driver/XRay/xray-instrument-cpu.c
    R clang/test/Driver/XRay/xray-instrument-macos.c
    R clang/test/Driver/XRay/xray-instrument-os.c
    A clang/test/Driver/XRay/xray-instrument.c

  Log Message:
  -----------
  [Driver] Allow XRay for more architectures on ELF systems

Codegen OS-agnostic for ELF and the runtime is mostly OS-agnostic. It
seems unnecessary to make restriction.

While here, rewrite test/Driver/XRay/xray-instrument*.c to be more conventional:
specify --target= explicitly instead of relying on the configured default target
(which needs `REQUIRES:`).

I am not sure enumerating every supported architecture is useful, so we just test a few.




More information about the All-commits mailing list