Skip to content

Commit b2fed29

Browse files
committed
Update Cranelift
1 parent d195107 commit b2fed29

File tree

6 files changed

+14
-24
lines changed

6 files changed

+14
-24
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/abi/pass_mode.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ pub(super) fn from_casted_value<'tcx>(
204204
// It may also be smaller for example when the type is a wrapper around an integer with a
205205
// larger alignment than the integer.
206206
size: (std::cmp::max(abi_param_size, layout_size) + 15) / 16 * 16,
207-
offset: None,
208207
});
209208
let ptr = Pointer::new(fx.bcx.ins().stack_addr(pointer_ty(fx.tcx), stack_slot, 0));
210209
let mut offset = 0;

src/base.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ pub(crate) fn verify_func(
203203
tcx.sess.err(&format!("{:?}", err));
204204
let pretty_error = cranelift_codegen::print_errors::pretty_verifier_error(
205205
&func,
206-
None,
207206
Some(Box::new(writer)),
208207
err,
209208
);

src/inline_asm.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ fn call_inline_asm<'tcx>(
263263
) {
264264
let stack_slot = fx.bcx.func.create_stack_slot(StackSlotData {
265265
kind: StackSlotKind::ExplicitSlot,
266-
offset: None,
267266
size: u32::try_from(slot_size.bytes()).unwrap(),
268267
});
269268
if fx.clif_comments.enabled() {

src/pretty_clif.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ use std::io::Write;
5757

5858
use cranelift_codegen::{
5959
entity::SecondaryMap,
60-
ir::{entities::AnyEntity, function::DisplayFunctionAnnotations},
60+
ir::entities::AnyEntity,
6161
write::{FuncWriter, PlainWriter},
6262
};
6363

@@ -129,7 +129,6 @@ impl FuncWriter for &'_ CommentWriter {
129129
&mut self,
130130
w: &mut dyn fmt::Write,
131131
func: &Function,
132-
reg_info: Option<&isa::RegInfo>,
133132
) -> Result<bool, fmt::Error> {
134133
for comment in &self.global_comments {
135134
if !comment.is_empty() {
@@ -142,7 +141,7 @@ impl FuncWriter for &'_ CommentWriter {
142141
writeln!(w)?;
143142
}
144143

145-
self.super_preamble(w, func, reg_info)
144+
self.super_preamble(w, func)
146145
}
147146

148147
fn write_entity_definition(
@@ -165,23 +164,21 @@ impl FuncWriter for &'_ CommentWriter {
165164
&mut self,
166165
w: &mut dyn fmt::Write,
167166
func: &Function,
168-
isa: Option<&dyn isa::TargetIsa>,
169167
block: Block,
170168
indent: usize,
171169
) -> fmt::Result {
172-
PlainWriter.write_block_header(w, func, isa, block, indent)
170+
PlainWriter.write_block_header(w, func, block, indent)
173171
}
174172

175173
fn write_instruction(
176174
&mut self,
177175
w: &mut dyn fmt::Write,
178176
func: &Function,
179177
aliases: &SecondaryMap<Value, Vec<Value>>,
180-
isa: Option<&dyn isa::TargetIsa>,
181178
inst: Inst,
182179
indent: usize,
183180
) -> fmt::Result {
184-
PlainWriter.write_instruction(w, func, aliases, isa, inst, indent)?;
181+
PlainWriter.write_instruction(w, func, aliases, inst, indent)?;
185182
if let Some(comment) = self.entity_comments.get(&inst.into()) {
186183
writeln!(w, "; {}", comment.replace('\n', "\n; "))?;
187184
}
@@ -249,7 +246,6 @@ pub(crate) fn write_clif_file<'tcx>(
249246
&mut clif_comments,
250247
&mut clif,
251248
&context.func,
252-
&DisplayFunctionAnnotations { isa: Some(isa), value_ranges: None },
253249
)
254250
.unwrap();
255251

@@ -278,7 +274,6 @@ impl fmt::Debug for FunctionCx<'_, '_, '_> {
278274
&mut &self.clif_comments,
279275
&mut clif,
280276
&self.bcx.func,
281-
&DisplayFunctionAnnotations::default(),
282277
)
283278
.unwrap();
284279
writeln!(f, "\n{}", clif)

src/value_and_place.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ impl<'tcx> CPlace<'tcx> {
329329
// FIXME Don't force the size to a multiple of 16 bytes once Cranelift gets a way to
330330
// specify stack slot alignment.
331331
size: (u32::try_from(layout.size.bytes()).unwrap() + 15) / 16 * 16,
332-
offset: None,
333332
});
334333
CPlace { inner: CPlaceInner::Addr(Pointer::stack_slot(stack_slot), None), layout }
335334
}
@@ -472,7 +471,6 @@ impl<'tcx> CPlace<'tcx> {
472471
// FIXME Don't force the size to a multiple of 16 bytes once Cranelift gets a way to
473472
// specify stack slot alignment.
474473
size: (src_ty.bytes() + 15) / 16 * 16,
475-
offset: None,
476474
});
477475
let ptr = Pointer::stack_slot(stack_slot);
478476
ptr.store(fx, data, MemFlags::trusted());

0 commit comments

Comments
 (0)