Someone wanted to learn this too, so Grasp built them a personal learning path.
You can keep exploring this one or create a path like this one shaped around you.
Recommended resources
Module 4
Clang Frontend and AST Analysis
Module 5
Building Clang Tools
Module 6
Middle-End: The LLVM Pass Framework
Module 7
Analyzing and Debugging Optimizations
Module 8
Backend and Code Generation Concepts
Module 9
MLIR Fundamentals
Module 10
LLDB Internals and Scripting
Module 11