LLDB mainline
lldb_private::TargetGroupCPUAndAccelerators Class Referencefinal

A group that accepts a CPU target as its first member, followed by accelerator targets. More...

#include <TargetGroup.h>

Inheritance diagram for lldb_private::TargetGroupCPUAndAccelerators:
[legend]

Public Member Functions

lldb::TargetSP GetCPUTarget () const
 Return the CPU target, or nullptr if the group has no CPU target.

Static Public Attributes

static char ID

Private Types

using Base = llvm::RTTIExtends<TargetGroupCPUAndAccelerators, TargetGroup>

Private Member Functions

 TargetGroupCPUAndAccelerators (TargetGroupList &group_list, llvm::StringRef description)
llvm::Error ValidateTargetAddition (const lldb::TargetSP &target_sp, Role role) const override

Friends

class TargetGroupList

Detailed Description

A group that accepts a CPU target as its first member, followed by accelerator targets.

Definition at line 96 of file TargetGroup.h.

Member Typedef Documentation

◆ Base

Definition at line 98 of file TargetGroup.h.

Constructor & Destructor Documentation

◆ TargetGroupCPUAndAccelerators()

TargetGroupCPUAndAccelerators::TargetGroupCPUAndAccelerators ( TargetGroupList & group_list,
llvm::StringRef description )
private

Definition at line 37 of file TargetGroup.cpp.

References TargetGroupList.

Member Function Documentation

◆ GetCPUTarget()

TargetSP TargetGroupCPUAndAccelerators::GetCPUTarget ( ) const

Return the CPU target, or nullptr if the group has no CPU target.

Definition at line 59 of file TargetGroup.cpp.

◆ ValidateTargetAddition()

llvm::Error TargetGroupCPUAndAccelerators::ValidateTargetAddition ( const lldb::TargetSP & target_sp,
Role role ) const
overrideprivate

Definition at line 42 of file TargetGroup.cpp.

◆ TargetGroupList

friend class TargetGroupList
friend

Definition at line 107 of file TargetGroup.h.

References TargetGroupList.

Referenced by TargetGroupCPUAndAccelerators(), and TargetGroupList.

Member Data Documentation

◆ ID

char TargetGroupCPUAndAccelerators::ID
static

Definition at line 101 of file TargetGroup.h.


The documentation for this class was generated from the following files: