efriedma-quic wrote: I don't think a global variable is the right interface for this; we've been trying to move away from global variables because they cause breakage when LLVM is used in multiple contexts in the same process.
Functions that construct pass pipelines that are usable as libraries can take an array of PassPluginLibraryInfo as an argument. https://github.com/llvm/llvm-project/pull/70171 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits