to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
85 lines
2.9 KiB
C++
85 lines
2.9 KiB
C++
/*===-- IPO.h - Interprocedural Transformations C Interface -----*- C++ -*-===*\
|
|
|* *|
|
|
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
|
|
|* Exceptions. *|
|
|
|* See https://llvm.org/LICENSE.txt for license information. *|
|
|
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
|
|
|* *|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|* *|
|
|
|* This header declares the C interface to libLLVMIPO.a, which implements *|
|
|
|* various interprocedural transformations of the LLVM IR. *|
|
|
|* *|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
#ifndef LLVM_C_TRANSFORMS_IPO_H
|
|
#define LLVM_C_TRANSFORMS_IPO_H
|
|
|
|
#include "llvm-c/Types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @defgroup LLVMCTransformsIPO Interprocedural transformations
|
|
* @ingroup LLVMCTransforms
|
|
*
|
|
* @{
|
|
*/
|
|
|
|
/** See llvm::createArgumentPromotionPass function. */
|
|
void LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createConstantMergePass function. */
|
|
void LLVMAddConstantMergePass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createCalledValuePropagationPass function. */
|
|
void LLVMAddCalledValuePropagationPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createDeadArgEliminationPass function. */
|
|
void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createFunctionAttrsPass function. */
|
|
void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createFunctionInliningPass function. */
|
|
void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createAlwaysInlinerPass function. */
|
|
void LLVMAddAlwaysInlinerPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createGlobalDCEPass function. */
|
|
void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createGlobalOptimizerPass function. */
|
|
void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createIPConstantPropagationPass function. */
|
|
void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createPruneEHPass function. */
|
|
void LLVMAddPruneEHPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createIPSCCPPass function. */
|
|
void LLVMAddIPSCCPPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createInternalizePass function. */
|
|
void LLVMAddInternalizePass(LLVMPassManagerRef, unsigned AllButMain);
|
|
|
|
/** See llvm::createStripDeadPrototypesPass function. */
|
|
void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM);
|
|
|
|
/** See llvm::createStripSymbolsPass function. */
|
|
void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM);
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
#endif
|