MLIR 22.0.0git
CodeGenHelpers.h File Reference
#include "mlir/TableGen/Constraint.h"
#include "mlir/TableGen/Dialect.h"
#include "mlir/TableGen/Format.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/TableGen/CodeGenHelpers.h"
#include <utility>

Go to the source code of this file.

Classes

class  mlir::tblgen::DialectNamespaceEmitter
class  mlir::tblgen::StaticVerifierFunctionEmitter
 This class deduplicates shared operation verification code by emitting static functions alongside the op definitions. More...
struct  mlir::tblgen::detail::stringifier< typename >
struct  mlir::tblgen::detail::stringifier< Twine >
struct  mlir::tblgen::detail::stringifier< std::optional< OptionalT > >

Namespaces

namespace  llvm
 The OpAsmOpInterface, see OpAsmInterface.td for more details.
namespace  mlir
 Include the generated interface declarations.
namespace  mlir::tblgen
namespace  mlir::tblgen::detail

Enumerations

enum class  mlir::tblgen::ErrorStreamType { mlir::tblgen::InString , mlir::tblgen::InsideOpError }
 This class represents how an error stream string being constructed will be consumed. More...

Functions

template<typename... Parameters>
std::string mlir::tblgen::strfmt (const char *fmt, Parameters &&...parameters)
std::string mlir::tblgen::escapeString (StringRef value)
 Escape a string using C++ encoding. E.g. foo"bar -> foo\x22bar.
template<typename T>
std::string mlir::tblgen::stringify (T &&t)
 Generically convert a value to a std::string.
std::string mlir::tblgen::buildErrorStreamingString (StringRef message, const FmtContext &ctx, ErrorStreamType errorStreamType=ErrorStreamType::InString)
 Helper to generate a C++ streaming error message from a given message.