[flang-commits] [flang] [flang] Pass to add frame pointer attribute (PR #74598)
via flang-commits
flang-commits at lists.llvm.org
Thu Dec 7 05:51:48 PST 2023
jeanPerier wrote:
> > * Can the equivalent be achieved by passing the option to LLVM codegen instead of decorating all functions?
Would that be adding a conversion pattern for func.func in the Flang Codegen.cpp?
No, I meant later: i.e. in the actual LLVM IR processing that flang calls in FrontendActions.cpp.
llc has a `--frame-pointer` option, so there is likely a way to pass this option to the llvm codegen as a global option instead of setting it on all function at the MLIR level if the only goal is to propagate it to llvm backend.
https://github.com/llvm/llvm-project/pull/74598
More information about the flang-commits
mailing list