llvm::markRegisterParameterAttributes

Apply -mregparm-style register parameter attributes to a function.

Synopsis

Declared in <llvm/Transforms/Utils/BuildLibCalls.h>

void
markRegisterParameterAttributes(Function* F);

Description

Handle -mregparm for the given function. Note that this function is a rough approximation that only works for simple function signatures; it does not apply other relevant attributes for function signatures, including sign/zero-extension for arguments and return values.

Parameters

NameDescription
FFunction whose register-parameter attributes may be set.