OSDN Git Service

[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)
commitac0c6d3071088fbf713d77f0b904484692ea19f9
tree507598b5ccfaa9643ba9640200ee8c7bb724da15
parentea4e88c5cffb0fa2b480f6b22f3eae5b967883ea
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279876 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/MachineFunction.cpp