|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| INPUTS/ | | 22-Nov-2023 | - | 1,013 | 915 |
| bindings/ | | 22-Nov-2023 | - | 6,248 | 4,501 |
| cmake/ | | 22-Nov-2023 | - | 92 | 73 |
| docs/ | | 22-Nov-2023 | - | 32,448 | 24,642 |
| examples/ | | 22-Nov-2023 | - | 552 | 364 |
| include/ | | 22-Nov-2023 | - | 192,878 | 113,265 |
| lib/ | | 22-Nov-2023 | - | 697,882 | 497,406 |
| runtime/ | | 22-Nov-2023 | - | 457 | 290 |
| test/ | | 22-Nov-2023 | - | 762,594 | 457,347 |
| tools/ | | 22-Nov-2023 | - | 35,808 | 27,164 |
| unittests/ | | 22-Nov-2023 | - | 34,985 | 29,078 |
| utils/ | | 22-Nov-2023 | - | 14,575 | 11,113 |
| www/ | | 22-Nov-2023 | - | 25,073 | 22,822 |
| .arcconfig | D | 22-Nov-2023 | 75 | 5 | 4 |
| .clang-format | D | 22-Nov-2023 | 19 | 2 | 1 |
| .clang-tidy | D | 22-Nov-2023 | 46 | 2 | 1 |
| .git | D | 01-Jan-1970 | 0 | | |
| .gitignore | D | 22-Nov-2023 | 1.4 KiB | 36 | 32 |
| Android.mk | D | 22-Nov-2023 | 2.6 KiB | 125 | 110 |
| CMakeLists.txt | D | 22-Nov-2023 | 25.8 KiB | 760 | 649 |
| CODE_OWNERS.TXT | D | 22-Nov-2023 | 1.3 KiB | 55 | 42 |
| INSTALL.txt | D | 22-Nov-2023 | 2.1 KiB | 49 | 35 |
| LICENSE.TXT | D | 22-Nov-2023 | 2.7 KiB | 64 | 48 |
| MODULE_LICENSE_BSD_LIKE | D | 22-Nov-2023 | 0 | | |
| Makefile | D | 22-Nov-2023 | 3 KiB | 125 | 72 |
| ModuleInfo.txt | D | 22-Nov-2023 | 96 | 6 | 5 |
| NOTES.txt | D | 22-Nov-2023 | 4.3 KiB | 112 | 80 |
| NOTICE | D | 22-Nov-2023 | 2.7 KiB | 64 | 48 |
| README.txt | D | 22-Nov-2023 | 1.2 KiB | 27 | 20 |
| ReadmeAndroid.md | D | 22-Nov-2023 | 3.7 KiB | 104 | 74 |
| RenderScriptPrebuilts.md | D | 22-Nov-2023 | 3.1 KiB | 113 | 80 |
| ToolchainPrebuilts.md | D | 22-Nov-2023 | 5.9 KiB | 190 | 129 |
| build.py | D | 22-Nov-2023 | 16.2 KiB | 482 | 356 |
| clang-device-build.mk | D | 22-Nov-2023 | 1.1 KiB | 46 | 35 |
| clang-host-build.mk | D | 22-Nov-2023 | 1.3 KiB | 57 | 42 |
| clang-tblgen-rules.mk | D | 22-Nov-2023 | 13.6 KiB | 249 | 210 |
| clang-version-inc.mk | D | 22-Nov-2023 | 1.6 KiB | 36 | 26 |
| clang.mk | D | 22-Nov-2023 | 372 | 9 | 7 |
| shared_clang.mk | D | 22-Nov-2023 | 1.6 KiB | 72 | 50 |
| update-prebuilts.py | D | 22-Nov-2023 | 4.9 KiB | 171 | 113 |
| version.py | D | 22-Nov-2023 | 41 | 4 | 3 |
README.txt
1//===----------------------------------------------------------------------===//
2// C Language Family Front-end
3//===----------------------------------------------------------------------===//
4
5Welcome to Clang. This is a compiler front-end for the C family of languages
6(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
7compiler infrastructure project.
8
9Unlike many other compiler frontends, Clang is useful for a number of things
10beyond just compiling code: we intend for Clang to be host to a number of
11different source-level tools. One example of this is the Clang Static Analyzer.
12
13If you're interested in more (including how to build Clang) it is best to read
14the relevant web sites. Here are some pointers:
15
16Information on Clang: http://clang.llvm.org/
17Building and using Clang: http://clang.llvm.org/get_started.html
18Clang Static Analyzer: http://clang-analyzer.llvm.org/
19Information on the LLVM project: http://llvm.org/
20
21If you have questions or comments about Clang, a great place to discuss them is
22on the Clang development mailing list:
23 http://lists.llvm.org/mailman/listinfo/cfe-dev
24
25If you find a bug in Clang, please file it in the LLVM bug tracker:
26 http://llvm.org/bugs/
27
ReadmeAndroid.md
1Android Clang/LLVM
2==================
3
4Platform Projects
5-----------------
6
7The LLVM toolchain is primarily composed of the following projects:
8
9* **external/clang**
10* **external/compiler-rt**
11* **external/llvm**
12
13Each of these projects has three important branches:
14
15* *aosp/master*
16
17 This is the branch that will be present in most platform trees. As such,
18 platform components that use clang or LLVM will build against the headers and
19 libraries in this branch.
20
21 This branch does not contain a full history. Updates to this are done via a
22 squashed merge from the *dev* branch. Aside from updates, patches usually
23 shouldn't be submitted to this branch. Any that are will need to be
24 cherry-picked to *dev*.
25
26* *aosp/dev*
27
28 The primary purpose of this branch is allowing us to decouple the platform
29 compilers from RenderScript and other platform components that depend on LLVM
30 libraries. This means we can update the platform compilers even if
31 RenderScript will need substantial modification for API changes.
32
33 Updates are performed in this branch, and the platform compilers are built
34 from this branch.
35
36* *aosp/upstream-master*
37
38 This branch is an automatically updated direct mirror of the upstream master
39 branch. This is a read only branch that is the merge source for updates to
40 *dev*.
41
42
43Development Flow
44----------------
45
46Rebases take place in the **aosp/llvm** tree. This tree is a manifest that uses
47the appropriate *dev* branches of each LLVM project and contains only the
48projects needed to build the platform compilers. Updates are done by merging
49from the *aosp/upstream-master* branch.
50
51Conflicts are resolved manually and then a patch is produced to adapt
52Android.mk files (as well as to add/delete any updated source files).
53Prebuilts are then generated using these projects and placed into the proper
54**prebuilts/clang/host** subprojects.
55
56The prebuilt projects contain multiple versions to make it easy to check in a
57new compiler that may not be ready to be enabled by default. Each new toolchain
58will add the following paths:
59
60 prebuilts/clang/host/linux-x86/clang-$BUILD_NUMBER
61 prebuilts/clang/host/darwin-x86/clang-$BUILD_NUMBER
62 prebuilts/clang/host/windows-x86/clang-$BUILD_NUMBER
63
64In order to prepare for the actual rebase (including updating dependent
65projects), we will copy each **external/** *aosp/dev* project to its
66corresponding **external/** *aosp/master* project as a squashed single CL.
67This makes rollbacks simpler, and it also reduces churn on the Android build
68servers.
69This also has the side effect of not spamming non-Android @google.com
70committers to upstream LLVM projects, since their commits will be batched up
71into a single copy commit on each tracked **external/** project.
72
73Prebuilts for llvm-rs-cc and bcc\_compat also need to be generated for
74**prebuilts/sdk**.
75This is done by running **frameworks/rs/update\_rs\_prebuilts.sh** on both Mac
76and Linux. This is done from the normal AOSP platform tree rather than the LLVM
77tree.
78After this completes, the **prebuilts/sdk** project will have a prepared
79branch/CL that can be uploaded for review/commit.
80
81
82Fixing Bugs
83-----------
84
85If we find a host-side bug that needs to be fixed, it may trigger an update of
86the host prebuilts (i.e. rebase).
87Device-side fixes can be pushed directly to **external/** *aosp/master* and then
88copied to **external/** *aosp/dev* to speed up the process (assuming that it
89doesn’t affect the host builds).
90
91
92Looking at Upstream
93-------------------
94
95The upstream repositories are automatically mirrored to the
96*aosp/upstream-master* branch. Update with `git fetch aosp upstream-master`.
97
98
99Guides for Updating Toolchains
100------------------------------
101
102* [Updating platform toolchains](ToolchainPrebuilts.md)
103* [Updating RenderScript prebuilts](RenderScriptPrebuilts.md)
104