LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
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:
Inheritance graph
[legend]

Public Member Functions

 Argument (StringRef Str="")
 
 Argument (StringRef Key, const Value *V)
 
 Argument (StringRef Key, const Type *T)
 
 Argument (StringRef Key, StringRef S)
 
 Argument (StringRef Key, const char *S)
 
 Argument (StringRef Key, int N)
 
 Argument (StringRef Key, float N)
 
 Argument (StringRef Key, long N)
 
 Argument (StringRef Key, long long N)
 
 Argument (StringRef Key, unsigned N)
 
 Argument (StringRef Key, unsigned long N)
 
 Argument (StringRef Key, unsigned long long N)
 
 Argument (StringRef Key, ElementCount EC)
 
 Argument (StringRef Key, bool B)
 
 Argument (StringRef Key, DebugLoc dl)
 
 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 426 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ Argument() [1/16]

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

Definition at line 432 of file DiagnosticInfo.h.

◆ Argument() [2/16]

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

Definition at line 165 of file DiagnosticInfo.cpp.

References llvm::GlobalValue::dropLLVMManglingEscape(), F, I, Loc, OS, string, and Val.

◆ Argument() [3/16]

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

Definition at line 190 of file DiagnosticInfo.cpp.

References OS, string, and Val.

◆ Argument() [4/16]

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

Definition at line 196 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [5/16]

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

Definition at line 436 of file DiagnosticInfo.h.

◆ Argument() [6/16]

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

Definition at line 199 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [7/16]

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

Definition at line 202 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [8/16]

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

Definition at line 205 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [9/16]

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

Definition at line 208 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [10/16]

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

Definition at line 211 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [11/16]

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

Definition at line 214 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [12/16]

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

Definition at line 218 of file DiagnosticInfo.cpp.

References string.

◆ Argument() [13/16]

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

Definition at line 222 of file DiagnosticInfo.cpp.

References OS, string, and Val.

◆ Argument() [14/16]

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

Definition at line 445 of file DiagnosticInfo.h.

◆ Argument() [15/16]

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

Definition at line 236 of file DiagnosticInfo.cpp.

References llvm::DiagnosticLocation::getLine(), Loc, string, and Val.

◆ Argument() [16/16]

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

Definition at line 229 of file DiagnosticInfo.cpp.

References llvm::CallingConv::C, OS, string, and Val.

Member Data Documentation

◆ Key

std::string llvm::DiagnosticInfoOptimizationBase::Argument::Key

◆ Loc

DiagnosticLocation llvm::DiagnosticInfoOptimizationBase::Argument::Loc

Definition at line 430 of file DiagnosticInfo.h.

Referenced by Argument().

◆ Val

std::string llvm::DiagnosticInfoOptimizationBase::Argument::Val

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