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.