Home
last modified time | relevance | path

Searched refs:indexTy (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/mlir/lib/Conversion/ShapeToStandard/
DShapeToStandard.cpp97 Type indexTy = rewriter.getIndexType(); in matchAndRewrite() local
103 RankedTensorType::get({ShapedType::kDynamicSize}, indexTy); in matchAndRewrite()
114 rewriter.create<SubIOp>(loc, indexTy, greaterRank, lesserRank); in matchAndRewrite()
129 loc, TypeRange{indexTy}, isUnchallengedDimension, in matchAndRewrite()
142 b.create<SubIOp>(loc, indexTy, outputDimension, rankDiff); in matchAndRewrite()
184 Type indexTy = rewriter.getIndexType(); in matchAndRewrite() local
186 rewriter.create<TensorFromElementsOp>(loc, indexTy, extentOperands); in matchAndRewrite()
187 Type resultTy = RankedTensorType::get({ShapedType::kDynamicSize}, indexTy); in matchAndRewrite()
240 Type indexTy = rewriter.getIndexType(); in matchAndRewrite() local
246 RankedTensorType::get({ShapedType::kDynamicSize}, indexTy); in matchAndRewrite()
[all …]
DConvertShapeConstraints.cpp45 Type indexTy = rewriter.getIndexType(); in matchAndRewrite() local
56 rewriter.create<SubIOp>(loc, indexTy, greaterRank, lesserRank); in matchAndRewrite()
69 Value ivShifted = b.create<SubIOp>(loc, indexTy, iv, rankDiff); in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/Async/Transforms/
DAsyncParallelFor.cpp119 auto indexTy = IndexType::get(ctx); in matchAndRewrite() local
120 auto zero = IntegerAttr::get(indexTy, 0); in matchAndRewrite()
121 auto one = IntegerAttr::get(indexTy, 1); in matchAndRewrite()
122 auto c0 = rewriter.create<ConstantOp>(loc, indexTy, zero); in matchAndRewrite()
123 auto c1 = rewriter.create<ConstantOp>(loc, indexTy, one); in matchAndRewrite()
143 loc, indexTy, IntegerAttr::get(indexTy, numConcurrentAsyncExecute)); in matchAndRewrite()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DProgramState.cpp324 QualType indexTy) const { in assumeInBound()
337 if (indexTy.isNull()) in assumeInBound()
338 indexTy = svalBuilder.getArrayIndexType(); in assumeInBound()
339 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBound()
343 Idx.castAs<NonLoc>(), Min, indexTy); in assumeInBound()
350 Min, indexTy); in assumeInBound()
/external/clang/lib/StaticAnalyzer/Core/
DProgramState.cpp307 QualType indexTy) const { in assumeInBound()
321 if (indexTy.isNull()) in assumeInBound()
322 indexTy = Ctx.IntTy; in assumeInBound()
323 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBound()
327 Idx.castAs<NonLoc>(), Min, indexTy); in assumeInBound()
334 Min, indexTy); in assumeInBound()
/external/llvm-project/mlir/lib/Dialect/Affine/IR/
DAffineOps.cpp321 auto indexTy = parser.getBuilder().getIndexType(); in parseDimAndSymbolList() local
324 parser.resolveOperands(opInfos, indexTy, operands)); in parseDimAndSymbolList()
359 auto indexTy = builder.getIndexType(); in parseAffineApplyOp() local
375 result.types.append(map.getNumResults(), indexTy); in parseAffineApplyOp()
2104 auto indexTy = builder.getIndexType(); in parseAffineLoadOp() local
2118 parser.resolveOperands(mapOperands, indexTy, result.operands) || in parseAffineLoadOp()
2217 auto indexTy = parser.getBuilder().getIndexType(); in parseAffineStoreOp() local
2234 parser.resolveOperands(mapOperands, indexTy, result.operands)); in parseAffineStoreOp()
2395 auto indexTy = builder.getIndexType(); in parseAffinePrefetchOp() local
2420 parser.resolveOperands(mapOperands, indexTy, result.operands)) in parseAffinePrefetchOp()
[all …]
/external/llvm-project/mlir/lib/IR/
DMLIRContext.cpp306 IndexType indexTy; member in mlir::MLIRContextImpl
355 impl->indexTy = TypeUniquer::get<IndexType>(this); in MLIRContext()
745 return context->getImpl().indexTy; in get()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dtransform_unranked_hlo.cc106 Type indexTy = rewriter.getIndexType(); in matchAndRewrite() local
108 rewriter.create<shape::NumElementsOp>(loc, indexTy, shape); in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/
DStandardToLLVM.cpp328 auto indexTy = getIndexType(); in getMemRefDescriptorFields() local
330 SmallVector<LLVM::LLVMType, 5> results = {ptrTy, ptrTy, indexTy}; in getMemRefDescriptorFields()
336 results.insert(results.end(), 2 * rank, indexTy); in getMemRefDescriptorFields()
338 results.insert(results.end(), 2, LLVM::LLVMType::getArrayTy(indexTy, rank)); in getMemRefDescriptorFields()
620 auto indexTy = indexType.cast<LLVM::LLVMType>(); in size() local
621 auto indexPtrTy = indexTy.getPointerTo(); in size()
622 auto arrayTy = LLVM::LLVMType::getArrayTy(indexTy, rank); in size()
951 LLVM::LLVMType indexTy = typeConverter.getIndexType(); in sizeBasePtr() local
953 LLVM::LLVMType::getStructTy(elemPtrTy, elemPtrTy, indexTy, indexTy) in sizeBasePtr()
964 return builder.create<LLVM::GEPOp>(loc, indexTy.getPointerTo(), structPtr, in sizeBasePtr()
/external/llvm-project/mlir/lib/Dialect/Shape/IR/
DShape.cpp768 Type indexTy = IndexType::get(getContext()); in fold() local
769 return IntegerAttr::get(indexTy, folded); in fold()
/external/llvm-project/mlir/lib/Dialect/StandardOps/IR/
DOps.cpp1337 auto indexTy = builder.getIndexType(); in build() local
1338 build(builder, result, indexTy, memrefOrTensor, index); in build()
1730 Type indexTy = parser.getBuilder().getIndexType(); in parseDynamicTensorFromElementsOp() local
1732 parser.resolveOperands(dynamicExtents, indexTy, result.operands)) in parseDynamicTensorFromElementsOp()
2562 auto indexTy = parser.getBuilder().getIndexType(); in parsePrefetchOp() local
2574 parser.resolveOperands(indexInfo, indexTy, result.operands)) in parsePrefetchOp()