diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-01-14 10:55:55 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-01-14 10:55:55 +0000 |
| commit | b7cef81fd36c85e52b115b9ed6d1fb92d63781d6 (patch) | |
| tree | a5434c1d3839d8a5176c53631c6110b41cc8b55c /llvm/test/DebugInfo | |
| parent | d37be4b7797fa5766df77a40d883afcdbc18fc45 (diff) | |
| download | bcm5719-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/DebugInfo')
| -rw-r--r-- | llvm/test/DebugInfo/AArch64/frameindices.ll | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/AArch64/prologue_end.ll | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/ARM/prologue_end.ll | 4 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/Mips/prologue_end.ll | 4 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/Sparc/prologue_end.ll | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/SystemZ/prologue_end.ll | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/SystemZ/variable-loc.ll | 4 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/prologue-stack.ll | 2 |
9 files changed, 12 insertions, 12 deletions
diff --git a/llvm/test/DebugInfo/AArch64/frameindices.ll b/llvm/test/DebugInfo/AArch64/frameindices.ll index 18cd54afbc4..a74e6bad305 100644 --- a/llvm/test/DebugInfo/AArch64/frameindices.ll +++ b/llvm/test/DebugInfo/AArch64/frameindices.ll @@ -1,4 +1,4 @@ -; RUN: llc -disable-fp-elim -O0 -fast-isel -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc -frame-pointer=all -O0 -fast-isel -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s ; Test that a variable with multiple entries in the MMI table makes it into the ; debug info. ; diff --git a/llvm/test/DebugInfo/AArch64/prologue_end.ll b/llvm/test/DebugInfo/AArch64/prologue_end.ll index 0187032e138..bafbcf752aa 100644 --- a/llvm/test/DebugInfo/AArch64/prologue_end.ll +++ b/llvm/test/DebugInfo/AArch64/prologue_end.ll @@ -1,4 +1,4 @@ -; RUN: llc -disable-fp-elim -O0 -fast-isel %s -mtriple aarch64-apple-darwin -o - | FileCheck %s +; RUN: llc -frame-pointer=all -O0 -fast-isel %s -mtriple aarch64-apple-darwin -o - | FileCheck %s ; int func(void); ; void prologue_end_test() { diff --git a/llvm/test/DebugInfo/ARM/prologue_end.ll b/llvm/test/DebugInfo/ARM/prologue_end.ll index 7a4a0c7859c..2c4922d1a8a 100644 --- a/llvm/test/DebugInfo/ARM/prologue_end.ll +++ b/llvm/test/DebugInfo/ARM/prologue_end.ll @@ -1,5 +1,5 @@ -; RUN: llc -disable-fp-elim -O0 %s -mtriple armv7-apple-darwin -o - | FileCheck %s -; RUN: llc -disable-fp-elim -O0 %s -mtriple thumbv7-apple-darwin -o - | FileCheck %s +; RUN: llc -frame-pointer=all -O0 %s -mtriple armv7-apple-darwin -o - | FileCheck %s +; RUN: llc -frame-pointer=all -O0 %s -mtriple thumbv7-apple-darwin -o - | FileCheck %s ; int func(void); ; void prologue_end_test() { diff --git a/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll b/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll index 11c3d689cab..77e4fa00386 100644 --- a/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll +++ b/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll @@ -1,6 +1,6 @@ ; RUN: %llc_dwarf -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s ; RUN: %llc_dwarf -debugger-tune=gdb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE -; RUN: %llc_dwarf -disable-fp-elim -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE +; RUN: %llc_dwarf -frame-pointer=all -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE ; CHECK: DW_AT_APPLE_omit_frame_ptr ; DISABLE-NOT: DW_AT_APPLE_omit_frame_ptr diff --git a/llvm/test/DebugInfo/Mips/prologue_end.ll b/llvm/test/DebugInfo/Mips/prologue_end.ll index 6bb0448a122..7886b9b0485 100644 --- a/llvm/test/DebugInfo/Mips/prologue_end.ll +++ b/llvm/test/DebugInfo/Mips/prologue_end.ll @@ -1,7 +1,7 @@ ; RUN: llc -O0 -mtriple mips-unknown-linux-gnu -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC -; RUN: llc -O0 -mtriple mips-unknown-linux-gnu -relocation-model=static -disable-fp-elim < %s | FileCheck %s -check-prefix=STATIC-FP +; RUN: llc -O0 -mtriple mips-unknown-linux-gnu -relocation-model=static -frame-pointer=all < %s | FileCheck %s -check-prefix=STATIC-FP ; RUN: llc -O0 -mtriple mips-unknown-linux-gnu -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC -; RUN: llc -O0 -mtriple mips-unknown-linux-gnu -relocation-model=pic -disable-fp-elim < %s | FileCheck %s -check-prefix=PIC-FP +; RUN: llc -O0 -mtriple mips-unknown-linux-gnu -relocation-model=pic -frame-pointer=all < %s | FileCheck %s -check-prefix=PIC-FP ; Generated using clang -O0 -emit-llvm -S -target mipsel-unknown-linux -g test.c -o test.ll ; test.c: diff --git a/llvm/test/DebugInfo/Sparc/prologue_end.ll b/llvm/test/DebugInfo/Sparc/prologue_end.ll index 78bd3def69c..91e6db29cfa 100644 --- a/llvm/test/DebugInfo/Sparc/prologue_end.ll +++ b/llvm/test/DebugInfo/Sparc/prologue_end.ll @@ -1,4 +1,4 @@ -; RUN: llc -disable-fp-elim -O0 %s -mtriple sparc -o - | FileCheck %s +; RUN: llc -frame-pointer=all -O0 %s -mtriple sparc -o - | FileCheck %s ; int func(void); ; void prologue_end_test() { diff --git a/llvm/test/DebugInfo/SystemZ/prologue_end.ll b/llvm/test/DebugInfo/SystemZ/prologue_end.ll index 8251e82b234..c430b7905a8 100644 --- a/llvm/test/DebugInfo/SystemZ/prologue_end.ll +++ b/llvm/test/DebugInfo/SystemZ/prologue_end.ll @@ -1,4 +1,4 @@ -; RUN: llc -disable-fp-elim -O0 %s -mtriple s390x-linux-gnu -o - | FileCheck %s +; RUN: llc -frame-pointer=all -O0 %s -mtriple s390x-linux-gnu -o - | FileCheck %s ; int func(void); ; void prologue_end_test() { diff --git a/llvm/test/DebugInfo/SystemZ/variable-loc.ll b/llvm/test/DebugInfo/SystemZ/variable-loc.ll index a281eb660d7..6112a816437 100644 --- a/llvm/test/DebugInfo/SystemZ/variable-loc.ll +++ b/llvm/test/DebugInfo/SystemZ/variable-loc.ll @@ -1,5 +1,5 @@ -; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim < %s | FileCheck %s -; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim -filetype=obj < %s \ +; RUN: llc -mtriple=s390x-linux-gnu -frame-pointer=all < %s | FileCheck %s +; RUN: llc -mtriple=s390x-linux-gnu -frame-pointer=all -filetype=obj < %s \ ; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=DEBUG %s ; ; This is a regression test making sure the location of variables is correct in diff --git a/llvm/test/DebugInfo/X86/prologue-stack.ll b/llvm/test/DebugInfo/X86/prologue-stack.ll index ffce4033a8e..6072543861d 100644 --- a/llvm/test/DebugInfo/X86/prologue-stack.ll +++ b/llvm/test/DebugInfo/X86/prologue-stack.ll @@ -1,4 +1,4 @@ -; RUN: llc -fast-isel-sink-local-values -disable-fp-elim -O0 %s -mtriple x86_64-unknown-linux-gnu -o - | FileCheck %s +; RUN: llc -fast-isel-sink-local-values -frame-pointer=all -O0 %s -mtriple x86_64-unknown-linux-gnu -o - | FileCheck %s ; int callme(int); ; int isel_line_test2() { |

