LLVM 17.0.0git
|
Functions in this section work on all LLVMValueRef instances, regardless of their sub-type. More...
Macros | |
#define | LLVM_DECLARE_VALUE_CAST(name) LLVMValueRef LLVMIsA##name(LLVMValueRef Val); |
Convert value instances between types. | |
Functions | |
LLVMTypeRef | LLVMTypeOf (LLVMValueRef Val) |
Obtain the type of a value. | |
LLVMValueKind | LLVMGetValueKind (LLVMValueRef Val) |
Obtain the enumerated type of a Value instance. | |
const char * | LLVMGetValueName2 (LLVMValueRef Val, size_t *Length) |
Obtain the string name of a value. | |
void | LLVMSetValueName2 (LLVMValueRef Val, const char *Name, size_t NameLen) |
Set the string name of a value. | |
void | LLVMDumpValue (LLVMValueRef Val) |
Dump a representation of a value to stderr. | |
char * | LLVMPrintValueToString (LLVMValueRef Val) |
Return a string representation of the value. | |
void | LLVMReplaceAllUsesWith (LLVMValueRef OldVal, LLVMValueRef NewVal) |
Replace all uses of a value with another one. | |
LLVMBool | LLVMIsConstant (LLVMValueRef Val) |
Determine whether the specified value instance is constant. | |
LLVMBool | LLVMIsUndef (LLVMValueRef Val) |
Determine whether a value instance is undefined. | |
LLVMBool | LLVMIsPoison (LLVMValueRef Val) |
Determine whether a value instance is poisonous. | |
LLVMValueRef | LLVMIsAMDNode (LLVMValueRef Val) |
LLVMValueRef | LLVMIsAValueAsMetadata (LLVMValueRef Val) |
LLVMValueRef | LLVMIsAMDString (LLVMValueRef Val) |
const char * | LLVMGetValueName (LLVMValueRef Val) |
Deprecated: Use LLVMGetValueName2 instead. | |
void | LLVMSetValueName (LLVMValueRef Val, const char *Name) |
Deprecated: Use LLVMSetValueName2 instead. | |
Functions in this section work on all LLVMValueRef instances, regardless of their sub-type.
They correspond to functions available on llvm::Value.
#define LLVM_DECLARE_VALUE_CAST | ( | name | ) | LLVMValueRef LLVMIsA##name(LLVMValueRef Val); |
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.
void LLVMDumpValue | ( | LLVMValueRef | Val | ) |
Dump a representation of a value to stderr.
Definition at line 910 of file Core.cpp.
References llvm::errs(), and llvm::unwrap().
LLVMValueKind LLVMGetValueKind | ( | LLVMValueRef | Val | ) |
Obtain the enumerated type of a Value instance.
Definition at line 880 of file Core.cpp.
References LLVMInstructionValueKind, and llvm::unwrap().
const char * LLVMGetValueName | ( | LLVMValueRef | Val | ) |
Deprecated: Use LLVMGetValueName2 instead.
Definition at line 902 of file Core.cpp.
References llvm::unwrap().
const char * LLVMGetValueName2 | ( | LLVMValueRef | Val, |
size_t * | Length | ||
) |
Obtain the string name of a value.
Definition at line 892 of file Core.cpp.
References llvm::Length, and llvm::unwrap().
LLVMValueRef LLVMIsAMDNode | ( | LLVMValueRef | Val | ) |
Definition at line 1006 of file Core.cpp.
References llvm::unwrap().
LLVMValueRef LLVMIsAMDString | ( | LLVMValueRef | Val | ) |
Definition at line 1021 of file Core.cpp.
References llvm::unwrap().
LLVMValueRef LLVMIsAValueAsMetadata | ( | LLVMValueRef | Val | ) |
Definition at line 1014 of file Core.cpp.
References llvm::unwrap().
LLVMBool LLVMIsConstant | ( | LLVMValueRef | Val | ) |
Determine whether the specified value instance is constant.
Definition at line 1113 of file Core.cpp.
References llvm::unwrap().
LLVMBool LLVMIsPoison | ( | LLVMValueRef | Val | ) |
Determine whether a value instance is poisonous.
Definition at line 1127 of file Core.cpp.
References llvm::unwrap().
LLVMBool LLVMIsUndef | ( | LLVMValueRef | Val | ) |
Determine whether a value instance is undefined.
Definition at line 1123 of file Core.cpp.
References llvm::unwrap().
char * LLVMPrintValueToString | ( | LLVMValueRef | Val | ) |
Return a string representation of the value.
Use LLVMDisposeMessage to free the string.
Definition at line 914 of file Core.cpp.
References llvm::raw_ostream::flush(), and llvm::unwrap().
void LLVMReplaceAllUsesWith | ( | LLVMValueRef | OldVal, |
LLVMValueRef | NewVal | ||
) |
Replace all uses of a value with another one.
Definition at line 928 of file Core.cpp.
References llvm::unwrap().
void LLVMSetValueName | ( | LLVMValueRef | Val, |
const char * | Name | ||
) |
Deprecated: Use LLVMSetValueName2 instead.
Definition at line 906 of file Core.cpp.
References Name, and llvm::unwrap().
void LLVMSetValueName2 | ( | LLVMValueRef | Val, |
const char * | Name, | ||
size_t | NameLen | ||
) |
Set the string name of a value.
Definition at line 898 of file Core.cpp.
References Name, and llvm::unwrap().
LLVMTypeRef LLVMTypeOf | ( | LLVMValueRef | Val | ) |
Obtain the type of a value.
Definition at line 876 of file Core.cpp.
References getType(), llvm::unwrap(), and llvm::wrap().