From f8e3a5168e1569972a613d785434aaf6d67bb411 Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Fri, 23 Sep 2016 18:38:15 +0000 Subject: [PATCH] [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 --- lib/CodeGen/ResetMachineFunctionPass.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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" -- 2.50.1