summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-01-14 10:55:55 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-01-14 10:55:55 +0000
commitb7cef81fd36c85e52b115b9ed6d1fb92d63781d6 (patch)
treea5434c1d3839d8a5176c53631c6110b41cc8b55c /llvm/test/CodeGen/Thumb
parentd37be4b7797fa5766df77a40d883afcdbc18fc45 (diff)
downloadbcm5719-llvm-b7cef81fd36c85e52b115b9ed6d1fb92d63781d6.tar.gz
bcm5719-llvm-b7cef81fd36c85e52b115b9ed6d1fb92d63781d6.zip
Replace "no-frame-pointer-*" function attributes with "frame-pointer"
Part of the effort to refactoring frame pointer code generation. We used to use two function attributes "no-frame-pointer-elim" and "no-frame-pointer-elim-non-leaf" to represent three kinds of frame pointer usage: (all) frames use frame pointer, (non-leaf) frames use frame pointer, (none) frame use frame pointer. This CL makes the idea explicit by using only one enum function attribute "frame-pointer" Option "-frame-pointer=" replaces "-disable-fp-elim" for tools such as llc. "no-frame-pointer-elim" and "no-frame-pointer-elim-non-leaf" are still supported for easy migration to "frame-pointer". tests are mostly updated with // replace command line args ‘-disable-fp-elim=false’ with ‘-frame-pointer=none’ grep -iIrnl '\-disable-fp-elim=false' * | xargs sed -i '' -e "s/-disable-fp-elim=false/-frame-pointer=none/g" // replace command line args ‘-disable-fp-elim’ with ‘-frame-pointer=all’ grep -iIrnl '\-disable-fp-elim' * | xargs sed -i '' -e "s/-disable-fp-elim/-frame-pointer=all/g" Patch by Yuanfang Chen (tabloid.adroit)! Differential Revision: https://reviews.llvm.org/D56351 llvm-svn: 351049
Diffstat (limited to 'llvm/test/CodeGen/Thumb')
-rw-r--r--llvm/test/CodeGen/Thumb/2009-07-27-PEIAssert.ll2
-rw-r--r--llvm/test/CodeGen/Thumb/2009-08-20-ISelBug.ll2
-rw-r--r--llvm/test/CodeGen/Thumb/frame-access.ll2
-rw-r--r--llvm/test/CodeGen/Thumb/frame_thumb.ll4
-rw-r--r--llvm/test/CodeGen/Thumb/push.ll2
5 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/Thumb/2009-07-27-PEIAssert.ll b/llvm/test/CodeGen/Thumb/2009-07-27-PEIAssert.ll
index aaca3a7f3db..f0de64db007 100644
--- a/llvm/test/CodeGen/Thumb/2009-07-27-PEIAssert.ll
+++ b/llvm/test/CodeGen/Thumb/2009-07-27-PEIAssert.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=thumbv6-apple-darwin -relocation-model=pic -disable-fp-elim
+; RUN: llc < %s -mtriple=thumbv6-apple-darwin -relocation-model=pic -frame-pointer=all
%struct.LinkList = type { i32, %struct.LinkList* }
%struct.List = type { i32, i32* }
diff --git a/llvm/test/CodeGen/Thumb/2009-08-20-ISelBug.ll b/llvm/test/CodeGen/Thumb/2009-08-20-ISelBug.ll
index 86d70239572..5c4b34d946c 100644
--- a/llvm/test/CodeGen/Thumb/2009-08-20-ISelBug.ll
+++ b/llvm/test/CodeGen/Thumb/2009-08-20-ISelBug.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=thumbv6-apple-darwin -relocation-model=pic -disable-fp-elim -mattr=+v6 -verify-machineinstrs | FileCheck %s
+; RUN: llc < %s -mtriple=thumbv6-apple-darwin -relocation-model=pic -frame-pointer=all -mattr=+v6 -verify-machineinstrs | FileCheck %s
; rdar://7157006
%struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }
diff --git a/llvm/test/CodeGen/Thumb/frame-access.ll b/llvm/test/CodeGen/Thumb/frame-access.ll
index 7fae4470f8f..9cbed5ed33f 100644
--- a/llvm/test/CodeGen/Thumb/frame-access.ll
+++ b/llvm/test/CodeGen/Thumb/frame-access.ll
@@ -1,4 +1,4 @@
-; RUN: llc -mtriple=thumbv6m-eabi -disable-fp-elim=false %s -o - | FileCheck %s
+; RUN: llc -mtriple=thumbv6m-eabi -frame-pointer=none %s -o - | FileCheck %s
; struct S { int x[128]; } s;
; int f(int *, int, int, int, struct S);
diff --git a/llvm/test/CodeGen/Thumb/frame_thumb.ll b/llvm/test/CodeGen/Thumb/frame_thumb.ll
index 6cc4dd12f6a..3cff8e20a20 100644
--- a/llvm/test/CodeGen/Thumb/frame_thumb.ll
+++ b/llvm/test/CodeGen/Thumb/frame_thumb.ll
@@ -1,7 +1,7 @@
; RUN: llc < %s -mtriple=thumb-apple-darwin \
-; RUN: -disable-fp-elim | not grep "r11"
+; RUN: -frame-pointer=all | not grep "r11"
; RUN: llc < %s -mtriple=thumb-linux-gnueabi \
-; RUN: -disable-fp-elim | not grep "r11"
+; RUN: -frame-pointer=all | not grep "r11"
define i32 @f() {
entry:
diff --git a/llvm/test/CodeGen/Thumb/push.ll b/llvm/test/CodeGen/Thumb/push.ll
index 4f4ffed7bbd..74629effd14 100644
--- a/llvm/test/CodeGen/Thumb/push.ll
+++ b/llvm/test/CodeGen/Thumb/push.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=thumb-apple-darwin -disable-fp-elim | FileCheck %s
+; RUN: llc < %s -mtriple=thumb-apple-darwin -frame-pointer=all | FileCheck %s
; rdar://7268481
define void @t() nounwind {
OpenPOWER on IntegriCloud