This is an archive of the discontinued LLVM Phabricator instance.

[tablegen] Add CustomCallingConv and use it to tablegen-erate the outermost parts of the Mips O32 implementation
ClosedPublic

Authored by dsanders on Oct 24 2014, 3:43 AM.

Details

Summary

CustomCallingConv is simply a CallingConv that tablegen should not generate the
implementation for. It allows regular CallingConv's to delegate to these custom
functions. This is (currently) necessary for Mips and we cannot use CCCustom
without having to adapt to the different API that CCCustom uses.

This brings us a bit closer to being able to remove
MipsCC::analyzeCallOperands and MipsCC::analyzeFormalArguments in favour of
the common implementation.

No functional change to the targets.

Depends on D3341

Diff Detail

Event Timeline

dsanders updated this revision to Diff 15395.Oct 24 2014, 3:43 AM
dsanders retitled this revision from to [tablegen] Add CustomCallingConv and use it to tablegen-erate the outermost parts of the Mips O32 implementation.
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders added a subscriber: Unknown Object (MLST).
vmedic accepted this revision.Oct 24 2014, 6:17 AM
vmedic added a reviewer: vmedic.
vmedic added a subscriber: vmedic.

LGTM

This revision is now accepted and ready to land.Oct 24 2014, 6:17 AM
dsanders closed this revision.Nov 1 2014, 10:48 AM