Functions in this section work on all LLVMValueRef instances, regardless of their sub-type. They correspond to functions available on llvm::Value.
◆ LLVM_DECLARE_VALUE_CAST
Convert value instances between types.
Internally, an LLVMValueRef is "pinned" to a specific type. This series of functions allows you to cast an instance to a specific type.
If the cast is not valid for the specified type, NULL is returned.
- See also
- llvm::dyn_cast_or_null<>
Definition at line 1884 of file Core.h.
◆ LLVMDumpValue()
Dump a representation of a value to stderr.
- See also
- llvm::Value::dump()
◆ LLVMGetValueKind()
Obtain the enumerated type of a Value instance.
- See also
- llvm::Value::getValueID()
◆ LLVMGetValueName()
Deprecated: Use LLVMGetValueName2 instead.
◆ LLVMGetValueName2()
const char * LLVMGetValueName2 |
( |
LLVMValueRef |
Val, |
|
|
size_t * |
Length |
|
) |
| |
Obtain the string name of a value.
- See also
- llvm::Value::getName()
◆ LLVMIsAMDNode()
◆ LLVMIsAMDString()
◆ LLVMIsAValueAsMetadata()
◆ LLVMIsConstant()
Determine whether the specified value instance is constant.
◆ LLVMIsPoison()
Determine whether a value instance is poisonous.
◆ LLVMIsUndef()
Determine whether a value instance is undefined.
◆ LLVMPrintValueToString()
Return a string representation of the value. Use LLVMDisposeMessage to free the string.
- See also
- llvm::Value::print()
◆ LLVMReplaceAllUsesWith()
Replace all uses of a value with another one.
- See also
- llvm::Value::replaceAllUsesWith()
◆ LLVMSetValueName()
void LLVMSetValueName |
( |
LLVMValueRef |
Val, |
|
|
const char * |
Name |
|
) |
| |
Deprecated: Use LLVMSetValueName2 instead.
◆ LLVMSetValueName2()
void LLVMSetValueName2 |
( |
LLVMValueRef |
Val, |
|
|
const char * |
Name, |
|
|
size_t |
NameLen |
|
) |
| |
Set the string name of a value.
- See also
- llvm::Value::setName()
◆ LLVMTypeOf()
Obtain the type of a value.
- See also
- llvm::Value::getType()