Emit a call to the memrchr function, analogously to emitMemChr.
Declared in <llvm/Transforms/Utils/BuildLibCalls.h>
Value*
emitMemRChr(
Value* Ptr,
Value* Val,
Value* Len,
IRBuilderBase& B,
DataLayout const& DL,
TargetLibraryInfo const* TLI);
The memrchr call, or null if unavailable.
| Name | Description |
|---|---|
| Ptr | Memory region to search. |
| Val | Byte value to search for. |
| Len | Number of bytes to examine. |
| B | IR builder used to create the call. |
| DL | Data layout used for size_t typing. |
| TLI | Target library info describing available libcalls. |