aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-06-17 11:53:31 +0100
committerGitHub <noreply@github.com>2024-06-17 11:53:31 +0100
commitf838f08c8def5f49001bba9dc4f682baef04cd14 (patch)
tree98a03c824023e596e0cee1ed18006db1ec2ad644 /flang/lib/Frontend/CompilerInvocation.cpp
parente843f029b47e98ae17b9f3e72175a76653f0bd66 (diff)
downloadllvm-f838f08c8def5f49001bba9dc4f682baef04cd14.zip
llvm-f838f08c8def5f49001bba9dc4f682baef04cd14.tar.gz
llvm-f838f08c8def5f49001bba9dc4f682baef04cd14.tar.bz2
[lldb] Add register field enum class (#90063)
This represents the enum type that can be assigned to a field using the `<enum>` element in the target XML. https://sourceware.org/gdb/current/onlinedocs/gdb.html/Enum-Target-Types.html Each enumerator has: * A non-empty name * A value that is within the range of the field it's applied to The XML includes a "size" but we don't need that for anything and it's a pain to verify so I've left it out of our internal structures. When emitting XML we'll set size to the size of the register using the enum. An Enumerator class is added to RegisterFlags and hooked up to the existing ToXML so lldb-server can use it to emit enums as well. As enums are elements on the same level as flags, when emitting XML we'll do so via the registers. Before emitting a flags element we look at all the fields and see what enums they reference. Then print all of those if we haven't already done so. Functions are added to dump enum information for `register info` to use to show the enum information.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions