MLIR  20.0.0git
Functions | Variables
Var.cpp File Reference
#include "Var.h"
#include "DimLvlMap.h"

Go to the source code of this file.

Functions

static LLVM_ATTRIBUTE_UNUSED llvm::SMLoc minSMLoc (AsmParser &parser, llvm::SMLoc sm1, llvm::SMLoc sm2)
 Helper function for assertUsageConsistency to better handle SMLoc mismatches. More...
 
bool isInternalConsistent (VarEnv const &env, VarInfo::ID id, StringRef name)
 
bool isUsageConsistent (VarEnv const &env, VarInfo::ID id, llvm::SMLoc loc, VarKind vk)
 

Variables

static constexpr const VarKind everyVarKind []
 For use in foreach loops. More...
 

Function Documentation

◆ isInternalConsistent()

bool isInternalConsistent ( VarEnv const &  env,
VarInfo::ID  id,
StringRef  name 
)

◆ isUsageConsistent()

bool isUsageConsistent ( VarEnv const &  env,
VarInfo::ID  id,
llvm::SMLoc  loc,
VarKind  vk 
)

◆ minSMLoc()

static LLVM_ATTRIBUTE_UNUSED llvm::SMLoc minSMLoc ( AsmParser parser,
llvm::SMLoc  sm1,
llvm::SMLoc  sm2 
)
static

Helper function for assertUsageConsistency to better handle SMLoc mismatches.

Definition at line 147 of file Var.cpp.

References mlir::AsmParser::getEncodedSourceLoc().

Variable Documentation

◆ everyVarKind

constexpr const VarKind everyVarKind[]
staticconstexpr
Initial value:
= {
uint64_t Dimension
The type of dimension identifiers and dimension-ranks.
Definition: SparseTensor.h:39
uint64_t Level
The type of level identifiers and level-ranks.
Definition: SparseTensor.h:42

For use in foreach loops.

Definition at line 21 of file Var.cpp.

Referenced by mlir::sparse_tensor::ir_detail::VarSet::add(), mlir::sparse_tensor::ir_detail::Ranks::operator==(), and mlir::sparse_tensor::ir_detail::VarSet::VarSet().