MLIR  19.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
mlir::tracing::FileLineColLocBreakpoint Class Reference

This breakpoing intends to match a FileLineColLocation, that is a tuple of file name, line number, and column number. More...

#include "mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h"

+ Inheritance diagram for mlir::tracing::FileLineColLocBreakpoint:

Public Member Functions

 FileLineColLocBreakpoint (StringRef file, int64_t line, int64_t col)
 
void print (raw_ostream &os) const override
 
- Public Member Functions inherited from mlir::tracing::Breakpoint
virtual ~Breakpoint ()=default
 
TypeID getTypeID () const
 TypeID for the subclass, used for casting purpose. More...
 
bool isEnabled () const
 
void enable ()
 
void disable ()
 

Static Public Member Functions

static FailureOr< std::tuple< StringRef, int64_t, int64_t > > parseFromString (StringRef str, llvm::function_ref< void(Twine)> diag=[](Twine) {})
 Parse a string representation in the form of "<file>:<line>:<col>". More...
 
- Static Public Member Functions inherited from mlir::tracing::BreakpointBase< FileLineColLocBreakpoint >
static bool classof (const Breakpoint *breakpoint)
 Support isa/dyn_cast functionality for the derived pass class. More...
 

Friends

class FileLineColLocBreakpointManager
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::tracing::BreakpointBase< FileLineColLocBreakpoint >
 BreakpointBase ()
 
- Protected Member Functions inherited from mlir::tracing::Breakpoint
 Breakpoint (TypeID typeID)
 

Detailed Description

This breakpoing intends to match a FileLineColLocation, that is a tuple of file name, line number, and column number.

Using -1 for the column and the line number will match any column and line number respectively.

Definition at line 27 of file FileLineColLocBreakpointManager.h.

Constructor & Destructor Documentation

◆ FileLineColLocBreakpoint()

mlir::tracing::FileLineColLocBreakpoint::FileLineColLocBreakpoint ( StringRef  file,
int64_t  line,
int64_t  col 
)
inline

Definition at line 30 of file FileLineColLocBreakpointManager.h.

Member Function Documentation

◆ parseFromString()

FailureOr< std::tuple< StringRef, int64_t, int64_t > > FileLineColLocBreakpoint::parseFromString ( StringRef  str,
llvm::function_ref< void(Twine)>  diag = [](Twine) {} 
)
static

Parse a string representation in the form of "<file>:<line>:<col>".

Return a tuple with these three elements, the first one is a StringRef pointing into the original string.

Definition at line 17 of file FileLineColLocBreakpointManager.cpp.

References diag(), and mlir::failure().

◆ print()

void mlir::tracing::FileLineColLocBreakpoint::print ( raw_ostream &  os) const
inlineoverridevirtual

Implements mlir::tracing::Breakpoint.

Definition at line 33 of file FileLineColLocBreakpointManager.h.

Friends And Related Function Documentation

◆ FileLineColLocBreakpointManager

Definition at line 53 of file FileLineColLocBreakpointManager.h.


The documentation for this class was generated from the following files: