MLIR  19.0.0git
Functions | Variables
IRAffine.cpp File Reference
#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.

Functions

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)
 

Variables

static const char kDumpDocstring []
 

Function Documentation

◆ isPermutation()

template<typename PermutationTy >
static bool isPermutation ( std::vector< PermutationTy >  permutation)
static

Definition at line 71 of file IRAffine.cpp.

◆ 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.

Variable Documentation

◆ 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.