[Mlir-commits] [mlir] [MLIR] Add support for frame pointers in MLIR (PR #72145)
Radu Salavat
llvmlistbot at llvm.org
Mon Dec 4 04:03:12 PST 2023
================
@@ -0,0 +1,8 @@
+; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
+
+define void @frame_pointer_func() "frame-pointer"="non-leaf" {
+ ; CHECK: llvm.func @frame_pointer_func()
+ ; CHECK-SAME: attributes {frame_pointer = #llvm.framePointerKind<"non-leaf">}
----------------
Radu2k wrote:
After rebasing, there is an updated format on the output when importing from llvm IR.
`llvm.func @frame_pointer_func() attributes {frame_pointer = #llvm.framePointerKind<"non-leaf">, passthrough = [["frame-pointer", "non-leaf"]]} {`
There is this new 'passthrough' parameter. Is this alright? For me it his seems to be duplicated information and I am not sure if there is any way to specify if this should be outputted or not.
https://github.com/llvm/llvm-project/pull/72145
More information about the Mlir-commits
mailing list