-
Notifications
You must be signed in to change notification settings - Fork 98
Update to nightly-2025-08-04. #508
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 and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
50f8a67
f2f668f
9c61be2
5796ebc
5a8cdc6
f99a5bc
9a0367f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1825,10 +1825,6 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> { | |
| self.declare_func_local_var(self.type_array(self.type_i8(), size.bytes()), align) | ||
| } | ||
|
|
||
| fn dynamic_alloca(&mut self, _len: Self::Value, _align: Align) -> Self::Value { | ||
| self.fatal("dynamic alloca not supported yet") | ||
| } | ||
|
|
||
| fn load(&mut self, ty: Self::Type, ptr: Self::Value, _align: Align) -> Self::Value { | ||
| let (ptr, access_ty) = self.adjust_pointer_for_typed_access(ptr, ty); | ||
| let loaded_val = ptr.const_fold_load(self).unwrap_or_else(|| { | ||
|
|
@@ -3253,6 +3249,10 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> { | |
| // ignore | ||
| } | ||
|
|
||
| #[tracing::instrument( | ||
| level = "debug", | ||
| skip(self, callee_ty, _fn_attrs, fn_abi, callee, args, funclet) | ||
| )] | ||
| fn call( | ||
| &mut self, | ||
| callee_ty: Self::Type, | ||
|
|
@@ -3263,9 +3263,6 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> { | |
| funclet: Option<&Self::Funclet>, | ||
| instance: Option<ty::Instance<'tcx>>, | ||
| ) -> Self::Value { | ||
| let span = tracing::span!(tracing::Level::DEBUG, "call"); | ||
| let _enter = span.enter(); | ||
|
|
||
| if funclet.is_some() { | ||
| self.fatal("TODO: Funclets are not supported"); | ||
| } | ||
|
|
@@ -3387,6 +3384,15 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> { | |
| } | ||
| } | ||
|
|
||
| // HACK(fee1-dead): `MaybeUninit` uses a union which we don't have very good support yet. Replacing all calls to it | ||
| // with an `Undef` serves the same purpose and fixes compiler errors | ||
| if instance_def_id.is_some_and(|did| { | ||
| self.tcx | ||
| .is_diagnostic_item(rustc_span::sym::maybe_uninit_uninit, did) | ||
| }) { | ||
| return self.undef(result_type); | ||
| } | ||
|
|
||
| // Default: emit a regular function call | ||
| let args = args.iter().map(|arg| arg.def(self)).collect::<Vec<_>>(); | ||
| self.emit() | ||
|
|
@@ -3395,6 +3401,19 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> { | |
| .with_type(result_type) | ||
| } | ||
|
|
||
| fn tail_call( | ||
| &mut self, | ||
| _llty: Self::Type, | ||
| _fn_attrs: Option<&CodegenFnAttrs>, | ||
| _fn_abi: &FnAbi<'tcx, Ty<'tcx>>, | ||
| _llfn: Self::Value, | ||
| _args: &[Self::Value], | ||
| _funclet: Option<&Self::Funclet>, | ||
| _instance: Option<ty::Instance<'tcx>>, | ||
| ) { | ||
| todo!() | ||
| } | ||
|
Comment on lines
+3404
to
+3415
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is from @nnethercote 's commits. CI is passing, so I assume this is never called, but why not make
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could that break semantic expectations when someone expects TCO? I guess it is moot as there is no support for |
||
|
|
||
| fn zext(&mut self, val: Self::Value, dest_ty: Self::Type) -> Self::Value { | ||
| self.intcast(val, dest_ty, false) | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What an interesting solution, I like it!