mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 03:41:34 +00:00
This CL extends the Symbol class to store if the content of the symbol could parse as a builtin. Change-Id: I7e14ad944c1c9c43d900f9ccf8be6539ac9ea667 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/127460 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com>
69 lines
2.9 KiB
Markdown
69 lines
2.9 KiB
Markdown
# Tint Source Layering
|
|
|
|
The `BUILD.gn` is setup with small source units for various components
|
|
in Tint. The hierarchy of sources almost matches to folder structure in
|
|
tint (except for `base` which is a mix of things in `src/tint` and
|
|
`src/tint/util`.
|
|
|
|
|
|
```
|
|
+-----------------------------------------+
|
|
| Readers | Writers |
|
|
+-----------------------------------------+
|
|
|
|
|
V
|
|
+-----------------------------------------+
|
|
| Val | Inspector | Transform |
|
|
+-----------------------------------------+
|
|
| |
|
|
+--------------+------------------------------+
|
|
| |
|
|
V V
|
|
+-----------------------------------------+ +-----------+
|
|
| AST | | Utils IO |
|
|
+-----------------------------------------+ +-----------+
|
|
| |
|
|
V |
|
|
+-----------------------------------------+ |
|
|
| Program | Sem | |
|
|
+-----------------------------------------+ |
|
|
| |
|
|
V |
|
|
+-----------------------------------------+ |
|
|
| AST Hdrs | |
|
|
| (program and sem cause a cycle) | |
|
|
+-----------------------------------------+ |
|
|
| |
|
|
V |
|
|
+-----------------------------------------+ |
|
|
| Clone Context Hdrs | |
|
|
| (program and sem cause a cycle) | |
|
|
+-----------------------------------------+ |
|
|
| |
|
|
V |
|
|
+-----------------------------------------+ |
|
|
| Constant | |
|
|
+-----------------------------------------+ |
|
|
| |
|
|
V |
|
|
+-----------------------------------------+ |
|
|
| Types | |
|
|
+-----------------------------------------+ |
|
|
| |
|
|
|------------------------------+
|
|
V
|
|
+-----------------------------------------+
|
|
| Symbols |
|
|
+-----------------------------------------+
|
|
|
|
|
V
|
|
+-----------------------------------------+
|
|
| Builtin |
|
|
+-----------------------------------------+
|
|
|
|
|
V
|
|
+-----------------------------------------+ +-------------+
|
|
| Utils | | Initializer |
|
|
+-----------------------------------------+ +-------------+
|
|
```
|