Lines Matching refs:Truncation
17 class Truncation final {
20 static Truncation None() { in None()
21 return Truncation(TruncationKind::kNone, kIdentifyZeros); in None()
23 static Truncation Bool() { in Bool()
24 return Truncation(TruncationKind::kBool, kIdentifyZeros); in Bool()
26 static Truncation Word32() { in Word32()
27 return Truncation(TruncationKind::kWord32, kIdentifyZeros); in Word32()
29 static Truncation Word64() { in Word64()
30 return Truncation(TruncationKind::kWord64, kIdentifyZeros); in Word64()
32 static Truncation Float64(IdentifyZeros identify_zeros = kDistinguishZeros) {
33 return Truncation(TruncationKind::kFloat64, identify_zeros);
35 static Truncation Any(IdentifyZeros identify_zeros = kDistinguishZeros) {
36 return Truncation(TruncationKind::kAny, identify_zeros);
39 static Truncation Generalize(Truncation t1, Truncation t2) { in Generalize()
40 return Truncation( in Generalize()
69 bool operator==(Truncation other) const {
72 bool operator!=(Truncation other) const { return !(*this == other); }
76 bool IsLessGeneralThan(Truncation other) { in IsLessGeneralThan()
93 explicit Truncation(TruncationKind kind, IdentifyZeros identify_zeros) in Truncation() function
155 UseInfo(MachineRepresentation representation, Truncation truncation,
163 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32()); in TruncatingWord32()
166 return UseInfo(MachineRepresentation::kWord64, Truncation::Word64()); in TruncatingWord64()
169 return UseInfo(MachineRepresentation::kBit, Truncation::Bool()); in Bool()
172 return UseInfo(MachineRepresentation::kFloat32, Truncation::Any()); in Float32()
175 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64()); in TruncatingFloat64()
181 return UseInfo(MachineRepresentation::kTagged, Truncation::Any()); in AnyTagged()
184 return UseInfo(MachineRepresentation::kTaggedSigned, Truncation::Any()); in TaggedSigned()
187 return UseInfo(MachineRepresentation::kTaggedPointer, Truncation::Any()); in TaggedPointer()
192 return UseInfo(MachineRepresentation::kTaggedPointer, Truncation::Any(), in CheckedHeapObjectAsTaggedPointer()
197 return UseInfo(MachineRepresentation::kTaggedSigned, Truncation::Any(), in CheckedSignedSmallAsTaggedSigned()
203 Truncation::Any(identify_zeros), TypeCheckKind::kSignedSmall, in CheckedSignedSmallAsWord32()
209 Truncation::Any(identify_zeros), TypeCheckKind::kSigned32, in CheckedSigned32AsWord32()
213 return UseInfo(MachineRepresentation::kFloat64, Truncation::Any(), in CheckedNumberAsFloat64()
217 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32(), in CheckedNumberAsWord32()
222 return UseInfo(MachineRepresentation::kFloat64, Truncation::Any(), in CheckedNumberOrOddballAsFloat64()
227 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32(), in CheckedNumberOrOddballAsWord32()
233 return UseInfo(MachineRepresentation::kNone, Truncation::Any()); in Any()
236 return UseInfo(MachineRepresentation::kNone, Truncation::Bool()); in AnyTruncatingToBool()
241 return UseInfo(MachineRepresentation::kNone, Truncation::None()); in None()
245 Truncation truncation() const { return truncation_; } in truncation()
256 Truncation truncation_;
314 Type output_type, Truncation truncation);
317 Type output_type, Truncation truncation);