mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is useful to get information about what inlined functions contribute to the code size.
40 lines
1.4 KiB
C++
40 lines
1.4 KiB
C++
//===--- PassesFwd.h - Creation functions for LLVM passes -------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_LLVMPASSES_PASSESFWD_H
|
|
#define SWIFT_LLVMPASSES_PASSESFWD_H
|
|
|
|
namespace llvm {
|
|
class ModulePass;
|
|
class FunctionPass;
|
|
class ImmutablePass;
|
|
class PassRegistry;
|
|
|
|
void initializeSwiftAAWrapperPassPass(PassRegistry &);
|
|
void initializeSwiftRCIdentityPass(PassRegistry &);
|
|
void initializeSwiftARCOptPass(PassRegistry &);
|
|
void initializeSwiftARCContractPass(PassRegistry &);
|
|
void initializeSwiftStackPromotionPass(PassRegistry &);
|
|
void initializeInlineTreePrinterPass(PassRegistry &);
|
|
}
|
|
|
|
namespace swift {
|
|
llvm::FunctionPass *createSwiftARCOptPass();
|
|
llvm::FunctionPass *createSwiftARCContractPass();
|
|
llvm::FunctionPass *createSwiftStackPromotionPass();
|
|
llvm::ModulePass *createInlineTreePrinterPass();
|
|
llvm::ImmutablePass *createSwiftAAWrapperPass();
|
|
llvm::ImmutablePass *createSwiftRCIdentityPass();
|
|
} // end namespace swift
|
|
|
|
#endif
|