LLVM 22.0.0git
llvm::DiagnosticInfoOptimizationBase::Argument Struct Reference

Used in the streaming interface as the general argument type. More...

#include "llvm/IR/DiagnosticInfo.h"

Inheritance diagram for llvm::DiagnosticInfoOptimizationBase::Argument:
[legend]

Public Member Functions

 Argument (StringRef Str="")
LLVM_ABI Argument (StringRef Key, const Value *V)
LLVM_ABI Argument (StringRef Key, const Type *T)
LLVM_ABI Argument (StringRef Key, StringRef S)
 Argument (StringRef Key, const char *S)
LLVM_ABI Argument (StringRef Key, int N)
LLVM_ABI Argument (StringRef Key, float N)
LLVM_ABI Argument (StringRef Key, long N)
LLVM_ABI Argument (StringRef Key, long long N)
LLVM_ABI Argument (StringRef Key, unsigned N)
LLVM_ABI Argument (StringRef Key, unsigned long N)
LLVM_ABI Argument (StringRef Key, unsigned long long N)
LLVM_ABI Argument (StringRef Key, ElementCount EC)
 Argument (StringRef Key, bool B)
LLVM_ABI Argument (StringRef Key, DebugLoc dl)
LLVM_ABI Argument (StringRef Key, InstructionCost C)

Public Attributes

std::string Key
std::string Val
DiagnosticLocation Loc

Detailed Description

Used in the streaming interface as the general argument type.

It internally converts everything into a key-value pair.

Definition at line 536 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ Argument() [1/16]

llvm::DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Str = "")
inlineexplicit

Definition at line 542 of file DiagnosticInfo.h.

References Key, and Val.

Referenced by Argument().

◆ Argument() [2/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
const Value * V )

◆ Argument() [3/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
const Type * T )

Definition at line 230 of file DiagnosticInfo.cpp.

References Key, T, and Val.

◆ Argument() [4/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
StringRef S )

Definition at line 236 of file DiagnosticInfo.cpp.

References Key, and Val.

◆ Argument() [5/16]

llvm::DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
const char * S )
inline

Definition at line 546 of file DiagnosticInfo.h.

References Argument(), and Key.

◆ Argument() [6/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
int N )

Definition at line 239 of file DiagnosticInfo.cpp.

References llvm::itostr(), Key, N, and Val.

◆ Argument() [7/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
float N )

Definition at line 242 of file DiagnosticInfo.cpp.

References Key, N, llvm::to_string(), and Val.

◆ Argument() [8/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
long N )

Definition at line 245 of file DiagnosticInfo.cpp.

References llvm::itostr(), Key, N, and Val.

◆ Argument() [9/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
long long N )

Definition at line 248 of file DiagnosticInfo.cpp.

References llvm::itostr(), Key, N, and Val.

◆ Argument() [10/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
unsigned N )

Definition at line 251 of file DiagnosticInfo.cpp.

References Key, N, llvm::utostr(), and Val.

◆ Argument() [11/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
unsigned long N )

Definition at line 254 of file DiagnosticInfo.cpp.

References Key, N, llvm::utostr(), and Val.

◆ Argument() [12/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
unsigned long long N )

Definition at line 258 of file DiagnosticInfo.cpp.

References Key, N, llvm::utostr(), and Val.

◆ Argument() [13/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
ElementCount EC )

Definition at line 262 of file DiagnosticInfo.cpp.

References Key, and Val.

◆ Argument() [14/16]

llvm::DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
bool B )
inline

Definition at line 555 of file DiagnosticInfo.h.

References B(), Key, and Val.

◆ Argument() [15/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
DebugLoc dl )

Definition at line 276 of file DiagnosticInfo.cpp.

References Key, Loc, and Val.

◆ Argument() [16/16]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef Key,
InstructionCost C )

Definition at line 269 of file DiagnosticInfo.cpp.

References llvm::CallingConv::C, Key, and Val.

Member Data Documentation

◆ Key

◆ Loc

DiagnosticLocation llvm::DiagnosticInfoOptimizationBase::Argument::Loc

Definition at line 540 of file DiagnosticInfo.h.

Referenced by Argument(), and Argument().

◆ Val


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