OSDN Git Service

gn build: Add NVPTX target
authorNico Weber <nicolasweber@gmx.de>
Fri, 14 Jun 2019 18:07:00 +0000 (18:07 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 14 Jun 2019 18:07:00 +0000 (18:07 +0000)
commitb38f353791941c6446169f0a80fdae9a5ab71bc5
tree8e8ff8994d8c178c930282ee4cc9d96ac0a1a8e3
parentce52d84b19211215559ace2722a1f816896a0842
gn build: Add NVPTX target

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.

Differential Revision: https://reviews.llvm.org/D63210

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363437 91177308-0d34-0410-b5e6-96231b3b80d8
utils/gn/TODO.txt
utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
utils/gn/secondary/llvm/lib/Target/BUILD.gn
utils/gn/secondary/llvm/lib/Target/NVPTX/BUILD.gn [new file with mode: 0644]
utils/gn/secondary/llvm/lib/Target/NVPTX/MCTargetDesc/BUILD.gn [new file with mode: 0644]
utils/gn/secondary/llvm/lib/Target/NVPTX/TargetInfo/BUILD.gn [new file with mode: 0644]
utils/gn/secondary/llvm/lib/Target/targets.gni
utils/gn/secondary/llvm/lib/Target/targets_with_asm_parsers.gni [new file with mode: 0644]
utils/gn/secondary/llvm/lib/Target/targets_with_disassemblers.gni [new file with mode: 0644]