mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316187 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
//===- ArgumentPromotion.h - Promote by-reference arguments -----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TRANSFORMS_IPO_ARGUMENTPROMOTION_H
|
|
#define LLVM_TRANSFORMS_IPO_ARGUMENTPROMOTION_H
|
|
|
|
#include "llvm/Analysis/CGSCCPassManager.h"
|
|
#include "llvm/Analysis/LazyCallGraph.h"
|
|
#include "llvm/IR/PassManager.h"
|
|
|
|
namespace llvm {
|
|
|
|
/// Argument promotion pass.
|
|
///
|
|
/// This pass walks the functions in each SCC and for each one tries to
|
|
/// transform it and all of its callers to replace indirect arguments with
|
|
/// direct (by-value) arguments.
|
|
class ArgumentPromotionPass : public PassInfoMixin<ArgumentPromotionPass> {
|
|
public:
|
|
PreservedAnalyses run(LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM,
|
|
LazyCallGraph &CG, CGSCCUpdateResult &UR);
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif // LLVM_TRANSFORMS_IPO_ARGUMENTPROMOTION_H
|