1403 Commits

Author SHA1 Message Date
LLVM GN Syncbot
9112567bbd [gn build] Port e336b74c995 2020-09-25 12:13:19 +00:00
Arthur Eubanks
11a75e6c92 [gn build] Allow option to build with asan/tsan/ubsan
Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D88056
2020-09-23 11:24:38 -07:00
LLVM GN Syncbot
5ae94047bf [gn build] Port 8a64689e264 2020-09-22 18:07:36 +00:00
LLVM GN Syncbot
a75f75415a [gn build] Port 848d66fafd2 2020-09-22 18:07:35 +00:00
LLVM GN Syncbot
9114d6cbda [gn build] Port af582c9b0f3 2020-09-22 06:47:54 +00:00
LLVM GN Syncbot
6d2bf5e3c8 [gn build] Port 4fc0214a101 2020-09-21 12:47:54 +00:00
Nico Weber
70409b2897 [gn build] Port 2124ca1d5cb 2020-09-19 08:34:58 -04:00
Nico Weber
ec9fb73277 [gn build] (manually) merge 2124ca1d5 2020-09-19 08:29:55 -04:00
Nico Weber
3618ac203f Revert "Revert "[gn build] (manually) port 9b6765e784b3" anf follow-ups"
This reverts commit 90fffdd0f705bfb480810cef087305567dc4f6cf.
The original change relanded.
2020-09-19 08:28:38 -04:00
Nico Weber
528a1f121c [gn build] (manually) port 5495b691646 2020-09-18 21:27:49 -04:00
Nico Weber
90fffdd0f7 Revert "[gn build] (manually) port 9b6765e784b3" anf follow-ups
9b6765e784b3 was reverted in 549e55b3d5634.

This reverts commit 442801a7b9b5460114498c48c12b8af40e495188.
This reverts commit 929d91a55616d4fcf4754044b063644807b87fbe.
This reverts commit 7c2d83347f4ea146af1aca72fe289294aaf212be.
2020-09-18 21:14:27 -04:00
Nico Weber
7c2d83347f [gn build] add file i forgot to add in 929d91a55616 2020-09-18 16:01:00 -04:00
Nico Weber
929d91a556 [gn build] (manually) port 9b6765e784b3 more 2020-09-18 15:56:34 -04:00
Nico Weber
9b346f974e [gn build] Do not sync filenames containing variable references 2020-09-18 15:34:33 -04:00
Nico Weber
442801a7b9 [gn build] (manually) port 9b6765e784b3 2020-09-18 15:26:58 -04:00
LLVM GN Syncbot
667762c64e [gn build] Port 7e4c6fb8546 2020-09-17 19:09:34 +00:00
Nico Weber
504697e6f4 [gn build] (manually) port c9af34027bc 2020-09-17 06:33:24 -04:00
LLVM GN Syncbot
0dd4d70ec2 [gn build] Port a895040eb02 2020-09-17 03:02:00 +00:00
LLVM GN Syncbot
436a43afb2 [gn build] Port b04c1a9d312 2020-09-17 01:54:10 +00:00
Nico Weber
0c6a56e41d [gn build] (manually) port 1321160a2 2020-09-16 18:29:07 -04:00
LLVM GN Syncbot
2a078a977e [gn build] Port 56069b5c71c 2020-09-16 19:03:25 +00:00
Nico Weber
15c378f6e6 [gn build] unconfuse sync script about "sources = []" in clang/lib/Headers/BUILD.gn 2020-09-16 14:50:29 -04:00
Nico Weber
b3d33f5e83 [gn build] make "all" target build
If you want to build everything, building the default target
via just `ninja` is better, but `ninja all` shouldn't give you
compile errors -- this fixes that.
2020-09-16 14:21:48 -04:00
LLVM GN Syncbot
32a61531b8 [gn build] Port 3d42d549554 2020-09-15 18:32:17 +00:00
LLVM GN Syncbot
c0809f8d79 [gn build] Port cd4edf94cd4 2020-09-15 13:32:48 +00:00
LLVM GN Syncbot
46dc41e1ef [gn build] Port a8058c6f8d1 2020-09-15 13:32:47 +00:00
Nico Weber
57752b1449 [gn build] (semi-manually) port 380e746bcca 2020-09-15 09:25:30 -04:00
Arthur Eubanks
10b12d4035 Reland [docs][NewPM] Add docs for writing NPM passes
As to not conflict with the legacy PM example passes under
llvm/lib/Transforms/Hello, this is under HelloNew. This makes the
CMakeLists.txt and general directory structure less confusing for people
following the example.

Much of the doc structure was taken from WritinAnLLVMPass.rst.

This adds a HelloWorld pass which simply prints out each function name.

More will follow after this, e.g. passes over different units of IR, analyses.
https://llvm.org/docs/WritingAnLLVMPass.html contains a lot more.

Relanded with missing "Support" dependency in LLVMBuild.txt.

Reviewed By: ychen, asbirlea

