[all-commits] [llvm/llvm-project] d905c7: [XRay][SystemZ] Use stckf for non-clang compilers ...

Kai Nacke via All-commits all-commits at lists.llvm.org
Thu Feb 6 13:08:28 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d905c7e316b941afcef32e28073b3e77c536407c
      https://github.com/llvm/llvm-project/commit/d905c7e316b941afcef32e28073b3e77c536407c
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2025-02-06 (Thu, 06 Feb 2025)

  Changed paths:
    M compiler-rt/lib/xray/xray_tsc.h

  Log Message:
  -----------
  [XRay][SystemZ] Use stckf for non-clang compilers (#125289)

Turns out there are users who use gcc to compile compiler-rt. Using the
clang-specific builtin function `__builtin_readcyclecounter()` does not
work in this case.
Solution is to use inline assembly using the stckf instruction in case
the compiler is not clang.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list