LLVM 22.0.0git
llvm::X86AvoidTrailingCallPass Class Reference

Return a pass that inserts int3 at the end of the function if it ends with a CALL instruction. More...

#include "Target/X86/X86.h"

Inheritance diagram for llvm::X86AvoidTrailingCallPass:
[legend]

Public Member Functions

 X86AvoidTrailingCallPass ()=default
PreservedAnalyses run (MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
Public Member Functions inherited from llvm::PassInfoMixin< X86AvoidTrailingCallPass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Static Public Member Functions

static bool isRequired ()
Static Public Member Functions inherited from llvm::PassInfoMixin< X86AvoidTrailingCallPass >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

Return a pass that inserts int3 at the end of the function if it ends with a CALL instruction.

The pass does the same for each funclet as well. This ensures that the open interval of function start and end PCs contains all return addresses for the benefit of the Windows x64 unwinder.

Definition at line 108 of file X86.h.

Constructor & Destructor Documentation

◆ X86AvoidTrailingCallPass()

llvm::X86AvoidTrailingCallPass::X86AvoidTrailingCallPass ( )
default

Member Function Documentation

◆ isRequired()

bool llvm::X86AvoidTrailingCallPass::isRequired ( )
inlinestatic

Definition at line 114 of file X86.h.

◆ run()


The documentation for this class was generated from the following files: