MLIR  20.0.0git
Macros | Functions
Storage.cpp File Reference
#include "mlir/ExecutionEngine/SparseTensor/Storage.h"

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,
 
)
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,
 
)
Value:
void SparseTensorStorageBase::getCoordinates(std::vector<C> **, uint64_t) { \
FATAL_PIV("getCoordinates" #CNAME); \
}
SmallVector< int64_t, 4 > getCoordinates(ArrayRef< int64_t > basis, unsigned linearIndex)

Definition at line 64 of file Storage.cpp.

◆ IMPL_GETCOORDINATESBUFFER

#define IMPL_GETCOORDINATESBUFFER (   CNAME,
 
)
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,
 
)
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,
 
)
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,
 
)
Value:
void SparseTensorStorageBase::lexInsert(const uint64_t *, V) { \
FATAL_PIV("lexInsert" #VNAME); \
}

Definition at line 86 of file Storage.cpp.

Function Documentation

◆ isAllDense()

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

Definition at line 20 of file Storage.cpp.

References mlir::sparse_tensor::isDenseLT().