This is an archive of the discontinued LLVM Phabricator instance.

[X86] Support for C calling convention only for MCU target.
ClosedPublic

Authored by ABataev on Nov 20 2015, 2:31 AM.

Details

Summary

For MCU only C calling convention is allowed, all other calling conventions are not supported.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev updated this revision to Diff 40753.Nov 20 2015, 2:31 AM
ABataev retitled this revision from to [X86] Support for C calling convention only for MCU target..
ABataev updated this object.
ABataev added reviewers: rjmccall, DavidKreitzer, mkuper.
ABataev added a subscriber: cfe-commits.
DavidKreitzer edited edge metadata.Nov 20 2015, 5:42 AM

Hi Alexey,

Did you consider adding a new class for the MCU target info, e.g. X86MCUTargetInfo? The more MCU-specific stuff that gets added here, the more it makes sense to pull it out into its own class. We already have line 3398-3401 & 3650-3653. We are also going to need to change the data layout string at 3644 for MCU. (Anton Nadolski is working on that.)

  • Dave

Ok, extracted all MCU specific changes to separate target class.

ABataev updated this revision to Diff 40904.Nov 23 2015, 1:15 AM
ABataev edited edge metadata.

Thanks, Alexey! I think this is an improvement.

I don't know if anyone else has an opinion on the name of the new class, but I would prefer X86 over I386, possibly even MCUX86_32TargetInfo.

Thanks,

  • Dave
ABataev updated this revision to Diff 41004.Nov 23 2015, 8:01 PM

Renamed MCU target class

Looks good, Alexey! I have no further comments.

  • Dave
This revision was automatically updated to reflect the committed changes.