 | InstructionBuilder.MemCpy Method |
[This is preliminary documentation and is subject to change.]
Builds a memcpy intrinsic call
Namespace:
Llvm.NET.Instructions
Assembly:
Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntaxpublic Value MemCpy(
NativeModule module,
Value destination,
Value source,
Value len,
int align,
bool isVolatile
)
Parameters
- module
- Type: Llvm.NET.NativeModule
Module to add the declaration of the intrinsic to if it doesn't already exist - destination
- Type: Llvm.NET.Values.Value
Destination pointer of the memcpy - source
- Type: Llvm.NET.Values.Value
Source pointer of the memcpy - len
- Type: Llvm.NET.Values.Value
length of the data to copy - align
- Type: System.Int32
Alignment of the data for the copy - isVolatile
- Type: System.Boolean
Flag to indicate if the copy involves volatile data such as physical registers
Return Value
Type:
ValueIntrinsic call for the memcpy
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.
See Also