History log of /llvm-project/llvm/lib/Analysis/KernelInfo.cpp (Results 1 – 4 of 4)
Revision Date Author Comments
# 57f17319 29-Jan-2025 Benjamin Kramer <benny.kra@googlemail.com>

[KernelInfo] Remove unused include.


# 953354c7 29-Jan-2025 Benjamin Kramer <benny.kra@googlemail.com>

[KernelInfo] Fix layering violation, Analysis cannot depend on Passes


# 5dae05f6 29-Jan-2025 Simon Pilgrim <llvm-dev@redking.me.uk>

Fix MSVC signed/unsigned mismatch warning. NFC.


# 18f8106f 29-Jan-2025 Joel E. Denny <jdenny.ornl@gmail.com>

[KernelInfo] Implement new LLVM IR pass for GPU code analysis (#102944)

This patch implements an LLVM IR pass, named kernel-info, that reports
various statistics for codes compiled for GPUs. The ul

[KernelInfo] Implement new LLVM IR pass for GPU code analysis (#102944)

This patch implements an LLVM IR pass, named kernel-info, that reports
various statistics for codes compiled for GPUs. The ultimate goal of
these statistics to help identify bad code patterns and ways to mitigate
them. The pass operates at the LLVM IR level so that it can, in theory,
support any LLVM-based compiler for programming languages supporting
GPUs. It has been tested so far with LLVM IR generated by Clang for
OpenMP offload codes targeting NVIDIA GPUs and AMD GPUs.

By default, the pass runs at the end of LTO, and options like
``-Rpass=kernel-info`` enable its remarks. Example `opt` and `clang`
command lines appear in `llvm/docs/KernelInfo.rst`. Remarks include
summary statistics (e.g., total size of static allocas) and individual
occurrences (e.g., source location of each alloca). Examples of its
output appear in tests in `llvm/test/Analysis/KernelInfo`.

show more ...