[MachineFunction] Introduce a reset method.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 26 Aug 2016 22:32:53 +0000 (22:32 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 26 Aug 2016 22:32:53 +0000 (22:32 +0000)
commit380cd3eb23ecc107d569e378ee5a69f26f4000ba
treea2be16bae4e69c53ae2c58f9a652f0a9736a3829
parent39b6b2f0b0e71856eb17e0eb6ca84a35f0d2b7ab
[MachineFunction] Introduce a reset method.

This method allows to reset the state of a MachineFunction as if it was
just created. This will be used during the bring-up of GlobalISel to
provide a way to fallback on SelectionDAG. That way, we can start doing
correctness testing even if we are not able to select all functions via
the global instruction selector.

llvm-svn: 279876
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/MachineFunction.cpp