LLVM  8.0.1
Macros | Functions
AArch64A53Fix835769.cpp File Reference
#include "AArch64.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for AArch64A53Fix835769.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "aarch64-fix-cortex-a53-835769"
 

Functions

 STATISTIC (NumNopsAdded, "Number of Nops added to work around erratum 835769")
 
static bool isFirstInstructionInSequence (MachineInstr *MI)
 
static bool isSecondInstructionInSequence (MachineInstr *MI)
 
 INITIALIZE_PASS (AArch64A53Fix835769, "aarch64-fix-cortex-a53-835769-pass", "AArch64 fix for A53 erratum 835769", false, false) bool AArch64A53Fix835769
 
static MachineBasicBlockgetBBFallenThrough (MachineBasicBlock *MBB, const TargetInstrInfo *TII)
 
static MachineInstrgetLastNonPseudo (MachineBasicBlock &MBB, const TargetInstrInfo *TII)
 
static void insertNopBeforeInstruction (MachineBasicBlock &MBB, MachineInstr *MI, const TargetInstrInfo *TII)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "aarch64-fix-cortex-a53-835769"

Definition at line 31 of file AArch64A53Fix835769.cpp.

Function Documentation

◆ getBBFallenThrough()

static MachineBasicBlock* getBBFallenThrough ( MachineBasicBlock MBB,
const TargetInstrInfo TII 
)
static

◆ getLastNonPseudo()

static MachineInstr* getLastNonPseudo ( MachineBasicBlock MBB,
const TargetInstrInfo TII 
)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( AArch64A53Fix835769  ,
"aarch64-fix-cortex-a53-835769-pass ,
"AArch64 fix for A53 erratum 835769"  ,
false  ,
false   
)

Definition at line 112 of file AArch64A53Fix835769.cpp.

References llvm::dbgs(), LLVM_DEBUG, runOnBasicBlock(), and TII.

◆ insertNopBeforeInstruction()

static void insertNopBeforeInstruction ( MachineBasicBlock MBB,
MachineInstr MI,
const TargetInstrInfo TII 
)
static

◆ isFirstInstructionInSequence()

static bool isFirstInstructionInSequence ( MachineInstr MI)
static

◆ isSecondInstructionInSequence()

static bool isSecondInstructionInSequence ( MachineInstr MI)
static

◆ STATISTIC()

STATISTIC ( NumNopsAdded  ,
"Number of Nops added to work around erratum 835769"   
)