In the help command when i checked the processors supported by llvm 2.9 it showed arm926ej-s. which means thumb mode is supported right? this belongs to armv5. but the llvm documentation says thumb mode is supported only for armv6 and higher… does it mean there is only a partial support for this processor?
LLVM does support thumb for ARM9 (llc -march=thumb -mcpu=arm926ej-s file.bc).
Cross-compilation with clang is still not good enough, but you can do
it in two phases (clang+llc) and get thumb correctly generated.
We are working on a patch to simplify cross-compilation on clang, though.