Path: blob/main/contrib/llvm-project/llvm/lib/Analysis/EphemeralValuesCache.cpp
213765 views
//===- EphemeralValuesCache.cpp - Cache collecting ephemeral values -------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/Analysis/EphemeralValuesCache.h"9#include "llvm/Analysis/AssumptionCache.h"10#include "llvm/Analysis/CodeMetrics.h"1112namespace llvm {1314void EphemeralValuesCache::collectEphemeralValues() {15CodeMetrics::collectEphemeralValues(&F, &AC, EphValues);16Collected = true;17}1819AnalysisKey EphemeralValuesAnalysis::Key;2021EphemeralValuesCache22EphemeralValuesAnalysis::run(Function &F, FunctionAnalysisManager &FAM) {23auto &AC = FAM.getResult<AssumptionAnalysis>(F);24return EphemeralValuesCache(F, AC);25}2627} // namespace llvm282930