LLVM API Documentation

Functions
SIInsertWaits.cpp File Reference

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

#include "AMDGPU.h"
#include "AMDGPUSubtarget.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.

Functions

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

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.


Function Documentation

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

helper function for handleOperands

Definition at line 308 of file SIInsertWaits.cpp.