Lines Matching defs:arith
71 b.create<arith::ConstantIndexOp>(loc, indexGroupStaticSizesProductInt);
72 Value dynamicDimSize = b.createOrFold<arith::DivSIOp>(
87 detail::op_matcher<arith::ConstantIndexOp> mlir::matchConstantIndex() {
88 return detail::op_matcher<arith::ConstantIndexOp>();
108 return b.create<arith::ConstantOp>(
117 return b.create<arith::ConstantIndexOp>(loc, attr.getValue().getSExtValue());
128 return b.create<arith::IndexCastOp>(loc, targetType, value);
137 return b.create<arith::ExtSIOp>(loc, targetIntegerType, value);
138 return b.create<arith::TruncIOp>(loc, targetIntegerType, value);
146 return b.create<arith::FPToUIOp>(toType, operand);
147 return b.create<arith::FPToSIOp>(toType, operand);
151 return b.create<arith::IndexCastOp>(toType, operand);
156 return b.create<arith::ExtUIOp>(toType, operand);
157 return b.create<arith::ExtSIOp>(toType, operand);
160 return b.create<arith::TruncIOp>(toType, operand);
173 return b.create<arith::UIToFPOp>(toType, operand);
174 return b.create<arith::SIToFPOp>(toType, operand);
178 return b.create<arith::ExtFOp>(toType, operand);
180 return b.create<arith::TruncFOp>(toType, operand);
198 real = b.create<arith::TruncFOp>(targetETy, real);
199 imag = b.create<arith::TruncFOp>(targetETy, imag);
201 real = b.create<arith::ExtFOp>(targetETy, real);
202 imag = b.create<arith::ExtFOp>(targetETy, imag);
213 from = b.create<arith::ExtFOp>(toFpTy, from);
216 from = b.create<arith::TruncFOp>(toFpTy, from);
218 Value zero = b.create<mlir::arith::ConstantFloatOp>(
227 from = b.create<arith::UIToFPOp>(toFpTy, from);
229 from = b.create<arith::SIToFPOp>(toFpTy, from);
231 Value zero = b.create<mlir::arith::ConstantFloatOp>(
281 return builder.create<arith::ConstantOp>(loc, attr);
299 return builder.createOrFold<arith::ConstantOp>(
302 return builder.createOrFold<arith::ConstantOp>(loc, type, splat);
313 return b.create<arith::AndIOp>(loc, lhs, rhs);
317 return b.create<arith::AddFOp>(loc, lhs, rhs);
318 return b.create<arith::AddIOp>(loc, lhs, rhs);
322 return b.create<arith::SubFOp>(loc, lhs, rhs);
323 return b.create<arith::SubIOp>(loc, lhs, rhs);
327 return b.create<arith::MulFOp>(loc, lhs, rhs);
328 return b.create<arith::MulIOp>(loc, lhs, rhs);
332 return b.create<arith::CmpFOp>(loc, arith::CmpFPredicate::OGT, lhs, rhs);
333 return b.create<arith::CmpIOp>(loc, arith::CmpIPredicate::sgt, lhs, rhs);
337 return b.create<arith::CmpFOp>(loc, arith::CmpFPredicate::OLT, lhs, rhs);
338 return b.create<arith::CmpIOp>(loc, arith::CmpIPredicate::slt, lhs, rhs);
341 return b.create<arith::SelectOp>(loc, cmp, lhs, rhs);
344 namespace mlir::arith {
383 } // namespace mlir::arith