|
|
|||
File indexing completed on 2026-05-10 08:44:40
0001 //===- CalledValuePropagation.h - Propagate called values -------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // This file implements a transformation that attaches !callees metadata to 0010 // indirect call sites. For a given call site, the metadata, if present, 0011 // indicates the set of functions the call site could possibly target at 0012 // run-time. This metadata is added to indirect call sites when the set of 0013 // possible targets can be determined by analysis and is known to be small. The 0014 // analysis driving the transformation is similar to constant propagation and 0015 // makes uses of the generic sparse propagation solver. 0016 // 0017 //===----------------------------------------------------------------------===// 0018 0019 #ifndef LLVM_TRANSFORMS_IPO_CALLEDVALUEPROPAGATION_H 0020 #define LLVM_TRANSFORMS_IPO_CALLEDVALUEPROPAGATION_H 0021 0022 #include "llvm/IR/PassManager.h" 0023 0024 namespace llvm { 0025 0026 class CalledValuePropagationPass 0027 : public PassInfoMixin<CalledValuePropagationPass> { 0028 public: 0029 PreservedAnalyses run(Module &M, ModuleAnalysisManager &); 0030 }; 0031 } // namespace llvm 0032 0033 #endif // LLVM_TRANSFORMS_IPO_CALLEDVALUEPROPAGATION_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|