diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-02-12 08:19:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 08:19:30 -0800 |
commit | bee9664970d51df3f4e1d298d1bcb95bba364e17 (patch) | |
tree | 310d1323fe2cad0643abd7b4e94319a4252c487f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | 165a3d6a9b164dc98a70596fa8117acf3de20254 (diff) | |
download | llvm-bee9664970d51df3f4e1d298d1bcb95bba364e17.zip llvm-bee9664970d51df3f4e1d298d1bcb95bba364e17.tar.gz llvm-bee9664970d51df3f4e1d298d1bcb95bba364e17.tar.bz2 |
[TableGen] Emit OpName as an enum class instead of a namespace (#125313)
- Change InstrInfoEmitter to emit OpName as an enum class
instead of an anonymous enum in the OpName namespace.
- This will help clearly distinguish between values that are
OpNames vs just operand indices and should help avoid
bugs due to confusion between the two.
- Rename OpName::OPERAND_LAST to NUM_OPERAND_NAMES.
- Emit declaration of getOperandIdx() along with the OpName
enum so it doesn't have to be repeated in various headers.
- Also updated AMDGPU, RISCV, and WebAssembly backends
to conform to the new definition of OpName (mostly
mechanical changes).
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions