1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/DebugInfo/AArch64
Keno Fischer d8825d5008 Reapply r257105 "[Verifier] Check that debug values have proper size"
The follow extra changes were made to test cases:

Manually making the variable be the actual type instead of a pointer
to avoid pointer-size differences in generic code:

    LLVM :: DebugInfo/Generic/2010-03-24-MemberFn.ll
    LLVM :: DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll
    LLVM :: DebugInfo/Generic/2010-05-03-DisableFramePtr.ll
    LLVM :: DebugInfo/Generic/varargs.ll

Delete sizing information from debug info for the same reason
(but the presence of the pointer was important to the test case):

    LLVM :: DebugInfo/Generic/restrict.ll
    LLVM :: DebugInfo/Generic/tu-composite.ll
    LLVM :: Linker/type-unique-type-array-a.ll
    LLVM :: Linker/type-unique-simple2.ll

Fixing an incorrect DW_OP_deref

    LLVM :: DebugInfo/Generic/2010-05-03-OriginDIE.ll

Fixing a missing DW_OP_deref

    LLVM :: DebugInfo/Generic/incorrect-variable-debugloc.ll

Additionally, clang should no longer complain during bootstrap should no
longer happen after r257534.

The original commit message was:
```
Summary:
Teach the Verifier to make sure that the storage size given to llvm.dbg.declare
or the value size given to llvm.dbg.value agree with what is declared in
DebugInfo. This is implicitly assumed in a number of passes (e.g. in SROA).
Additionally this catches a number of common mistakes, such as passing a
pointer when a value was intended or vice versa.

One complication comes from stack coloring which modifies the original IR when
it merges allocas in order to make sure that if AA falls back to the IR it gets
the correct result. However, given this new invariant, indiscriminately
replacing one alloca by a different (differently sized one) is no longer valid.
Fix this by just undefing out any use of the alloca in a dbg.declare in this
case.

Additionally, I had to fix a number of test cases. Of particular note:
- I regenerated dbg-changes-codegen-branch-folding.ll from the given source as
  it was affected by the bug fixed in r256077
- two-cus-from-same-file.ll was changed to avoid having a variable-typed debug
  variable as that would depend on the target, even though this test is
  supposed to be generic
- I had to manually declared size/align for reference type. See also the
  discussion for D14275/r253186.
- fpstack-debuginstr-kill.ll required changing `double` to `long double`
- most others were just a question of adding OP_deref
```

llvm-svn: 257550
2016-01-13 00:31:44 +00:00
..
big-endian-dump.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
big-endian.ll DI: Disallow uniquable DICompileUnits 2015-08-03 17:26:41 +00:00
bitfields.ll DI: Disallow uniquable DICompileUnits 2015-08-03 17:26:41 +00:00
cfi-eof-prologue.ll DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00
coalescing.ll Clean up the processing of dbg.value in various places 2015-12-19 02:02:44 +00:00
constant-dbgloc.ll DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00
dwarfdump.ll DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00
eh_frame_personality.ll Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
eh_frame.s Use CIE version 1 for .eh_frame. 2015-04-27 22:04:24 +00:00
frameindices.ll Reapply r257105 "[Verifier] Check that debug values have proper size" 2016-01-13 00:31:44 +00:00
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
little-endian-dump.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
processes-relocations.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
prologue_end.ll DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00
struct_by_value.ll DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00