[clang] [llvm] [Instrumentor] Add Alloca and Function support; stack usage example (PR #195378)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 7 19:53:02 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 173991 tests passed
* 3318 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.Instrumentor/InstrumentorStackUsage.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Instrumentor/StackUsageRT.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Instrumentor/Output/InstrumentorStackUsage.cpp.tmp.StackUsageRT.o -c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Instrumentor/StackUsageRT.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Instrumentor/Output/InstrumentorStackUsage.cpp.tmp.StackUsageRT.o -c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Instrumentor/StackUsageRT.cpp:25:47: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
# |    25 |     printf("Stack usage peaked at %lli in\n", HighWaterMark);
# |       |                                   ~~~~        ^~~~~~~~~~~~~
# |       |                                   %li
# | 1 warning generated.
# `-----------------------------
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -O0 -mllvm -enable-instrumentor -mllvm -instrumentor-read-config-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Instrumentor/StackUsageRT.json /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Instrumentor/Output/InstrumentorStackUsage.cpp.tmp.StackUsageRT.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Instrumentor/Output/InstrumentorStackUsage.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Instrumentor/InstrumentorStackUsage.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -O0 -mllvm -enable-instrumentor -mllvm -instrumentor-read-config-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Instrumentor/StackUsageRT.json /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Instrumentor/Output/InstrumentorStackUsage.cpp.tmp.StackUsageRT.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Instrumentor/Output/InstrumentorStackUsage.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Instrumentor/InstrumentorStackUsage.cpp
# .---command stderr------------
# | fatal error: error in backend: IO sandbox violation
# | clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
# | clang version 23.0.0git (https://github.com/llvm/llvm-project 29079ce84dec586f175072b5216cc89b7194f4a5)
# | Target: x86_64-unknown-linux-gnu
# | Thread model: posix
# | InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | Build config: +assertions
# | clang: note: diagnostic msg: 
# | ********************
# | 
# | PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
# | Preprocessed source(s) and associated run script(s) are located at:
# | clang: note: diagnostic msg: /tmp/lit-tmp-ktxk4tj_/InstrumentorStackUsage-890091.cpp
# | clang: note: diagnostic msg: /tmp/lit-tmp-ktxk4tj_/InstrumentorStackUsage-890091.sh
# | clang: note: diagnostic msg: 
# | 
# | ********************
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/195378


More information about the cfe-commits mailing list