LLVM 22.0.0git
EphemeralValuesCache.cpp
Go to the documentation of this file.
1//===- EphemeralValuesCache.cpp - Cache collecting ephemeral values -------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
12
13namespace llvm {
14
15void EphemeralValuesCache::collectEphemeralValues() {
16 CodeMetrics::collectEphemeralValues(&F, &AC, EphValues);
17 Collected = true;
18}
19
20AnalysisKey EphemeralValuesAnalysis::Key;
21
27
28} // namespace llvm
#define F(x, y, z)
Definition MD5.cpp:55
FunctionAnalysisManager FAM
A function analysis which provides an AssumptionCache.
LLVM_ABI Result run(Function &F, FunctionAnalysisManager &FAM)
A cache of ephemeral values within a function.
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
A special type used by analysis passes to provide an address that identifies that particular analysis...
Definition Analysis.h:29
static LLVM_ABI void collectEphemeralValues(const Loop *L, AssumptionCache *AC, SmallPtrSetImpl< const Value * > &EphValues)
Collect a loop's ephemeral values (those used only by an assume or similar intrinsics in the loop).