[all-commits] [llvm/llvm-project] 1c8307: [Instrumentor] Add runtime examples: [1/N] A flop ...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Jun 24 15:36:04 PDT 2026


  Branch: refs/heads/users/jdoerfert/instrumentor_flop_count
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c830767a5991e4fc25d5261268fe91eebe0f295
      https://github.com/llvm/llvm-project/commit/1c830767a5991e4fc25d5261268fe91eebe0f295
  Author: Johannes Doerfert <jdoerfert.llvm at gmail.com>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    M compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/lib/CMakeLists.txt
    A compiler-rt/lib/instrumentor-tools/CMakeLists.txt
    A compiler-rt/lib/instrumentor-tools/README.md
    A compiler-rt/lib/instrumentor-tools/flop-counter/CMakeLists.txt
    A compiler-rt/lib/instrumentor-tools/flop-counter/README.md
    A compiler-rt/lib/instrumentor-tools/flop-counter/flop_counter_config.json
    A compiler-rt/lib/instrumentor-tools/flop-counter/flop_counter_runtime.cpp
    A compiler-rt/lib/instrumentor-tools/instrumentor_runtime.h
    M compiler-rt/test/CMakeLists.txt
    A compiler-rt/test/instrumentor-tools/CMakeLists.txt
    A compiler-rt/test/instrumentor-tools/lit.cfg.py
    A compiler-rt/test/instrumentor-tools/lit.site.cfg.py.in
    A compiler-rt/test/instrumentor-tools/simple_flops.c
    A compiler-rt/test/instrumentor-tools/vector_flops.cpp

  Log Message:
  -----------
  [Instrumentor] Add runtime examples: [1/N] A flop counter

This adds a instrumentor-tools folder into compiler RT to showcase
use cases of the instrumentor. The initial example is a program that,
via instrumentation, counts the number of flops performed. Call and
intrinsic support will follow after #198042.

Partially developped by Claude (AI), tested and verified by me.



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