LLVM 23.0.0git
llvm::Module::GlobalAsmProperties Struct Reference

#include "llvm/IR/Module.h"

Public Member Functions

LLVM_ABI bool set (StringRef Name, std::string Value)
 Set a property using a string name.
LLVM_ABI SmallVector< std::pair< StringRef, StringRef > > getAsStrings () const
 Get a list of set properties as pairs of key and value.
bool operator== (const GlobalAsmProperties &Other) const
bool operator!= (const GlobalAsmProperties &Other) const

Public Attributes

std::string TargetFeatures
std::string TargetCPU

Detailed Description

Definition at line 172 of file Module.h.

Member Function Documentation

◆ getAsStrings()

SmallVector< std::pair< StringRef, StringRef > > Module::GlobalAsmProperties::getAsStrings ( ) const

Get a list of set properties as pairs of key and value.

Definition at line 992 of file Module.cpp.

◆ operator!=()

bool llvm::Module::GlobalAsmProperties::operator!= ( const GlobalAsmProperties & Other) const
inline

Definition at line 188 of file Module.h.

References llvm::Other.

◆ operator==()

bool llvm::Module::GlobalAsmProperties::operator== ( const GlobalAsmProperties & Other) const
inline

Definition at line 183 of file Module.h.

References llvm::Other, TargetCPU, and TargetFeatures.

◆ set()

bool Module::GlobalAsmProperties::set ( StringRef Name,
std::string Value )

Set a property using a string name.

Returns whether the property name was valid.

Definition at line 981 of file Module.cpp.

Member Data Documentation

◆ TargetCPU

std::string llvm::Module::GlobalAsmProperties::TargetCPU

Definition at line 174 of file Module.h.

Referenced by operator==().

◆ TargetFeatures

std::string llvm::Module::GlobalAsmProperties::TargetFeatures

Definition at line 173 of file Module.h.

Referenced by operator==().


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