Lines Matching defs:inputs

1289 static bool areValidCastInputsAndOutputs(TypeRange inputs, TypeRange outputs) {
1290 if (inputs.size() != 1 || outputs.size() != 1)
1292 if (!hasSameEncoding(inputs.front(), outputs.front()))
1294 return succeeded(verifyCompatibleShapes(inputs.front(), outputs.front()));
1331 static bool checkWidthChangeCast(TypeRange inputs, TypeRange outputs) {
1332 if (!areValidCastInputsAndOutputs(inputs, outputs))
1335 auto srcType = getTypeIfLike<ElementTypes...>(inputs.front());
1376 bool arith::ExtUIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1377 return checkWidthChangeCast<std::greater, IntegerType>(inputs, outputs);
1403 bool arith::ExtSIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1404 return checkWidthChangeCast<std::greater, IntegerType>(inputs, outputs);
1453 bool arith::ExtFOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1454 return checkWidthChangeCast<std::greater, FloatType>(inputs, outputs);
1498 bool arith::TruncIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1499 return checkWidthChangeCast<std::less, IntegerType>(inputs, outputs);
1539 bool arith::TruncFOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1540 return checkWidthChangeCast<std::less, FloatType>(inputs, outputs);
1570 static bool checkIntFloatCast(TypeRange inputs, TypeRange outputs) {
1571 if (!areValidCastInputsAndOutputs(inputs, outputs))
1574 auto srcType = getTypeIfLike<From>(inputs.front());
1584 bool arith::UIToFPOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1585 return checkIntFloatCast<IntegerType, FloatType>(inputs, outputs);
1606 bool arith::SIToFPOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1607 return checkIntFloatCast<IntegerType, FloatType>(inputs, outputs);
1628 bool arith::FPToUIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1629 return checkIntFloatCast<FloatType, IntegerType>(inputs, outputs);
1650 bool arith::FPToSIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1651 return checkIntFloatCast<FloatType, IntegerType>(inputs, outputs);
1672 static bool areIndexCastCompatible(TypeRange inputs, TypeRange outputs) {
1673 if (!areValidCastInputsAndOutputs(inputs, outputs))
1676 auto srcType = getTypeIfLikeOrMemRef<IntegerType, IndexType>(inputs.front());
1685 bool arith::IndexCastOp::areCastCompatible(TypeRange inputs,
1687 return areIndexCastCompatible(inputs, outputs);
1712 bool arith::IndexCastUIOp::areCastCompatible(TypeRange inputs,
1714 return areIndexCastCompatible(inputs, outputs);
1739 bool arith::BitcastOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
1740 if (!areValidCastInputsAndOutputs(inputs, outputs))
1743 auto srcType = getTypeIfLikeOrMemRef<IntegerType, FloatType>(inputs.front());
2065 // Following test does NOT adjust intWidth downwards for signed inputs,