Lines Matching refs:builder

17                                           fir::FirOpBuilder &builder,  in genRaggedArrayAllocate()  argument
21 auto i32Ty = builder.getIntegerType(32); in genRaggedArrayAllocate()
23 auto i64Ty = builder.getIntegerType(64); in genRaggedArrayAllocate()
25 fir::runtime::getRuntimeFunc<mkRTKey(RaggedArrayAllocate)>(loc, builder); in genRaggedArrayAllocate()
27 auto i1Ty = builder.getIntegerType(1); in genRaggedArrayAllocate()
33 auto one = builder.createIntegerConstant(loc, i32Ty, 1); in genRaggedArrayAllocate()
35 auto ptrTy = builder.getRefType(eleTy.cast<mlir::TupleType>().getType(1)); in genRaggedArrayAllocate()
36 auto ptr = builder.create<fir::CoordinateOp>(loc, ptrTy, header, one); in genRaggedArrayAllocate()
37 auto heap = builder.create<fir::LoadOp>(loc, ptr); in genRaggedArrayAllocate()
38 auto cmp = builder.genIsNullAddr(loc, heap); in genRaggedArrayAllocate()
39 builder.genIfThen(loc, cmp) in genRaggedArrayAllocate()
41 auto asHeadersVal = builder.createIntegerConstant(loc, i1Ty, asHeaders); in genRaggedArrayAllocate()
42 auto rankVal = builder.createIntegerConstant(loc, i64Ty, rank); in genRaggedArrayAllocate()
43 auto buff = builder.create<fir::AllocMemOp>(loc, extentTy); in genRaggedArrayAllocate()
46 auto offset = builder.createIntegerConstant(loc, i32Ty, i.index()); in genRaggedArrayAllocate()
48 builder.create<fir::CoordinateOp>(loc, refTy, buff, offset); in genRaggedArrayAllocate()
49 auto castVal = builder.createConvert(loc, i64Ty, i.value()); in genRaggedArrayAllocate()
50 builder.create<fir::StoreOp>(loc, castVal, addr); in genRaggedArrayAllocate()
53 builder, loc, fTy, header, asHeadersVal, rankVal, eleSize, buff); in genRaggedArrayAllocate()
54 builder.create<fir::CallOp>(loc, func, args); in genRaggedArrayAllocate()
60 fir::FirOpBuilder &builder, in genRaggedArrayDeallocate() argument
63 loc, builder); in genRaggedArrayDeallocate()
65 auto args = fir::runtime::createArguments(builder, loc, fTy, header); in genRaggedArrayDeallocate()
66 builder.create<fir::CallOp>(loc, func, args); in genRaggedArrayDeallocate()