Session Type
Date & Time
Thursday, October 12, 2023, 1:15 PM - 2:15 PM
Starting LLVM Development in Visual Studio on Windows

Many developers who are beginners to LLVM start their journey on Windows using the community edition of Visual Studio. In this tutorial, I’ll cover how to build LLVM for pass development purposes from inside the latest version of Visual Studio 2022. Next, I’ll show how to structure, configure, and build an out-of-tree IR pass plugin library as a DLL using CMake and the latest features of it supported by Visual Studio. I will then show how to load this DLL into the `opt` tool, execute, and debug its containing pass or passes – with some example code to show how to make debugging IR easier. Finally, I will demonstrate how to load, execute, and debug the IR pass directly from Clang without having to separately execute `opt`. All demonstrations and explanations of building and debugging occur from within the Visual Studio IDE.

Location Name
Hall of Cities