Skip to content

ncsu-csc512-project/part2-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Part 2 Seminal Input Features Detection

Overview

This README outlines the steps to compile and build the LLVM pass for branch and pointer profiling on UNIX systems.

Learn more here.

Prerequisites

  • LLVM >= 16.0 installed
  • CMake installed
  • C++ compiler (e.g., g++, clang)

Build the Pass

Clone the repo first if you haven't already:

git clone https://github.com/ncsu-csc512-project/part2-dev.git

Navigate to the root directory of the repo and run the following commands to build the pass:

export LLVM_DIR= # replace with your LLVM installation directory

mkdir build
cd build
cmake .. 
make

Running the Pass

After building, you should have a libDefUseAnalysisPass.soand libInputDetectionPass.so file in your build directory. To run the pass in the tests file, use LLVM's opt tool as follows:

./run_tests.sh

Replace complex_branch_test.bc with the LLVM IR file you want to analyze.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published