MLIR  19.0.0git
Namespaces | Classes | Typedefs | Enumerations | Functions
mlir::query Namespace Reference

Namespaces

 matcher
 

Classes

struct  Query
 
struct  InvalidQuery
 
struct  NoOpQuery
 
struct  HelpQuery
 
struct  QuitQuery
 
struct  MatchQuery
 
class  QuerySession
 
class  QueryParser
 

Typedefs

typedef llvm::IntrusiveRefCntPtr< QueryQueryRef
 

Enumerations

enum class  QueryKind {
  Invalid , NoOp , Help , Match ,
  Quit
}
 

Functions

QueryRef parse (llvm::StringRef line, const QuerySession &qs)
 
std::vector< llvm::LineEditor::Completion > complete (llvm::StringRef line, size_t pos, const QuerySession &qs)
 
static void printMatch (llvm::raw_ostream &os, QuerySession &qs, Operation *op, const std::string &binding)
 

Typedef Documentation

◆ QueryRef

typedef llvm::IntrusiveRefCntPtr<Query> mlir::query::QueryRef

Definition at line 37 of file Query.h.

Enumeration Type Documentation

◆ QueryKind

Enumerator
Invalid 
NoOp 
Help 
Match 
Quit 

Definition at line 21 of file Query.h.

Function Documentation

◆ complete()

std::vector< llvm::LineEditor::Completion > mlir::query::complete ( llvm::StringRef  line,
size_t  pos,
const QuerySession qs 
)

Definition at line 24 of file Query.cpp.

References mlir::query::QueryParser::complete().

Referenced by mlir::mlirQueryMain().

◆ parse()

QueryRef mlir::query::parse ( llvm::StringRef  line,
const QuerySession qs 
)

◆ printMatch()

static void mlir::query::printMatch ( llvm::raw_ostream &  os,
QuerySession qs,
Operation op,
const std::string &  binding 
)
static

Definition at line 28 of file Query.cpp.