Comment out pass constants in C files.
This commit is contained in:
parent
2d79cfa437
commit
99c7a0736e
3 changed files with 14 additions and 9 deletions
13
llvm/_core.c
13
llvm/_core.c
|
|
@ -856,11 +856,11 @@ _wrap_obj2none(LLVMDisposePassManager, LLVMPassManagerRef)
|
||||||
_wrap_none2str(LLVMDumpPasses)
|
_wrap_none2str(LLVMDumpPasses)
|
||||||
_wrap_objstr2obj(LLVMAddPassByName, LLVMPassManagerRef, int)
|
_wrap_objstr2obj(LLVMAddPassByName, LLVMPassManagerRef, int)
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_wLLVMInitializePasses(PyObject * self, PyObject * args)
|
_wLLVMInitializePasses(PyObject * self, PyObject * args)
|
||||||
{
|
{
|
||||||
if (!PyArg_ParseTuple(args, ""))
|
if (!PyArg_ParseTuple(args, ""))
|
||||||
return NULL;
|
return NULL;
|
||||||
LLVMInitializePasses();
|
LLVMInitializePasses();
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
@ -869,7 +869,7 @@ _wLLVMInitializePasses(PyObject * self, PyObject * args)
|
||||||
/*===----------------------------------------------------------------------===*/
|
/*===----------------------------------------------------------------------===*/
|
||||||
/* Passes */
|
/* Passes */
|
||||||
/*===----------------------------------------------------------------------===*/
|
/*===----------------------------------------------------------------------===*/
|
||||||
|
/*
|
||||||
|
|
||||||
#define _wrap_pass(P) \
|
#define _wrap_pass(P) \
|
||||||
_wrap_obj2none( LLVMAdd ## P ## Pass, LLVMPassManagerRef)
|
_wrap_obj2none( LLVMAdd ## P ## Pass, LLVMPassManagerRef)
|
||||||
|
|
@ -958,7 +958,7 @@ _wrap_pass( TailCallElimination )
|
||||||
_wrap_pass( UnifyFunctionExitNodes )
|
_wrap_pass( UnifyFunctionExitNodes )
|
||||||
|
|
||||||
_wrap_pass( Internalize2 )
|
_wrap_pass( Internalize2 )
|
||||||
|
*/
|
||||||
/*===----------------------------------------------------------------------===*/
|
/*===----------------------------------------------------------------------===*/
|
||||||
/* Target Data */
|
/* Target Data */
|
||||||
/*===----------------------------------------------------------------------===*/
|
/*===----------------------------------------------------------------------===*/
|
||||||
|
|
@ -1701,7 +1701,7 @@ static PyMethodDef core_methods[] = {
|
||||||
|
|
||||||
/* Passes */
|
/* Passes */
|
||||||
|
|
||||||
|
/*
|
||||||
_pass( AAEval )
|
_pass( AAEval )
|
||||||
_pass( AggressiveDCE )
|
_pass( AggressiveDCE )
|
||||||
_pass( AliasAnalysisCounter )
|
_pass( AliasAnalysisCounter )
|
||||||
|
|
@ -1786,6 +1786,7 @@ static PyMethodDef core_methods[] = {
|
||||||
_pass( UnifyFunctionExitNodes )
|
_pass( UnifyFunctionExitNodes )
|
||||||
|
|
||||||
_pass( Internalize2 )
|
_pass( Internalize2 )
|
||||||
|
*/
|
||||||
|
|
||||||
/* Target Data */
|
/* Target Data */
|
||||||
_method( LLVMCreateTargetData )
|
_method( LLVMCreateTargetData )
|
||||||
|
|
|
||||||
|
|
@ -585,10 +585,11 @@ unsigned LLVMGetParamAlignment(LLVMValueRef arg)
|
||||||
return argp->getParent()->getParamAlignment(argno + 1);
|
return argp->getParent()->getParamAlignment(argno + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Passes. A few passes (listed below) are used directly from LLVM-C,
|
/* Passes. A few passes (listed below) are used directly from LLVM-C,
|
||||||
* rest are defined here.
|
* rest are defined here.
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
#define define_pass(P) \
|
#define define_pass(P) \
|
||||||
void LLVMAdd ## P ## Pass (LLVMPassManagerRef passmgr) { \
|
void LLVMAdd ## P ## Pass (LLVMPassManagerRef passmgr) { \
|
||||||
using namespace llvm; \
|
using namespace llvm; \
|
||||||
|
|
@ -646,8 +647,9 @@ define_pass( StripNonDebugSymbols )
|
||||||
//define_pass( StructRetPromotion )
|
//define_pass( StructRetPromotion )
|
||||||
//define_pass( TailDuplication )
|
//define_pass( TailDuplication )
|
||||||
define_pass( UnifyFunctionExitNodes )
|
define_pass( UnifyFunctionExitNodes )
|
||||||
|
*/
|
||||||
/* we support only internalize(true) */
|
/* we support only internalize(true) */
|
||||||
|
/*
|
||||||
llvm::ModulePass *createInternalize2Pass() { return llvm::createInternalizePass(true); }
|
llvm::ModulePass *createInternalize2Pass() { return llvm::createInternalizePass(true); }
|
||||||
define_pass( Internalize2 )
|
define_pass( Internalize2 )
|
||||||
|
*/
|
||||||
|
|
|
||||||
|
|
@ -238,6 +238,7 @@ unsigned LLVMGetParamAlignment(LLVMValueRef arg);
|
||||||
/* Passes. Some passes are used directly from LLVM-C, rest are declared
|
/* Passes. Some passes are used directly from LLVM-C, rest are declared
|
||||||
* here. */
|
* here. */
|
||||||
|
|
||||||
|
/*
|
||||||
#define declare_pass(P) \
|
#define declare_pass(P) \
|
||||||
void LLVMAdd ## P ## Pass (LLVMPassManagerRef PM);
|
void LLVMAdd ## P ## Pass (LLVMPassManagerRef PM);
|
||||||
|
|
||||||
|
|
@ -292,6 +293,7 @@ declare_pass( TailDuplication )
|
||||||
declare_pass( UnifyFunctionExitNodes )
|
declare_pass( UnifyFunctionExitNodes )
|
||||||
|
|
||||||
declare_pass( Internalize2 )
|
declare_pass( Internalize2 )
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue