[LLVMdev] Request for Help: Teach ARM target to auto-detect cpu / subtarget features

陳韋任 chenwj at iis.sinica.edu.tw
Sat May 12 20:16:01 PDT 2012


Hi Chris,

> The right place to implement this is in lib/Support/Host.cpp.  X86 has an implementation of sys::getHostCPUName(), but everything else just uses the:
> 
> std::string sys::getHostCPUName() {
>   return "generic";
> }
> 
> implementation.

  I tried to let it return "armv7l" or "cortex-a9" on pandaboard, but the
bitcode output by clang still has 

  target triple = "armv4t-unknown-linux-gnueabi"

not what I expect 

  target triple = "armv7l-unknown-linux-gnueabi"

Do I miss something? Thanks.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list