Differential Revision: https://reviews.llvm.org/D86979
2020-09-14 16:06:19 -07:00
Arthur Eubanks
39ec36415d Revert "[docs][NewPM] Add docs for writing NPM passes"
This reverts commit c2590de30df23ef0db39b496cdec62a83a61fbfa.

Breaks shared libs build
2020-09-14 15:55:17 -07:00
Arthur Eubanks
c2590de30d [docs][NewPM] Add docs for writing NPM passes
As to not conflict with the legacy PM example passes under
llvm/lib/Transforms/Hello, this is under HelloNew. This makes the
CMakeLists.txt and general directory structure less confusing for people
following the example.

Much of the doc structure was taken from WritinAnLLVMPass.rst.

This adds a HelloWorld pass which simply prints out each function name.

More will follow after this, e.g. passes over different units of IR, analyses.
https://llvm.org/docs/WritingAnLLVMPass.html contains a lot more.

Reviewed By: ychen, asbirlea

Differential Revision: https://reviews.llvm.org/D86979
2020-09-14 13:26:03 -07:00
LLVM GN Syncbot
2ad38f7a46 [gn build] Port 226d80ebe20 2020-09-14 20:16:21 +00:00
LLVM GN Syncbot
119e57be76 [gn build] Port 30667c967d3 2020-09-14 08:53:33 +00:00
LLVM GN Syncbot
70daa353e2 [gn build] Port cc2da5554b5 2020-09-12 23:13:20 +00:00
LLVM GN Syncbot
4ede83c068 [gn build] Port 19531a81f1d 2020-09-12 10:08:18 +00:00
LLVM GN Syncbot
0e0d93e2f0 [gn build] Port ad99e34c59b 2020-09-12 01:54:23 +00:00
Reid Kleckner
12a281d368 [gn] Remove unneeded MC dep from llvm-tblgen
Tablegen does not have link time dependencies on MC. Having llvm-tblgen
depend on it causes it to be rebuilt in the gn build every time somebody
touches any cpp file in llvm/lib/MC* or llvm/lib/DebugInfo/Codeview*.
Touching tablegen invalidates most of the rest of the build, and
re-running it takes a while. This is is annoying for me when swapping
between branches that touch CodeView logic.

This dep was added to LLVMBuild.txt back in 2018, and presumably it was
carried over into the gn build.

Differential Revision: https://reviews.llvm.org/D87553
2020-09-11 18:28:49 -07:00
LLVM GN Syncbot
c931dc0bf5 [gn build] Port 31ecf8d29d8 2020-09-11 23:54:25 +00:00
Nico Weber
87494def48 [gn build] slightly improve libcxx_needs_site_config
The write_cmake_config() here still looks busted, but at least
the value that's explicitly set is now set correctly.
2020-09-11 11:32:20 -04:00
LLVM GN Syncbot
de2adfaf25 [gn build] Port 8da6ae4ce1b 2020-09-11 13:49:35 +00:00
LLVM GN Syncbot
bbb6392c14 [gn build] Port 3eb141e5078 2020-09-11 13:43:45 +00:00
Nico Weber
5692497aef [gn build] (semi-manually) port 009cd4e4910 2020-09-10 15:15:59 -04:00
LLVM GN Syncbot
be7cef789e [gn build] Port c01d28dc51b 2020-09-10 16:54:11 +00:00
Nico Weber
29cecbc5d6 Fix clangd build after 33c9dbbd380 2020-09-10 11:05:53 -04:00
Nico Weber
33c9dbbd38 Add an explicit toggle for the static analyzer in clang-tidy
Instead of using CLANG_ENABLE_STATIC_ANALYZER for use of the
static analyzer in both clang and clang-tidy, add a second
toggle CLANG_TIDY_ENABLE_STATIC_ANALYZER.

This allows enabling the static analyzer in clang-tidy while
disabling it in clang.

Differential Revison: https://reviews.llvm.org/D87118
2020-09-10 10:48:17 -04:00
LLVM GN Syncbot
64104db59d [gn build] Port ebf496d8055 2020-09-10 13:33:11 +00:00
Petr Hosek
c4d7536136 [CMake] Simplify CMake handling for libxml2
This matches the changes made to handling of zlib done in 10b1b4a
where we rely on find_package and the imported target rather than
manually appending the library and include paths. The use of
LLVM_LIBXML2_ENABLED has been replaced by LLVM_ENABLE_LIBXML2
thus reducing the number of variables.

Differential Revision: https://reviews.llvm.org/D84563
2020-09-09 21:44:44 -07:00
LLVM GN Syncbot
fdc8a1aac2 [gn build] Port c0e5e3fbfa5 2020-09-09 07:32:57 +00:00
Nico Weber
e09e1d97c1 [gn build] (manually) port 156b127945a8 2020-09-08 10:00:41 -04:00
LLVM GN Syncbot
bb73fcfd07 [gn build] Port 23f700c785a 2020-09-07 12:51:23 +00:00
LLVM GN Syncbot
9764eb9212 [gn build] Port 0478720157f 2020-09-07 10:32:22 +00:00