Added PassManagerBuilder.

Updated test/passes.py for PassManagerBuilder.
This commit is contained in:
Siu Kwan Lam 2012-07-24 23:42:28 -07:00
commit 6a02c36f04
8 changed files with 318 additions and 19 deletions

View file

@ -45,6 +45,10 @@
#include "llvm-c/Analysis.h"
#include "llvm-c/ExecutionEngine.h"
#include "llvm-c/Target.h"
// workaround missing bool type
#define bool int
#include "llvm-c/Transforms/PassManagerBuilder.h"
#undef bool
/* Project-wide setting */
#if PY_MAJOR_VERSION >= 3
@ -58,6 +62,7 @@
typedef unsigned long long llvmwrap_ull;
/*===----------------------------------------------------------------------===*/
/* Type ctor/dtor */
/*===----------------------------------------------------------------------===*/
@ -83,6 +88,9 @@ _declare_std_ctor(LLVMExecutionEngineRef)
_declare_std_ctor(LLVMTargetDataRef)
_declare_std_ctor(LLVMGenericValueRef)
// extra LLVM class not defined in LLVM-C
_declare_std_ctor(LLVMPassManagerBuilderRef)
/* standard types */
_declare_std_ctor(int)
_declare_std_ctor(llvmwrap_ull)