This is an archive of the discontinued LLVM Phabricator instance.

Move spill size and alignment info from MC to TargetRegisterInfo
ClosedPublic

Authored by kparzysz on Mar 23 2017, 1:04 PM.

Details

Summary

This is another step towards implementing register classes with parametrized register/spill sizes.

Diff Detail

Repository
rL LLVM

Event Timeline

kparzysz created this revision.Mar 23 2017, 1:04 PM
MatzeB accepted this revision.Mar 23 2017, 2:00 PM

Makes sense.

include/llvm/Target/TargetRegisterInfo.h
98 ↗(On Diff #92850)

How hard would it be to rename this to getSpillSize() to avoid confusing?
We can however do that in a separate patch.

This revision is now accepted and ready to land.Mar 23 2017, 2:00 PM
This revision was automatically updated to reflect the committed changes.
kparzysz added inline comments.Mar 23 2017, 3:52 PM
include/llvm/Target/TargetRegisterInfo.h
98 ↗(On Diff #92850)

That would be easy. However there are some places where this function is called with the intent of getting the register size. AMDGPU and Hexagon both have places like that. I'd like to add the register size as a separate field here, but I'm getting close to completing the first version of the variable class patch which already adds that.