| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. | Shiva Chen | 2018-05-09 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to set breakpoints on labels and list source code around labels, we need collect debug information for labels, i.e., label name, the function label belong, line number in the file, and the address label located. In order to keep these information in LLVM IR and to allow backend to generate debug information correctly. We create a new kind of metadata for labels, DILabel. The format of DILabel is !DILabel(scope: !1, name: "foo", file: !2, line: 3) We hope to keep debug information as much as possible even the code is optimized. So, we create a new kind of intrinsic for label metadata to avoid the metadata is eliminated with basic block. The intrinsic will keep existing if we keep it from optimized out. The format of the intrinsic is llvm.dbg.label(metadata !1) It has only one argument, that is the DILabel metadata. The intrinsic will follow the label immediately. Backend could get the label metadata through the intrinsic's parameter. We also create DIBuilder API for labels to be used by Frontend. Frontend could use createLabel() to allocate DILabel objects, and use insertLabel() to insert llvm.dbg.label intrinsic in LLVM IR. Differential Revision: https://reviews.llvm.org/D45024 Patch by Hsiangkai Wang. llvm-svn: 331841 | ||||
| * | Fix a bug in GlobalOpt's handling of DIExpressions. | Adrian Prantl | 2018-04-27 | 1 | -2/+6 |
| | | | | | | | | | | This patch adds support for fragment expressions TryToShrinkGlobalToBoolean() which were previously just dropped. Thanks to Reid Kleckner for providing me a reproducer! llvm-svn: 331086 | ||||
| * | Fixed reverted commit rL312318 | Strahinja Petrovic | 2017-09-21 | 1 | -0/+57 |
| | | | | | | | | | | | This patch contains fix for reverted commit rL312318 which was causing failure due to use of unchecked dyn_cast to CIInit. Patch by: Nikola Prica. llvm-svn: 313870 | ||||
| * | Revert r312318, r312325, r312424, r312489 | Richard Trieu | 2017-09-07 | 1 | -57/+0 |
| | | | | | | | | | | | r312318 - Debug info for variables whose type is shrinked to bool r312325, r312424, r312489 - Test case for r312318 Revision 312318 introduced a null dereference bug. Details in https://bugs.llvm.org/show_bug.cgi?id=34490 llvm-svn: 312758 | ||||
| * | Fix test/Transforms/GlobalOpt/integer-bool-dwarf | Strahinja Petrovic | 2017-09-04 | 1 | -11/+2 |
| | | | | | | | | | | This patch fixes regression related with integer-bool-dwarf test. Patch by Nikola Prica. llvm-svn: 312489 | ||||
| * | Fix buildbot failures for new test that requires the X86 target be built. | Don Hinton | 2017-09-02 | 1 | -0/+1 |
| | | | | | llvm-svn: 312424 | ||||
| * | Adding missing test case in rL312318 | Strahinja Petrovic | 2017-09-01 | 1 | -0/+65 |
| Adding test for debug info for integer variables whose type is shrinked to bool. Patch by Nikola Prica. llvm-svn: 312325 | |||||

