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

Radu Salavat llvmlistbot at llvm.org
Tue Nov 14 13:32:42 PST 2023


================
@@ -0,0 +1,8 @@
+// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
+
+llvm.func @frame_pointer_func() frame_pointer="non-leaf" {
+  // CHECK-LABEL: define void @frame_pointer_func
+  // CHECK: attributes #{{.*}} = { "frame-pointer"="non-leaf" }
----------------
Radu2k wrote:

Small update on this topic, ATTRS cannot be defined in CHECK-LABEL and we have to use CHECK-SAME just below CHECK-LABEL, as well \d is not working but [0-9]+ works. Will update in next commit, thanks!

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


More information about the Mlir-commits mailing list