LLVM 22.0.0git
|
Fixed-point type. More...
#include "llvm/IR/DebugInfoMetadata.h"
Public Types | |
enum | FixedPointKind : unsigned { FixedPointBinary , FixedPointDecimal , FixedPointRational , LastFixedPointKind = FixedPointRational } |
Public Types inherited from llvm::DIBasicType | |
enum class | Signedness { Signed , Unsigned } |
Public Types inherited from llvm::DINode | |
enum | DIFlags : uint32_t { FlagAccessibility = FlagPrivate | FlagProtected | FlagPublic , FlagPtrToMemberRep } |
Debug info flags. More... | |
Public Types inherited from llvm::MDNode | |
using | op_iterator = const MDOperand * |
using | op_range = iterator_range<op_iterator> |
Public Types inherited from llvm::Metadata | |
enum | MetadataKind |
Static Public Member Functions | |
static LLVM_ABI std::optional< FixedPointKind > | getFixedPointKind (StringRef Str) |
static LLVM_ABI const char * | fixedPointKindString (FixedPointKind) |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::DIBasicType | |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::DIType | |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::DIScope | |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::DINode | |
static LLVM_ABI DIFlags | getFlag (StringRef Flag) |
static LLVM_ABI StringRef | getFlagString (DIFlags Flag) |
static LLVM_ABI DIFlags | splitFlags (DIFlags Flags, SmallVectorImpl< DIFlags > &SplitFlags) |
Split up a flags bitfield. | |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::MDNode | |
static MDTuple * | get (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static MDTuple * | getIfExists (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static MDTuple * | getDistinct (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static TempMDTuple | getTemporary (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static LLVM_ABI void | deleteTemporary (MDNode *N) |
Deallocate a node created by getTemporary. | |
template<class T> | |
static std::enable_if_t< std::is_base_of< MDNode, T >::value, T * > | replaceWithPermanent (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a permanent one. | |
template<class T> | |
static std::enable_if_t< std::is_base_of< MDNode, T >::value, T * > | replaceWithUniqued (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a uniqued one. | |
template<class T> | |
static std::enable_if_t< std::is_base_of< MDNode, T >::value, T * > | replaceWithDistinct (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a distinct one. | |
static bool | classof (const Metadata *MD) |
Methods for support type inquiry through isa, cast, and dyn_cast: | |
static LLVM_ABI MDNode * | concatenate (MDNode *A, MDNode *B) |
Methods for metadata merging. | |
static LLVM_ABI MDNode * | intersect (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericTBAA (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericFPMath (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericRange (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericNoaliasAddrspace (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericAliasScope (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericAlignmentOrDereferenceable (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMergedProfMetadata (MDNode *A, MDNode *B, const Instruction *AInstr, const Instruction *BInstr) |
Merge !prof metadata from two instructions. | |
static LLVM_ABI MDNode * | getMergedMemProfMetadata (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMergedCallsiteMetadata (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMergedCalleeTypeMetadata (const MDNode *A, const MDNode *B) |
Friends | |
class | LLVMContextImpl |
class | MDNode |
Fixed-point type.
Definition at line 948 of file DebugInfoMetadata.h.
Enumerator | |
---|---|
FixedPointBinary | Scale factor 2^Factor. |
FixedPointDecimal | Scale factor 10^Factor. |
FixedPointRational | Arbitrary rational scale factor. |
LastFixedPointKind |
Definition at line 1031 of file DebugInfoMetadata.h.
Definition at line 1095 of file DebugInfoMetadata.h.
References llvm::Metadata::getMetadataID().
|
inline |
Definition at line 1059 of file DebugInfoMetadata.h.
References AlignInBits, llvm::DIBasicType::clone(), llvm::DIBasicType::cloneImpl(), DEFINE_MDNODE_GET(), Encoding, Flags, Name, SizeInBits, and Tag.
llvm::DIFixedPointType::DEFINE_MDNODE_GET | ( | DIFixedPointType | , |
(unsigned Tag, MDString *Name, uint64_t SizeInBits, uint32_t AlignInBits, unsigned Encoding, DIFlags Flags, unsigned Kind, int Factor, APInt Numerator, APInt Denominator) | , | ||
(Tag, Name, SizeInBits, AlignInBits, Encoding, Flags, Kind, Factor, Numerator, Denominator) | ) |
References AlignInBits, Encoding, Flags, Name, SizeInBits, and Tag.
Referenced by DEFINE_MDNODE_GET().
|
static |
Definition at line 926 of file DebugInfoMetadata.cpp.
References FixedPointBinary, FixedPointDecimal, and FixedPointRational.
Definition at line 1090 of file DebugInfoMetadata.h.
References assert(), and FixedPointRational.
Definition at line 1089 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1078 of file DebugInfoMetadata.h.
References assert(), FixedPointBinary, and FixedPointDecimal.
|
inline |
Definition at line 1077 of file DebugInfoMetadata.h.
|
static |
Definition at line 918 of file DebugInfoMetadata.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), FixedPointBinary, FixedPointDecimal, and FixedPointRational.
Referenced by llvm::LLParser::parseMDField().
|
inline |
Definition at line 1075 of file DebugInfoMetadata.h.
Definition at line 1084 of file DebugInfoMetadata.h.
References assert(), and FixedPointRational.
Definition at line 1083 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1069 of file DebugInfoMetadata.h.
References FixedPointBinary.
|
inline |
Definition at line 1070 of file DebugInfoMetadata.h.
References FixedPointDecimal.
|
inline |
Definition at line 1071 of file DebugInfoMetadata.h.
References FixedPointRational.
bool DIFixedPointType::isSigned | ( | ) | const |
Definition at line 913 of file DebugInfoMetadata.cpp.
References llvm::DIBasicType::getEncoding().
|
friend |
Definition at line 949 of file DebugInfoMetadata.h.
References LLVMContextImpl.
Referenced by LLVMContextImpl.
|
friend |
Definition at line 950 of file DebugInfoMetadata.h.
References AbstractManglingParser< Derived, Alloc >::Ops, AlignInBits, llvm::CallingConv::C, llvm::DIBasicType::DIBasicType(), Encoding, FixedPointBinary, FixedPointDecimal, Flags, MDNode, llvm::Metadata::Storage, and Tag.
Referenced by MDNode.
Definition at line 1054 of file DebugInfoMetadata.h.
Referenced by DEFINE_MDNODE_GET(), DEFINE_MDNODE_GET(), and MDNode.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::AlignInBits |
Definition at line 1057 of file DebugInfoMetadata.h.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Denominator |
Definition at line 1056 of file DebugInfoMetadata.h.
Definition at line 1054 of file DebugInfoMetadata.h.
Referenced by DEFINE_MDNODE_GET(), DEFINE_MDNODE_GET(), and MDNode.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Encoding |
Definition at line 1057 of file DebugInfoMetadata.h.
Definition at line 1055 of file DebugInfoMetadata.h.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Factor |
Definition at line 1058 of file DebugInfoMetadata.h.
Definition at line 1054 of file DebugInfoMetadata.h.
Referenced by DEFINE_MDNODE_GET(), DEFINE_MDNODE_GET(), and MDNode.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Flags |
Definition at line 1057 of file DebugInfoMetadata.h.
Definition at line 1055 of file DebugInfoMetadata.h.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Kind |
Definition at line 1057 of file DebugInfoMetadata.h.
Definition at line 1053 of file DebugInfoMetadata.h.
Referenced by DEFINE_MDNODE_GET(), and DEFINE_MDNODE_GET().
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Name |
Definition at line 1057 of file DebugInfoMetadata.h.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt llvm::DIFixedPointType::Numerator |
Definition at line 1055 of file DebugInfoMetadata.h.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Numerator |
Definition at line 1058 of file DebugInfoMetadata.h.
Definition at line 1053 of file DebugInfoMetadata.h.
Referenced by DEFINE_MDNODE_GET(), and DEFINE_MDNODE_GET().
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::SizeInBits |
Definition at line 1057 of file DebugInfoMetadata.h.
unsigned llvm::DIFixedPointType::Tag |
Definition at line 1053 of file DebugInfoMetadata.h.
Referenced by DEFINE_MDNODE_GET(), DEFINE_MDNODE_GET(), and MDNode.
unsigned StringRef uint64_t uint32_t unsigned DIFlags unsigned int APInt APInt llvm::DIFixedPointType::Tag |
Definition at line 1057 of file DebugInfoMetadata.h.