diff options
| author | Guillaume Boisseau <Nadrieril@users.noreply.github.com> | 2024-03-02 20:13:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-02 20:13:24 +0100 |
| commit | 4c65eef26937b4ea9572eb953ebc523a6cab167b (patch) | |
| tree | e7416b5ac8b1e66655b78acc9ff29b7a9b0051d3 /compiler/rustc_middle | |
| parent | 200019c199611aa188830f000834a49cfc935d7f (diff) | |
| parent | 01755e3ff361bf3ef5a4a9784765cc20deec53fb (diff) | |
| download | rust-4c65eef26937b4ea9572eb953ebc523a6cab167b.tar.gz rust-4c65eef26937b4ea9572eb953ebc523a6cab167b.zip | |
Rollup merge of #121841 - tgross35:f16-f128-step2-intrinsics, r=compiler-errors
`f16` and `f128` step 2: intrinsics Continuation of https://github.com/rust-lang/rust/pull/121728, another portion of https://github.com/rust-lang/rust/pull/114607. This PR adds `f16` and `f128` intrinsics, and hooks them up to both HIR and LLVM. This is all still unexposed to the frontend, which will probably be the next step. Also update itanium mangling per `@rcvalle's` in https://github.com/rust-lang/rust/pull/121728/files#r1506570300, and fix a typo from step 1. Once these types are usable in code, I will add the codegen tests from #114607 (codegen is passing on that branch) This does add more `unimplemented!`s to Clippy, but I still don't think we can do better until library support is added. r? `@compiler-errors` cc `@Nilstrieb` `@rustbot` label +T-compiler +F-f16_and_f128
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 6fdb03c0bab..f005a240504 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -1991,8 +1991,10 @@ pub fn uint_ty(uty: ast::UintTy) -> UintTy { pub fn float_ty(fty: ast::FloatTy) -> FloatTy { match fty { + ast::FloatTy::F16 => FloatTy::F16, ast::FloatTy::F32 => FloatTy::F32, ast::FloatTy::F64 => FloatTy::F64, + ast::FloatTy::F128 => FloatTy::F128, } } |
