[llvm] r282276 - [ResetMachineFunction] Populate the comments in the header of the file.

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 11:38:15 PDT 2016


Author: qcolombet
Date: Fri Sep 23 13:38:15 2016
New Revision: 282276

URL: http://llvm.org/viewvc/llvm-project?rev=282276&view=rev
Log:
[ResetMachineFunction] Populate the comments in the header of the file.

NFC

Modified:
    llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp

Modified: llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp?rev=282276&r1=282275&r2=282276&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp Fri Sep 23 13:38:15 2016
@@ -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"




More information about the llvm-commits mailing list