[clang] [flang] [llvm] [polly] [Plugins] Pass options to a pass plugin in -load-pass-plugin (PR #226773)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 03:19:34 PDT 2026
================
@@ -40,8 +40,11 @@ if config.llvm_polly_link_into_tools == '' or \
config.llvm_polly_link_into_tools.lower() == 'false' or \
config.llvm_polly_link_into_tools.lower() == 'notfound' or \
config.llvm_polly_link_into_tools.lower() == 'llvm_polly_link_into_tools-notfound':
- config.substitutions.append(('%loadNPMPolly', '-load-pass-plugin '
- + config.polly_lib_dir + '/LLVMPolly at LLVM_SHLIBEXT@'
+ # -load registers Polly's options while opt parses the -polly-* options
+ # that follow; -load-pass-plugin registers its passes after parsing.
----------------
aengelke wrote:
Tolerable as a temporary solution, but we also want to eventually remove -load... add a TODO at least.
https://github.com/llvm/llvm-project/pull/226773
More information about the llvm-commits
mailing list