[llvm-commits] Global Merge Pass for ARM

Anton Korobeynikov anton at korobeynikov.info
Sat May 22 10:56:13 PDT 2010


Hi, Evan

> 3. MaxOffset should not be initialized when the pass is created. What if we want to support switching between ARM / Thumb mode on a function to function basis? Can it use TargetLowering::isLegalAddressingMode() or something similar instead?
Looks like this will require 2 new hooks like "getMaxGlobalOffset()"
and "getMinGlobalOffset()". The situation here is a little bit
different compared to the isLegalAddressingMode() - for example we're
still wanting to merge arrays of structs while isLegalAddressingMode()
works on simple types only... Or I'm missing something?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list