MLIR
20.0.0git
|
#include "mlir/Debug/DebuggerExecutionContextHook.h"
#include "mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h"
#include "mlir/Debug/BreakpointManagers/TagBreakpointManager.h"
Go to the source code of this file.
Functions | |
static DebuggerState & | getGlobalDebuggerState () |
void | mlirDebuggerSetControl (int controlOption) |
This is used by the debugger to control what to do after a breakpoint is hit. More... | |
void | mlirDebuggerPrintContext () |
Print the available context for the current Action. More... | |
void | mlirDebuggerPrintActionBacktrace (bool withContext) |
Print the current action backtrace. More... | |
void | mlirDebuggerCursorPrint (bool withRegion) |
Print the current IR unit cursor. More... | |
void | mlirDebuggerCursorSelectIRUnitFromContext (int index) |
Select the IR unit from the current context by ID. More... | |
void | mlirDebuggerCursorSelectParentIRUnit () |
Select the parent IR unit of the provided IR unit, or print an error if the IR unit has no parent. More... | |
void | mlirDebuggerCursorSelectChildIRUnit (int index) |
Select the child IR unit at the provided index, print an error if the index is out of bound. More... | |
void | mlirDebuggerCursorSelectPreviousIRUnit () |
Return the next IR unit logically in the IR. More... | |
void | mlirDebuggerCursorSelectNextIRUnit () |
Return the previous IR unit logically in the IR. More... | |
void | mlirDebuggerEnableBreakpoint (BreakpointHandle breakpoint) |
Enable the provided breakpoint. More... | |
void | mlirDebuggerDisableBreakpoint (BreakpointHandle breakpoint) |
Disable the provided breakpoint. More... | |
BreakpointHandle | mlirDebuggerAddTagBreakpoint (const char *tag) |
Add a breakpoint matching exactly the provided tag. More... | |
void | mlirDebuggerAddRewritePatternBreakpoint (const char *patternNameInfo) |
Add a breakpoint matching a pattern by name. More... | |
void | mlirDebuggerAddFileLineColLocBreakpoint (const char *file, int line, int col) |
Add a breakpoint matching a file, line and column. More... | |
LLVM_ATTRIBUTE_NOINLINE void | mlirDebuggerBreakpointHook () |
static void | preventLinkerDeadCodeElim () |
static tracing::ExecutionContext::Control | debuggerCallBackFunction (const tracing::ActionActiveStack *actionStack) |
|
static |
Definition at line 331 of file DebuggerExecutionContextHook.cpp.
References preventLinkerDeadCodeElim().
Referenced by mlir::setupDebuggerExecutionContextHook().
|
static |
Definition at line 44 of file DebuggerExecutionContextHook.cpp.
Referenced by mlirDebuggerAddFileLineColLocBreakpoint(), and mlirDebuggerSetControl().
void mlirDebuggerAddFileLineColLocBreakpoint | ( | const char * | file, |
int | line, | ||
int | col | ||
) |
Add a breakpoint matching a file, line and column.
Definition at line 294 of file DebuggerExecutionContextHook.cpp.
References getGlobalDebuggerState().
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerAddRewritePatternBreakpoint | ( | const char * | patternNameInfo | ) |
Add a breakpoint matching a pattern by name.
Definition at line 292 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
BreakpointHandle mlirDebuggerAddTagBreakpoint | ( | const char * | tag | ) |
Add a breakpoint matching exactly the provided tag.
Definition at line 283 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
LLVM_ATTRIBUTE_NOINLINE void mlirDebuggerBreakpointHook | ( | ) |
Definition at line 302 of file DebuggerExecutionContextHook.cpp.
void mlirDebuggerCursorPrint | ( | bool | withRegion | ) |
Print the current IR unit cursor.
Definition at line 86 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerCursorSelectChildIRUnit | ( | int | index | ) |
Select the child IR unit at the provided index, print an error if the index is out of bound.
For example if the irunit is an operation, the children IR units will be the operation's regions.
Definition at line 138 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerCursorSelectIRUnitFromContext | ( | int | index | ) |
Select the IR unit from the current context by ID.
Definition at line 99 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerCursorSelectNextIRUnit | ( | ) |
Return the previous IR unit logically in the IR.
For example if the irunit is a Region, the previous IR unit will be the previous region in the parent operation or nullptr if there is no previous region.
Definition at line 230 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerCursorSelectParentIRUnit | ( | ) |
Select the parent IR unit of the provided IR unit, or print an error if the IR unit has no parent.
Definition at line 117 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerCursorSelectPreviousIRUnit | ( | ) |
Return the next IR unit logically in the IR.
For example if the irunit is a Region the next IR unit will be the next region in the parent operation or nullptr if there is no next region.
Definition at line 188 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerDisableBreakpoint | ( | BreakpointHandle | breakpoint | ) |
Disable the provided breakpoint.
Definition at line 279 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerEnableBreakpoint | ( | BreakpointHandle | breakpoint | ) |
Enable the provided breakpoint.
Definition at line 275 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerPrintActionBacktrace | ( | bool | withContext | ) |
Print the current action backtrace.
Definition at line 73 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerPrintContext | ( | ) |
Print the available context for the current Action.
Definition at line 55 of file DebuggerExecutionContextHook.cpp.
Referenced by preventLinkerDeadCodeElim().
void mlirDebuggerSetControl | ( | int | controlOption | ) |
This is used by the debugger to control what to do after a breakpoint is hit.
See tracing::ExecutionContext::Control for more information.
Definition at line 50 of file DebuggerExecutionContextHook.cpp.
References getGlobalDebuggerState().
Referenced by preventLinkerDeadCodeElim().
|
static |
Definition at line 307 of file DebuggerExecutionContextHook.cpp.
References mlirDebuggerAddFileLineColLocBreakpoint(), mlirDebuggerAddRewritePatternBreakpoint(), mlirDebuggerAddTagBreakpoint(), mlirDebuggerCursorPrint(), mlirDebuggerCursorSelectChildIRUnit(), mlirDebuggerCursorSelectIRUnitFromContext(), mlirDebuggerCursorSelectNextIRUnit(), mlirDebuggerCursorSelectParentIRUnit(), mlirDebuggerCursorSelectPreviousIRUnit(), mlirDebuggerDisableBreakpoint(), mlirDebuggerEnableBreakpoint(), mlirDebuggerPrintActionBacktrace(), mlirDebuggerPrintContext(), and mlirDebuggerSetControl().
Referenced by debuggerCallBackFunction().