14 #ifndef MLIR_IR_AFFINEEXPRDETAIL_H_ 15 #define MLIR_IR_AFFINEEXPRDETAIL_H_ 34 using KeyTy = std::pair<AffineExpr, AffineExpr>;
37 return key.first == lhs && key.second == rhs;
43 result->
lhs = key.first;
44 result->rhs = key.second;
89 #endif // MLIR_IR_AFFINEEXPRDETAIL_H_ Definition: InferTypeOpInterface.cpp:20
bool operator==(const KeyTy &key) const
Definition: AffineExprDetail.h:57
Base storage class appearing in an affine expression.
Definition: AffineExprDetail.h:28
Definition: StorageUniquer.h:89
A binary operation appearing in an affine expression.
Definition: AffineExprDetail.h:33
static AffineBinaryOpExprStorage * construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key)
Definition: AffineExprDetail.h:41
AffineExpr rhs
Definition: AffineExprDetail.h:50
bool operator==(const KeyTy &key) const
Definition: AffineExprDetail.h:36
T * allocate()
Allocate an instance of the provided type.
Definition: StorageUniquer.h:109
MLIRContext * context
Definition: AffineExprDetail.h:29
unsigned position
Position of this identifier in the argument list.
Definition: AffineExprDetail.h:67
Definition: AffineExpr.h:66
MLIRContext * getContext() const
Definition: AffineExpr.cpp:21
unsigned KeyTy
Definition: AffineExprDetail.h:55
std::pair< AffineExpr, AffineExpr > KeyTy
Definition: AffineExprDetail.h:34
ValueBuilder< mlir::LLVM::ConstantOp > constant
Definition: LinalgToLLVM.cpp:56
int64_t constant
Definition: AffineExprDetail.h:84
static AffineConstantExprStorage * construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key)
Definition: AffineExprDetail.h:77
A dimensional or symbolic identifier appearing in an affine expression.
Definition: AffineExprDetail.h:54
Definition: StorageUniquer.h:71
static AffineDimExprStorage * construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key)
Definition: AffineExprDetail.h:60
Definition: MLIRContext.h:34
An integer constant appearing in affine expression.
Definition: AffineExprDetail.h:71
int64_t KeyTy
Definition: AffineExprDetail.h:72
AffineExpr lhs
Definition: AffineExprDetail.h:49
bool operator==(const KeyTy &key) const
Definition: AffineExprDetail.h:74