mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 14:18:20 +00:00
Support variable memory indices in the TBAA labelling too.
This commit is contained in:
@@ -5275,7 +5275,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
result.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(result);
|
||||
@@ -5299,7 +5299,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
result.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(result);
|
||||
@@ -5323,7 +5323,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
result.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(result);
|
||||
@@ -5347,7 +5347,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
result.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(result);
|
||||
@@ -5371,7 +5371,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
result.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(result);
|
||||
@@ -5390,7 +5390,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
)?;
|
||||
let store = self.builder.build_store(effective_address, value);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I64Store { ref memarg } => {
|
||||
let value = self.state.pop1()?;
|
||||
@@ -5405,7 +5410,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
)?;
|
||||
let store = self.builder.build_store(effective_address, value);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::F32Store { ref memarg } => {
|
||||
let (v, i) = self.state.pop1_extra()?;
|
||||
@@ -5421,7 +5431,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
)?;
|
||||
let store = self.builder.build_store(effective_address, v);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::F64Store { ref memarg } => {
|
||||
let (v, i) = self.state.pop1_extra()?;
|
||||
@@ -5437,7 +5452,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
)?;
|
||||
let store = self.builder.build_store(effective_address, v);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::V128Store { ref memarg } => {
|
||||
let (v, i) = self.state.pop1_extra()?;
|
||||
@@ -5453,7 +5473,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
)?;
|
||||
let store = self.builder.build_store(effective_address, v);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I32Load8S { ref memarg } => {
|
||||
let offset = self.state.pop1()?.into_int_value();
|
||||
@@ -5474,7 +5499,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_s_extend(
|
||||
@@ -5503,7 +5528,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_s_extend(
|
||||
@@ -5535,7 +5560,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result =
|
||||
@@ -5565,7 +5590,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result =
|
||||
@@ -5592,7 +5617,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_s_extend(
|
||||
@@ -5622,7 +5647,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_z_extend(
|
||||
@@ -5651,7 +5676,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_z_extend(
|
||||
@@ -5680,7 +5705,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_z_extend(
|
||||
@@ -5709,7 +5734,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_z_extend(
|
||||
@@ -5738,7 +5763,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
narrow_result.as_instruction_value().unwrap(),
|
||||
);
|
||||
let result = self.builder.build_int_z_extend(
|
||||
@@ -5765,7 +5790,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
.build_int_truncate(value, self.intrinsics.i8_ty, "");
|
||||
let store = self.builder.build_store(effective_address, narrow_value);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I32Store16 { ref memarg } | Operator::I64Store16 { ref memarg } => {
|
||||
let value = self.state.pop1()?.into_int_value();
|
||||
@@ -5783,7 +5813,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
.build_int_truncate(value, self.intrinsics.i16_ty, "");
|
||||
let store = self.builder.build_store(effective_address, narrow_value);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I64Store32 { ref memarg } => {
|
||||
let value = self.state.pop1()?.into_int_value();
|
||||
@@ -5801,7 +5836,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
.build_int_truncate(value, self.intrinsics.i32_ty, "");
|
||||
let store = self.builder.build_store(effective_address, narrow_value);
|
||||
store.set_alignment(1).unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I8x16Neg => {
|
||||
let (v, i) = self.state.pop1_extra()?;
|
||||
@@ -6182,7 +6222,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
elem.as_instruction_value().unwrap(),
|
||||
);
|
||||
let res = self.splat_vector(elem, self.intrinsics.i8x16_ty);
|
||||
@@ -6207,7 +6247,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
elem.as_instruction_value().unwrap(),
|
||||
);
|
||||
let res = self.splat_vector(elem, self.intrinsics.i16x8_ty);
|
||||
@@ -6232,7 +6272,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
elem.as_instruction_value().unwrap(),
|
||||
);
|
||||
let res = self.splat_vector(elem, self.intrinsics.i32x4_ty);
|
||||
@@ -6257,7 +6297,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
elem.as_instruction_value().unwrap(),
|
||||
);
|
||||
let res = self.splat_vector(elem, self.intrinsics.i64x2_ty);
|
||||
@@ -6289,7 +6329,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
load.set_alignment(4).unwrap();
|
||||
load.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), load);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
load,
|
||||
);
|
||||
self.state.push1(result);
|
||||
}
|
||||
Operator::I64AtomicLoad { ref memarg } => {
|
||||
@@ -6308,7 +6353,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
load.set_alignment(8).unwrap();
|
||||
load.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), load);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
load,
|
||||
);
|
||||
self.state.push1(result);
|
||||
}
|
||||
Operator::I32AtomicLoad8U { ref memarg } => {
|
||||
@@ -6330,7 +6380,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
load.set_alignment(1).unwrap();
|
||||
load.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), load);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
load,
|
||||
);
|
||||
let result =
|
||||
self.builder
|
||||
.build_int_z_extend(narrow_result, self.intrinsics.i32_ty, "");
|
||||
@@ -6355,7 +6410,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
load.set_alignment(2).unwrap();
|
||||
load.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), load);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
load,
|
||||
);
|
||||
let result =
|
||||
self.builder
|
||||
.build_int_z_extend(narrow_result, self.intrinsics.i32_ty, "");
|
||||
@@ -6380,7 +6440,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
load.set_alignment(1).unwrap();
|
||||
load.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), load);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
load,
|
||||
);
|
||||
let result =
|
||||
self.builder
|
||||
.build_int_z_extend(narrow_result, self.intrinsics.i64_ty, "");
|
||||
@@ -6405,7 +6470,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
load.set_alignment(2).unwrap();
|
||||
load.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), load);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
load,
|
||||
);
|
||||
let result =
|
||||
self.builder
|
||||
.build_int_z_extend(narrow_result, self.intrinsics.i64_ty, "");
|
||||
@@ -6430,7 +6500,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
load.set_alignment(4).unwrap();
|
||||
load.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), load);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
load,
|
||||
);
|
||||
let result =
|
||||
self.builder
|
||||
.build_int_z_extend(narrow_result, self.intrinsics.i64_ty, "");
|
||||
@@ -6453,7 +6528,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
store
|
||||
.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I64AtomicStore { ref memarg } => {
|
||||
let value = self.state.pop1()?;
|
||||
@@ -6472,7 +6552,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
store
|
||||
.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I32AtomicStore8 { ref memarg } | Operator::I64AtomicStore8 { ref memarg } => {
|
||||
let value = self.state.pop1()?.into_int_value();
|
||||
@@ -6494,7 +6579,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
store
|
||||
.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I32AtomicStore16 { ref memarg }
|
||||
| Operator::I64AtomicStore16 { ref memarg } => {
|
||||
@@ -6517,7 +6607,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
store
|
||||
.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I64AtomicStore32 { ref memarg } => {
|
||||
let value = self.state.pop1()?.into_int_value();
|
||||
@@ -6539,7 +6634,12 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
store
|
||||
.set_atomic_ordering(AtomicOrdering::SequentiallyConsistent)
|
||||
.unwrap();
|
||||
tbaa_label(&self.module, self.intrinsics, "memory 0".into(), store);
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
store,
|
||||
);
|
||||
}
|
||||
Operator::I32AtomicRmw8AddU { ref memarg } => {
|
||||
let value = self.state.pop1()?.into_int_value();
|
||||
@@ -6568,7 +6668,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6603,7 +6703,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6635,7 +6735,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -6667,7 +6767,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6702,7 +6802,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6737,7 +6837,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6769,7 +6869,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -6801,7 +6901,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6836,7 +6936,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6868,7 +6968,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -6900,7 +7000,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6935,7 +7035,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -6970,7 +7070,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7002,7 +7102,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7034,7 +7134,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7069,7 +7169,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7101,7 +7201,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7133,7 +7233,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7168,7 +7268,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7203,7 +7303,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7235,7 +7335,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7267,7 +7367,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7302,7 +7402,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7334,7 +7434,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7369,7 +7469,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7404,7 +7504,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7439,7 +7539,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7471,7 +7571,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7503,7 +7603,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7538,7 +7638,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7570,7 +7670,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7602,7 +7702,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7637,7 +7737,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7672,7 +7772,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7704,7 +7804,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7736,7 +7836,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7771,7 +7871,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7803,7 +7903,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7835,7 +7935,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7870,7 +7970,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7905,7 +8005,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -7937,7 +8037,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
self.state.push1(old);
|
||||
@@ -7976,7 +8076,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -8023,7 +8123,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -8064,7 +8164,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self.builder.build_extract_value(old, 0, "").unwrap();
|
||||
@@ -8104,7 +8204,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -8151,7 +8251,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -8198,7 +8298,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self
|
||||
@@ -8239,7 +8339,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
tbaa_label(
|
||||
&self.module,
|
||||
self.intrinsics,
|
||||
"memory 0".into(),
|
||||
format!("memory {}", memory_index.as_u32()),
|
||||
old.as_instruction_value().unwrap(),
|
||||
);
|
||||
let old = self.builder.build_extract_value(old, 0, "").unwrap();
|
||||
|
||||
Reference in New Issue
Block a user