[CodeGen] Pull MMI helpers from FunctionLoweringInfo to MMI. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 16 Nov 2016 22:24:56 +0000 (22:24 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 16 Nov 2016 22:24:56 +0000 (22:24 +0000)
commit456dce8a84c97b56b10f0e7143c36bee4ac85fe4
tree0b1f1f79ab2ea26ea0d7306e5559ad8fcfc40c3a
parent2b4c127531410e1c32d9480bb2daa7d53b87c16c
[CodeGen] Pull MMI helpers from FunctionLoweringInfo to MMI. NFC.

They're not SelectionDAG- or FunctionLoweringInfo-specific.  They
are, however, specific to building MMI from IR.
We could make them members, but it's nice having MMI be a "simple" data
structure and this logic kept separate.

This also lets us reuse them from GlobalISel.

llvm-svn: 287167
llvm/include/llvm/CodeGen/FunctionLoweringInfo.h
llvm/include/llvm/CodeGen/MachineModuleInfo.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/MachineModuleInfo.cpp
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp