summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-09-23 18:38:15 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-09-23 18:38:15 +0000
commit380cd88cfd5244e4f97d8abce20d6269f8353c8d (patch)
treecf7da98e70bb52a5120d6158506113dc71a1f92b /llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
parent0f4c20a1e747e6e38c6ef72a9c8241fe2755c0c5 (diff)
downloadbcm5719-llvm-380cd88cfd5244e4f97d8abce20d6269f8353c8d.tar.gz
bcm5719-llvm-380cd88cfd5244e4f97d8abce20d6269f8353c8d.zip
[ResetMachineFunction] Populate the comments in the header of the file.
NFC llvm-svn: 282276
Diffstat (limited to 'llvm/lib/CodeGen/ResetMachineFunctionPass.cpp')
-rw-r--r--llvm/lib/CodeGen/ResetMachineFunctionPass.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp b/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
index 554760ff891..f604e431289 100644
--- a/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
+++ b/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
@@ -1,4 +1,4 @@
-//===-- ResetMachineFunctionPass.cpp - Machine Loop Invariant Code Motion Pass ---------===//
+//===-- ResetMachineFunctionPass.cpp - Reset Machine Function ----*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
@@ -6,8 +6,11 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
-//
-//
+/// \file
+/// This file implements a pass that will conditionally reset a machine
+/// function as if it was just created. This is used to provide a fallback
+/// mechanism when GlobalISel fails, thus the condition for the reset to
+/// happen is that the MachineFunction has the FailedISel property.
//===----------------------------------------------------------------------===//
#include "llvm/ADT/Statistic.h"
OpenPOWER on IntegriCloud