diff options
| author | Helena Kotas <hekotas@microsoft.com> | 2024-07-01 13:55:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-01 13:55:25 -0700 |
| commit | 938cbdb4cf428bf08558c24d845aeac9174c7022 (patch) | |
| tree | ff71a9e064a10f5fb75ff743e70877a58312e2b1 /lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py | |
| parent | 6e93e37fe917833ad2d4d09ceda150ffe755b03e (diff) | |
[HLSL] Implement `export` keyword (#96823)
Implements `export` keyword in HLSL.
There are two ways the `export` keyword can be used:
1. On individual function declarations
```
export void f() {}
```
2. On a group of function declaration:
```
export {
void f1();
void f2() {}
}
```
Functions declared with the `export` keyword have external linkage. The
implementation does not include validation of when a function can or
cannot be exported, such as when it has resource argument or semantic
annotations. That will be covered by llvm/llvm-project#93330.
Currently all function declarations in global or named namespaces have
external linkage by default so there are no specific code changes
required right now to make sure exported function have external linkage
as well. That will change as part of llvm/llvm-project#92071. Any
additional changes to make sure exported functions still have external
linkage will be done as part of this work item.
Fixes #92812
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
0 files changed, 0 insertions, 0 deletions
