[PATCH] D63210: gn build: Add NVPTX target

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 08:27:44 PDT 2019


thakis created this revision.
thakis added a reviewer: phosek.
Herald added subscribers: hiraditya, jholewinski.
Herald added a project: LLVM.

The NVPTX target is a bit unusual in that it's the only target without a disassembler, and one of three targets without an asm parser (and the first one of those three in the gn build). NVPTX doesn't have those because it's not a binary format.

The CMake build checks for the existence of {AsmParser,Disassembler}/CMakeLists.txt when setting LLVM_ENUM_ASM_PARSERS / LLVM_ENUM_DISASSEBLERS (http://llvm-cs.pcc.me.uk/CMakeLists.txt#744). The GN build doesn't want to hit the disk for things like this, so instead I'm adding explicit `targets_with_asm_parsers` and `targets_with_disassemblers` lists. Since both are needed rarely, they are defined in their own gni files.


https://reviews.llvm.org/D63210

Files:
  llvm/utils/gn/TODO.txt
  llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/NVPTX/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/NVPTX/MCTargetDesc/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/NVPTX/TargetInfo/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/targets.gni
  llvm/utils/gn/secondary/llvm/lib/Target/targets_with_asm_parsers.gni
  llvm/utils/gn/secondary/llvm/lib/Target/targets_with_disassemblers.gni

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63210.204298.patch
Type: text/x-patch
Size: 9051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190612/16f90b41/attachment.bin>


More information about the llvm-commits mailing list