Table of Contents

Method MemSet

Namespace
Ubiquity.NET.Llvm.Instructions
Assembly
Ubiquity.NET.Llvm.dll

MemSet(Value, Value, Value, bool)

Builds a memset intrinsic call

public Value MemSet(Value destination, Value value, Value len, bool isVolatile)

Parameters

destination Value

Destination pointer of the memset

value Value

fill value for the memset

len Value

length of the data to fill

isVolatile bool

Flag to indicate if the fill involves volatile data such as physical registers

Returns

Value

Intrinsic call for the memset

Remarks

LLVM has many overloaded variants of the memset 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.