[PATCH] D14346: Reduce size of MCRelaxableFragment

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 05:57:13 PST 2015


dsanders added a comment.

In http://reviews.llvm.org/D14346#285730, @ahatanak wrote:

> Currently, MCTargetMachine doesn't seem to have a cache for MCSubtargetInfo (based on what I saw in the patches under review),


It doesn't have a cache yet but it should be easy to add one.

> but I think we can move MCSubtargetAllocator to MCTargetMachine as long as there is a way for target parsers to access MCTargetMachine.


MCTargetMachine::createMCAsmParser() can pass an MCTargetMachine pointer/reference to the target parser for all targets or (once it's been virtualized) for an individual target.


http://reviews.llvm.org/D14346





More information about the llvm-commits mailing list