]> granicus.if.org Git - llvm/commitdiff
[ResetMachineFunction] Populate the comments in the header of the file.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 23 Sep 2016 18:38:15 +0000 (18:38 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 23 Sep 2016 18:38:15 +0000 (18:38 +0000)
NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282276 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ResetMachineFunctionPass.cpp

index 554760ff891c2429c47f565c2b4786558ec8db2d..f604e431289d379dff46e43144d1e6fe682bc41b 100644 (file)
@@ -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"