Lines Matching defs:idxTy

972 /// of type \p ptrTy. The result is returned as a value of \p idxTy integer
976 mlir::Type idxTy,
992 return rewriter.create<mlir::LLVM::PtrToIntOp>(loc, idxTy, gep);
997 /// \p idxTy integer type.
999 genTypeStrideInBytes(mlir::Location loc, mlir::Type idxTy,
1003 return computeElementDistance(loc, llTy, idxTy, rewriter);
1035 /// \p llTy pointer type. The result is returned as a value of \p idxTy
1037 mlir::Value genTypeSizeInBytes(mlir::Location loc, mlir::Type idxTy,
1040 return computeElementDistance(loc, llTy, idxTy, rewriter);
1504 mlir::Type idxTy = this->lowerTy().indexType();
1505 eleSize = this->getElementSizeFromBox(loc, idxTy, sourceBoxTyPair,
1548 mlir::Type idxTy = this->lowerTy().indexType();
1549 eleSize = this->getElementSizeFromBox(loc, idxTy, inputBoxTyPair,
1982 mlir::Type idxTy = lowerTy().indexType();
2006 genConstantIndex(loc, idxTy, rewriter, charTy.getLen());
2009 mlir::Value len = getElementSizeFromBox(loc, idxTy, inputBoxTyPair,
2015 genConstantIndex(loc, idxTy, rewriter, charTy.getFKind());
2016 len = rewriter.create<mlir::LLVM::SDivOp>(loc, idxTy, len, width);
2042 getDimsFromBox(loc, {idxTy, idxTy, idxTy}, inputBoxTyPair, loweredBox,
2101 mlir::Type idxTy = lowerTy().indexType();
2102 mlir::Value zero = genConstantIndex(loc, idxTy, rewriter, 0);
2130 mlir::Value one = genConstantIndex(loc, idxTy, rewriter, 1);
2139 integerCast(loc, rewriter, idxTy, operands[sliceOps]);
2140 mlir::Value inputStride = *strideOps; // already idxTy
2144 ? integerCast(loc, rewriter, idxTy, operands[shiftOps])
2147 rewriter.create<mlir::LLVM::SubOp>(loc, idxTy, sliceLb, sliceOrigin);
2149 rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, diff, inputStride);
2159 integerCast(loc, rewriter, idxTy, operands[sliceOps + 2]);
2161 mlir::Value sliceUb = integerCast(loc, rewriter, idxTy, upper);
2163 sliceUb, step, zero, idxTy);
2167 rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, step, inputStride);
2197 mlir::Type idxTy = lowerTy().indexType();
2203 ? genConstantIndex(loc, idxTy, rewriter, 1)
2207 mlir::Value extent = integerCast(loc, rewriter, idxTy, rawExtent);
2211 stride = rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, extent, stride);
2408 mlir::Type idxTy = lowerTy().indexType();
2414 mlir::Value one = genConstantIndex(loc, idxTy, rewriter, 1);
2416 mlir::Value offset = genConstantIndex(loc, idxTy, rewriter, 0);
2430 integerCast(loc, rewriter, idxTy, operands[indexOffset]);
2432 isShifted ? integerCast(loc, rewriter, idxTy, operands[shiftOffset])
2443 step = integerCast(loc, rewriter, idxTy, operands[sliceOffset + 2]);
2445 auto idx = rewriter.create<mlir::LLVM::SubOp>(loc, idxTy, index, lb, nsw);
2447 rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, idx, step, nsw);
2450 integerCast(loc, rewriter, idxTy, operands[sliceOffset]);
2452 rewriter.create<mlir::LLVM::SubOp>(loc, idxTy, sliceLb, lb, nsw);
2453 diff = rewriter.create<mlir::LLVM::AddOp>(loc, idxTy, diff, adj, nsw);
2462 rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, diff, stride, nsw);
2464 rewriter.create<mlir::LLVM::AddOp>(loc, idxTy, sc, offset, nsw);
2468 rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, diff, prevExt, nsw);
2470 rewriter.create<mlir::LLVM::AddOp>(loc, idxTy, sc, offset, nsw);
2473 auto nextExt = integerCast(loc, rewriter, idxTy, operands[shapeOffset]);
2474 prevExt = rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, prevExt,
2533 auto length = integerCast(loc, rewriter, idxTy,
2535 offset = rewriter.create<mlir::LLVM::MulOp>(loc, idxTy, offset,
2722 auto idxTy = lowerTy().indexType();
2723 mlir::Value off = genConstantIndex(loc, idxTy, rewriter, 0);
2729 loc, idxTy, operands[index], stride, nsw);
2730 off = rewriter.create<mlir::LLVM::AddOp>(loc, idxTy, sc, off, nsw);
3582 mlir::Type idxTy = lowerTy().indexType();
3594 genConstantIndex(isPresent.getLoc(), idxTy, rewriter, 0);
3595 auto addr = rewriter.create<mlir::LLVM::PtrToIntOp>(loc, idxTy, ptr);