Click or drag to resize
Llvm.NET LogoInstructionBuilderMemSet Method

[This is preliminary documentation and is subject to change.]

Builds a memset intrinsic call

Namespace:  Llvm.NET.Instructions
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public Value MemSet(
	NativeModule module,
	Value destination,
	Value value,
	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 memset
value
Type: Llvm.NET.ValuesValue
fill value for the memset
len
Type: Llvm.NET.ValuesValue
length of the data to fill
align
Type: SystemInt32
ALignment of the data for the fill
isVolatile
Type: SystemBoolean
Flag to indicate if the fill 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 currently assumes the single form defined by MemSetName, which matches the classic "C" style memcpy function. However future implementations should be able to deduce the types from the provided values and generate a more specific call without changing any caller code (as is done with MemCpy(NativeModule, Value, Value, Value, Int32, Boolean).
See Also