[all-commits] [llvm/llvm-project] 28f963: [Assignment Tracking][7/*] Add assignment tracking...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Tue Nov 8 09:49:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28f9636edd7d4e5f3eba1e3d0d37ec53d616481f
      https://github.com/llvm/llvm-project/commit/28f9636edd7d4e5f3eba1e3d0d37ec53d616481f
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2022-11-08 (Tue, 08 Nov 2022)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    A clang/test/CodeGen/assignment-tracking/assignment-tracking.cpp
    A clang/test/CodeGen/assignment-tracking/flag.cpp
    A clang/test/CodeGen/assignment-tracking/memcpy-fragment.cpp
    A clang/test/CodeGen/assignment-tracking/nested-scope.cpp
    A clang/test/Driver/assignment-tracking-opts.c

  Log Message:
  -----------
  [Assignment Tracking][7/*] Add assignment tracking functionality to clang

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

This patch plumbs the AssignmentTrackingPass (AKA declare-to-assign), added in
the previous patch in this set, into the optimisation pipeline from
clang. clang/test/CodeGen/assignment-tracking/assignment-tracking.cpp is the
main test for this patch.

Note: while clang (with the help of the declare-to-assign pass) can now emit
Assignment Tracking metadata, the llvm middle and back ends don't yet
understand it.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D132226




More information about the All-commits mailing list