Skip to content

A blog for LLVM(v18.1.0) beginner, step by step, with detailed documents and comments. Record the way I learn LLVM.

License

Notifications You must be signed in to change notification settings

guosran/LLVM-18-Tutorials

 
 

Repository files navigation

LLVM-18-Tutorial

This blog serves as a updated version of LLVM-11-Tutorial, at which more detailed explanation of this project can be found. In this blog, I mainly record the difference between LLVM-11 and LLVM-18, the specific changes are explained within each experiment folder. I am happy to discuss and any suggestion will be welcome ^_^ (jgeab@connect.ust.hk). ~If this blog is useful for you, a STAR will be encouragement to me.

Before Running Experiments

Auxiliary File Settings: To avoid potential warnings from VS Code, it is recommended to set the configurations in the c_cpp_properties.json file as follows::

  • includePath:
    • "${workspaceFolder}/**"
    • "/usr/local/include/"
  • "cStandard": "c17"
  • "cppStandard": "c++17"

CMake Path: The compilation logic can be complex within these folders. Here is an explanation:

  • The pass source codes can be found within the Implements folder.
  • The specific experiments testing each pass can be found in the Tests folder.
  • The compiled libraries can be found in Tests/LLVM_Learner_Libs and please remember to include the corresponding passes in the CMake file.

About

A blog for LLVM(v18.1.0) beginner, step by step, with detailed documents and comments. Record the way I learn LLVM.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 68.2%
  • LLVM 16.3%
  • Python 10.0%
  • CMake 3.6%
  • Makefile 1.5%
  • Shell 0.2%
  • C 0.2%