[llvm-branch-commits] [llvm] [Instrumentor] Allow printing a runtime stub (PR #138978)

2025-07-06 Thread Kevin Sala Penades via llvm-branch-commits
kevinsala wrote: The new version sets the default runtime stub file name as empty, so no runtime stub is printed by default. This approach is safer, as it prevents the Instrumentor from unintentionally generating a file and overwriting an existing one without the user noticing it. https://git

[llvm-branch-commits] [llvm] [Instrumentor] Allow printing a runtime stub (PR #138978)

2025-07-06 Thread Kevin Sala Penades via llvm-branch-commits
@@ -0,0 +1,212 @@ +//===-- InstrumentorStubPrinter.cpp ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm-branch-commits] [llvm] [Instrumentor] Allow printing a runtime stub (PR #138978)

2025-07-06 Thread Kevin Sala Penades via llvm-branch-commits
https://github.com/kevinsala updated https://github.com/llvm/llvm-project/pull/138978 >From 371483a750a456459d054a56787b40e946ab2890 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Tue, 6 May 2025 22:48:41 -0700 Subject: [PATCH] [Instrumentor] Allow printing a runtime stub --- .../llvm/Transf

[llvm-branch-commits] [llvm] [Instrumentor] Allow printing a runtime stub (PR #138978)

2025-05-07 Thread Kevin Sala Penades via llvm-branch-commits
https://github.com/kevinsala created https://github.com/llvm/llvm-project/pull/138978 This PR extends the Instrumentor the option `configuration.runtime_stubs_file` to generate a runtime stub file with the configured instrumentation. The stub prints all parameters passed to each enabled instru