LLVM 20.0.0git
|
This module defines functions that allow you to inspect the uses of a LLVMValueRef. More...
Functions | |
LLVMUseRef | LLVMGetFirstUse (LLVMValueRef Val) |
Obtain the first use of a value. | |
LLVMUseRef | LLVMGetNextUse (LLVMUseRef U) |
Obtain the next use of a value. | |
LLVMValueRef | LLVMGetUser (LLVMUseRef U) |
Obtain the user value for a user. | |
LLVMValueRef | LLVMGetUsedValue (LLVMUseRef U) |
Obtain the value this use corresponds to. | |
This module defines functions that allow you to inspect the uses of a LLVMValueRef.
It is possible to obtain an LLVMUseRef for any LLVMValueRef instance. Each LLVMUseRef (which corresponds to a llvm::Use instance) holds a llvm::User and llvm::Value.
LLVMUseRef LLVMGetFirstUse | ( | LLVMValueRef | Val | ) |
Obtain the first use of a value.
Uses are obtained in an iterator fashion. First, call this function to obtain a reference to the first use. Then, call LLVMGetNextUse() on that instance and all subsequently obtained instances until LLVMGetNextUse() returns NULL.
Definition at line 1162 of file Core.cpp.
References I, unwrap(), and llvm::wrap().
LLVMUseRef LLVMGetNextUse | ( | LLVMUseRef | U | ) |
Obtain the next use of a value.
This effectively advances the iterator. It returns NULL if you are on the final use and no more are available.
Definition at line 1170 of file Core.cpp.
References unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetUsedValue | ( | LLVMUseRef | U | ) |
Obtain the value this use corresponds to.
Definition at line 1181 of file Core.cpp.
References llvm::get(), unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetUser | ( | LLVMUseRef | U | ) |
Obtain the user value for a user.
The returned value corresponds to a llvm::User type.
Definition at line 1177 of file Core.cpp.
References unwrap(), and llvm::wrap().