|
LLVM
4.0.0
|
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/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineRegisterInfo.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "si-insert-waits" |
Enumerations | |
| enum | InstType |
Functions | |
| INITIALIZE_PASS_BEGIN (SIInsertWaits, DEBUG_TYPE,"SI Insert Waits", false, false) INITIALIZE_PASS_END(SIInsertWaits | |
| static bool | readsVCCZ (const MachineInstr &MI) |
| static void | increaseCounters (Counters &Dst, const Counters &Src) |
| helper function for handleOperands More... | |
| static bool | countersNonZero (const Counters &Counter) |
| check whether any of the counters is non-zero More... | |
Variables | |
| DEBUG_TYPE | |
| SI Insert | Waits |
| SI Insert | false |
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.
| #define DEBUG_TYPE "si-insert-waits" |
Definition at line 30 of file SIInsertWaits.cpp.
| enum InstType |
Definition at line 48 of file SIInsertWaits.cpp.
check whether any of the counters is non-zero
Definition at line 443 of file SIInsertWaits.cpp.
References i.
|
static |
| INITIALIZE_PASS_BEGIN | ( | SIInsertWaits | , |
| DEBUG_TYPE | , | ||
| "SI Insert Waits" | , | ||
| false | , | ||
| false | |||
| ) |
|
static |
Definition at line 181 of file SIInsertWaits.cpp.
References llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::isUndef().
| DEBUG_TYPE |
Definition at line 168 of file SIInsertWaits.cpp.
| SI Insert false |
Definition at line 168 of file SIInsertWaits.cpp.
| SI Insert Waits |
Definition at line 168 of file SIInsertWaits.cpp.
1.8.6