diff options
| author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-04-07 12:12:21 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-04-07 12:12:21 -0400 |
| commit | 25320da099e375be22706b641eba35b7e35299e0 (patch) | |
| tree | 3da6433605ad2267391cf2546f1c4bdfbfb30823 /src/comp/lib/llvm.rs | |
| parent | 2e90bd94de32c739733966bfac96cf35e9a08655 (diff) | |
| download | rust-25320da099e375be22706b641eba35b7e35299e0.tar.gz rust-25320da099e375be22706b641eba35b7e35299e0.zip | |
Run optimizations.
It is always on for now just to make sure the bots are happy. If they are, I will add a -O option and update the makefile.
Diffstat (limited to 'src/comp/lib/llvm.rs')
| -rw-r--r-- | src/comp/lib/llvm.rs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 456e43fd656..047059240b3 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -741,6 +741,40 @@ native mod llvm = llvm_lib { /** Adds a verification pass. */ fn LLVMAddVerifierPass(PassManagerRef PM); + fn LLVMAddGlobalOptimizerPass(PassManagerRef PM); + fn LLVMAddIPSCCPPass(PassManagerRef PM); + fn LLVMAddDeadArgEliminationPass(PassManagerRef PM); + fn LLVMAddInstructionCombiningPass(PassManagerRef PM); + fn LLVMAddCFGSimplificationPass(PassManagerRef PM); + fn LLVMAddFunctionInliningPass(PassManagerRef PM); + fn LLVMAddFunctionAttrsPass(PassManagerRef PM); + fn LLVMAddScalarReplAggregatesPass(PassManagerRef PM); + // fn LLVMAddScalarReplAggregatesPassSSA(PassManagerRef PM); + fn LLVMAddJumpThreadingPass(PassManagerRef PM); + fn LLVMAddConstantPropagationPass(PassManagerRef PM); + fn LLVMAddReassociatePass(PassManagerRef PM); + fn LLVMAddLoopRotatePass(PassManagerRef PM); + fn LLVMAddLICMPass(PassManagerRef PM); + fn LLVMAddLoopUnswitchPass(PassManagerRef PM); + fn LLVMAddLoopDeletionPass(PassManagerRef PM); + fn LLVMAddLoopUnrollPass(PassManagerRef PM); + fn LLVMAddGVNPass(PassManagerRef PM); + fn LLVMAddMemCpyOptPass(PassManagerRef PM); + fn LLVMAddSCCPPass(PassManagerRef PM); + fn LLVMAddDeadStoreEliminationPass(PassManagerRef PM); + fn LLVMAddStripDeadPrototypesPass(PassManagerRef PM); + fn LLVMAddDeadTypeEliminationPass(PassManagerRef PM); + fn LLVMAddConstantMergePass(PassManagerRef PM); + fn LLVMAddArgumentPromotionPass(PassManagerRef PM); + fn LLVMAddTailCallEliminationPass(PassManagerRef PM); + fn LLVMAddIndVarSimplifyPass(PassManagerRef PM); + fn LLVMAddAggressiveDCEPass(PassManagerRef PM); + fn LLVMAddGlobalDCEPass(PassManagerRef PM); + // fn LLVMAddCorrelatedValuePropagationPass(PassManagerRef PM); + fn LLVMAddPruneEHPass(PassManagerRef PM); + fn LLVMAddSimplifyLibCallsPass(PassManagerRef PM); + // fn LLVMAddLoopIdiomPass(PassManagerRef PM); + /** Destroys a memory buffer. */ fn LLVMDisposeMemoryBuffer(MemoryBufferRef MemBuf); |
