Thank you Ian for your quick response. This is what I want to do: I want the scheduling phase to say an RTX X must be allocated registers from Register CLASS A. So how can I tell register allocator to do this?
Thanks, -Balaji V. Iyer. -- Balaji V. Iyer PhD Candidate, Center for Efficient, Scalable and Reliable Computing, Department of Electrical and Computer Engineering, North Carolina State University. -----Original Message----- From: Ian Lance Taylor [mailto:i...@google.com] Sent: Monday, December 15, 2008 4:22 PM To: Balaji V. Iyer Cc: gcc@gcc.gnu.org Subject: Re: Machine Dependent Reorganization Question "Balaji V. Iyer" <bvi...@ncsu.edu> writes: > 1) Is the machine dependent reorganization phase occuring after or > before the register allocation phase? After. See passes.c. > 2) Also, is it possible for me to add my own "demands" (or > suggestions) into the register allocator? It really depends on what you mean. There are command line options like -ffixed-REG. If you edit the CPU.md file you can specify register classes for particular insns. If you want to rewrite the instruction stream you can do your own register allocation by replacing some pseudo-regs with hard regs. Ian