x64: Lower extractlane, scalar_to_vector, and splat in ISLE (#4780)
Lower extractlane, scalar_to_vector and splat in ISLE. This PR also makes some changes to the SinkableLoad api * change the return type of sink_load to RegMem as there are more functions available for dealing with RegMem * add reg_mem_to_reg_mem_imm and register it as an automatic conversion
This commit is contained in:
@@ -306,10 +306,10 @@ impl Context for IsleContext<'_, '_, MInst, Flags, IsaFlags, 6> {
|
||||
None
|
||||
}
|
||||
|
||||
fn sink_load(&mut self, load: &SinkableLoad) -> RegMemImm {
|
||||
fn sink_load(&mut self, load: &SinkableLoad) -> RegMem {
|
||||
self.lower_ctx.sink_inst(load.inst);
|
||||
let addr = lower_to_amode(self.lower_ctx, load.addr_input, load.offset);
|
||||
RegMemImm::Mem {
|
||||
RegMem::Mem {
|
||||
addr: SyntheticAmode::Real(addr),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user