Home | History | Annotate | Download | only in compiler

Lines Matching refs:TruncationKind

19     case TruncationKind::kNone:
21 case TruncationKind::kBool:
23 case TruncationKind::kWord32:
25 case TruncationKind::kWord64:
27 case TruncationKind::kFloat32:
29 case TruncationKind::kFloat64:
31 case TruncationKind::kAny:
57 Truncation::TruncationKind Truncation::Generalize(TruncationKind rep1,
58 TruncationKind rep2) {
62 if (LessGeneral(rep1, TruncationKind::kFloat64) &&
63 LessGeneral(rep2, TruncationKind::kFloat64)) {
64 return TruncationKind::kFloat64;
68 return TruncationKind::kNone;
73 bool Truncation::LessGeneral(TruncationKind rep1, TruncationKind rep2) {
75 case TruncationKind::kNone:
77 case TruncationKind::kBool:
78 return rep2 == TruncationKind::kBool || rep2 == TruncationKind::kAny;
79 case TruncationKind::kWord32:
80 return rep2 == TruncationKind::kWord32 ||
81 rep2 == TruncationKind::kWord64 ||
82 rep2 == TruncationKind::kFloat64 || rep2 == TruncationKind::kAny;
83 case TruncationKind::kWord64:
84 return rep2 == TruncationKind::kWord64;
85 case TruncationKind::kFloat32:
86 return rep2 == TruncationKind::kFloat32 ||
87 rep2 == TruncationKind::kFloat64 || rep2 == TruncationKind::kAny;
88 case TruncationKind::kFloat64:
89 return rep2 == TruncationKind::kFloat64 || rep2 == TruncationKind::kAny;
90 case TruncationKind::kAny:
91 return rep2 == TruncationKind::kAny;