mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 22:02:51 +01:00
Make Core.Float a class. Add missing builtins for float support. (#5932)
Add missing builtins for float compound assignment, for building a FloatType, and for converting a float literal to FloatType. Switch `Core.Float` to being a class and add impls for the various floating-point operators. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Carbon Infra Bot <carbon-external-infra@google.com>
This commit is contained in:
co-authored by
google-labs-jules[bot]
Carbon Infra Bot
parent
f616817b71
commit
694c00c7eb
@@ -369,7 +369,8 @@ class Stringifier {
|
||||
}
|
||||
|
||||
auto StringifyInst(InstId /*inst_id*/, FloatType inst) -> void {
|
||||
// TODO: Is this okay?
|
||||
*out_ << "<builtin ";
|
||||
step_stack_->PushString(">");
|
||||
if (auto width_value =
|
||||
sem_ir_->insts().TryGetAs<IntValue>(inst.bit_width_id)) {
|
||||
*out_ << "f";
|
||||
|
||||
Reference in New Issue
Block a user