MLIR 22.0.0git
Storage.cpp File Reference

Go to the source code of this file.

Macros

#define FATAL_PIV(NAME)
#define IMPL_GETPOSITIONS(PNAME, P)
#define IMPL_GETCOORDINATES(CNAME, C)
#define IMPL_GETCOORDINATESBUFFER(CNAME, C)
#define IMPL_GETVALUES(VNAME, V)
#define IMPL_LEXINSERT(VNAME, V)
#define IMPL_EXPINSERT(VNAME, V)

Functions

static bool isAllDense (uint64_t lvlRank, const LevelType *lvlTypes)

Macro Definition Documentation

◆ FATAL_PIV

#define FATAL_PIV ( NAME)
Value:
fprintf(stderr, "<P,I,V> type mismatch for: " #NAME); \
exit(1);

Definition at line 53 of file Storage.cpp.

◆ IMPL_EXPINSERT

#define IMPL_EXPINSERT ( VNAME,
V )
Value:
void SparseTensorStorageBase::expInsert(uint64_t *, V *, bool *, uint64_t *, \
uint64_t, uint64_t) { \
FATAL_PIV("expInsert" #VNAME); \
}

Definition at line 93 of file Storage.cpp.

◆ IMPL_GETCOORDINATES

#define IMPL_GETCOORDINATES ( CNAME,
C )
Value:
void SparseTensorStorageBase::getCoordinates(std::vector<C> **, uint64_t) { \
FATAL_PIV("getCoordinates" #CNAME); \
}

Definition at line 64 of file Storage.cpp.

◆ IMPL_GETCOORDINATESBUFFER

#define IMPL_GETCOORDINATESBUFFER ( CNAME,
C )
Value:
void SparseTensorStorageBase::getCoordinatesBuffer(std::vector<C> **, \
uint64_t) { \
FATAL_PIV("getCoordinatesBuffer" #CNAME); \
}

Definition at line 71 of file Storage.cpp.

◆ IMPL_GETPOSITIONS

#define IMPL_GETPOSITIONS ( PNAME,
P )
Value:
void SparseTensorStorageBase::getPositions(std::vector<P> **, uint64_t) { \
FATAL_PIV("getPositions" #PNAME); \
}

Definition at line 57 of file Storage.cpp.

◆ IMPL_GETVALUES

#define IMPL_GETVALUES ( VNAME,
V )
Value:
void SparseTensorStorageBase::getValues(std::vector<V> **) { \
FATAL_PIV("getValues" #VNAME); \
}

Definition at line 79 of file Storage.cpp.

◆ IMPL_LEXINSERT

#define IMPL_LEXINSERT ( VNAME,
V )
Value:
void SparseTensorStorageBase::lexInsert(const uint64_t *, V) { \
FATAL_PIV("lexInsert" #VNAME); \
}

Definition at line 86 of file Storage.cpp.

Function Documentation

◆ isAllDense()

bool isAllDense ( uint64_t lvlRank,
const LevelType * lvlTypes )
inlinestatic