[LLVMdev] how to set -pre-ra-sched from code?

Andrew Friedley afriedle at indiana.edu
Wed Apr 14 08:33:47 PDT 2010


I've found that I need to set the -pre-RA-sched parameter when using 
tools like llc to get the kind of instruction scheduling I want.

However I'm normally generating and running code on the fly using the 
JIT, and can't figure out how to set the -pre-RA-sched option anywhere 
other than on the command line for the provided tools.  So what code 
would I write (or where is the API?) to change the pre-regalloc 
instruction scheduler algorithm?

I've been unable to find this in the documentation or reading source 
code; a pointer would be really useful.

Thanks,

Andrew



More information about the llvm-dev mailing list