LLVM API Documentation

c/Transforms/Scalar.h

Go to the documentation of this file.
00001 /*===-- Scalar.h - Scalar Transformation Library C Interface ----*- C++ -*-===*\
00002 |*                                                                            *|
00003 |*                     The LLVM Compiler Infrastructure                       *|
00004 |*                                                                            *|
00005 |* This file is distributed under the University of Illinois Open Source      *|
00006 |* License. See LICENSE.TXT for details.                                      *|
00007 |*                                                                            *|
00008 |*===----------------------------------------------------------------------===*|
00009 |*                                                                            *|
00010 |* This header declares the C interface to libLLVMScalarOpts.a, which         *|
00011 |* implements various scalar transformations of the LLVM IR.                  *|
00012 |*                                                                            *|
00013 |* Many exotic languages can interoperate with C code but have a harder time  *|
00014 |* with C++ due to name mangling. So in addition to C, this interface enables *|
00015 |* tools written in such languages.                                           *|
00016 |*                                                                            *|
00017 \*===----------------------------------------------------------------------===*/
00018 
00019 #ifndef LLVM_C_TRANSFORMS_SCALAR_H
00020 #define LLVM_C_TRANSFORMS_SCALAR_H
00021 
00022 #include "llvm-c/Core.h"
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 /** See llvm::createAggressiveDCEPass function. */
00029 void LLVMAddAggressiveDCEPass(LLVMPassManagerRef PM);
00030 
00031 /** See llvm::createCFGSimplificationPass function. */
00032 void LLVMAddCFGSimplificationPass(LLVMPassManagerRef PM);
00033 
00034 /** See llvm::createCondPropagationPass function. */
00035 void LLVMAddCondPropagationPass(LLVMPassManagerRef PM);
00036 
00037 /** See llvm::createDeadStoreEliminationPass function. */
00038 void LLVMAddDeadStoreEliminationPass(LLVMPassManagerRef PM);
00039 
00040 /** See llvm::createGVNPass function. */
00041 void LLVMAddGVNPass(LLVMPassManagerRef PM);
00042 
00043 /** See llvm::createIndVarSimplifyPass function. */
00044 void LLVMAddIndVarSimplifyPass(LLVMPassManagerRef PM);
00045 
00046 /** See llvm::createInstructionCombiningPass function. */
00047 void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM);
00048 
00049 /** See llvm::createJumpThreadingPass function. */
00050 void LLVMAddJumpThreadingPass(LLVMPassManagerRef PM);
00051 
00052 /** See llvm::createLICMPass function. */
00053 void LLVMAddLICMPass(LLVMPassManagerRef PM);
00054 
00055 /** See llvm::createLoopDeletionPass function. */
00056 void LLVMAddLoopDeletionPass(LLVMPassManagerRef PM);
00057 
00058 /** See llvm::createLoopIndexSplitPass function. */
00059 void LLVMAddLoopIndexSplitPass(LLVMPassManagerRef PM);
00060 
00061 /** See llvm::createLoopRotatePass function. */
00062 void LLVMAddLoopRotatePass(LLVMPassManagerRef PM);
00063 
00064 /** See llvm::createLoopUnrollPass function. */
00065 void LLVMAddLoopUnrollPass(LLVMPassManagerRef PM);
00066 
00067 /** See llvm::createLoopUnswitchPass function. */
00068 void LLVMAddLoopUnswitchPass(LLVMPassManagerRef PM);
00069 
00070 /** See llvm::createMemCpyOptPass function. */
00071 void LLVMAddMemCpyOptPass(LLVMPassManagerRef PM);
00072 
00073 /** See llvm::createPromoteMemoryToRegisterPass function. */
00074 void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
00075 
00076 /** See llvm::createReassociatePass function. */
00077 void LLVMAddReassociatePass(LLVMPassManagerRef PM);
00078 
00079 /** See llvm::createSCCPPass function. */
00080 void LLVMAddSCCPPass(LLVMPassManagerRef PM);
00081 
00082 /** See llvm::createScalarReplAggregatesPass function. */
00083 void LLVMAddScalarReplAggregatesPass(LLVMPassManagerRef PM);
00084 
00085 /** See llvm::createSimplifyLibCallsPass function. */
00086 void LLVMAddSimplifyLibCallsPass(LLVMPassManagerRef PM);
00087 
00088 /** See llvm::createTailCallEliminationPass function. */
00089 void LLVMAddTailCallEliminationPass(LLVMPassManagerRef PM);
00090 
00091 /** See llvm::createConstantPropagationPass function. */
00092 void LLVMAddConstantPropagationPass(LLVMPassManagerRef PM);
00093 
00094 /** See llvm::demotePromoteMemoryToRegisterPass function. */
00095 void LLVMAddDemoteMemoryToRegisterPass(LLVMPassManagerRef PM);
00096 
00097 #ifdef __cplusplus
00098 }
00099 #endif /* defined(__cplusplus) */
00100 
00101 #endif