Blog38.9K views3,149 votes0 replies1,020 following
Writing Your First LLVM Pass on the New PassManager (and Why the Old One Is Gone)
LLVM's new PassManager turns a custom pass into a plain C++ class with one run method. Here's a worked out-of-tree plugin example, how analysis invalidation works, and what porting costs.