LLVM  3.7.0
Enumerations | Functions
SIInsertWaits.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 "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
Include dependency graph for SIInsertWaits.cpp:

Go to the source code of this file.

Enumerations

enum  InstType
 

Functions

static void increaseCounters (Counters &Dst, const Counters &Src)
 helper function for handleOperands More...
 

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 SIInsertWaits.cpp.

Enumeration Type Documentation

enum InstType

Definition at line 44 of file SIInsertWaits.cpp.

Function Documentation

static void increaseCounters ( Counters &  Dst,
const Counters &  Src 
)
static

helper function for handleOperands

Definition at line 377 of file SIInsertWaits.cpp.