6 Commits

Author SHA1 Message Date
J. Ryan Stinnett
1572742cfa [DebugInfo][Docs] Remove dbg.addr from docs
Part of `dbg.addr` removal
Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898

Differential Revision: https://reviews.llvm.org/D144792
2023-03-02 09:29:42 +00:00
OCHyams
4ece50737d [Assignment Tracking][NFC] Replace LLVM command line option with a module flag
Remove LLVM flag -experimental-assignment-tracking. Assignment tracking is
still enabled from Clang with the command line -Xclang
-fexperimental-assignment-tracking which tells Clang to ask LLVM to run the
pass declare-to-assign. That pass converts conventional debug intrinsics to
assignment tracking metadata. With this patch it now also sets a module flag
debug-info-assignment-tracking with the value `i1 true` (using the flag conflict
rule `Max` since enabling assignment tracking on IR that contains only
conventional debug intrinsics should cause no issues).

Update the docs and tests too.

Reviewed By: CarlosAlbertoEnciso

Differential Revision: https://reviews.llvm.org/D142027
2023-01-20 14:24:15 +00:00
OCHyams
aa2134cdec [Assignment Tracking][Docs] Remove TODO for replacing undef with poison
This has been resolved for assignment tracking by the patch D140906 and others
in the same stack.
2023-01-12 10:22:14 +00:00
OCHyams
12ece76815 [DebugInfo] Replace UndefValue with PoisonValue in AssignmentTrackingAnalysis
This helps towards the effort to remove UndefValue from LLVM.

Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value

Reviewed By: scott.linder

Differential Revision: https://reviews.llvm.org/D140906
2023-01-12 09:51:45 +00:00
OCHyams
7ea80c279f [Assignment Tracking] Update TODO list in docs 2022-12-09 17:08:22 +00:00
OCHyams
33c7ae55e7 [Assignment Tracking][1/*] Add initial docs for Assignment Tracking
The Assignment Tracking debug-info feature is outlined in this RFC:

https://discourse.llvm.org/t/
  rfc-assignment-tracking-a-better-way-of-specifying-variable-locations-in-ir

Add documentation outlining the intent and design.
2022-11-02 13:47:50 +00:00