[all-commits] [llvm/llvm-project] e4763c: [ctx_profile] Pull `ContextNode` in a `.inc` file ...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Thu May 9 16:59:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4763ca83b90eed96be6fd83a9867e435f4b8ffe
      https://github.com/llvm/llvm-project/commit/e4763ca83b90eed96be6fd83a9867e435f4b8ffe
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M compiler-rt/lib/ctx_profile/CMakeLists.txt
    A compiler-rt/lib/ctx_profile/CtxInstrContextNode.h
    M compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
    M compiler-rt/lib/ctx_profile/CtxInstrProfiling.h
    M compiler-rt/test/ctx_profile/CMakeLists.txt
    A compiler-rt/test/ctx_profile/TestCases/check-same-ctx-node.test
    A compiler-rt/test/ctx_profile/lit.cfg.py
    A compiler-rt/test/ctx_profile/lit.site.cfg.py.in
    M compiler-rt/test/lit.common.cfg.py
    A llvm/lib/ProfileData/CtxInstrContextNode.h

  Log Message:
  -----------
  [ctx_profile] Pull `ContextNode` in a `.inc` file (#91669)

This pulls out `ContextNode` as we need to use it pretty much as-is to implement a writer. The writer will be implemented on the LLVM side because it takes a dependency on BitStreamWriter.

Since we can't reuse a header between compiler-rt and llvm, we use a header file which is copied on both sides, and test that the 2 copies are identical.

The changes adds the necessary other stuff for compiler-rt/ctx_profile testing.



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