|
LLVM 23.0.0git
|
Functions | |
| LLVM_C_ABI LLVMMetadataRef | LLVMMDStringInContext2 (LLVMContextRef C, const char *Str, size_t SLen) |
| Create an MDString value from a given string value. | |
| LLVM_C_ABI LLVMMetadataRef | LLVMMDNodeInContext2 (LLVMContextRef C, LLVMMetadataRef *MDs, size_t Count) |
| Create an MDNode value with the given array of operands. | |
| LLVM_C_ABI LLVMValueRef | LLVMMetadataAsValue (LLVMContextRef C, LLVMMetadataRef MD) |
| Obtain a Metadata as a Value. | |
| LLVM_C_ABI LLVMMetadataRef | LLVMValueAsMetadata (LLVMValueRef Val) |
| Obtain a Value as a Metadata. | |
| LLVM_C_ABI const char * | LLVMGetMDString (LLVMValueRef V, unsigned *Length) |
| Obtain the underlying string from a MDString value. | |
| LLVM_C_ABI unsigned | LLVMGetMDNodeNumOperands (LLVMValueRef V) |
| Obtain the number of operands from an MDNode value. | |
| LLVM_C_ABI void | LLVMGetMDNodeOperands (LLVMValueRef V, LLVMValueRef *Dest) |
| Obtain the given MDNode's operands. | |
| LLVM_C_ABI void | LLVMReplaceMDNodeOperandWith (LLVMValueRef V, unsigned Index, LLVMMetadataRef Replacement) |
| Replace an operand at a specific index in a llvm::MDNode value. | |
| LLVM_C_ABI LLVMValueRef | LLVMMDStringInContext (LLVMContextRef C, const char *Str, unsigned SLen) |
| Deprecated: Use LLVMMDStringInContext2 instead. | |
| LLVM_C_ABI | LLVM_ATTRIBUTE_C_DEPRECATED (LLVMValueRef LLVMMDString(const char *Str, unsigned SLen), "Use of the global context is deprecated, use LLVMMDStringInContext2 " "instead") |
| Deprecated: Use LLVMMDStringInContext2 instead. | |
| LLVM_C_ABI LLVMValueRef | LLVMMDNodeInContext (LLVMContextRef C, LLVMValueRef *Vals, unsigned Count) |
| Deprecated: Use LLVMMDNodeInContext2 instead. | |
| LLVM_C_ABI | LLVM_ATTRIBUTE_C_DEPRECATED (LLVMValueRef LLVMMDNode(LLVMValueRef *Vals, unsigned Count), "Use of the global context is deprecated, use LLVMMDNodeInContext2 " "instead") |
| Deprecated: Use LLVMMDNodeInContext2 instead. | |
| LLVM_C_ABI LLVM_ATTRIBUTE_C_DEPRECATED | ( | LLVMValueRef | LLVMMDNodeLLVMValueRef *Vals, unsigned Count, |
| "Use of the global context is | deprecated, | ||
| use LLVMMDNodeInContext2 " "instead" | ) |
Deprecated: Use LLVMMDNodeInContext2 instead.
References C(), const, LLVM_ATTRIBUTE_C_DEPRECATED, LLVM_C_ABI, LLVMAppendBasicBlockInContext(), LLVMAppendExistingBasicBlock(), LLVMBasicBlockAsValue(), LLVMCountBasicBlocks(), LLVMCreateBasicBlockInContext(), LLVMCreateOperandBundle(), LLVMDisposeOperandBundle(), LLVMGetBasicBlockName(), LLVMGetBasicBlockParent(), LLVMGetBasicBlocks(), LLVMGetBasicBlockTerminator(), LLVMGetEntryBasicBlock(), LLVMGetFirstBasicBlock(), LLVMGetLastBasicBlock(), LLVMGetNextBasicBlock(), LLVMGetNumOperandBundleArgs(), LLVMGetOperandBundleArgAtIndex(), LLVMGetOperandBundleTag(), LLVMGetPreviousBasicBlock(), LLVMInsertExistingBasicBlockAfterInsertBlock(), LLVMMDNode(), LLVMValueAsBasicBlock(), and LLVMValueIsBasicBlock().
| LLVM_C_ABI LLVM_ATTRIBUTE_C_DEPRECATED | ( | LLVMValueRef | LLVMMDStringconst char *Str, unsigned SLen, |
| "Use of the global context is | deprecated, | ||
| use LLVMMDStringInContext2 " "instead" | ) |
Deprecated: Use LLVMMDStringInContext2 instead.
References C(), const, LLVM_ATTRIBUTE_C_DEPRECATED, LLVM_C_ABI, LLVMMDNodeInContext(), and LLVMMDString().
| LLVM_C_ABI unsigned LLVMGetMDNodeNumOperands | ( | LLVMValueRef | V | ) |
Obtain the number of operands from an MDNode value.
| V | MDNode to get number of operands from. |
Definition at line 1386 of file Core.cpp.
References llvm::cast(), llvm::isa(), and llvm::unwrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED(), and LLVMGetNumOperands().
| LLVM_C_ABI 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 1441 of file Core.cpp.
References llvm::cast(), llvm::dyn_cast(), getMDNodeOperandImpl(), N, llvm::unwrap(), and llvm::wrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED().
| LLVM_C_ABI 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 1376 of file Core.cpp.
References llvm::dyn_cast(), llvm::Length, and llvm::unwrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED().
| LLVM_C_ABI LLVMValueRef LLVMMDNodeInContext | ( | LLVMContextRef | C, |
| LLVMValueRef * | Vals, | ||
| unsigned | Count ) |
Deprecated: Use LLVMMDNodeInContext2 instead.
Definition at line 1332 of file Core.cpp.
References llvm::ArrayRef(), assert(), llvm::CallingConv::C, llvm::Count, llvm::dyn_cast(), llvm::ConstantAsMetadata::get(), llvm::LocalAsMetadata::get(), llvm::MDNode::get(), llvm::MetadataAsValue::get(), llvm::isa(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED(), and LLVMMDNode().
| LLVM_C_ABI LLVMMetadataRef LLVMMDNodeInContext2 | ( | LLVMContextRef | C, |
| LLVMMetadataRef * | MDs, | ||
| size_t | Count ) |
Create an MDNode value with the given array of operands.
Definition at line 1316 of file Core.cpp.
References llvm::CallingConv::C, llvm::Count, llvm::MDNode::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED().
| LLVM_C_ABI LLVMValueRef LLVMMDStringInContext | ( | LLVMContextRef | C, |
| const char * | Str, | ||
| unsigned | SLen ) |
Deprecated: Use LLVMMDStringInContext2 instead.
Definition at line 1321 of file Core.cpp.
References llvm::CallingConv::C, llvm::MDString::get(), llvm::MetadataAsValue::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED(), and LLVMMDString().
| LLVM_C_ABI 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 1311 of file Core.cpp.
References llvm::CallingConv::C, llvm::MDString::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED().
| LLVM_C_ABI LLVMValueRef LLVMMetadataAsValue | ( | LLVMContextRef | C, |
| LLVMMetadataRef | MD ) |
Obtain a Metadata as a Value.
Definition at line 1363 of file Core.cpp.
References llvm::CallingConv::C, llvm::MetadataAsValue::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED().
| LLVM_C_ABI void LLVMReplaceMDNodeOperandWith | ( | LLVMValueRef | V, |
| unsigned | Index, | ||
| LLVMMetadataRef | Replacement ) |
Replace an operand at a specific index in a llvm::MDNode value.
Definition at line 1454 of file Core.cpp.
References llvm::cast(), N, and llvm::unwrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED().
| LLVM_C_ABI LLVMMetadataRef LLVMValueAsMetadata | ( | LLVMValueRef | Val | ) |
Obtain a Value as a Metadata.
Definition at line 1367 of file Core.cpp.
References llvm::CallingConv::C, llvm::dyn_cast(), llvm::ConstantAsMetadata::get(), llvm::ValueAsMetadata::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVM_ATTRIBUTE_C_DEPRECATED().