Bug 189015
Summary: | [WHLSL] Generate built-in functions "as-if" they were there the whole time | ||
---|---|---|---|
Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 176199 |
Myles C. Maxfield
Now that we've removed generics, we need to generate some functions at compile time. For example, operator.length of an int[10]. There is no way of describing this generically in the standard library, so we do it at compile time.
These newly-generated functions need to be created inside the type checker, because that's the only place which the type of every expression in the program. However, this is halfway through compilation. We need to make sure these newly-generated functions don't have any observable difference than regular functions in the standard library.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/86