LLVM 24.0.0git
X86SpeculativeExecutionSideEffectSuppression.cpp File Reference

This file contains the X86 implementation of the speculative execution side effect suppression mitigation. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "x86-seses"

Functions

 STATISTIC (NumLFENCEsInserted, "Number of lfence instructions inserted")
static bool hasConstantAddressingMode (const MachineInstr &MI)
static bool runX86SpeculativeExecutionSideEffectSuppression (MachineFunction &MF)

Detailed Description

This file contains the X86 implementation of the speculative execution side effect suppression mitigation.

This must be used with the -mlvi-cfi flag in order to mitigate indirect branches and returns.

Definition in file X86SpeculativeExecutionSideEffectSuppression.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "x86-seses"

Function Documentation

◆ hasConstantAddressingMode()

bool hasConstantAddressingMode ( const MachineInstr & MI)
static

◆ runX86SpeculativeExecutionSideEffectSuppression()

◆ STATISTIC()

STATISTIC ( NumLFENCEsInserted ,
"Number of lfence instructions inserted"  )