#include <cstddef>
#include <cstdint>
#include <pybind11/cast.h>
#include <pybind11/detail/common.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <string>
#include <utility>
#include <vector>
#include "IRModule.h"
#include "PybindUtils.h"
#include "mlir-c/AffineExpr.h"
#include "mlir-c/AffineMap.h"
#include "mlir-c/Bindings/Python/Interop.h"
#include "mlir-c/IntegerSet.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
Go to the source code of this file.
|
template<typename PyType , typename CType > |
static void | pyListToVector (const py::list &list, llvm::SmallVectorImpl< CType > &result, StringRef action) |
| Attempts to populate result with the content of list casted to the appropriate type (Python and C types are provided as template arguments). More...
|
|
template<typename PermutationTy > |
static bool | isPermutation (std::vector< PermutationTy > permutation) |
|
◆ isPermutation()
template<typename PermutationTy >
static bool isPermutation |
( |
std::vector< PermutationTy > |
permutation | ) |
|
|
static |
◆ pyListToVector()
template<typename PyType , typename CType >
static void pyListToVector |
( |
const py::list & |
list, |
|
|
llvm::SmallVectorImpl< CType > & |
result, |
|
|
StringRef |
action |
|
) |
| |
|
static |
Attempts to populate result
with the content of list
casted to the appropriate type (Python and C types are provided as template arguments).
Throws errors in case of failure, using "action" to describe what the caller was attempting to do.
Definition at line 49 of file IRAffine.cpp.
◆ kDumpDocstring
const char kDumpDocstring[] |
|
static |
Initial value:=
R"(Dumps a debug representation of the object to stderr.)"
Definition at line 41 of file IRAffine.cpp.