LLVM  8.0.1
Macros
SIDebuggerInsertNops.cpp File Reference

Inserts one nop instruction for each high level source statement for debugger usage. More...

#include "AMDGPUSubtarget.h"
#include "SIInstrInfo.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
Include dependency graph for SIDebuggerInsertNops.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-debugger-insert-nops"
 
#define PASS_NAME   "SI Debugger Insert Nops"
 

Detailed Description

Inserts one nop instruction for each high level source statement for debugger usage.

Tools, such as a debugger, need to pause execution based on user input (i.e. breakpoint). In order to do this, one nop instruction is inserted before the first isa instruction of each high level source statement. Further, the debugger may replace nop instructions with trap instructions based on user input.

Definition in file SIDebuggerInsertNops.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "si-debugger-insert-nops"

Definition at line 32 of file SIDebuggerInsertNops.cpp.

◆ PASS_NAME

#define PASS_NAME   "SI Debugger Insert Nops"

Definition at line 33 of file SIDebuggerInsertNops.cpp.