NFC: Refactor Function to be value typed.

Move the data members out of Function and into a new impl storage class 'FunctionStorage'. This allows for Function to become value typed, which will greatly simplify the transition of Function to FuncOp(given that FuncOp is also value typed).

PiperOrigin-RevId: 255983022
This commit is contained in:
River Riddle
2019-07-01 10:29:09 -07:00
committed by jpienaar
parent 84bd67fc4f
commit 54cd6a7e97
103 changed files with 987 additions and 875 deletions

View File

@@ -71,7 +71,7 @@ void AddDefaultStatsPass::runOnFunction() {
void AddDefaultStatsPass::runWithConfig(SolverContext &solverContext,
const TargetConfiguration &config) {
auto &func = getFunction();
auto func = getFunction();
// Insert stats for each argument.
for (auto *arg : func.getArguments()) {