MLIR  20.0.0git
Functions | Variables
IRAffine.cpp File Reference
#include <cstddef>
#include <cstdint>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include "IRModule.h"
#include "NanobindUtils.h"
#include "mlir-c/AffineExpr.h"
#include "mlir-c/AffineMap.h"
#include "mlir-c/IntegerSet.h"
#include "mlir/Bindings/Python/Nanobind.h"
#include "mlir-c/Bindings/Python/Interop.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 nb::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 67 of file IRAffine.cpp.

◆ pyListToVector()

template<typename PyType , typename CType >
static void pyListToVector ( const nb::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 45 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 37 of file IRAffine.cpp.