Method MemSet
MemSet(Value, Value, Value, Boolean)
Builds a memset intrinsic call
Declaration
public Value MemSet(Value destination, Value value, Value len, bool isVolatile)
Parameters
public Value MemSet(Value destination, Value value, Value len, bool isVolatile)
Value | destination | Destination pointer of the memset |
Value | value | fill value for the memset |
Value | len | length of the data to fill |
Boolean | isVolatile | 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.