[PATCH] D55524: [gn build] Add build files for Target/X86/... and for tools/llc

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 10 10:25:17 PST 2018


thakis created this revision.
thakis added a reviewer: phosek.
Herald added a subscriber: hiraditya.

The tablegen setup for Target/X86 is a bit different from the CMake build: In the CMake build, Target/X86/CMakeLists.txt has a single tablegen target that does everything. But some of the generated files are only used privately by a subproject, so in the GN build some of the tablegen invocations are smaller-scoped, mostly for build cleanliness. (It helps also a tiny bit with build parallelism since now e.g. the cpp files in MCTargetDesc can build after just 3 .inc files are generated instead of being blocked on all 13. But it's not a big win, since things depending on Target still need to wait for all 11, even though all .inc file use is internal to lib/Target.)

Also add a build file for llc, since now all its dependencies have build files.


https://reviews.llvm.org/D55524

Files:
  llvm/utils/gn/secondary/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/X86/AsmParser/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/X86/Disassembler/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/X86/InstPrinter/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/X86/MCTargetDesc/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/X86/TargetInfo/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/X86/Utils/BUILD.gn
  llvm/utils/gn/secondary/llvm/lib/Target/targets.gni
  llvm/utils/gn/secondary/llvm/tools/llc/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55524.177551.patch
Type: text/x-patch
Size: 14352 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181210/3d155ee4/attachment.bin>


More information about the llvm-commits mailing list