https://github.com/flopsreallygotit/logpass
Generates log info about IR
https://github.com/flopsreallygotit/logpass
llvm llvm-clang llvm-ir llvm-pass
Last synced: 3 months ago
JSON representation
Generates log info about IR
- Host: GitHub
- URL: https://github.com/flopsreallygotit/logpass
- Owner: flopsreallygotit
- Created: 2024-03-17T14:54:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T22:12:57.000Z (3 months ago)
- Last Synced: 2025-04-07T23:22:13.911Z (3 months ago)
- Topics: llvm, llvm-clang, llvm-ir, llvm-pass
- Language: C++
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LogPass
LogPass provides compiler wrapper and pass library that logs function traces
# Dependencies
You can install dependencies on Debian/Ubuntu with following command:
```bash
sudo apt install clang-16 llvm-16-dev cmake make
```## Quick Start
To build pass library write:
```bash
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16
make -j
```## Usage
Use `loggercc` as C-compiler and `loggercxx` as C++-compiler:
```bash
CC=/path/to/loggercc
CXX=/path/to/loggercxxcmake / make / ninja / ...
./a.out
```You'll receive `logger.log` file with function trace.