LLVM
17.0.0git
|
Functions | |
LLVMMetadataRef | LLVMMDStringInContext2 (LLVMContextRef C, const char *Str, size_t SLen) |
Create an MDString value from a given string value. More... | |
LLVMMetadataRef | LLVMMDNodeInContext2 (LLVMContextRef C, LLVMMetadataRef *MDs, size_t Count) |
Create an MDNode value with the given array of operands. More... | |
LLVMValueRef | LLVMMetadataAsValue (LLVMContextRef C, LLVMMetadataRef MD) |
Obtain a Metadata as a Value. More... | |
LLVMMetadataRef | LLVMValueAsMetadata (LLVMValueRef Val) |
Obtain a Value as a Metadata. More... | |
const char * | LLVMGetMDString (LLVMValueRef V, unsigned *Length) |
Obtain the underlying string from a MDString value. More... | |
unsigned | LLVMGetMDNodeNumOperands (LLVMValueRef V) |
Obtain the number of operands from an MDNode value. More... | |
void | LLVMGetMDNodeOperands (LLVMValueRef V, LLVMValueRef *Dest) |
Obtain the given MDNode's operands. More... | |
LLVMValueRef | LLVMMDStringInContext (LLVMContextRef C, const char *Str, unsigned SLen) |
Deprecated: Use LLVMMDStringInContext2 instead. More... | |
LLVMValueRef | LLVMMDString (const char *Str, unsigned SLen) |
Deprecated: Use LLVMMDStringInContext2 instead. More... | |
LLVMValueRef | LLVMMDNodeInContext (LLVMContextRef C, LLVMValueRef *Vals, unsigned Count) |
Deprecated: Use LLVMMDNodeInContext2 instead. More... | |
LLVMValueRef | LLVMMDNode (LLVMValueRef *Vals, unsigned Count) |
Deprecated: Use LLVMMDNodeInContext2 instead. More... | |
unsigned LLVMGetMDNodeNumOperands | ( | LLVMValueRef | V | ) |
Obtain the number of operands from an MDNode value.
V | MDNode to get number of operands from. |
Definition at line 1203 of file Core.cpp.
Referenced by LLVMGetNumOperands().
void LLVMGetMDNodeOperands | ( | LLVMValueRef | V, |
LLVMValueRef * | Dest | ||
) |
Obtain the given MDNode's operands.
The passed LLVMValueRef pointer should point to enough memory to hold all of the operands of the given MDNode (see LLVMGetMDNodeNumOperands) as LLVMValueRefs. This memory will be populated with the LLVMValueRefs of the MDNode's operands.
V | MDNode to get the operands from. |
Dest | Destination array for operands. |
Definition at line 1258 of file Core.cpp.
References Context, getMDNodeOperandImpl(), i, N, llvm::unwrap(), and llvm::wrap().
const char* LLVMGetMDString | ( | LLVMValueRef | V, |
unsigned * | Length | ||
) |
Obtain the underlying string from a MDString value.
V | Instance to obtain string from. |
Length | Memory address which will hold length of returned string. |
Definition at line 1193 of file Core.cpp.
References llvm::Length, S, and llvm::unwrap().
LLVMValueRef LLVMMDNode | ( | LLVMValueRef * | Vals, |
unsigned | Count | ||
) |
Deprecated: Use LLVMMDNodeInContext2 instead.
Definition at line 1176 of file Core.cpp.
References LLVMGetGlobalContext(), and LLVMMDNodeInContext().
LLVMValueRef LLVMMDNodeInContext | ( | LLVMContextRef | C, |
LLVMValueRef * | Vals, | ||
unsigned | Count | ||
) |
Deprecated: Use LLVMMDNodeInContext2 instead.
Definition at line 1149 of file Core.cpp.
References llvm::ArrayRef(), assert(), Context, llvm::MetadataAsValue::get(), llvm::ConstantAsMetadata::get(), llvm::LocalAsMetadata::get(), llvm::MDNode::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMMDNode().
LLVMMetadataRef LLVMMDNodeInContext2 | ( | LLVMContextRef | C, |
LLVMMetadataRef * | MDs, | ||
size_t | Count | ||
) |
Create an MDNode value with the given array of operands.
Definition at line 1133 of file Core.cpp.
References llvm::MDNode::get(), llvm::unwrap(), and llvm::wrap().
LLVMValueRef LLVMMDString | ( | const char * | Str, |
unsigned | SLen | ||
) |
Deprecated: Use LLVMMDStringInContext2 instead.
Definition at line 1145 of file Core.cpp.
References LLVMGetGlobalContext(), and LLVMMDStringInContext().
LLVMValueRef LLVMMDStringInContext | ( | LLVMContextRef | C, |
const char * | Str, | ||
unsigned | SLen | ||
) |
Deprecated: Use LLVMMDStringInContext2 instead.
Definition at line 1138 of file Core.cpp.
References Context, llvm::MetadataAsValue::get(), llvm::MDString::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMMDString().
LLVMMetadataRef LLVMMDStringInContext2 | ( | LLVMContextRef | C, |
const char * | Str, | ||
size_t | SLen | ||
) |
Create an MDString value from a given string value.
The MDString value does not take ownership of the given string, it remains the responsibility of the caller to free it.
Definition at line 1128 of file Core.cpp.
References llvm::MDString::get(), llvm::unwrap(), and llvm::wrap().
LLVMValueRef LLVMMetadataAsValue | ( | LLVMContextRef | C, |
LLVMMetadataRef | MD | ||
) |
Obtain a Metadata as a Value.
Definition at line 1180 of file Core.cpp.
References llvm::MetadataAsValue::get(), llvm::unwrap(), and llvm::wrap().
LLVMMetadataRef LLVMValueAsMetadata | ( | LLVMValueRef | Val | ) |
Obtain a Value as a Metadata.
Definition at line 1184 of file Core.cpp.
References llvm::ValueAsMetadata::get(), llvm::ConstantAsMetadata::get(), llvm::unwrap(), and llvm::wrap().