|
LLVM
5.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/ADT/PostOrderIterator.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-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 |
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.
| #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 | ) |
Definition at line 90 of file SIInsertWaitcnts.cpp.
| enum InstCounterType |
Definition at line 43 of file SIInsertWaitcnts.cpp.
| enum RegisterMapping |
Definition at line 82 of file SIInsertWaitcnts.cpp.
| enum WaitEventType |
Definition at line 62 of file SIInsertWaitcnts.cpp.
| INITIALIZE_PASS_BEGIN | ( | SIInsertWaitcnts | , |
| DEBUG_TYPE | , | ||
| "SI Insert Waitcnts" | , | ||
| false | , | ||
| false | |||
| ) |
|
static |
Definition at line 768 of file SIInsertWaitcnts.cpp.
References llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::isUndef().
| 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.
1.8.6