File tree Expand file tree Collapse file tree
cranelift/codegen/src/legalizer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313//! The legalizer does not deal with register allocation constraints. These constraints are derived
1414//! from the encoding recipes, and solved later by the register allocator.
1515
16+ #[ cfg( any( feature = "x86" , feature = "riscv" ) ) ]
1617use crate :: bitset:: BitSet ;
1718use crate :: cursor:: { Cursor , FuncCursor } ;
1819use crate :: flowgraph:: ControlFlowGraph ;
1920use crate :: ir:: types:: { I32 , I64 } ;
2021use crate :: ir:: { self , InstBuilder , MemFlags } ;
2122use crate :: isa:: TargetIsa ;
2223
23- #[ cfg( any(
24- feature = "x86" ,
25- feature = "arm32" ,
26- feature = "arm64" ,
27- feature = "riscv"
28- ) ) ]
24+ #[ cfg( any( feature = "x86" , feature = "riscv" ) ) ]
2925use crate :: predicates;
30- #[ cfg( any(
31- feature = "x86" ,
32- feature = "arm32" ,
33- feature = "arm64" ,
34- feature = "riscv"
35- ) ) ]
26+ #[ cfg( any( feature = "x86" , feature = "riscv" ) ) ]
3627use alloc:: vec:: Vec ;
3728
3829use crate :: timing;
@@ -46,6 +37,7 @@ mod libcall;
4637mod split;
4738mod table;
4839
40+ #[ cfg( any( feature = "x86" , feature = "riscv" ) ) ]
4941use self :: call:: expand_call;
5042use self :: globalvalue:: expand_global_value;
5143use self :: heap:: expand_heap_addr;
You can’t perform that action at this time.
0 commit comments