clang: how to list supported target architectures?

后端 未结 9 723
南旧
南旧 2020-12-07 08:57

Currently I am interested in ARM in general and specifically iphone/android targets. But I just want to know more about clang, since it feels to play important role in the y

9条回答
  •  执笔经年
    2020-12-07 09:06

    Also try

    > llc -mattr=help
    
    Available CPUs for this target:
    
      amdfam10      - Select the amdfam10 processor.
      athlon        - Select the athlon processor.
      athlon-4      - Select the athlon-4 processor.
      athlon-fx     - Select the athlon-fx processor.
      athlon-mp     - Select the athlon-mp processor.
      athlon-tbird  - Select the athlon-tbird processor.
      athlon-xp     - Select the athlon-xp processor.
      athlon64      - Select the athlon64 processor.
      athlon64-sse3 - Select the athlon64-sse3 processor.
      atom          - Select the atom processor.
      ...
    Available features for this target:
    
      16bit-mode           - 16-bit mode (i8086).
      32bit-mode           - 32-bit mode (80386).
      3dnow                - Enable 3DNow! instructions.
      3dnowa               - Enable 3DNow! Athlon instructions.
      64bit                - Support 64-bit instructions.
      64bit-mode           - 64-bit mode (x86_64).
      adx                  - Support ADX instructions.
      ...
    

提交回复
热议问题