Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-llvm

Inspecting LLVM's intermediate representation (LLVM IR).

How to Build the Project?

Build the project using $ make.

Delete the auto-generated files using $ make clean.

Compiling a C/C++ Compilation Unit to LLVM IR

Use $ clang++ -std=c++17 -Wall -Wextra -emit-llvm -S -fno-discard-value-names some-file.cpp to compile the file some-file.cpp to LLVM IR.

Running the Program and Analyzing LLVM IR

Use ./hello-llvm some-file.ll to run the small LLVM-IR-Analyzer program on the some-file.ll LLVM IR file.

About

This is a small "Hello, LLVM!" program that allows one to experiment with the LLVM APIs for inspecting LLVM's intermediate representation (LLVM IR).

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages