MLIR
20.0.0git
|
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... | |
bool isInternalConsistent | ( | VarEnv const & | env, |
VarInfo::ID | id, | ||
StringRef | name | ||
) |
Definition at line 159 of file Var.cpp.
References mlir::sparse_tensor::ir_detail::VarEnv::access().
Referenced by mlir::sparse_tensor::ir_detail::VarEnv::create(), and mlir::sparse_tensor::ir_detail::VarEnv::lookup().
bool isUsageConsistent | ( | VarEnv const & | env, |
VarInfo::ID | id, | ||
llvm::SMLoc | loc, | ||
VarKind | vk | ||
) |
Definition at line 164 of file Var.cpp.
References mlir::sparse_tensor::ir_detail::VarEnv::access(), and mlir::sparse_tensor::ir_detail::VarInfo::getKind().
Referenced by mlir::sparse_tensor::ir_detail::VarEnv::create(), and mlir::sparse_tensor::ir_detail::VarEnv::lookupOrCreate().
|
static |
Helper function for assertUsageConsistency
to better handle SMLoc mismatches.
Definition at line 147 of file Var.cpp.
References mlir::AsmParser::getEncodedSourceLoc().
|
staticconstexpr |
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().