MLIR
15.0.0git

Tensor expression. Represents a MLIR expression in tensor index notation. More...
#include "mlir/Dialect/SparseTensor/Utils/Merger.h"
Public Member Functions  
TensorExp (Kind k, unsigned x, unsigned y, Value v, Operation *operation)  
Public Attributes  
Kind  kind 
Tensor expression kind. More...  
union {  
unsigned tensor  
Expressions representing tensors simply have a tensor number. More...  
unsigned index  
Indices hold the index number. More...  
Children children  
Tensor operations hold the indices of their children. More...  
};  
Value  val 
Direct link to IR for an invariant or the destination value (to infer destination type) of a cast operation During code generation, this field may be used to cache "hoisted" loop invariant tensor loads. More...  
Operation *  op 
Code blocks used by semirings. More...  
Tensor expression. Represents a MLIR expression in tensor index notation.
mlir::sparse_tensor::TensorExp::TensorExp  (  Kind  k, 
unsigned  x,  
unsigned  y,  
Value  v,  
Operation *  operation  
) 
Definition at line 25 of file Merger.cpp.
union { ... } 
Children mlir::sparse_tensor::TensorExp::children 
unsigned mlir::sparse_tensor::TensorExp::index 
Indices hold the index number.
Definition at line 103 of file Merger.h.
Referenced by genIndexValue().
Kind mlir::sparse_tensor::TensorExp::kind 
Tensor expression kind.
Definition at line 96 of file Merger.h.
Referenced by genExp(), and genInvariants().
Operation* mlir::sparse_tensor::TensorExp::op 
unsigned mlir::sparse_tensor::TensorExp::tensor 
Expressions representing tensors simply have a tensor number.
Definition at line 100 of file Merger.h.
Referenced by genInvariants(), and genTensorLoad().
Value mlir::sparse_tensor::TensorExp::val 
Direct link to IR for an invariant or the destination value (to infer destination type) of a cast operation During code generation, this field may be used to cache "hoisted" loop invariant tensor loads.
Definition at line 112 of file Merger.h.
Referenced by genInvariantValue(), genTensorLoad(), and updateReduc().