Lines Matching defs:boxTy
40 if (auto boxTy = mlir::dyn_cast<fir::BaseBoxType>(firType))
41 return lowerTy().convertBoxTypeAsStruct(boxTy);
98 mlir::Location loc, TypePair boxTy, mlir::Value box, mlir::Type resultTy,
103 loc, pty, boxTy.llvm, box,
105 auto fldTy = getBoxEleTy(boxTy.llvm, {boxValue});
108 attachTBAATag(loadOp, boxTy.fir, nullptr, p);
117 mlir::Location loc, llvm::ArrayRef<mlir::Type> retTys, TypePair boxTy,
121 loadDimFieldFromBox(loc, boxTy, box, dim, 0, retTys[0], rewriter);
123 loadDimFieldFromBox(loc, boxTy, box, dim, 1, retTys[1], rewriter);
125 loadDimFieldFromBox(loc, boxTy, box, dim, 2, retTys[2], rewriter);
130 mlir::Location loc, llvm::ArrayRef<mlir::Type> retTys, TypePair boxTy,
133 getDimFieldFromBox(loc, boxTy, box, dim, 0, retTys[0], rewriter);
135 getDimFieldFromBox(loc, boxTy, box, dim, 1, retTys[1], rewriter);
137 getDimFieldFromBox(loc, boxTy, box, dim, 2, retTys[2], rewriter);
142 mlir::Location loc, TypePair boxTy, mlir::Value box, mlir::Value dim,
147 mlir::LLVM::GEPOp p = genGEP(loc, boxTy.llvm, rewriter, box, 0,
150 attachTBAATag(loadOp, boxTy.fir, nullptr, p);
155 mlir::Location loc, TypePair boxTy, mlir::Value box, int dim, int off,
158 mlir::LLVM::GEPOp p = genGEP(loc, boxTy.llvm, rewriter, box, 0,
161 attachTBAATag(loadOp, boxTy.fir, nullptr, p);
169 mlir::Location loc, TypePair boxTy, mlir::Value box, unsigned dim,
172 return getDimFieldFromBox(loc, boxTy, box, dim, kDimStridePos, idxTy,
178 mlir::Location loc, TypePair boxTy, mlir::Value box,
180 mlir::Type resultTy = ::getLlvmPtrType(boxTy.llvm.getContext());
181 return getValueFromBox(loc, boxTy, box, resultTy, rewriter, kAddrPosInBox);
185 mlir::Location loc, mlir::Type resultTy, TypePair boxTy, mlir::Value box,
187 return getValueFromBox(loc, boxTy, box, resultTy, rewriter, kElemLenPosInBox);
192 mlir::Location loc, TypePair boxTy, mlir::Value box,
194 mlir::Type resultTy = getBoxEleTy(boxTy.llvm, {kRankPosInBox});
195 return getValueFromBox(loc, boxTy, box, resultTy, rewriter, kRankPosInBox);
200 mlir::Location loc, TypePair boxTy, mlir::Value box,
202 mlir::Type resultTy = getBoxEleTy(boxTy.llvm, {kExtraPosInBox});
203 return getValueFromBox(loc, boxTy, box, resultTy, rewriter, kExtraPosInBox);
236 mlir::Location loc, TypePair boxTy, mlir::Value box,
238 unsigned typeDescFieldId = getTypeDescFieldId(boxTy.fir);
240 return getValueFromBox(loc, boxTy, box, tdescType, rewriter, typeDescFieldId);
246 mlir::Location loc, TypePair boxTy, mlir::Value box,
250 getValueFromBox(loc, boxTy, box, attrTy, rewriter, kAttributePosInBox);
260 mlir::Location loc, TypePair boxTy, mlir::Value box,
262 auto firBoxType = mlir::dyn_cast<fir::BaseBoxType>(boxTy.fir);
266 return genConstantOffset(loc, rewriter, dl.getTypeSize(boxTy.llvm));
273 mlir::Value rawRank = getRankFromBox(loc, boxTy, box, rewriter);
276 mlir::Type llvmDimsType = getBoxEleTy(boxTy.llvm, {kDimsPosInBox, 1});