[flang-commits] [flang] [llvm] [LLVM] Register static pass plugins in LLVMRunPasses C-API (PR #196754)

via flang-commits flang-commits at lists.llvm.org
Mon Jun 15 20:53:06 PDT 2026


Vadmeme wrote:

Missing dependency on `FortranSemantics` that appears to show itself due to extensions being linked in.

Appears due to a weirdness where `FortranSemantics` depends on `FortranEvaluate` but `FortranEvaluate` uses symbols from `FortranSemantics` in this method https://github.com/llvm/llvm-project/blob/17db41c33e46dae9ecaea3a5b75fb4aba156dced/flang/lib/Evaluate/formatting.cpp#L893

Since `FortranSemantics` already depends on `FortranEvaluate`, adding `FortranSemantics`
directly to `FortranEvaluate` would encode a circular library dependency.

Im unsure of the specific places in the link graph that are ideal for a change in this situation as such i just enforced that the two libraries are linked together at the consumer level (`FIRBuilder`).

https://github.com/llvm/llvm-project/pull/196754


More information about the flang-commits mailing list