LLVM  5.0.0
Macros | Enumerations | Functions | Variables
SIInsertWaitcnts.cpp File Reference

Insert wait instructions for memory reads and writes. More...

#include "AMDGPU.h"
#include "AMDGPUSubtarget.h"
#include "SIDefines.h"
#include "SIInstrInfo.h"
#include "SIMachineFunctionInfo.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
Include dependency graph for SIInsertWaitcnts.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-insert-waitcnts"
 
#define CNT_MASK(t)   (1u << (t))
 
#define ForAllWaitEventType(w)
 

Enumerations

enum  InstCounterType
 
enum  WaitEventType
 
enum  RegisterMapping
 

Functions

 INITIALIZE_PASS_BEGIN (SIInsertWaitcnts, DEBUG_TYPE,"SI Insert Waitcnts", false, false) INITIALIZE_PASS_END(SIInsertWaitcnts
 
static bool readsVCCZ (const MachineInstr &MI)
 

Variables

 DEBUG_TYPE
 
SI Insert Waitcnts
 
SI Insert false
 

Detailed Description

Insert wait instructions for memory reads and writes.

Memory reads and writes are issued asynchronously, so we need to insert S_WAITCNT instructions when we want to access any of their results or overwrite any register that's used asynchronously.

Definition in file SIInsertWaitcnts.cpp.

Macro Definition Documentation

#define CNT_MASK (   t)    (1u << (t))

Definition at line 41 of file SIInsertWaitcnts.cpp.

#define DEBUG_TYPE   "si-insert-waitcnts"

Definition at line 31 of file SIInsertWaitcnts.cpp.

#define ForAllWaitEventType (   w)
Value:
for (enum WaitEventType w = (enum WaitEventType)0; \
(w) < (enum WaitEventType)NUM_WAIT_EVENTS; \
(w) = (enum WaitEventType)((w) + 1))
WaitEventType

Definition at line 90 of file SIInsertWaitcnts.cpp.

Enumeration Type Documentation

Definition at line 43 of file SIInsertWaitcnts.cpp.

Definition at line 82 of file SIInsertWaitcnts.cpp.

Definition at line 62 of file SIInsertWaitcnts.cpp.

Function Documentation

INITIALIZE_PASS_BEGIN ( SIInsertWaitcnts  ,
DEBUG_TYPE  ,
"SI Insert Waitcnts"  ,
false  ,
false   
)
static bool readsVCCZ ( const MachineInstr &  MI)
static

Variable Documentation

DEBUG_TYPE

Definition at line 757 of file SIInsertWaitcnts.cpp.

SI Insert false

Definition at line 757 of file SIInsertWaitcnts.cpp.

SI Insert Waitcnts

Definition at line 757 of file SIInsertWaitcnts.cpp.