View source code
Display the source code in dmd/backend/x86/cod1.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.backend.x86.cod1.FuncParamRegs_alloc

Allocate parameter of type t and ty to registers *preg1 and *preg2.

bool FuncParamRegs_alloc (
  ref FuncParamRegs fpr,
  dmd.backend.type.TYPE* t,
  uint ty,
  out ubyte preg1,
  out ubyte preg2
) nothrow @trusted;

Parameters

NameDescription
fpr context
t type, valid only if ty is TYstruct or TYarray
ty type
preg1 set to register or first of register pair
preg2 set to second of register pair, if any

Returns

false = for not allocated to any register true = for preg1, preg2 set to allocated register pair

Authors

Walter Bright

License

Boost License 1.0