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

Name

Description

EmitFallbackDiag

Emit a DiagnosticInfoISelFallback when resetting.

AbortOnFailedISel

Abort compilation instead of resetting the function.

Created with MrDocs