[LLVMdev] How to define a pass requiring a register allocation pass?

Tzu-Chien Chiu tzuchien.chiu at gmail.com
Fri Jul 29 00:12:55 PDT 2005


How to define a MachineFunctionPass requireing one of the register
allocation passes being executed first?

Should there be a PassInfo for register allocation in Pass.h?

Pass.h:

namespace llvm {
  extern const PassInfo *PHIEliminationID;
  extern const PassInfo *TwoAddressInstructionPassID;
  extern const PassInfo *RegisterAllocationPassID;              // <--
add this one?

There are four register allocation passes in CodeGen, but I don't know
which one will be used unitl  run-time (the register allocator is
chosen by a command line argument).

-- 
Tzu-Chien Chiu,
3D Graphics Hardware Architect
<URL:http://www.csie.nctu.edu.tw/~jwchiu>




More information about the llvm-dev mailing list