clang: how to list supported target architectures?

后端 未结 9 735
南旧
南旧 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:12

    In case you are interested in which targets are supported for building LLVM or Clang from source (the values for -DLLVM_TARGETS_TO_BUILD), look for the list of subdirectories in llvm/lib/Target folder in source distribution. As of 9.0.1 there are:

    AArch64
    AMDGPU
    ARC
    ARM
    AVR
    BPF
    Hexagon
    Lanai
    MSP430
    Mips
    NVPTX
    PowerPC
    RISCV
    Sparc
    SystemZ
    WebAssembly
    X86
    

提交回复
热议问题