summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>2019-06-27 07:48:06 +0000
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>2019-06-27 07:48:06 +0000
commita7cde103c18224f426e613b64ecb228c2154300f (patch)
tree235dce0d944171a2789b34c51d736035fe76982d /llvm/lib/CodeGen/MachineVerifier.cpp
parent41825040f62f03a69d1c1c1f77bf2fd7089ab0b7 (diff)
downloadbcm5719-llvm-a7cde103c18224f426e613b64ecb228c2154300f.tar.gz
bcm5719-llvm-a7cde103c18224f426e613b64ecb228c2154300f.zip
[MachineFunction] Base support for call site info tracking
Add an attribute into the MachineFunction that tracks call site info. ([8/13] Introduce the debug entry values.) Co-authored-by: Ananth Sowda <asowda@cisco.com> Co-authored-by: Nikola Prica <nikola.prica@rt-rk.com> Co-authored-by: Ivan Baev <ibaev@cisco.com> Differential Revision: https://reviews.llvm.org/D61061 llvm-svn: 364506
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index b40594ffe55..63fd05b2ea2 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -2193,6 +2193,10 @@ void MachineVerifier::visitMachineFunctionAfter() {
verifyLiveVariables();
if (LiveInts)
verifyLiveIntervals();
+
+ for (auto CSInfo : MF->getCallSitesInfo())
+ if (!CSInfo.first->isCall())
+ report("Call site info referencing instruction that is not call", MF);
}
void MachineVerifier::verifyLiveVariables() {
OpenPOWER on IntegriCloud