Some users of DataLayout::getPointerSize don't use it in an exact way, and aren't really using it for the pointer size. For example MemCpyOptimizer uses it as a guess for the maximum GPR width.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I don't have much to say about the method itself, but usually patches that introduce a new function/method have diffs to actually use that method as well. Does 'getMaxPointerSize' have any specific uses?
Comment Actions
I think it's usually the opposite, you add the function and then the uses separately.
I think I might need this at some point, but for the case I mentioned I have a better idea (http://llvm-reviews.chandlerc.com/D1669)