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

Mehdi Amini llvmlistbot at llvm.org
Thu Nov 23 17:55:52 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";
----------------
joker-eph wrote:

You didn't provide the mnemonic?

What about `def FramePointerKindAttr : LLVM_Attr<"FramePointerKind", "fp"> {`?

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


More information about the Mlir-commits mailing list