================
@@ -303,6 +323,9 @@ bool CodeGenAction::beginSourceFileAction() {
Fortran::parser::Program &parseTree{*ci.getParsing().parseTree()};
lb.lower(parseTree, ci.getInvocation().getSemanticsContext());
+ // Add dependent libraries
+ addDepdendentLibs(*mlirModule, ci);
----------------
DavidTruby wrote:
The consumer is that an LLVMIR dialect operation should be added to the MLIR
module (in the global module scope) that will eventually get lowered by the
standard MLIR LLVM dialect to LLVM ir transform. I don’t think it particularly
matters where in the compilation flow that gets added as it doesn’t affect or
get affected by any other transformation. I’m happy to add it later if you have
a suggestion where it should be done, I mostly did it here because you still
have all the information to construct the list of linker options without
needing to pass any information further on.
https://github.com/llvm/llvm-project/pull/72121
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits