cranelift: Remove const_addr instruction (fixes #2398) (#4843)

This commit is contained in:
Jamey Sharp
2022-09-01 14:57:37 -07:00
committed by GitHub
parent ae5fe8a728
commit 84ac24c23d
5 changed files with 2 additions and 21 deletions

View File

@@ -1455,21 +1455,6 @@ pub(crate) fn define(
.operands_out(vec![a]),
);
let constant =
&Operand::new("constant", &imm.pool_constant).with_doc("A constant in the constant pool");
let address = &Operand::new("address", iAddr);
ig.push(
Inst::new(
"const_addr",
r#"
Calculate the base address of a value in the constant pool.
"#,
&formats.unary_const,
)
.operands_in(vec![constant])
.operands_out(vec![address]),
);
let mask = &Operand::new("mask", &imm.uimm128)
.with_doc("The 16 immediate bytes used for selecting the elements to shuffle");
let Tx16 = &TypeVar::new(