LLVM
8.0.1
|
Functions | |
LLVMValueRef | LLVMMDStringInContext (LLVMContextRef C, const char *Str, unsigned SLen) |
Obtain a MDString value from a context. More... | |
LLVMValueRef | LLVMMDString (const char *Str, unsigned SLen) |
Obtain a MDString value from the global context. More... | |
LLVMValueRef | LLVMMDNodeInContext (LLVMContextRef C, LLVMValueRef *Vals, unsigned Count) |
Obtain a MDNode value from a context. More... | |
LLVMValueRef | LLVMMDNode (LLVMValueRef *Vals, unsigned Count) |
Obtain a MDNode value from the global context. 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... | |
unsigned LLVMGetMDNodeNumOperands | ( | LLVMValueRef | V | ) |
Obtain the number of operands from an MDNode value.
V | MDNode to get number of operands from. |
Definition at line 1105 of file Core.cpp.
References llvm::unwrap().
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 1160 of file Core.cpp.
References Context, getMDNodeOperandImpl(), 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 1095 of file Core.cpp.
References llvm::unwrap().
LLVMValueRef LLVMMDNode | ( | LLVMValueRef * | Vals, |
unsigned | Count | ||
) |
Obtain a MDNode value from the global context.
Definition at line 1078 of file Core.cpp.
References LLVMGetGlobalContext(), and LLVMMDNodeInContext().
LLVMValueRef LLVMMDNodeInContext | ( | LLVMContextRef | C, |
LLVMValueRef * | Vals, | ||
unsigned | Count | ||
) |
Obtain a MDNode value from a context.
The returned value corresponds to the llvm::MDNode class.
Definition at line 1051 of file Core.cpp.
References assert(), Context, llvm::MetadataAsValue::get(), llvm::ConstantAsMetadata::get(), llvm::LocalAsMetadata::get(), llvm::MDNode::get(), llvm::makeArrayRef(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMMDNode().
LLVMValueRef LLVMMDString | ( | const char * | Str, |
unsigned | SLen | ||
) |
Obtain a MDString value from the global context.
Definition at line 1047 of file Core.cpp.
References LLVMGetGlobalContext(), and LLVMMDStringInContext().
LLVMValueRef LLVMMDStringInContext | ( | LLVMContextRef | C, |
const char * | Str, | ||
unsigned | SLen | ||
) |
Obtain a MDString value from a context.
The returned instance corresponds to the llvm::MDString class.
The instance is specified by string data of a specified length. The string content is copied, so the backing memory can be freed after this function returns.
Definition at line 1040 of file Core.cpp.
References Context, llvm::MetadataAsValue::get(), llvm::MDString::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMMDString().
LLVMValueRef LLVMMetadataAsValue | ( | LLVMContextRef | C, |
LLVMMetadataRef | MD | ||
) |
Obtain a Metadata as a Value.
Definition at line 1082 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 1086 of file Core.cpp.
References C, llvm::ValueAsMetadata::get(), llvm::ConstantAsMetadata::get(), llvm::unwrap(), and llvm::wrap().