[flang-commits] [flang] [flang] Fix -fno-omit-frame-pointer (PR #180507)

via flang-commits flang-commits at lists.llvm.org
Tue Feb 10 01:03:34 PST 2026


https://github.com/jeanPerier approved this pull request.

Thanks, this looks good.

We could maybe reuse the llvm to mlir::LLVM enum conversion from `#include "mlir/Dialect/LLVMIR/LLVMConversionEnumsToLLVM.inc"` ([auto generated header](https://github.com/llvm/llvm-project/commit/f03b8956891afd69811e4607d58673ed1438a260)) that produces defined `::mlir::LLVM::framePointerKind::FramePointerKind convertFramePointerKindFromLLVM(::llvm::FramePointerKind value)`.

This would avoid having flang to maintain this switches when new values are added. however, I am not completely sure it is a good idea to include those headers directly in flang, so your patch is good and we can try to reuse this later.

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


More information about the flang-commits mailing list