MLIR  20.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)
 
static OperationextractFunction (std::vector< Operation * > &ops, MLIRContext *context, llvm::StringRef functionName)
 

Typedef Documentation

◆ QueryRef

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

Definition at line 36 of file Query.h.

Enumeration Type Documentation

◆ QueryKind

Enumerator
Invalid 
NoOp 
Help 
Match 
Quit 

Definition at line 20 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 25 of file Query.cpp.

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

Referenced by mlir::mlirQueryMain().

◆ extractFunction()

static Operation* mlir::query::extractFunction ( std::vector< Operation * > &  ops,
MLIRContext context,
llvm::StringRef  functionName 
)
static

Definition at line 40 of file Query.cpp.

References mlir::MLIRContext::loadDialect().

Referenced by mlir::query::MatchQuery::run().

◆ 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 29 of file Query.cpp.