MLIR
20.0.0git
|
#include <optional>
#include <utility>
#include "Globals.h"
#include "IRModule.h"
#include "NanobindUtils.h"
#include "mlir-c/BuiltinAttributes.h"
#include "mlir-c/Debug.h"
#include "mlir-c/Diagnostics.h"
#include "mlir-c/IR.h"
#include "mlir-c/Support.h"
#include "mlir/Bindings/Python/Nanobind.h"
#include "mlir/Bindings/Python/NanobindAdaptors.h"
#include "mlir-c/Bindings/Python/Interop.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
Go to the source code of this file.
Classes | |
struct | PyGlobalDebugFlag |
Wrapper for the global LLVM debugging flag. More... | |
struct | PyAttrBuilderMap |
Functions | |
template<class Func , typename... Args> | |
nb::object | classmethod (Func f, Args... args) |
Helper for creating an @classmethod. More... | |
static nb::object | createCustomDialectWrapper (const std::string &dialectNamespace, nb::object dialectDescriptor) |
static MlirStringRef | toMlirStringRef (const std::string &s) |
static MlirStringRef | toMlirStringRef (const nb::bytes &s) |
static MlirBlock | createBlock (const nb::sequence &pyArgTypes, const std::optional< nb::sequence > &pyArgLocs) |
Create a block, using the current location context if no locations are specified. More... | |
static void | maybeInsertOperation (PyOperationRef &op, const nb::object &maybeIp) |
static void | populateResultTypes (StringRef name, nb::list resultTypeList, const nb::object &resultSegmentSpecObj, std::vector< int32_t > &resultSegmentLengths, std::vector< PyType * > &resultTypes) |
Variables | |
static const char | kContextParseTypeDocstring [] |
static const char | kContextGetCallSiteLocationDocstring [] |
static const char | kContextGetFileLocationDocstring [] |
static const char | kContextGetFusedLocationDocstring [] |
static const char | kContextGetNameLocationDocString [] |
static const char | kModuleParseDocstring [] |
static const char | kOperationCreateDocstring [] |
static const char | kOperationPrintDocstring [] |
static const char | kOperationPrintStateDocstring [] |
static const char | kOperationGetAsmDocstring [] |
static const char | kOperationPrintBytecodeDocstring [] |
static const char | kOperationStrDunderDocstring [] |
static const char | kDumpDocstring [] |
static const char | kAppendBlockDocstring [] |
static const char | kValueDunderStrDocstring [] |
static const char | kGetNameAsOperand [] |
static const char | kValueReplaceAllUsesWithDocstring [] |
static const char | kValueReplaceAllUsesExceptDocstring [] |
nb::object classmethod | ( | Func | f, |
Args... | args | ||
) |
Helper for creating an @classmethod.
Definition at line 192 of file IRCore.cpp.
|
static |
Create a block, using the current location context if no locations are specified.
Definition at line 220 of file IRCore.cpp.
References mlirBlockCreate().
Referenced by mlirRewriterBaseCreateBlockBefore().
|
static |
Definition at line 198 of file IRCore.cpp.
References mlir::get().
|
static |
Definition at line 1406 of file IRCore.cpp.
References mlir::python::PyObjectRef< T >::get(), mlir::python::PyThreadContextEntry::getDefaultInsertionPoint(), and mlir::python::PyInsertionPoint::insert().
Referenced by mlir::python::PyOperation::clone().
|
static |
Definition at line 1577 of file IRCore.cpp.
References mlir::detail::enumerate().
Referenced by mlir::python::PyOpView::buildGeneric().
|
static |
Definition at line 214 of file IRCore.cpp.
References mlirStringRefCreate().
|
static |
Definition at line 210 of file IRCore.cpp.
References mlirStringRefCreate().
Referenced by mlir::python::PyOperation::parse(), mlir::python::PyNamedAttribute::PyNamedAttribute(), mlir::python::PySymbolTable::replaceAllSymbolUses(), mlir::python::PySymbolTable::setSymbolName(), and mlir::python::PySymbolTable::setVisibility().
|
static |
Definition at line 156 of file IRCore.cpp.
|
static |
Definition at line 47 of file IRCore.cpp.
|
static |
Definition at line 50 of file IRCore.cpp.
|
static |
Definition at line 53 of file IRCore.cpp.
|
static |
Definition at line 56 of file IRCore.cpp.
|
static |
Definition at line 39 of file IRCore.cpp.
|
static |
Definition at line 153 of file IRCore.cpp.
|
static |
Definition at line 171 of file IRCore.cpp.
|
static |
Definition at line 59 of file IRCore.cpp.
|
static |
Definition at line 67 of file IRCore.cpp.
|
static |
Definition at line 122 of file IRCore.cpp.
|
static |
Definition at line 135 of file IRCore.cpp.
|
static |
Definition at line 86 of file IRCore.cpp.
|
static |
Definition at line 113 of file IRCore.cpp.
|
static |
Definition at line 145 of file IRCore.cpp.
|
static |
Definition at line 163 of file IRCore.cpp.
|
static |
Definition at line 180 of file IRCore.cpp.
|
static |
Definition at line 175 of file IRCore.cpp.