LLVM: lib/Target/ARM/Thumb2ITBlockPass.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "thumb2-it"
#define PASS_NAME "Thumb IT blocks insertion pass"
Functions
STATISTIC (NumITs, "Number of IT blocks inserted")
STATISTIC (NumMovedInsts, "Number of predicated instructions moved")
static void TrackDefUses (MachineInstr *MI, RegisterSet &Defs, RegisterSet &Uses, const TargetRegisterInfo *TRI)
TrackDefUses - Tracking what registers are being defined and used by instructions in the IT block.
static void ClearKillFlags (MachineInstr *MI, RegisterSet &Uses)
Clear kill flags for any uses in the given set.
static bool isCopy (MachineInstr *MI)

DEBUG_TYPE

#define DEBUG_TYPE "thumb2-it"

PASS_NAME

#define PASS_NAME "Thumb IT blocks insertion pass"

RegisterSet

ClearKillFlags()

Clear kill flags for any uses in the given set.

This will likely conservatively remove more kill flags than are necessary, but removing them is safer than incorrect kill flags remaining on instructions.

Definition at line 108 of file Thumb2ITBlockPass.cpp.

References MI, and Uses.

isCopy()

STATISTIC() [1/2]

STATISTIC ( NumITs ,
"Number of IT blocks inserted" )

STATISTIC() [2/2]

STATISTIC ( NumMovedInsts ,
"Number of predicated instructions moved" )

TrackDefUses()

TrackDefUses - Tracking what registers are being defined and used by instructions in the IT block.

This also tracks "dependencies", i.e. uses in the IT block that are defined before the IT instruction.

Definition at line 78 of file Thumb2ITBlockPass.cpp.

References const, MI, TrackDefUses(), TRI, and Uses.

Referenced by TrackDefUses().