LLVM: lib/Analysis/TensorSpec.cpp File Reference (original) (raw)

Go to the source code of this file.

Namespaces
namespace llvm
This is an optimization pass for GlobalISel generic memory operations.
Functions
StringRef llvm::toString (TensorType TT)
LLVM_ABI std::optional< TensorSpec > llvm::getTensorSpecFromJSON (LLVMContext &Ctx, const json::Value &Value)
Construct a TensorSpec from a JSON dictionary of the form: { "name": , "port": , "type": <string.
LLVM_ABI std::string llvm::tensorValueToString (const char *Buffer, const TensorSpec &Spec)
For debugging.

_IMR_DBG_PRINTER

#define _IMR_DBG_PRINTER ( T,
N )

Value:

case TensorType::N: { \

const T *TypedBuff = reinterpret_cast<const T *>(Buffer); \

llvm::map_range(R, [](T V) { return std::to_string(V); }), ","); \

}

iterator_range< T > make_range(T x, T y)

Convenience function for iterating over sub-ranges.

auto map_range(ContainerTy &&C, FuncTy F)

std::string join(IteratorT Begin, IteratorT End, StringRef Separator)

Joins the strings in the range [Begin, End), adding Separator between the elements.

Referenced by llvm::tensorValueToString().

PARSE_TYPE

#define PARSE_TYPE ( T,
E )

Value:

static TensorSpec createSpec(const std::string &Name, const std::vector< int64_t > &Shape, int Port=0)

Referenced by llvm::getTensorSpecFromJSON().

TFUTILS_GETDATATYPE_IMPL

#define TFUTILS_GETDATATYPE_IMPL ( T,
E )

TFUTILS_GETNAME_IMPL

#define TFUTILS_GETNAME_IMPL ( T,
_ )