Click or drag to resize
Llvm.NET LogoInstructionBuilderMemCpy 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
Syntax
C#
public Value MemCpy(
	NativeModule module,
	Value destination,
	Value source,
	Value len,
	int align,
	bool isVolatile
)

Parameters

module
Type: Llvm.NETNativeModule
Module to add the declaration of the intrinsic to if it doesn't already exist
destination
Type: Llvm.NET.ValuesValue
Destination pointer of the memcpy
source
Type: Llvm.NET.ValuesValue
Source pointer of the memcpy
len
Type: Llvm.NET.ValuesValue
length of the data to copy
align
Type: SystemInt32
Alignment of the data for the copy
isVolatile
Type: SystemBoolean
Flag to indicate if the copy involves volatile data such as physical registers

Return Value

Type: Value
Intrinsic 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