Fix is_val_statically_known for floats by beetrees · Pull Request #129173 · rust-lang/rust (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation8 Commits1 Checks12 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

beetrees

The LLVM intrinsic name for floats differs from the LLVM type name, so handle them explicitly. Also adds support for f16 and f128.

f16/f128 tracking issue: #116909

@rustbot

r? @cjgillot

rustbot has assigned @cjgillot.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Aug 16, 2024

compiler-errors

| TypeKind::Float
| TypeKind::Double
| TypeKind::FP128 => {
let type_str = match kind {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This double match is really awkward. I'd honestly rather the code duplication, or maybe make the _ => branch into a return so you can uplift that let type_str out of the outer match. Also worth leaving a note why some of these are special cased.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've refactored it to be a single match statement.

@beetrees

compiler-errors

@compiler-errors

@beetrees

@compiler-errors

I'll try closing and reopening

@compiler-errors

@bors

📌 Commit 9bc7cea has been approved by compiler-errors

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Aug 17, 2024

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 17, 2024

@tgross35

…=compiler-errors

Fix is_val_statically_known for floats

The LLVM intrinsic name for floats differs from the LLVM type name, so handle them explicitly. Also adds support for f16 and f128.

f16/f128 tracking issue: rust-lang#116909

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 17, 2024

@tgross35

…=compiler-errors

Fix is_val_statically_known for floats

The LLVM intrinsic name for floats differs from the LLVM type name, so handle them explicitly. Also adds support for f16 and f128.

f16/f128 tracking issue: rust-lang#116909

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 17, 2024

@bors

Rollup of 9 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

tgross35 added a commit to tgross35/rust that referenced this pull request

Aug 17, 2024

@tgross35

…=compiler-errors

Fix is_val_statically_known for floats

The LLVM intrinsic name for floats differs from the LLVM type name, so handle them explicitly. Also adds support for f16 and f128.

f16/f128 tracking issue: rust-lang#116909

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 17, 2024

@bors

Rollup of 6 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Aug 18, 2024

@bors

Rollup of 5 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Aug 18, 2024

@rust-timer

Rollup merge of rust-lang#129173 - beetrees:statically-known-float, r=compiler-errors

Fix is_val_statically_known for floats

The LLVM intrinsic name for floats differs from the LLVM type name, so handle them explicitly. Also adds support for f16 and f128.

f16/f128 tracking issue: rust-lang#116909

@beetrees beetrees deleted the statically-known-float branch

August 27, 2024 03:28

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.