Added web pages, and some ee/passes stuff. *Broken*.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@3 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
37f3a30a4a
commit
6ee3298bd2
46 changed files with 1120 additions and 8 deletions
26
llvm/_core.c
26
llvm/_core.c
|
|
@ -3,6 +3,10 @@
|
|||
#include "wrap.h"
|
||||
#include "extra.h"
|
||||
|
||||
/* LLVM includes */
|
||||
#include "llvm-c/Analysis.h"
|
||||
#include "llvm-c/Transforms/Scalar.h"
|
||||
|
||||
/* libc includes */
|
||||
#include <stdarg.h> /* for malloc(), free() */
|
||||
|
||||
|
|
@ -600,6 +604,19 @@ _wrap_obj2obj(LLVMFinalizeFunctionPassManager, LLVMPassManagerRef, int)
|
|||
_wrap_obj2none(LLVMDisposePassManager, LLVMPassManagerRef)
|
||||
|
||||
|
||||
/*===----------------------------------------------------------------------===*/
|
||||
/* Passes */
|
||||
/*===----------------------------------------------------------------------===*/
|
||||
|
||||
_wrap_obj2none(LLVMAddConstantPropagationPass, LLVMPassManagerRef)
|
||||
_wrap_obj2none(LLVMAddInstructionCombiningPass, LLVMPassManagerRef)
|
||||
_wrap_obj2none(LLVMAddPromoteMemoryToRegisterPass, LLVMPassManagerRef)
|
||||
_wrap_obj2none(LLVMAddDemoteMemoryToRegisterPass, LLVMPassManagerRef)
|
||||
_wrap_obj2none(LLVMAddReassociatePass, LLVMPassManagerRef)
|
||||
_wrap_obj2none(LLVMAddGVNPass, LLVMPassManagerRef)
|
||||
_wrap_obj2none(LLVMAddCFGSimplificationPass, LLVMPassManagerRef)
|
||||
|
||||
|
||||
/*===----------------------------------------------------------------------===*/
|
||||
/* Python member method table */
|
||||
/*===----------------------------------------------------------------------===*/
|
||||
|
|
@ -922,6 +939,15 @@ static PyMethodDef core_methods[] = {
|
|||
_method( LLVMFinalizeFunctionPassManager )
|
||||
_method( LLVMDisposePassManager )
|
||||
|
||||
/* Passes */
|
||||
_method( LLVMAddConstantPropagationPass )
|
||||
_method( LLVMAddInstructionCombiningPass )
|
||||
_method( LLVMAddPromoteMemoryToRegisterPass )
|
||||
_method( LLVMAddDemoteMemoryToRegisterPass )
|
||||
_method( LLVMAddReassociatePass )
|
||||
_method( LLVMAddGVNPass )
|
||||
_method( LLVMAddCFGSimplificationPass )
|
||||
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue