llvm-c166/lldb/source/Utility
Bar Soloveychik bc2a795648
[lldb] Add builtin register type representation (#218725)
This patch introduces `RegisterTypeBuiltin`, an internal representation
of GDB predefined types such as `uint32`, `bool`, `ieee_half`, and
`data_ptr`.

- Store each builtin's encoding, display format, and optional fixed byte
size.
- Use `std::nullopt` for target-dependent types such as pointers.
- Teach `RegisterTypeBuilderClang` to create the corresponding Clang
`CompilerType`.
- Validate that the resulting type exactly matches the register size.
- Do not serialize builtins because GDB defines them implicitly by name.
- Add tests for fixed-size, named, pointer-sized, mismatched, and
non-serialized builtins.

This provides the scalar element types needed to build register vectors
in later patches. It does not parse or display vectors yet.

Co-authored-by: Bar Soloveychik <barsolo@fb.com>
2026-08-27 11:02:50 -07:00
..
AcceleratorGDBRemotePackets.cpp
AddressableBits.cpp
AddressSpace.cpp [lldb] Add AddressSpaceInfo and ProcessAddress utility classes (#206370) 2026-08-07 17:53:45 -06:00
ArchSpec.cpp [AMDGPU] Define gfx1250-strict target (#218543) 2026-08-25 13:11:13 -07:00
Args.cpp [lldb] Convert generic register names in a case insensitive way (#213001) 2026-07-31 10:28:36 +01:00
ARM64_DWARF_Registers.h
ARM64_ehframe_Registers.h
ARM_DWARF_Registers.h
ARM_ehframe_Registers.h
Baton.cpp
Broadcaster.cpp
Checksum.cpp
CMakeLists.txt [lldb] Add AddressSpaceInfo and ProcessAddress utility classes (#206370) 2026-08-07 17:53:45 -06:00
CompletionRequest.cpp
Connection.cpp
ConstString.cpp
DataBufferHeap.cpp
DataBufferLLVM.cpp
DataEncoder.cpp
DataExtractor.cpp [lldb] Fix misaligned pointer UB in DataExtractor::GetU16/U32/U64 array reads (#213038) 2026-08-10 20:18:01 +01:00
Environment.cpp
ErrorMessages.cpp
Event.cpp
FileSpec.cpp Reapply "[lldb] Remove ConstString from FileSpec" (#211927) (#214599) 2026-08-07 11:00:14 -07:00
FileSpecList.cpp
GDBRemote.cpp
Instrumentation.cpp
IOObject.cpp
Listener.cpp [lldb] Use StringRef when creating Listeners (#214863) 2026-08-10 16:27:37 -07:00
LLDBAssert.cpp
LLDBLog.cpp
Log.cpp [lldb] Fix invalid UTF-8 in JSON log message (#216185) 2026-08-16 11:25:30 +01:00
LoongArch_DWARF_Registers.h
NameMatches.cpp
Policy.cpp [lldb] Fix scripted frame provider cross-thread re-entrant deadlock (#208242) 2026-08-19 06:13:04 +00:00
PPC64_DWARF_Registers.h
PPC64LE_DWARF_Registers.h
ProcessInfo.cpp
RealpathPrefixes.cpp
RegisterType.cpp [lldb] Add builtin register type representation (#218725) 2026-08-27 11:02:50 -07:00
RegisterTypeFlags.cpp [lldb] Harden register type XML serialization (#218503) 2026-08-25 09:32:32 -07:00
RegisterValue.cpp
RegularExpression.cpp
RISCV_DWARF_Registers.h
Scalar.cpp [lldb] Clamp out-of-range shift amounts in Scalar (#217027) 2026-08-22 08:13:07 +01:00
SelectHelper.cpp
State.cpp
Status.cpp
Stream.cpp
StreamString.cpp
StringExtractor.cpp
StringExtractorGDBRemote.cpp
StringList.cpp
StructuredData.cpp
TildeExpressionResolver.cpp
Timer.cpp
TraceGDBRemotePackets.cpp
TraceIntelPTGDBRemotePackets.cpp
UnimplementedError.cpp
UriParser.cpp
UserID.cpp
UserIDResolver.cpp
UUID.cpp
VASprintf.cpp
VirtualDataExtractor.cpp
WasmVirtualRegisters.h
XcodeSDK.cpp
ZipFile.cpp