mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
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:
committed by
Alessandro Di Federico
parent
517f33e673
commit
1216cdb1fd
@@ -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);
|
||||
Reference in New Issue
Block a user