Home
last modified time | relevance | path

Searched refs:shapeType (Results 1 – 10 of 10) sorted by relevance

/llvm-project/mlir/lib/IR/
H A DBuiltinAttributeInterfaces.cpp56 ShapedType shapeType = llvm::cast<ShapedType>(type); in getFlattenedIndex() local
57 assert(isValidIndex(shapeType, index) && in getFlattenedIndex()
62 auto rank = shapeType.getRank(); in getFlattenedIndex()
63 ArrayRef<int64_t> shape = shapeType.getShape(); in getFlattenedIndex()
/llvm-project/mlir/include/mlir/IR/
H A DBuiltinAttributeInterfaces.h239 ElementsAttrRange(ShapedType shapeType, in ElementsAttrRange() argument
241 : llvm::iterator_range<IteratorT>(range), shapeType(shapeType) {} in ElementsAttrRange()
242 ElementsAttrRange(ShapedType shapeType, IteratorT beginIt, IteratorT endIt) in ElementsAttrRange() argument
243 : ElementsAttrRange(shapeType, llvm::make_range(beginIt, endIt)) {} in ElementsAttrRange()
256 ShapedType shapeType;
294 return (*this)[ElementsAttr::getFlattenedIndex(shapeType, index)];
/llvm-project/mlir/lib/Dialect/MemRef/Transforms/
H A DExpandOps.cpp82 auto shapeType = cast<MemRefType>(op.getShape().getType()); in matchAndRewrite() local
83 if (!shapeType.hasStaticShape()) in matchAndRewrite()
86 int64_t rank = cast<MemRefType>(shapeType).getDimSize(0); in matchAndRewrite()
/llvm-project/flang/lib/Optimizer/Dialect/
H A DFortranVariableInterface.cpp49 if (auto shapeType = mlir::dyn_cast<fir::ShapeType>(shape.getType())) { in verifyDeclareLikeOpImpl() local
50 shapeRank = shapeType.getRank(); in verifyDeclareLikeOpImpl()
/llvm-project/flang/lib/Optimizer/HLFIR/IR/
H A DHLFIROps.cpp423 auto shapeType = mlir::dyn_cast<fir::ShapeType>(compShapeType); in verify()
425 if (!((shapeType && shapeType.getRank() == componentRank) || in verify()
503 auto shapeType = mlir::dyn_cast<fir::ShapeType>(getShape().getType()); in verifyLogicalReductionOp()
506 if (!((shapeType && shapeType.getRank() == resultRank) || in verifyLogicalReductionOp()
531 if (auto shapeType = mlir::dyn_cast<fir::ShapeType>(shape.getType())) in verifyLogicalReductionOp()
532 shapeRank = shapeType.getRank(); in verifyLogicalReductionOp()
1650 if (auto shapeType = mlir::dyn_cast<fir::ShapeType>(shape.getType())) { in verify()
1651 unsigned dim = shapeType in verify()
321 auto shapeType = mlir::dyn_cast<fir::ShapeType>(compShapeType); verify() local
406 auto shapeType = mlir::dyn_cast<fir::ShapeType>(getShape().getType()); verify() local
444 if (auto shapeType = mlir::dyn_cast<fir::ShapeType>(shape.getType())) verify() local
1419 if (auto shapeType = mlir::dyn_cast<fir::ShapeType>(shape.getType())) { buildElemental() local
[all...]
/llvm-project/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp1194 auto shapeType = llvm::cast<ShapedType>(getType());
1197 return DenseElementsAttr::get(shapeType,
1080 auto shapeType = llvm::cast<ShapedType>(getType()); fold() local
/llvm-project/flang/lib/Optimizer/Builder/
H A DMutableBox.cpp668 auto shapeType = in associateMutableBoxWithRemap()
678 builder.create<fir::ShapeShiftOp>(loc, shapeType, shapeArgs); in associateMutableBoxWithRemap()
662 auto shapeType = associateMutableBoxWithRemap() local
H A DFIRBuilder.cpp551 auto shapeType = fir::ShapeShiftType::get(getContext(), exts.size()); in createSlice()
559 return create<fir::ShapeShiftOp>(loc, shapeType, shapeArgs); in createSlice()
502 auto shapeType = fir::ShapeShiftType::get(getContext(), exts.size()); genShape() local
/llvm-project/flang/lib/Optimizer/Transforms/
H A DArrayValueCopy.cpp905 auto shapeType = ShapeType::get(rewriter.getContext(), rank); in getOrReadExtentsAndShapeOp() local
906 return rewriter.create<ShapeOp>(loc, shapeType, result); in getOrReadExtentsAndShapeOp()
/llvm-project/flang/lib/Evaluate/
H A Dintrinsics.cpp3027 DynamicType shapeType{TypeCategory::Integer, defaults_.sizeIntegerKind()}; in CheckAtomicDefineAndRef()
3031 shapeType = *type; in CheckAtomicDefineAndRef()
3036 characteristics::TypeAndShape{shapeType, 1}}; in CheckAtomicDefineAndRef()
2876 DynamicType shapeType{TypeCategory::Integer, defaults_.sizeIntegerKind()}; HandleC_F_Pointer() local