llvm::createResetMachineFunctionPass

Create a pass that resets MachineFunctions that failed ISel.

Synopsis

Declared in <llvm/CodeGen/Passes.h>

MachineFunctionPass*
createResetMachineFunctionPass(
    bool EmitFallbackDiag,
    bool AbortOnFailedISel);

Description

This pass resets a MachineFunction when it has the FailedISel property as if it was just created. If EmitFallbackDiag is true, the pass will emit a DiagnosticInfoISelFallback for every MachineFunction it resets. If AbortOnFailedISel is true, abort compilation instead of resetting.

Return Value

The newly created MachineFunctionPass.

Parameters

NameDescription
EmitFallbackDiagEmit a DiagnosticInfoISelFallback when resetting.
AbortOnFailedISelAbort compilation instead of resetting the function.