mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 01:07:04 +08:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user