Lines Matching refs:builder
33 fir::FirOpBuilder &builder, mlir::Type type, llvm::StringRef fctName) { in checkCharCompare1() argument
34 auto loc = builder.getUnknownLoc(); in checkCharCompare1()
35 mlir::Type i32Ty = IntegerType::get(builder.getContext(), 32); in checkCharCompare1()
36 mlir::Value lhsBuff = builder.create<fir::UndefOp>(loc, type); in checkCharCompare1()
37 mlir::Value lhsLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkCharCompare1()
38 mlir::Value rhsBuff = builder.create<fir::UndefOp>(loc, type); in checkCharCompare1()
39 mlir::Value rhsLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkCharCompare1()
40 mlir::Value res = fir::runtime::genCharCompare(builder, loc, in checkCharCompare1()
47 fir::FirOpBuilder &builder, llvm::StringRef fctName, unsigned kind) { in checkCharCompare1AllTypeForKind() argument
48 mlir::Type charTy = fir::CharacterType::get(builder.getContext(), kind, 10); in checkCharCompare1AllTypeForKind()
51 mlir::Type boxCharTy = fir::BoxCharType::get(builder.getContext(), kind); in checkCharCompare1AllTypeForKind()
53 checkCharCompare1(builder, charTy, fctName); in checkCharCompare1AllTypeForKind()
54 checkCharCompare1(builder, seqCharTy, fctName); in checkCharCompare1AllTypeForKind()
55 checkCharCompare1(builder, refCharTy, fctName); in checkCharCompare1AllTypeForKind()
56 checkCharCompare1(builder, boxCharTy, fctName); in checkCharCompare1AllTypeForKind()
57 checkCharCompare1(builder, boxTy, fctName); in checkCharCompare1AllTypeForKind()
70 fir::FirOpBuilder &builder, llvm::StringRef fctName, unsigned kind) { in checkCharCompare2() argument
71 auto loc = builder.getUnknownLoc(); in checkCharCompare2()
72 fir::factory::CharacterExprHelper charHelper(builder, loc); in checkCharCompare2()
73 mlir::Type i32Ty = IntegerType::get(builder.getContext(), 32); in checkCharCompare2()
74 mlir::Type boxCharTy = fir::BoxCharType::get(builder.getContext(), kind); in checkCharCompare2()
75 mlir::Value lhsBuff = builder.create<fir::UndefOp>(loc, boxCharTy); in checkCharCompare2()
76 mlir::Value lhsLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkCharCompare2()
77 mlir::Value rhsBuff = builder.create<fir::UndefOp>(loc, boxCharTy); in checkCharCompare2()
78 mlir::Value rhsLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkCharCompare2()
82 builder, loc, mlir::arith::CmpIPredicate::eq, lhs, rhs); in checkCharCompare2()
97 fir::FirOpBuilder &builder, llvm::StringRef fctName, unsigned kind) { in checkGenIndex() argument
98 auto loc = builder.getUnknownLoc(); in checkGenIndex()
99 mlir::Type i32Ty = IntegerType::get(builder.getContext(), 32); in checkGenIndex()
100 mlir::Value stringBase = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenIndex()
101 mlir::Value stringLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenIndex()
102 mlir::Value substringBase = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenIndex()
103 mlir::Value substringLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenIndex()
104 mlir::Value back = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenIndex()
105 mlir::Value res = fir::runtime::genIndex(builder, loc, kind, stringBase, in checkGenIndex()
158 fir::FirOpBuilder &builder, llvm::StringRef fctName, unsigned kind) { in checkGenScan() argument
159 auto loc = builder.getUnknownLoc(); in checkGenScan()
160 mlir::Type charTy = fir::CharacterType::get(builder.getContext(), kind, 10); in checkGenScan()
162 mlir::Type i32Ty = IntegerType::get(builder.getContext(), 32); in checkGenScan()
163 mlir::Value stringBase = builder.create<fir::UndefOp>(loc, boxTy); in checkGenScan()
164 mlir::Value stringLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenScan()
165 mlir::Value setBase = builder.create<fir::UndefOp>(loc, boxTy); in checkGenScan()
166 mlir::Value setLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenScan()
167 mlir::Value back = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenScan()
169 builder, loc, kind, stringBase, stringLen, setBase, setLen, back); in checkGenScan()
192 fir::FirOpBuilder &builder, llvm::StringRef fctName, unsigned kind) { in checkGenVerify() argument
193 auto loc = builder.getUnknownLoc(); in checkGenVerify()
194 mlir::Type charTy = fir::CharacterType::get(builder.getContext(), kind, 10); in checkGenVerify()
196 mlir::Type i32Ty = IntegerType::get(builder.getContext(), 32); in checkGenVerify()
197 mlir::Value stringBase = builder.create<fir::UndefOp>(loc, boxTy); in checkGenVerify()
198 mlir::Value stringLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenVerify()
199 mlir::Value setBase = builder.create<fir::UndefOp>(loc, boxTy); in checkGenVerify()
200 mlir::Value setLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenVerify()
201 mlir::Value back = builder.create<fir::UndefOp>(loc, i32Ty); in checkGenVerify()
203 builder, loc, kind, stringBase, stringLen, setBase, setLen, back); in checkGenVerify()