Method MemCpy
- Namespace
- Ubiquity.NET.Llvm.Instructions
- Assembly
- Ubiquity.NET.Llvm.dll
MemCpy(Value, Value, Value, bool)
Builds a memcpy intrinsic call
public Value MemCpy(Value destination, Value source, Value len, bool isVolatile)
Parameters
destination
ValueDestination pointer of the memcpy
source
ValueSource pointer of the memcpy
len
Valuelength of the data to copy
isVolatile
boolFlag to indicate if the copy involves volatile data such as physical registers
Returns
Remarks
LLVM has many overloaded variants of the memcpy intrinsic, this implementation will deduce the types from the provided values and generate a more specific call without the need to provide overloaded forms of this method and otherwise complicating the calling code.