Inspecting LLVM's intermediate representation (LLVM IR).
Build the project using $ make
.
Delete the auto-generated files using $ make clean
.
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.
Use ./hello-llvm some-file.ll
to run the small LLVM-IR-Analyzer program on the some-file.ll
LLVM IR file.