MLIR 23.0.0git
NanobindUtils.h File Reference
#include "mlir-c/Support.h"
#include "mlir/Bindings/Python/Nanobind.h"
#include <fstream>
#include <sstream>
#include <string>
#include <string_view>
#include <type_traits>
#include <typeinfo>
#include <variant>

Go to the source code of this file.

Classes

struct  std::iterator_traits< nanobind::detail::fast_iterator >
struct  mlir::python::MlirTypeIDHash
struct  mlir::python::MlirTypeIDEqual
class  mlir::python::Defaulting< DerivedTy, T >
 CRTP template for special wrapper types that are allowed to be passed in as 'None' function arguments and can be resolved by some global mechanic if so. More...
struct  nanobind::detail::MlirDefaultingCaster< DefaultingTy >
struct  mlir::PyPrintAccumulator
 Accumulates into a python string from a method that accepts an MlirStringCallback. More...
struct  mlir::RAIIMlirLlvmRawFdOStream
 RAII wrapper for MlirLlvmRawFdOStream that ensures destruction on scope exit. More...
class  mlir::PyFileAccumulator
 Accumulates into a file, either writing text (default) or binary. More...
struct  mlir::PySinglePartStringAccumulator
 Accumulates into a python string from a method that is expected to make one (no more, no less) call to the callback (asserts internally on violation). More...
class  mlir::Sliceable< Derived, ElementTy >
 A CRTP base class for pseudo-containers willing to support Python-type slicing access on top of indexed access. More...
struct  mlir::Sliceable< Derived, ElementTy >::has_maybe_downcast< T, typename >
 Trait to check if T provides a maybeDownCast method. More...
struct  mlir::Sliceable< Derived, ElementTy >::has_maybe_downcast< T, std::void_t< decltype(&T::maybeDownCast)> >

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::python
namespace  nanobind
namespace  nanobind::detail

Functions

template<typename... Ts>
std::string nanobind::detail::join (const Ts &...args)
 Helper function to concatenate arguments into a std::string.