advanced
Custom LLVM Backend Optimization Pass
Develop an optimization pass for a specific hardware architecture.
📝 Prompt İçeriği
Write a design document for an LLVM MachineIR pass that targets a custom VLIW (Very Long Instruction Word) architecture. The pass should perform instruction bundling to maximize parallel issue slots. Describe how you would analyze data dependencies in the basic blocks and construct dependency graphs (DAGs) to schedule instructions. Additionally, explain how you would handle register pressure and spill code generation during the scheduling process.