From: Quentin Colombet Date: Fri, 23 Sep 2016 18:38:15 +0000 (+0000) Subject: [ResetMachineFunction] Populate the comments in the header of the file. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8e3a5168e1569972a613d785434aaf6d67bb411;p=llvm [ResetMachineFunction] Populate the comments in the header of the file. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282276 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/ResetMachineFunctionPass.cpp b/lib/CodeGen/ResetMachineFunctionPass.cpp index 554760ff891..f604e431289 100644 --- a/lib/CodeGen/ResetMachineFunctionPass.cpp +++ b/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"