|
LLVM
4.0.0
|
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. More... | |
Functions | |
| LLVMTypeRef | LLVMTypeOf (LLVMValueRef Val) |
| Obtain the type of a value. More... | |
| LLVMValueKind | LLVMGetValueKind (LLVMValueRef Val) |
| Obtain the enumerated type of a Value instance. More... | |
| const char * | LLVMGetValueName (LLVMValueRef Val) |
| Obtain the string name of a value. More... | |
| void | LLVMSetValueName (LLVMValueRef Val, const char *Name) |
| Set the string name of a value. More... | |
| void | LLVMDumpValue (LLVMValueRef Val) |
| Dump a representation of a value to stderr. More... | |
| char * | LLVMPrintValueToString (LLVMValueRef Val) |
| Return a string representation of the value. More... | |
| void | LLVMReplaceAllUsesWith (LLVMValueRef OldVal, LLVMValueRef NewVal) |
| Replace all uses of a value with another one. More... | |
| LLVMBool | LLVMIsConstant (LLVMValueRef Val) |
| Determine whether the specified value instance is constant. More... | |
| LLVMBool | LLVMIsUndef (LLVMValueRef Val) |
| Determine whether a value instance is undefined. More... | |
| LLVMValueRef | LLVMIsAMDNode (LLVMValueRef Val) |
| LLVMValueRef | LLVMIsAMDString (LLVMValueRef Val) |
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 643 of file Core.cpp.
References llvm::unwrap().
| LLVMValueKind LLVMGetValueKind | ( | LLVMValueRef | Val | ) |
Obtain the enumerated type of a Value instance.
Definition at line 624 of file Core.cpp.
References LLVMInstructionValueKind, and llvm::unwrap().
| const char* LLVMGetValueName | ( | LLVMValueRef | Val | ) |
Obtain the string name of a value.
Definition at line 635 of file Core.cpp.
References llvm::unwrap().
| LLVMValueRef LLVMIsAMDNode | ( | LLVMValueRef | Val | ) |
Definition at line 706 of file Core.cpp.
References llvm::unwrap().
| LLVMValueRef LLVMIsAMDString | ( | LLVMValueRef | Val | ) |
Definition at line 714 of file Core.cpp.
References llvm::unwrap().
| LLVMBool LLVMIsConstant | ( | LLVMValueRef | Val | ) |
Determine whether the specified value instance is constant.
Definition at line 802 of file Core.cpp.
References llvm::unwrap().
| LLVMBool LLVMIsUndef | ( | LLVMValueRef | Val | ) |
Determine whether a value instance is undefined.
Definition at line 812 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 647 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 661 of file Core.cpp.
References llvm::unwrap().
| void LLVMSetValueName | ( | LLVMValueRef | Val, |
| const char * | Name | ||
| ) |
Set the string name of a value.
Definition at line 639 of file Core.cpp.
References llvm::unwrap().
| LLVMTypeRef LLVMTypeOf | ( | LLVMValueRef | Val | ) |
Obtain the type of a value.
Definition at line 620 of file Core.cpp.
References llvm::Intrinsic::getType(), llvm::unwrap(), and llvm::wrap().
1.8.6