Reference
InstructionSelect pass transforms generic machine instructions into equivalent target-specifc instructions. It traverses the MachineFunction bottom-up, selecting uses before definitions, enabling trivial dead code elimination.
The target implements InstructionSelector class, containing target-specific selection logic.
virtual bool select(MachineInstr &MI)
This method is responsible for
gvregs into the appropriate register classesvreg operands. The folding can occur across basic blocks as GlobalISel is Global.TableGen will import SelectDAG rules and provide the following function to execute them:
bool selectImpl(MachineInstr &MI)
If you could revise
the fundmental principles of
computer system design
to improve security...
... what would you change?