[Mlir-commits] [mlir] [MLIR] Add support for frame pointers in MLIR (PR #72145)

Radu Salavat llvmlistbot at llvm.org
Thu Nov 23 14:10:26 PST 2023


================
@@ -47,6 +47,15 @@ def LinkageAttr : LLVM_Attr<"Linkage", "linkage"> {
   let assemblyFormat = "`<` $linkage `>`";
 }
 
+//===----------------------------------------------------------------------===//
+// FramePointerKindAttr
+//===----------------------------------------------------------------------===//
+
+def FramePointerKindAttr : LLVM_Attr<"FramePointerKind", ""> {
+  let parameters = (ins "framePointerKind::FramePointerKind":$framePointerKind);
+  let assemblyFormat = "$framePointerKind";
----------------
Radu2k wrote:

I do not think this is the issue, since I have tried this and it only adds angle brackets.
`llvm.func @frame_pointer_func() vscale_range(1, 2) attributes {frame_pointer = #llvm<<"non-leaf">>} {`

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


More information about the Mlir-commits mailing list