• Home
  • Raw
  • Download

Lines Matching refs:IntegerAttr

247   return constFoldBinaryOp<IntegerAttr>(operands,  in fold()
255 return a.cast<IntegerAttr>().getInt(); in extractFromI64ArrayAttr()
348 newOperands, IntegerAttr()); in matchAndRewrite()
401 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
833 auto lhs = operands.front().dyn_cast_or_null<IntegerAttr>(); in fold()
834 auto rhs = operands.back().dyn_cast_or_null<IntegerAttr>(); in fold()
915 return IntegerAttr::get(IntegerType::get(1, getContext()), APInt(1, val)); in fold()
1092 if (IntegerAttr condAttr = operands.front().dyn_cast_or_null<IntegerAttr>()) in getSuccessorForOperands()
1147 if (auto intAttr = value.dyn_cast<IntegerAttr>()) { in verify()
1203 if (auto intCst = getValue().dyn_cast<IntegerAttr>()) { in getAsmResultNames()
1235 return value.isa<IntegerAttr, FloatAttr, ElementsAttr, UnitAttr>(); in isBuildableWith()
1343 return constantOp.getValue().cast<IntegerAttr>().getInt(); in getConstantIndex()
1371 auto index = operands[1].dyn_cast_or_null<IntegerAttr>(); in fold()
1949 if (!indice || !indice.isa<IntegerAttr>()) in fold()
1951 indices.push_back(indice.cast<IntegerAttr>().getInt()); in fold()
2187 if (auto value = cstOperands[0].dyn_cast_or_null<IntegerAttr>()) in fold()
2188 return IntegerAttr::get(getType(), value.getInt()); in fold()
2518 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
2534 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
2558 IntegerAttr localityHint; in parsePrefetchOp()
2617 return IntegerAttr::get(IndexType::get(getContext()), in fold()
2619 return IntegerAttr(); in fold()
2750 auto result = constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, APInt b) { in fold()
2759 if (auto rhs = operands[1].dyn_cast_or_null<IntegerAttr>()) { in fold()
2763 if (rhs.getSplatValue<IntegerAttr>().getValue() == 1) in fold()
2786 auto result = constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, APInt b) { in fold()
2816 if (auto rhs = operands[1].dyn_cast_or_null<IntegerAttr>()) { in fold()
2820 if (rhs.getSplatValue<IntegerAttr>().getValue() == 1) in fold()
2836 auto result = constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, APInt b) { in fold()
2866 if (auto rhs = operands[1].dyn_cast_or_null<IntegerAttr>()) { in fold()
2870 if (rhs.getSplatValue<IntegerAttr>().getValue() == 1) in fold()
2884 auto rhs = operands.back().dyn_cast_or_null<IntegerAttr>(); in fold()
2891 return IntegerAttr::get(rhs.getType(), APInt(rhsValue.getBitWidth(), 0)); in fold()
2897 auto lhs = operands.front().dyn_cast_or_null<IntegerAttr>(); in fold()
2900 return IntegerAttr::get(lhs.getType(), lhs.getValue().srem(rhsValue)); in fold()
2932 if (!constOperand || !constOperand.isa<IntegerAttr, FloatAttr>()) in fold()
2981 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
4117 auto result = constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, APInt b) { in fold()
4126 if (auto rhs = operands[1].dyn_cast_or_null<IntegerAttr>()) { in fold()
4130 if (rhs.getSplatValue<IntegerAttr>().getValue() == 1) in fold()
4144 auto rhs = operands.back().dyn_cast_or_null<IntegerAttr>(); in fold()
4151 return IntegerAttr::get(rhs.getType(), APInt(rhsValue.getBitWidth(), 0)); in fold()
4157 auto lhs = operands.front().dyn_cast_or_null<IntegerAttr>(); in fold()
4160 return IntegerAttr::get(lhs.getType(), lhs.getValue().urem(rhsValue)); in fold()
4341 return constFoldBinaryOp<IntegerAttr>(operands, in fold()