MLIR
20.0.0git
|
#include "IRModule.h"
#include "Globals.h"
#include "PybindUtils.h"
#include "mlir-c/Bindings/Python/Interop.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/PybindAdaptors.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include <optional>
#include <utility>
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> | |
py::object | classmethod (Func f, Args... args) |
Helper for creating an @classmethod. More... | |
static py::object | createCustomDialectWrapper (const std::string &dialectNamespace, py::object dialectDescriptor) |
static MlirStringRef | toMlirStringRef (const std::string &s) |
static MlirBlock | createBlock (const py::sequence &pyArgTypes, const std::optional< py::sequence > &pyArgLocs) |
Create a block, using the current location context if no locations are specified. More... | |
static void | maybeInsertOperation (PyOperationRef &op, const py::object &maybeIp) |
static void | populateResultTypes (StringRef name, py::list resultTypeList, const py::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 [] |
py::object classmethod | ( | Func | f, |
Args... | args | ||
) |
Helper for creating an @classmethod.
Definition at line 187 of file IRCore.cpp.
|
static |
Create a block, using the current location context if no locations are specified.
Definition at line 211 of file IRCore.cpp.
References mlirBlockCreate().
Referenced by mlir::OneToNPatternRewriter::applySignatureConversion(), and mlirRewriterBaseCreateBlockBefore().
|
static |
Definition at line 193 of file IRCore.cpp.
References mlir::get().
|
static |
Definition at line 1399 of file IRCore.cpp.
Referenced by mlir::python::PyOperation::clone().
|
static |
Definition at line 1570 of file IRCore.cpp.
References mlir::detail::enumerate().
Referenced by mlir::python::PyOpView::buildGeneric().
|
static |
Definition at line 205 of file IRCore.cpp.
References mlirStringRefCreate().
Referenced by mlir::python::PyNamedAttribute::PyNamedAttribute(), mlir::python::PySymbolTable::replaceAllSymbolUses(), mlir::python::PySymbolTable::setSymbolName(), and mlir::python::PySymbolTable::setVisibility().
|
static |
Definition at line 157 of file IRCore.cpp.
|
static |
Definition at line 48 of file IRCore.cpp.
|
static |
Definition at line 51 of file IRCore.cpp.
|
static |
Definition at line 54 of file IRCore.cpp.
|
static |
Definition at line 57 of file IRCore.cpp.
|
static |
Definition at line 40 of file IRCore.cpp.
|
static |
Definition at line 154 of file IRCore.cpp.
|
static |
Definition at line 172 of file IRCore.cpp.
|
static |
Definition at line 60 of file IRCore.cpp.
|
static |
Definition at line 68 of file IRCore.cpp.
|
static |
Definition at line 123 of file IRCore.cpp.
|
static |
Definition at line 136 of file IRCore.cpp.
|
static |
Definition at line 87 of file IRCore.cpp.
|
static |
Definition at line 114 of file IRCore.cpp.
|
static |
Definition at line 146 of file IRCore.cpp.
|
static |
Definition at line 164 of file IRCore.cpp.
|
static |
Definition at line 176 of file IRCore.cpp.