LLDB  mainline
ArchSpec.h
Go to the documentation of this file.
1 //===-- ArchSpec.h ----------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_UTILITY_ARCHSPEC_H
10 #define LLDB_UTILITY_ARCHSPEC_H
11 
14 #include "lldb/lldb-enumerations.h"
15 #include "lldb/lldb-forward.h"
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/ADT/Triple.h"
19 #include "llvm/Support/YAMLTraits.h"
20 #include <cstddef>
21 #include <cstdint>
22 #include <string>
23 
24 namespace lldb_private {
25 
26 /// \class ArchSpec ArchSpec.h "lldb/Utility/ArchSpec.h" An architecture
27 /// specification class.
28 ///
29 /// A class designed to be created from a cpu type and subtype, a
30 /// string representation, or an llvm::Triple. Keeping all of the conversions
31 /// of strings to architecture enumeration values confined to this class
32 /// allows new architecture support to be added easily.
33 class ArchSpec {
34 public:
35  enum MIPSSubType {
49  };
50 
51  // Masks for the ases word of an ABI flags structure.
52  enum MIPSASE {
53  eMIPSAse_dsp = 0x00000001, // DSP ASE
54  eMIPSAse_dspr2 = 0x00000002, // DSP R2 ASE
55  eMIPSAse_eva = 0x00000004, // Enhanced VA Scheme
56  eMIPSAse_mcu = 0x00000008, // MCU (MicroController) ASE
57  eMIPSAse_mdmx = 0x00000010, // MDMX ASE
58  eMIPSAse_mips3d = 0x00000020, // MIPS-3D ASE
59  eMIPSAse_mt = 0x00000040, // MT ASE
60  eMIPSAse_smartmips = 0x00000080, // SmartMIPS ASE
61  eMIPSAse_virt = 0x00000100, // VZ ASE
62  eMIPSAse_msa = 0x00000200, // MSA ASE
63  eMIPSAse_mips16 = 0x00000400, // MIPS16 ASE
64  eMIPSAse_micromips = 0x00000800, // MICROMIPS ASE
65  eMIPSAse_xpa = 0x00001000, // XPA ASE
66  eMIPSAse_mask = 0x00001fff,
67  eMIPSABI_O32 = 0x00002000,
68  eMIPSABI_N32 = 0x00004000,
69  eMIPSABI_N64 = 0x00008000,
70  eMIPSABI_O64 = 0x00020000,
71  eMIPSABI_EABI32 = 0x00040000,
72  eMIPSABI_EABI64 = 0x00080000,
73  eMIPSABI_mask = 0x000ff000
74  };
75 
76  // MIPS Floating point ABI Values
77  enum MIPS_ABI_FP {
78  eMIPS_ABI_FP_ANY = 0x00000000,
79  eMIPS_ABI_FP_DOUBLE = 0x00100000, // hard float / -mdouble-float
80  eMIPS_ABI_FP_SINGLE = 0x00200000, // hard float / -msingle-float
81  eMIPS_ABI_FP_SOFT = 0x00300000, // soft float
82  eMIPS_ABI_FP_OLD_64 = 0x00400000, // -mips32r2 -mfp64
83  eMIPS_ABI_FP_XX = 0x00500000, // -mfpxx
84  eMIPS_ABI_FP_64 = 0x00600000, // -mips32r2 -mfp64
85  eMIPS_ABI_FP_64A = 0x00700000, // -mips32r2 -mfp64 -mno-odd-spreg
86  eMIPS_ABI_FP_mask = 0x00700000
87  };
88 
89  // ARM specific e_flags
90  enum ARMeflags {
91  eARM_abi_soft_float = 0x00000200,
92  eARM_abi_hard_float = 0x00000400
93  };
94 
95  enum RISCVSubType {
99  };
100 
101  enum Core {
118 
137 
158 
172 
176 
178 
180 
182 
187 
189  eCore_x86_64_x86_64h, // Haswell enabled x86_64
193 
196 
199 
200  eCore_arc, // little endian ARC
201 
203 
205 
207 
209  // The following constants are used for wildcard matching only
217 
220 
223 
226 
229 
232 
235 
238 
241 
244 
247 
250 
253 
254  };
255 
256  /// Default constructor.
257  ///
258  /// Default constructor that initializes the object with invalid cpu type
259  /// and subtype values.
260  ArchSpec();
261 
262  /// Constructor over triple.
263  ///
264  /// Constructs an ArchSpec with properties consistent with the given Triple.
265  explicit ArchSpec(const llvm::Triple &triple);
266  explicit ArchSpec(const char *triple_cstr);
267  explicit ArchSpec(llvm::StringRef triple_str);
268  /// Constructor over architecture name.
269  ///
270  /// Constructs an ArchSpec with properties consistent with the given object
271  /// type and architecture name.
272  explicit ArchSpec(ArchitectureType arch_type, uint32_t cpu_type,
273  uint32_t cpu_subtype);
274 
275  /// Destructor.
276  ~ArchSpec();
277 
278  /// Returns true if the OS, vendor and environment fields of the triple are
279  /// unset. The triple is expected to be normalized
280  /// (llvm::Triple::normalize).
281  static bool ContainsOnlyArch(const llvm::Triple &normalized_triple);
282 
283  static void ListSupportedArchNames(StringList &list);
284  static void AutoComplete(CompletionRequest &request);
285 
286  /// Returns a static string representing the current architecture.
287  ///
288  /// \return A static string corresponding to the current
289  /// architecture.
290  const char *GetArchitectureName() const;
291 
292  /// if MIPS architecture return true.
293  ///
294  /// \return a boolean value.
295  bool IsMIPS() const;
296 
297  /// Returns a string representing current architecture as a target CPU for
298  /// tools like compiler, disassembler etc.
299  ///
300  /// \return A string representing target CPU for the current
301  /// architecture.
303 
304  /// Return a string representing target application ABI.
305  ///
306  /// \return A string representing target application ABI.
307  std::string GetTargetABI() const;
308 
309  /// Clears the object state.
310  ///
311  /// Clears the object state back to a default invalid state.
312  void Clear();
313 
314  /// Returns the size in bytes of an address of the current architecture.
315  ///
316  /// \return The byte size of an address of the current architecture.
318 
319  /// Returns a machine family for the current architecture.
320  ///
321  /// \return An LLVM arch type.
322  llvm::Triple::ArchType GetMachine() const;
323 
324  /// Returns the distribution id of the architecture.
325  ///
326  /// This will be something like "ubuntu", "fedora", etc. on Linux.
327  ///
328  /// \return A ConstString ref containing the distribution id,
329  /// potentially empty.
331 
332  /// Set the distribution id of the architecture.
333  ///
334  /// This will be something like "ubuntu", "fedora", etc. on Linux. This
335  /// should be the same value returned by HostInfo::GetDistributionId ().
336  void SetDistributionId(const char *distribution_id);
337 
338  /// Tests if this ArchSpec is valid.
339  ///
340  /// \return True if the current architecture is valid, false
341  /// otherwise.
342  bool IsValid() const {
343  return m_core >= eCore_arm_generic && m_core < kNumCores;
344  }
345  explicit operator bool() const { return IsValid(); }
346 
348  return !m_triple.getVendorName().empty();
349  }
350 
351  bool TripleOSWasSpecified() const { return !m_triple.getOSName().empty(); }
352 
354  return m_triple.hasEnvironment();
355  }
356 
357  /// Merges fields from another ArchSpec into this ArchSpec.
358  ///
359  /// This will use the supplied ArchSpec to fill in any fields of the triple
360  /// in this ArchSpec which were unspecified. This can be used to refine a
361  /// generic ArchSpec with a more specific one. For example, if this
362  /// ArchSpec's triple is something like i386-unknown-unknown-unknown, and we
363  /// have a triple which is x64-pc-windows-msvc, then merging that triple
364  /// into this one will result in the triple i386-pc-windows-msvc.
365  ///
366  void MergeFrom(const ArchSpec &other);
367 
368  /// Change the architecture object type, CPU type and OS type.
369  ///
370  /// \param[in] arch_type The object type of this ArchSpec.
371  ///
372  /// \param[in] cpu The required CPU type.
373  ///
374  /// \param[in] os The optional OS type
375  /// The default value of 0 was chosen to from the ELF spec value
376  /// ELFOSABI_NONE. ELF is the only one using this parameter. If another
377  /// format uses this parameter and 0 does not work, use a value over
378  /// 255 because in the ELF header this is value is only a byte.
379  ///
380  /// \return True if the object, and CPU were successfully set.
381  ///
382  /// As a side effect, the vendor value is usually set to unknown. The
383  /// exceptions are
384  /// aarch64-apple-ios
385  /// arm-apple-ios
386  /// thumb-apple-ios
387  /// x86-apple-
388  /// x86_64-apple-
389  ///
390  /// As a side effect, the os value is usually set to unknown The exceptions
391  /// are
392  /// *-*-aix
393  /// aarch64-apple-ios
394  /// arm-apple-ios
395  /// thumb-apple-ios
396  /// powerpc-apple-darwin
397  /// *-*-freebsd
398  /// *-*-linux
399  /// *-*-netbsd
400  /// *-*-openbsd
401  /// *-*-solaris
402  bool SetArchitecture(ArchitectureType arch_type, uint32_t cpu, uint32_t sub,
403  uint32_t os = 0);
404 
405  /// Returns the byte order for the architecture specification.
406  ///
407  /// \return The endian enumeration for the current endianness of
408  /// the architecture specification
410 
411  /// Sets this ArchSpec's byte order.
412  ///
413  /// In the common case there is no need to call this method as the byte
414  /// order can almost always be determined by the architecture. However, many
415  /// CPU's are bi-endian (ARM, Alpha, PowerPC, etc) and the default/assumed
416  /// byte order may be incorrect.
417  void SetByteOrder(lldb::ByteOrder byte_order) { m_byte_order = byte_order; }
418 
420 
422 
423  Core GetCore() const { return m_core; }
424 
425  uint32_t GetMachOCPUType() const;
426 
428 
429  /// Architecture data byte width accessor
430  ///
431  /// \return the size in 8-bit (host) bytes of a minimum addressable unit
432  /// from the Architecture's data bus
433  uint32_t GetDataByteSize() const;
434 
435  /// Architecture code byte width accessor
436  ///
437  /// \return the size in 8-bit (host) bytes of a minimum addressable unit
438  /// from the Architecture's code bus
439  uint32_t GetCodeByteSize() const;
440 
441  /// Architecture triple accessor.
442  ///
443  /// \return A triple describing this ArchSpec.
444  llvm::Triple &GetTriple() { return m_triple; }
445 
446  /// Architecture triple accessor.
447  ///
448  /// \return A triple describing this ArchSpec.
449  const llvm::Triple &GetTriple() const { return m_triple; }
450 
451  void DumpTriple(llvm::raw_ostream &s) const;
452 
453  /// Architecture triple setter.
454  ///
455  /// Configures this ArchSpec according to the given triple. If the triple
456  /// has unknown components in all of the vendor, OS, and the optional
457  /// environment field (i.e. "i386-unknown-unknown") then default values are
458  /// taken from the host. Architecture and environment components are used
459  /// to further resolve the CPU type and subtype, endian characteristics,
460  /// etc.
461  ///
462  /// \return A triple describing this ArchSpec.
463  bool SetTriple(const llvm::Triple &triple);
464 
465  bool SetTriple(llvm::StringRef triple_str);
466 
467  /// Returns the default endianness of the architecture.
468  ///
469  /// \return The endian enumeration for the default endianness of
470  /// the architecture.
472 
473  /// Returns true if 'char' is a signed type by default in the architecture
474  /// false otherwise
475  ///
476  /// \return True if 'char' is a signed type by default on the
477  /// architecture and false otherwise.
478  bool CharIsSignedByDefault() const;
479 
480  /// Compare an ArchSpec to another ArchSpec, requiring an exact cpu type
481  /// match between them. e.g. armv7s is not an exact match with armv7 - this
482  /// would return false
483  ///
484  /// \return true if the two ArchSpecs match.
485  bool IsExactMatch(const ArchSpec &rhs) const;
486 
487  /// Compare an ArchSpec to another ArchSpec, requiring a compatible cpu type
488  /// match between them. e.g. armv7s is compatible with armv7 - this method
489  /// would return true
490  ///
491  /// \return true if the two ArchSpecs are compatible
492  bool IsCompatibleMatch(const ArchSpec &rhs) const;
493 
494  bool IsFullySpecifiedTriple() const;
495 
496  void PiecewiseTripleCompare(const ArchSpec &other, bool &arch_different,
497  bool &vendor_different, bool &os_different,
498  bool &os_version_different,
499  bool &env_different) const;
500 
501  /// Detect whether this architecture uses thumb code exclusively
502  ///
503  /// Some embedded ARM chips (e.g. the ARM Cortex M0-7 line) can only execute
504  /// the Thumb instructions, never Arm. We should normally pick up
505  /// arm/thumbness from their the processor status bits (cpsr/xpsr) or hints
506  /// on each function - but when doing bare-boards low level debugging
507  /// (especially common with these embedded processors), we may not have
508  /// those things easily accessible.
509  ///
510  /// \return true if this is an arm ArchSpec which can only execute Thumb
511  /// instructions
512  bool IsAlwaysThumbInstructions() const;
513 
514  uint32_t GetFlags() const { return m_flags; }
515 
516  void SetFlags(uint32_t flags) { m_flags = flags; }
517 
518  void SetFlags(const std::string &elf_abi);
519 
520 protected:
521  bool IsEqualTo(const ArchSpec &rhs, bool exact_match) const;
522  void UpdateCore();
523 
524  llvm::Triple m_triple;
527 
528  // Additional arch flags which we cannot get from triple and core For MIPS
529  // these are application specific extensions like micromips, mips16 etc.
531 
533 
534  // Called when m_def or m_entry are changed. Fills in all remaining members
535  // with default values.
536  void CoreUpdated(bool update_triple);
537 };
538 
539 /// \fn bool operator< (const ArchSpec& lhs, const ArchSpec& rhs) Less than
540 /// operator.
541 ///
542 /// Tests two ArchSpec objects to see if \a lhs is less than \a rhs.
543 ///
544 /// \param[in] lhs The Left Hand Side ArchSpec object to compare. \param[in]
545 /// rhs The Left Hand Side ArchSpec object to compare.
546 ///
547 /// \return true if \a lhs is less than \a rhs
548 bool operator<(const ArchSpec &lhs, const ArchSpec &rhs);
549 bool operator==(const ArchSpec &lhs, const ArchSpec &rhs);
550 
551 bool ParseMachCPUDashSubtypeTriple(llvm::StringRef triple_str, ArchSpec &arch);
552 
553 } // namespace lldb_private
554 
555 namespace llvm {
556 namespace yaml {
557 template <> struct ScalarTraits<lldb_private::ArchSpec> {
558  static void output(const lldb_private::ArchSpec &, void *, raw_ostream &);
559  static StringRef input(StringRef, void *, lldb_private::ArchSpec &);
560  static QuotingType mustQuote(StringRef S) { return QuotingType::Double; }
561 };
562 } // namespace yaml
563 } // namespace llvm
564 
565 LLVM_YAML_IS_SEQUENCE_VECTOR(lldb_private::ArchSpec)
566 
567 #endif // LLDB_UTILITY_ARCHSPEC_H
lldb_private::ArchSpec::GetMinimumOpcodeByteSize
uint32_t GetMinimumOpcodeByteSize() const
Definition: ArchSpec.cpp:916
lldb_private::ArchSpec::kCore_mips32el_first
@ kCore_mips32el_first
Definition: ArchSpec.h:242
lldb_private::ArchSpec::eCore_arm_armv7k
@ eCore_arm_armv7k
Definition: ArchSpec.h:114
lldb_private::ArchSpec::GetByteOrder
lldb::ByteOrder GetByteOrder() const
Returns the byte order for the architecture specification.
Definition: ArchSpec.cpp:730
lldb_private::ArchSpec::eMIPS_ABI_FP_DOUBLE
@ eMIPS_ABI_FP_DOUBLE
Definition: ArchSpec.h:79
llvm
Definition: Debugger.h:49
lldb_private::ArchSpec::eRISCVSubType_unknown
@ eRISCVSubType_unknown
Definition: ArchSpec.h:96
lldb_private::ArchSpec::eMIPSSubType_mips64el
@ eMIPSSubType_mips64el
Definition: ArchSpec.h:46
lldb_private::ArchSpec
Definition: ArchSpec.h:33
lldb_private::ArchSpec::IsMIPS
bool IsMIPS() const
if MIPS architecture return true.
Definition: ArchSpec.cpp:545
lldb_private::ArchSpec::kCore_x86_64_first
@ kCore_x86_64_first
Definition: ArchSpec.h:233
lldb_private::ArchSpec::eMIPSABI_EABI64
@ eMIPSABI_EABI64
Definition: ArchSpec.h:72
lldb_private::ArchSpec::m_distribution_id
ConstString m_distribution_id
Definition: ArchSpec.h:532
lldb_private::ArchSpec::eCore_x86_32_i486
@ eCore_x86_32_i486
Definition: ArchSpec.h:184
lldb_private::ArchSpec::TripleVendorWasSpecified
bool TripleVendorWasSpecified() const
Definition: ArchSpec.h:347
lldb_private::ArchSpec::GetMaximumOpcodeByteSize
uint32_t GetMaximumOpcodeByteSize() const
Definition: ArchSpec.cpp:923
lldb_private::ArchSpec::eCore_arm_armv5
@ eCore_arm_armv5
Definition: ArchSpec.h:105
lldb_private::ArchSpec::kCore_mips_first
@ kCore_mips_first
Definition: ArchSpec.h:251
lldb_private::ArchSpec::GetMachine
llvm::Triple::ArchType GetMachine() const
Returns a machine family for the current architecture.
Definition: ArchSpec.cpp:667
lldb_private::ArchSpec::eCore_ppc_generic
@ eCore_ppc_generic
Definition: ArchSpec.h:159
lldb_private::ArchSpec::eCore_ppc_ppc603ev
@ eCore_ppc_ppc603ev
Definition: ArchSpec.h:164
lldb_private::ArchSpec::ArchSpec
ArchSpec()
Default constructor.
lldb_private::ArchSpec::eMIPSAse_mdmx
@ eMIPSAse_mdmx
Definition: ArchSpec.h:57
lldb_private::ArchSpec::eMIPSSubType_mips32r6
@ eMIPSSubType_mips32r6
Definition: ArchSpec.h:39
lldb_private::ArchSpec::m_flags
uint32_t m_flags
Definition: ArchSpec.h:530
lldb_private::ArchSpec::eCore_thumbv7
@ eCore_thumbv7
Definition: ArchSpec.h:125
lldb_private::ArchSpec::CoreUpdated
void CoreUpdated(bool update_triple)
Definition: ArchSpec.cpp:1054
lldb_private::ArchSpec::eCore_thumbv7k
@ eCore_thumbv7k
Definition: ArchSpec.h:127
lldb_private::ArchSpec::GetCore
Core GetCore() const
Definition: ArchSpec.h:423
lldb_private::ArchSpec::eCore_arm_xscale
@ eCore_arm_xscale
Definition: ArchSpec.h:117
lldb_private::ArchSpec::GetDefaultEndian
lldb::ByteOrder GetDefaultEndian() const
Returns the default endianness of the architecture.
Definition: ArchSpec.cpp:697
lldb_private::ArchSpec::eCore_s390x_generic
@ eCore_s390x_generic
Definition: ArchSpec.h:177
lldb_private::ArchSpec::ListSupportedArchNames
static void ListSupportedArchNames(StringList &list)
Definition: ArchSpec.cpp:256
lldb_private::ArchSpec::eRISCVSubType_riscv64
@ eRISCVSubType_riscv64
Definition: ArchSpec.h:98
lldb_private::ArchSpec::eCore_thumbv7f
@ eCore_thumbv7f
Definition: ArchSpec.h:128
lldb_private::ArchSpec::eMIPSAse_dspr2
@ eMIPSAse_dspr2
Definition: ArchSpec.h:54
lldb_private::ArchSpec::eMIPSSubType_mips64r2
@ eMIPSSubType_mips64r2
Definition: ArchSpec.h:44
lldb_private::ArchSpec::eCore_arm_armv7f
@ eCore_arm_armv7f
Definition: ArchSpec.h:112
lldb_private::ArchSpec::MergeFrom
void MergeFrom(const ArchSpec &other)
Merges fields from another ArchSpec into this ArchSpec.
Definition: ArchSpec.cpp:801
lldb_private::ArchSpec::ContainsOnlyArch
static bool ContainsOnlyArch(const llvm::Triple &normalized_triple)
Returns true if the OS, vendor and environment fields of the triple are unset.
Definition: ArchSpec.cpp:794
lldb_private::ArchSpec::eMIPS_ABI_FP_XX
@ eMIPS_ABI_FP_XX
Definition: ArchSpec.h:83
lldb_private::ArchSpec::eCore_wasm32
@ eCore_wasm32
Definition: ArchSpec.h:204
lldb_private::ArchSpec::kCore_ppc64_any
@ kCore_ppc64_any
Definition: ArchSpec.h:213
lldb_private::ArchSpec::eCore_arm_arm64
@ eCore_arm_arm64
Definition: ArchSpec.h:131
lldb_private::ArchSpec::kNumCores
@ kNumCores
Definition: ArchSpec.h:206
lldb_private::ArchSpec::kCore_mips_last
@ kCore_mips_last
Definition: ArchSpec.h:252
lldb_private::ArchSpec::GetFlags
uint32_t GetFlags() const
Definition: ArchSpec.h:514
lldb_private::ArchSpec::SetFlags
void SetFlags(uint32_t flags)
Definition: ArchSpec.h:516
lldb_private::ArchSpec::eCore_arm_armv4
@ eCore_arm_armv4
Definition: ArchSpec.h:103
lldb_private::ArchSpec::eCore_arm_armv6m
@ eCore_arm_armv6m
Definition: ArchSpec.h:109
lldb_private::ArchSpec::eMIPSSubType_mips32r6el
@ eMIPSSubType_mips32r6el
Definition: ArchSpec.h:42
lldb_private::ArchSpec::eMIPSAse_mcu
@ eMIPSAse_mcu
Definition: ArchSpec.h:56
lldb_private::ArchSpec::eMIPSSubType_mips32el
@ eMIPSSubType_mips32el
Definition: ArchSpec.h:40
lldb_private::ArchSpec::eCore_ppc_ppc7450
@ eCore_ppc_ppc7450
Definition: ArchSpec.h:170
lldb_private::ArchSpec::eCore_sparc9_generic
@ eCore_sparc9_generic
Definition: ArchSpec.h:181
lldb_private::ArchSpec::eCore_thumbv7m
@ eCore_thumbv7m
Definition: ArchSpec.h:129
lldb_private::ArchSpec::eCore_arc
@ eCore_arc
Definition: ArchSpec.h:200
lldb_private::ArchSpec::GetCodeByteSize
uint32_t GetCodeByteSize() const
Architecture code byte width accessor.
Definition: ArchSpec.cpp:663
lldb_private::ArchSpec::MIPSSubType
MIPSSubType
Definition: ArchSpec.h:35
lldb_private::ArchSpec::GetTriple
llvm::Triple & GetTriple()
Architecture triple accessor.
Definition: ArchSpec.h:444
lldb_private::ArchSpec::kCore_mips64_first
@ kCore_mips64_first
Definition: ArchSpec.h:245
lldb_private::ArchSpec::eCore_arm_armv5e
@ eCore_arm_armv5e
Definition: ArchSpec.h:106
lldb_private::ArchSpec::kCore_mips32el_last
@ kCore_mips32el_last
Definition: ArchSpec.h:243
lldb_private::ArchSpec::eCore_mips64
@ eCore_mips64
Definition: ArchSpec.h:148
lldb_private::ArchSpec::GetClangTargetCPU
std::string GetClangTargetCPU() const
Returns a string representing current architecture as a target CPU for tools like compiler,...
Definition: ArchSpec.cpp:583
lldb_private::ArchSpec::~ArchSpec
~ArchSpec()
Destructor.
lldb-private-enumerations.h
CompletionRequest.h
lldb_private::ArchSpec::eCore_mips32r3
@ eCore_mips32r3
Definition: ArchSpec.h:140
lldb_private::ArchSpec::m_byte_order
lldb::ByteOrder m_byte_order
Definition: ArchSpec.h:526
lldb_private::ArchSpec::kCore_mips64_last
@ kCore_mips64_last
Definition: ArchSpec.h:246
lldb_private::ArchSpec::eCore_mips32el
@ eCore_mips32el
Definition: ArchSpec.h:143
lldb_private::ArchSpec::eCore_arm_armv8l
@ eCore_arm_armv8l
Definition: ArchSpec.h:133
lldb_private::ArchSpec::eCore_mips32r2
@ eCore_mips32r2
Definition: ArchSpec.h:139
lldb_private::ArchSpec::ARMeflags
ARMeflags
Definition: ArchSpec.h:90
lldb_private::ArchSpec::eCore_thumbv5
@ eCore_thumbv5
Definition: ArchSpec.h:121
lldb_private::ArchSpec::eCore_ppc_ppc602
@ eCore_ppc_ppc602
Definition: ArchSpec.h:161
lldb_private::ArchSpec::Core
Core
Definition: ArchSpec.h:101
lldb_private::ArchSpec::eMIPSAse_mt
@ eMIPSAse_mt
Definition: ArchSpec.h:59
lldb_private::ArchSpec::eMIPSAse_mask
@ eMIPSAse_mask
Definition: ArchSpec.h:66
lldb_private::ArchSpec::IsCompatibleMatch
bool IsCompatibleMatch(const ArchSpec &rhs) const
Compare an ArchSpec to another ArchSpec, requiring a compatible cpu type match between them.
Definition: ArchSpec.cpp:934
lldb_private::ArchSpec::eCore_riscv64
@ eCore_riscv64
Definition: ArchSpec.h:195
lldb_private::ArchSpec::eCore_ppc64_generic
@ eCore_ppc64_generic
Definition: ArchSpec.h:174
lldb_private::ArchSpec::DumpTriple
void DumpTriple(llvm::raw_ostream &s) const
Definition: ArchSpec.cpp:1461
lldb_private::ArchSpec::kCore_mips64el_last
@ kCore_mips64el_last
Definition: ArchSpec.h:249
lldb_private::ArchSpec::eMIPS_ABI_FP_mask
@ eMIPS_ABI_FP_mask
Definition: ArchSpec.h:86
lldb_private::ArchSpec::eCore_uknownMach64
@ eCore_uknownMach64
Definition: ArchSpec.h:198
lldb_private::operator==
bool operator==(const Address &lhs, const Address &rhs)
Definition: Address.cpp:999
lldb_private::ArchSpec::eCore_hexagon_hexagonv4
@ eCore_hexagon_hexagonv4
Definition: ArchSpec.h:191
lldb_private::ArchSpec::GetMachOCPUType
uint32_t GetMachOCPUType() const
Definition: ArchSpec.cpp:635
lldb_private::ArchSpec::eMIPSABI_mask
@ eMIPSABI_mask
Definition: ArchSpec.h:73
lldb_private::ArchSpec::kCore_hexagon_last
@ kCore_hexagon_last
Definition: ArchSpec.h:237
lldb_private::ArchSpec::eCore_arm_armv6
@ eCore_arm_armv6
Definition: ArchSpec.h:108
lldb_private::ArchSpec::kCore_invalid
@ kCore_invalid
Definition: ArchSpec.h:208
lldb_private::ArchSpec::m_triple
llvm::Triple m_triple
Definition: ArchSpec.h:524
lldb_private::ArchSpec::eMIPSSubType_mips64r6
@ eMIPSSubType_mips64r6
Definition: ArchSpec.h:45
lldb_private::ArchSpec::eCore_mips64r6el
@ eCore_mips64r6el
Definition: ArchSpec.h:157
lldb_private::ArchSpec::SetDistributionId
void SetDistributionId(const char *distribution_id)
Set the distribution id of the architecture.
Definition: ArchSpec.cpp:679
lldb_private::ArchSpec::eCore_ppc_ppc603
@ eCore_ppc_ppc603
Definition: ArchSpec.h:162
lldb_private::ArchSpec::eCore_mips64r2
@ eCore_mips64r2
Definition: ArchSpec.h:149
lldb_private::ArchSpec::SetTriple
bool SetTriple(const llvm::Triple &triple)
Architecture triple setter.
Definition: ArchSpec.cpp:739
lldb_private::ArchSpec::eCore_mips64r3
@ eCore_mips64r3
Definition: ArchSpec.h:150
lldb_private::ArchSpec::eCore_x86_64_x86_64h
@ eCore_x86_64_x86_64h
Definition: ArchSpec.h:189
lldb_private::ArchSpec::eMIPS_ABI_FP_SOFT
@ eMIPS_ABI_FP_SOFT
Definition: ArchSpec.h:81
lldb_private::ArchSpec::kCore_ppc_first
@ kCore_ppc_first
Definition: ArchSpec.h:224
lldb_private::ArchSpec::kCore_x86_64_last
@ kCore_x86_64_last
Definition: ArchSpec.h:234
lldb_private::ArchSpec::eCore_ppc_ppc7400
@ eCore_ppc_ppc7400
Definition: ArchSpec.h:169
lldb_private::ArchSpec::eCore_arm_armv7
@ eCore_arm_armv7
Definition: ArchSpec.h:110
lldb_private::ArchSpec::eCore_uknownMach32
@ eCore_uknownMach32
Definition: ArchSpec.h:197
lldb_private::ArchSpec::eMIPSAse_dsp
@ eMIPSAse_dsp
Definition: ArchSpec.h:53
lldb_private::StringList
Definition: StringList.h:25
lldb_private::ConstString
Definition: ConstString.h:40
lldb-enumerations.h
lldb_private::ArchSpec::eARM_abi_soft_float
@ eARM_abi_soft_float
Definition: ArchSpec.h:91
lldb_private::ArchSpec::eCore_arm_armv7m
@ eCore_arm_armv7m
Definition: ArchSpec.h:115
lldb_private::ArchSpec::eCore_arm_armv8
@ eCore_arm_armv8
Definition: ArchSpec.h:132
lldb_private::ArchSpec::kCore_any
@ kCore_any
Definition: ArchSpec.h:210
lldb_private::ArchSpec::eCore_thumbv5e
@ eCore_thumbv5e
Definition: ArchSpec.h:122
lldb_private::ArchSpec::GetMachOCPUSubType
uint32_t GetMachOCPUSubType() const
Definition: ArchSpec.cpp:647
lldb_private::ArchSpec::eCore_mips32r2el
@ eCore_mips32r2el
Definition: ArchSpec.h:144
lldb_private::ArchSpec::eCore_x86_32_i386
@ eCore_x86_32_i386
Definition: ArchSpec.h:183
lldb_private::ArchSpec::kCore_mips32_first
@ kCore_mips32_first
Definition: ArchSpec.h:239
lldb_private::ArchSpec::eMIPSSubType_mips64r2el
@ eMIPSSubType_mips64r2el
Definition: ArchSpec.h:47
lldb_private::ArchSpec::MIPS_ABI_FP
MIPS_ABI_FP
Definition: ArchSpec.h:77
lldb_private::ArchSpec::eMIPSSubType_mips32r2
@ eMIPSSubType_mips32r2
Definition: ArchSpec.h:38
lldb_private::ArchSpec::eCore_thumbv7em
@ eCore_thumbv7em
Definition: ArchSpec.h:130
lldb_private::ArchSpec::AutoComplete
static void AutoComplete(CompletionRequest &request)
Definition: ArchSpec.cpp:261
lldb_private::ArchSpec::IsEqualTo
bool IsEqualTo(const ArchSpec &rhs, bool exact_match) const
Definition: ArchSpec.cpp:969
lldb_private::ArchSpec::TripleOSWasSpecified
bool TripleOSWasSpecified() const
Definition: ArchSpec.h:351
lldb_private::ArchSpec::eCore_ppc64_ppc970_64
@ eCore_ppc64_ppc970_64
Definition: ArchSpec.h:175
lldb_private::ArchSpec::eCore_hexagon_generic
@ eCore_hexagon_generic
Definition: ArchSpec.h:190
lldb_private::ArchSpec::eCore_mips64r5el
@ eCore_mips64r5el
Definition: ArchSpec.h:156
lldb_private::ArchSpec::eCore_arm_armv7em
@ eCore_arm_armv7em
Definition: ArchSpec.h:116
lldb_private::ArchSpec::kCore_thumb_last
@ kCore_thumb_last
Definition: ArchSpec.h:222
lldb_private::ArchSpec::kCore_ppc_any
@ kCore_ppc_any
Definition: ArchSpec.h:212
lldb_private::ArchSpec::eMIPSAse_smartmips
@ eMIPSAse_smartmips
Definition: ArchSpec.h:60
lldb_private::ArchSpec::eCore_mips64el
@ eCore_mips64el
Definition: ArchSpec.h:153
string
string(SUBSTRING ${p} 10 -1 pStripped) if($
Definition: Plugins/CMakeLists.txt:40
lldb_private::ArchSpec::eMIPSAse_virt
@ eMIPSAse_virt
Definition: ArchSpec.h:61
lldb_private::ArchSpec::eCore_mips64r2el
@ eCore_mips64r2el
Definition: ArchSpec.h:154
lldb_private::ArchSpec::eCore_mips64r6
@ eCore_mips64r6
Definition: ArchSpec.h:152
lldb_private::ArchSpec::IsValid
bool IsValid() const
Tests if this ArchSpec is valid.
Definition: ArchSpec.h:342
lldb_private::ArchSpec::eCore_mips64r3el
@ eCore_mips64r3el
Definition: ArchSpec.h:155
lldb_private::ArchSpec::eCore_arm_generic
@ eCore_arm_generic
Definition: ArchSpec.h:102
lldb_private::ArchSpec::eMIPSSubType_mips64r6el
@ eMIPSSubType_mips64r6el
Definition: ArchSpec.h:48
lldb_private::ArchSpec::eMIPSSubType_mips32r2el
@ eMIPSSubType_mips32r2el
Definition: ArchSpec.h:41
lldb_private::ArchSpec::eMIPSABI_N64
@ eMIPSABI_N64
Definition: ArchSpec.h:69
lldb_private::ArchSpec::eMIPSABI_EABI32
@ eMIPSABI_EABI32
Definition: ArchSpec.h:71
lldb_private::ArchSpec::kCore_ppc_last
@ kCore_ppc_last
Definition: ArchSpec.h:225
lldb_private::ArchSpec::GetAddressByteSize
uint32_t GetAddressByteSize() const
Returns the size in bytes of an address of the current architecture.
Definition: ArchSpec.cpp:683
lldb_private::ArchSpec::TripleEnvironmentWasSpecified
bool TripleEnvironmentWasSpecified() const
Definition: ArchSpec.h:353
lldb_private::ArchSpec::kCore_thumb_first
@ kCore_thumb_first
Definition: ArchSpec.h:221
lldb_private::ArchSpec::eMIPSABI_O64
@ eMIPSABI_O64
Definition: ArchSpec.h:70
lldb_private::ArchSpec::kCore_mips64el_first
@ kCore_mips64el_first
Definition: ArchSpec.h:248
lldb_private::ArchSpec::eMIPS_ABI_FP_OLD_64
@ eMIPS_ABI_FP_OLD_64
Definition: ArchSpec.h:82
lldb_private::ArchitectureType
ArchitectureType
Definition: lldb-private-enumerations.h:61
lldb_private::ArchSpec::SetArchitecture
bool SetArchitecture(ArchitectureType arch_type, uint32_t cpu, uint32_t sub, uint32_t os=0)
Change the architecture object type, CPU type and OS type.
Definition: ArchSpec.cpp:843
lldb_private::ArchSpec::eCore_x86_32_i486sx
@ eCore_x86_32_i486sx
Definition: ArchSpec.h:185
lldb_private::ArchSpec::eCore_mips32r5el
@ eCore_mips32r5el
Definition: ArchSpec.h:146
lldb_private::ArchSpec::eCore_thumbv4t
@ eCore_thumbv4t
Definition: ArchSpec.h:120
lldb_private::ArchSpec::eCore_ppc_ppc970
@ eCore_ppc_ppc970
Definition: ArchSpec.h:171
lldb_private::ArchSpec::SetByteOrder
void SetByteOrder(lldb::ByteOrder byte_order)
Sets this ArchSpec's byte order.
Definition: ArchSpec.h:417
lldb_private::ArchSpec::eCore_thumbv6m
@ eCore_thumbv6m
Definition: ArchSpec.h:124
lldb_private::ArchSpec::eMIPSAse_eva
@ eMIPSAse_eva
Definition: ArchSpec.h:55
lldb_private::ArchSpec::eCore_mips64r5
@ eCore_mips64r5
Definition: ArchSpec.h:151
lldb_private::ArchSpec::kCore_mips32_last
@ kCore_mips32_last
Definition: ArchSpec.h:240
lldb_private::ArchSpec::GetArchitectureName
const char * GetArchitectureName() const
Returns a static string representing the current architecture.
Definition: ArchSpec.cpp:538
lldb::eByteOrderInvalid
@ eByteOrderInvalid
Definition: lldb-enumerations.h:139
lldb_private::ArchSpec::eCore_thumbv6
@ eCore_thumbv6
Definition: ArchSpec.h:123
lldb_private::ArchSpec::eCore_ppc64le_generic
@ eCore_ppc64le_generic
Definition: ArchSpec.h:173
lldb_private::ArchSpec::PiecewiseTripleCompare
void PiecewiseTripleCompare(const ArchSpec &other, bool &arch_different, bool &vendor_different, bool &os_different, bool &os_version_different, bool &env_different) const
Definition: ArchSpec.cpp:1417
lldb_private::ArchSpec::eMIPSAse_mips3d
@ eMIPSAse_mips3d
Definition: ArchSpec.h:58
uint32_t
lldb_private::ArchSpec::kCore_ppc64_last
@ kCore_ppc64_last
Definition: ArchSpec.h:228
lldb_private::ArchSpec::eMIPS_ABI_FP_64A
@ eMIPS_ABI_FP_64A
Definition: ArchSpec.h:85
lldb_private::ArchSpec::IsAlwaysThumbInstructions
bool IsAlwaysThumbInstructions() const
Detect whether this architecture uses thumb code exclusively.
Definition: ArchSpec.cpp:1434
lldb_private::ArchSpec::eCore_arm_armv7s
@ eCore_arm_armv7s
Definition: ArchSpec.h:113
lldb_private::ArchSpec::eMIPSABI_N32
@ eMIPSABI_N32
Definition: ArchSpec.h:68
lldb_private::ArchSpec::kCore_hexagon_any
@ kCore_hexagon_any
Definition: ArchSpec.h:216
lldb_private::ArchSpec::eMIPS_ABI_FP_SINGLE
@ eMIPS_ABI_FP_SINGLE
Definition: ArchSpec.h:80
lldb_private::ArchSpec::eMIPSSubType_unknown
@ eMIPSSubType_unknown
Definition: ArchSpec.h:36
lldb_private::ArchSpec::eCore_arm_armv5t
@ eCore_arm_armv5t
Definition: ArchSpec.h:107
lldb_private::ArchSpec::eCore_ppc_ppc601
@ eCore_ppc_ppc601
Definition: ArchSpec.h:160
lldb_private::ArchSpec::eCore_arm_arm64_32
@ eCore_arm_arm64_32
Definition: ArchSpec.h:135
lldb_private::ArchSpec::UpdateCore
void UpdateCore()
Definition: ArchSpec.cpp:1037
llvm::yaml::ScalarTraits< lldb_private::ArchSpec >::mustQuote
static QuotingType mustQuote(StringRef S)
Definition: ArchSpec.h:560
lldb_private::ArchSpec::eCore_mips32r6el
@ eCore_mips32r6el
Definition: ArchSpec.h:147
lldb_private::operator<
bool operator<(const Address &lhs, const Address &rhs)
Definition: Address.cpp:968
lldb_private::ArchSpec::CharIsSignedByDefault
bool CharIsSignedByDefault() const
Returns true if 'char' is a signed type by default in the architecture false otherwise.
Definition: ArchSpec.cpp:704
lldb_private::ArchSpec::kCore_x86_32_first
@ kCore_x86_32_first
Definition: ArchSpec.h:230
lldb_private::ArchSpec::eMIPSAse_mips16
@ eMIPSAse_mips16
Definition: ArchSpec.h:63
lldb_private::ArchSpec::eMIPSAse_xpa
@ eMIPSAse_xpa
Definition: ArchSpec.h:65
lldb_private::ArchSpec::eCore_arm_aarch64
@ eCore_arm_aarch64
Definition: ArchSpec.h:136
lldb_private::ArchSpec::GetDataByteSize
uint32_t GetDataByteSize() const
Architecture data byte width accessor.
Definition: ArchSpec.cpp:659
lldb-forward.h
lldb_private::ArchSpec::eCore_ppc_ppc604
@ eCore_ppc_ppc604
Definition: ArchSpec.h:165
lldb_private::ArchSpec::eMIPS_ABI_FP_64
@ eMIPS_ABI_FP_64
Definition: ArchSpec.h:84
lldb_private::ArchSpec::GetTriple
const llvm::Triple & GetTriple() const
Architecture triple accessor.
Definition: ArchSpec.h:449
lldb_private::ArchSpec::kCore_x86_32_any
@ kCore_x86_32_any
Definition: ArchSpec.h:214
lldb_private::ArchSpec::eCore_mips32r6
@ eCore_mips32r6
Definition: ArchSpec.h:142
lldb_private::ArchSpec::eMIPSAse_msa
@ eMIPSAse_msa
Definition: ArchSpec.h:62
lldb_private::ArchSpec::RISCVSubType
RISCVSubType
Definition: ArchSpec.h:95
lldb_private::ArchSpec::kCore_x86_32_last
@ kCore_x86_32_last
Definition: ArchSpec.h:231
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::ArchSpec::kCore_ppc64_first
@ kCore_ppc64_first
Definition: ArchSpec.h:227
lldb_private::ArchSpec::eCore_avr
@ eCore_avr
Definition: ArchSpec.h:202
lldb_private::ArchSpec::eMIPS_ABI_FP_ANY
@ eMIPS_ABI_FP_ANY
Definition: ArchSpec.h:78
lldb_private::ArchSpec::kCore_arm_any
@ kCore_arm_any
Definition: ArchSpec.h:211
lldb_private::ArchSpec::eCore_mips32
@ eCore_mips32
Definition: ArchSpec.h:138
lldb_private::ArchSpec::eARM_abi_hard_float
@ eARM_abi_hard_float
Definition: ArchSpec.h:92
lldb_private::ArchSpec::eCore_ppc_ppc620
@ eCore_ppc_ppc620
Definition: ArchSpec.h:167
lldb_private::ArchSpec::eCore_sparc_generic
@ eCore_sparc_generic
Definition: ArchSpec.h:179
lldb_private::ArchSpec::eCore_x86_64_x86_64
@ eCore_x86_64_x86_64
Definition: ArchSpec.h:188
lldb_private::ArchSpec::eCore_x86_32_i686
@ eCore_x86_32_i686
Definition: ArchSpec.h:186
lldb_private::ArchSpec::eMIPSAse_micromips
@ eMIPSAse_micromips
Definition: ArchSpec.h:64
lldb_private::ArchSpec::GetTargetABI
std::string GetTargetABI() const
Return a string representing target application ABI.
Definition: ArchSpec.cpp:547
lldb_private::ArchSpec::eMIPSSubType_mips32
@ eMIPSSubType_mips32
Definition: ArchSpec.h:37
ConstString.h
lldb_private::ArchSpec::eCore_arm_arm64e
@ eCore_arm_arm64e
Definition: ArchSpec.h:134
lldb_private::ArchSpec::eCore_thumb
@ eCore_thumb
Definition: ArchSpec.h:119
lldb_private::ParseMachCPUDashSubtypeTriple
bool ParseMachCPUDashSubtypeTriple(llvm::StringRef triple_str, ArchSpec &arch)
Definition: ArchSpec.cpp:745
lldb_private::ArchSpec::eCore_mips32r3el
@ eCore_mips32r3el
Definition: ArchSpec.h:145
lldb_private::ArchSpec::eCore_ppc_ppc603e
@ eCore_ppc_ppc603e
Definition: ArchSpec.h:163
lldb_private::ArchSpec::GetDistributionId
ConstString GetDistributionId() const
Returns the distribution id of the architecture.
Definition: ArchSpec.cpp:675
lldb_private::ArchSpec::eCore_arm_armv7l
@ eCore_arm_armv7l
Definition: ArchSpec.h:111
lldb_private::ArchSpec::eCore_arm_armv4t
@ eCore_arm_armv4t
Definition: ArchSpec.h:104
lldb_private::ArchSpec::Clear
void Clear()
Clears the object state.
Definition: ArchSpec.cpp:527
lldb_private::ArchSpec::eCore_hexagon_hexagonv5
@ eCore_hexagon_hexagonv5
Definition: ArchSpec.h:192
lldb_private::ArchSpec::IsFullySpecifiedTriple
bool IsFullySpecifiedTriple() const
Definition: ArchSpec.cpp:1397
lldb_private::ArchSpec::eMIPSSubType_mips64
@ eMIPSSubType_mips64
Definition: ArchSpec.h:43
lldb_private::ArchSpec::kCore_arm_last
@ kCore_arm_last
Definition: ArchSpec.h:219
lldb_private::ArchSpec::eCore_ppc_ppc604e
@ eCore_ppc_ppc604e
Definition: ArchSpec.h:166
lldb_private::ArchSpec::eCore_mips32r5
@ eCore_mips32r5
Definition: ArchSpec.h:141
lldb_private::ArchSpec::eMIPSABI_O32
@ eMIPSABI_O32
Definition: ArchSpec.h:67
lldb_private::ArchSpec::eCore_riscv32
@ eCore_riscv32
Definition: ArchSpec.h:194
lldb_private::ArchSpec::MIPSASE
MIPSASE
Definition: ArchSpec.h:52
lldb_private::ArchSpec::m_core
Core m_core
Definition: ArchSpec.h:525
lldb_private::ArchSpec::kCore_hexagon_first
@ kCore_hexagon_first
Definition: ArchSpec.h:236
lldb_private::ArchSpec::kCore_x86_64_any
@ kCore_x86_64_any
Definition: ArchSpec.h:215
lldb_private::ArchSpec::kCore_arm_first
@ kCore_arm_first
Definition: ArchSpec.h:218
lldb_private::ArchSpec::IsExactMatch
bool IsExactMatch(const ArchSpec &rhs) const
Compare an ArchSpec to another ArchSpec, requiring an exact cpu type match between them.
Definition: ArchSpec.cpp:930
lldb_private::CompletionRequest
Definition: CompletionRequest.h:100
lldb_private::ArchSpec::eCore_thumbv7s
@ eCore_thumbv7s
Definition: ArchSpec.h:126
lldb::ByteOrder
ByteOrder
Byte ordering definitions.
Definition: lldb-enumerations.h:138
lldb_private::ArchSpec::eCore_ppc_ppc750
@ eCore_ppc_ppc750
Definition: ArchSpec.h:168
lldb_private::ArchSpec::eRISCVSubType_riscv32
@ eRISCVSubType_riscv32
Definition: ArchSpec.h:97