MLIR  15.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::sparse_tensor::LatPoint Struct Reference

Lattice point. More...

#include "mlir/Dialect/SparseTensor/Utils/Merger.h"

+ Collaboration diagram for mlir::sparse_tensor::LatPoint:

Public Member Functions

 LatPoint (unsigned n, unsigned e, unsigned b)
 
 LatPoint (const BitVector &b, unsigned e)
 

Public Attributes

BitVector bits
 Conjunction of tensor loop indices as bitvector. More...
 
BitVector simple
 Simplified conjunction of tensor loop indices as bitvector. More...
 
unsigned exp
 Index of the tensor expression. More...
 

Detailed Description

Lattice point.

Each lattice point consists of a conjunction of tensor loop indices (encoded in a bitvector) and the index of the corresponding tensor expression.

Definition at line 124 of file Merger.h.

Constructor & Destructor Documentation

◆ LatPoint() [1/2]

mlir::sparse_tensor::LatPoint::LatPoint ( unsigned  n,
unsigned  e,
unsigned  b 
)

Definition at line 99 of file Merger.cpp.

References bits.

Referenced by mlir::sparse_tensor::Merger::addLat().

◆ LatPoint() [2/2]

mlir::sparse_tensor::LatPoint::LatPoint ( const BitVector &  b,
unsigned  e 
)

Definition at line 104 of file Merger.cpp.

Member Data Documentation

◆ bits

BitVector mlir::sparse_tensor::LatPoint::bits

Conjunction of tensor loop indices as bitvector.

This represents all indices involved in the tensor expression

Definition at line 130 of file Merger.h.

Referenced by mlir::sparse_tensor::Merger::dumpLat(), endLoop(), LatPoint(), startLoop(), and startLoopSeq().

◆ exp

unsigned mlir::sparse_tensor::LatPoint::exp

Index of the tensor expression.

Definition at line 138 of file Merger.h.

Referenced by mlir::sparse_tensor::Merger::dumpLat().

◆ simple

BitVector mlir::sparse_tensor::LatPoint::simple

Simplified conjunction of tensor loop indices as bitvector.

This represents a simplified condition under which this tensor expression must execute. Pre-computed during codegen to avoid repeated eval.

Definition at line 135 of file Merger.h.

Referenced by mlir::sparse_tensor::Merger::dumpLat(), mlir::sparse_tensor::Merger::simplifyCond(), startLoop(), and startLoopSeq().


The documentation for this struct was generated from the following files: