LLVM 24.0.0git
llvm::object::OffloadFile::TargetID Struct Reference

#include "llvm/Object/OffloadBinary.h"

Public Member Functions

 TargetID ()=default
 TargetID (StringRef Triple, StringRef Arch, StringRef Code="")
bool operator== (const TargetID &Other) const
bool operator!= (const TargetID &Other) const

Public Attributes

StringRef Triple
StringRef Arch
 The architecture, e.g. "sm_70" or "igca_30r".
StringRef Code
 The real devices to compile for ahead of time, e.g.

Detailed Description

Definition at line 223 of file OffloadBinary.h.

Constructor & Destructor Documentation

◆ TargetID() [1/2]

llvm::object::OffloadFile::TargetID::TargetID ( )
default

Referenced by operator!=(), and operator==().

◆ TargetID() [2/2]

llvm::object::OffloadFile::TargetID::TargetID ( StringRef Triple,
StringRef Arch,
StringRef Code = "" )
inline

Definition at line 232 of file OffloadBinary.h.

References Arch, Code, and Triple.

Member Function Documentation

◆ operator!=()

bool llvm::object::OffloadFile::TargetID::operator!= ( const TargetID & Other) const
inline

Definition at line 238 of file OffloadBinary.h.

References llvm::Other, and TargetID().

◆ operator==()

bool llvm::object::OffloadFile::TargetID::operator== ( const TargetID & Other) const
inline

Definition at line 235 of file OffloadBinary.h.

References Arch, Code, llvm::Other, TargetID(), and Triple.

Member Data Documentation

◆ Arch

StringRef llvm::object::OffloadFile::TargetID::Arch

The architecture, e.g. "sm_70" or "igca_30r".

Definition at line 226 of file OffloadBinary.h.

Referenced by llvm::object::areTargetsCompatible(), operator==(), and TargetID().

◆ Code

StringRef llvm::object::OffloadFile::TargetID::Code

The real devices to compile for ahead of time, e.g.

"xe-mtl-h,xe-mtl-u". Empty if the device image lists none.

Definition at line 229 of file OffloadBinary.h.

Referenced by llvm::object::areTargetsCompatible(), operator==(), and TargetID().

◆ Triple

StringRef llvm::object::OffloadFile::TargetID::Triple

Definition at line 224 of file OffloadBinary.h.

Referenced by llvm::object::areTargetsCompatible(), operator==(), and TargetID().


The documentation for this struct was generated from the following file: