FunctionMetadata: introduce cache

FunctionMetadata was being deserialized every time they were
inspected. This commit introduces a cache structure to prevent this
excessive deserializations.
This commit is contained in:
Massimo Fioravanti
2022-11-14 14:36:55 +01:00
committed by Alessandro Di Federico
parent 517f33e673
commit 1216cdb1fd
19 changed files with 308 additions and 261 deletions
@@ -0,0 +1,16 @@
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/EarlyFunctionAnalysis/FunctionMetadataCache.h"
char FunctionMetadataCachePass::ID = '_';
llvm::AnalysisKey FunctionMetadataCacheAnalysis::Key;
static llvm::RegisterPass<FunctionMetadataCachePass> _("metadata-cache",
"Create metadata cache "
"to be "
"used by later passes",
true,
true);