diff options
| author | Tim Besard <tim.besard@gmail.com> | 2024-08-20 14:12:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-20 14:12:35 +0200 |
| commit | eb7d535199d7fc3de763276093b97141a041d3d6 (patch) | |
| tree | 33ffe07df2b684a8de8cd603c8ab3a4bfed333a1 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 7cfc9a3a3d87e39611438e4bd178358329573294 (diff) | |
[LLVM] Add a C API for creating instructions with custom syncscopes. (#104775)
Another upstreaming of C API extensions we have in Julia/LLVM.jl.
Although [we went](https://github.com/maleadt/LLVM.jl/pull/431) with a
string-based API there, here I'm proposing something that's similar to
existing metadata/attribute APIs:
- explicit functions to map syncscope names to IDs, and back
- `LLVM*SyncScope` versions of builder APIs that already take a
`SingleThread` argument: atomic rmw, atomic xchg, fence
- `LLVMGetAtomicSyncScopeID` and `LLVMSetAtomicSyncScopeID` for other
atomic instructions
- testing through `llvm-c-test`'s `--echo` functionality
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
