LLVM: General APIs (original) (raw)
Functions in this section work on all LLVMValueRef instances, regardless of their sub-type. More...
| Macros | |
|---|---|
| #define | LLVM_DECLARE_VALUE_CAST(name) |
| Convert value instances between types. |
| Functions | |
|---|---|
| LLVM_C_ABI LLVMTypeRef | LLVMTypeOf (LLVMValueRef Val) |
| Obtain the type of a value. | |
| LLVM_C_ABI LLVMValueKind | LLVMGetValueKind (LLVMValueRef Val) |
| Obtain the enumerated type of a Value instance. | |
| LLVM_C_ABI const char * | LLVMGetValueName2 (LLVMValueRef Val, size_t *Length) |
| Obtain the string name of a value. | |
| LLVM_C_ABI void | LLVMSetValueName2 (LLVMValueRef Val, const char *Name, size_t NameLen) |
| Set the string name of a value. | |
| LLVM_C_ABI void | LLVMDumpValue (LLVMValueRef Val) |
| Dump a representation of a value to stderr. | |
| LLVM_C_ABI char * | LLVMPrintValueToString (LLVMValueRef Val) |
| Return a string representation of the value. | |
| LLVM_C_ABI LLVMContextRef | LLVMGetValueContext (LLVMValueRef Val) |
| Obtain the context to which this value is associated. | |
| LLVM_C_ABI char * | LLVMPrintDbgRecordToString (LLVMDbgRecordRef Record) |
| Return a string representation of the DbgRecord. | |
| LLVM_C_ABI void | LLVMReplaceAllUsesWith (LLVMValueRef OldVal, LLVMValueRef NewVal) |
| Replace all uses of a value with another one. | |
| LLVM_C_ABI LLVMBool | LLVMIsConstant (LLVMValueRef Val) |
| Determine whether the specified value instance is constant. | |
| LLVM_C_ABI LLVMBool | LLVMIsUndef (LLVMValueRef Val) |
| Determine whether a value instance is undefined. | |
| LLVM_C_ABI LLVMBool | LLVMIsPoison (LLVMValueRef Val) |
| Determine whether a value instance is poisonous. | |
| LLVM_C_ABI LLVMValueRef | LLVMIsAMDNode (LLVMValueRef Val) |
| LLVM_C_ABI LLVMValueRef | LLVMIsAValueAsMetadata (LLVMValueRef Val) |
| LLVM_C_ABI LLVMValueRef | LLVMIsAMDString (LLVMValueRef Val) |
| LLVM_C_ABI const char * | LLVMGetValueName (LLVMValueRef Val) |
| Deprecated: Use LLVMGetValueName2 instead. | |
| LLVM_C_ABI 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.
◆ LLVM_DECLARE_VALUE_CAST
| #define LLVM_DECLARE_VALUE_CAST | ( | name | ) |
|---|
Value:
#define LLVM_C_ABI
LLVM_C_ABI is the export/visibility macro used to mark symbols declared in llvm-c as exported when bu...
struct LLVMOpaqueValue * LLVMValueRef
Represents an individual value in LLVM IR.
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
Definition at line 2162 of file Core.h.