Lines Matching refs:IntegerAttr

29 static IntegerAttr addIntegerAttrs(PatternRewriter &builder, Value res,  in addIntegerAttrs()
32 lhs.cast<IntegerAttr>().getInt() + in addIntegerAttrs()
33 rhs.cast<IntegerAttr>().getInt()); in addIntegerAttrs()
36 static IntegerAttr subIntegerAttrs(PatternRewriter &builder, Value res, in subIntegerAttrs()
39 lhs.cast<IntegerAttr>().getInt() - in subIntegerAttrs()
40 rhs.cast<IntegerAttr>().getInt()); in subIntegerAttrs()
90 if (auto intCst = getValue().dyn_cast<IntegerAttr>()) { in getAsmResultNames()
122 if (!getValue().isa<IntegerAttr, FloatAttr, ElementsAttr>()) { in verify()
137 return value.isa<IntegerAttr, FloatAttr, ElementsAttr>(); in isBuildableWith()
208 return constFoldBinaryOp<IntegerAttr>( in fold()
230 return constFoldBinaryOp<IntegerAttr>( in fold()
256 return constFoldBinaryOp<IntegerAttr>( in fold()
272 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
295 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
329 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
356 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
405 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
454 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
477 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
501 return constFoldBinaryOp<IntegerAttr>( in fold()
514 if (auto rhsAttr = operands[1].dyn_cast_or_null<IntegerAttr>()) in fold()
518 return constFoldBinaryOp<IntegerAttr>( in fold()
538 return constFoldBinaryOp<IntegerAttr>( in fold()
627 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
653 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
701 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
727 return constFoldBinaryOp<IntegerAttr>(operands, in fold()
885 return constFoldCastOp<IntegerAttr, IntegerAttr>( in fold()
914 return constFoldCastOp<IntegerAttr, IntegerAttr>( in fold()
969 return constFoldCastOp<IntegerAttr, IntegerAttr>( in fold()
1064 return constFoldCastOp<IntegerAttr, FloatAttr>( in fold()
1090 return constFoldCastOp<IntegerAttr, FloatAttr>( in fold()
1115 return constFoldCastOp<FloatAttr, IntegerAttr>( in fold()
1141 return constFoldCastOp<FloatAttr, IntegerAttr>( in fold()
1174 if (auto value = operands[0].dyn_cast_or_null<IntegerAttr>()) in fold()
1175 return IntegerAttr::get(getType(), value.getInt()); in fold()
1221 : operand.cast<IntegerAttr>().getValue(); in fold()
1226 return IntegerAttr::get(resType, bits); in fold()
1359 auto lhs = operands.front().dyn_cast_or_null<IntegerAttr>(); in fold()
1365 auto rhs = operands.back().cast<IntegerAttr>(); in fold()
1910 auto result = constFoldBinaryOp<IntegerAttr>( in fold()
1925 auto result = constFoldBinaryOp<IntegerAttr>( in fold()
1940 auto result = constFoldBinaryOp<IntegerAttr>( in fold()