[RemoveDIs][DebugInfo] Create overloads of debug intrinsic utilities for DPValues...
commit4f57e2076bd21b573411bd40ec770a1b6785eee8
authorStephen Tozer <stephen.tozer@sony.com>
Wed, 17 Jan 2024 15:36:52 +0000 (17 15:36 +0000)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 15:36:52 +0000 (17 15:36 +0000)
tree6be5f8fdfc9ee72e4a57cb5c531d7eb44f09b085
parent59cdf41f077661cd2178123cf27dc688823b6b0f
[RemoveDIs][DebugInfo] Create overloads of debug intrinsic utilities for DPValues (#78313)

In preparation for the major chunk of the assignment tracking
implementation, this patch adds a new set of overloaded versions of
existing functions that take DbgVariableIntrinsics, with the overloads
taking DPValues. This is used specifically to allow us to use generic code
to handle both DbgVariableIntrinsics and DPValues, reducing code
duplication. This patch doesn't actually add the uses of these functions.
llvm/include/llvm/IR/DebugInfo.h
llvm/include/llvm/IR/IntrinsicInst.h
llvm/lib/IR/DebugInfo.cpp
llvm/lib/Transforms/Utils/Local.cpp