Lines Matching defs:folded
142 if (auto folded{OperandsAreConstants(x)}) {
143 return Expr<Result>{Constant<Result>{folded->first + folded->second}};
155 if (auto folded{OperandsAreConstants(x)}) {
156 auto oldLength{static_cast<ConstantSubscript>(folded->first.size())};
157 auto newLength{folded->second.ToInt64()};
159 folded->first.erase(newLength);
161 folded->first.append(newLength - oldLength, ' ');
163 CHECK(static_cast<ConstantSubscript>(folded->first.size()) == newLength);
164 return Expr<Result>{Constant<Result>{std::move(folded->first)}};