1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
13 template<typename T> class SwigValueWrapper {
16 SwigValueWrapper() : tt(0) { }
17 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
18 SwigValueWrapper(const T& t) : tt(new T(t)) { }
19 ~SwigValueWrapper() { delete tt; }
20 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
21 operator T&() const { return *tt; }
22 T *operator&() { return tt; }
24 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 template <typename T> T SwigValueInit() {
32 /* -----------------------------------------------------------------------------
33 * This section contains generic SWIG labels for method/variable
34 * declarations/attributes, and other compiler dependent labels.
35 * ----------------------------------------------------------------------------- */
37 /* template workaround for compilers that cannot correctly implement the C++ standard */
38 #ifndef SWIGTEMPLATEDISAMBIGUATOR
39 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # elif defined(__HP_aCC)
42 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
43 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
44 # define SWIGTEMPLATEDISAMBIGUATOR template
46 # define SWIGTEMPLATEDISAMBIGUATOR
50 /* inline attribute */
52 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
53 # define SWIGINLINE inline
59 /* attribute recognised by some compilers to avoid 'unused' warnings */
61 # if defined(__GNUC__)
62 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
63 # define SWIGUNUSED __attribute__ ((__unused__))
68 # define SWIGUNUSED __attribute__ ((__unused__))
74 #ifndef SWIGUNUSEDPARM
76 # define SWIGUNUSEDPARM(p)
78 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
82 /* internal SWIG method */
84 # define SWIGINTERN static SWIGUNUSED
87 /* internal inline SWIG method */
88 #ifndef SWIGINTERNINLINE
89 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
92 /* exporting methods */
93 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
94 # ifndef GCC_HASCLASSVISIBILITY
95 # define GCC_HASCLASSVISIBILITY
100 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
101 # if defined(STATIC_LINKED)
104 # define SWIGEXPORT __declspec(dllexport)
107 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
108 # define SWIGEXPORT __attribute__ ((visibility("default")))
115 /* calling conventions for Windows */
117 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
118 # define SWIGSTDCALL __stdcall
124 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
125 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
126 # define _CRT_SECURE_NO_DEPRECATE
129 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
130 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
131 # define _SCL_SECURE_NO_DEPRECATE
139 #if defined(_WIN32) || defined(__CYGWIN32__)
140 # define DllExport __declspec( dllexport )
141 # define SWIGSTDCALL __stdcall
155 /* Support for throwing Ada exceptions from C/C++ */
160 SWIG_AdaOutOfMemoryException,
161 SWIG_AdaIndexOutOfRangeException,
162 SWIG_AdaDivideByZeroException,
163 SWIG_AdaArgumentOutOfRangeException,
164 SWIG_AdaNullReferenceException
165 } SWIG_AdaExceptionCodes;
168 typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
173 SWIG_AdaExceptionCodes code;
174 SWIG_AdaExceptionCallback_t callback;
176 SWIG_AdaExceptions_t;
181 SWIG_ada_exceptions[] =
183 { SWIG_AdaException, NULL },
184 { SWIG_AdaOutOfMemoryException, NULL },
185 { SWIG_AdaIndexOutOfRangeException, NULL },
186 { SWIG_AdaDivideByZeroException, NULL },
187 { SWIG_AdaArgumentOutOfRangeException, NULL },
188 { SWIG_AdaNullReferenceException, NULL }
194 SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
196 SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
197 if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
198 callback = SWIG_ada_exceptions[code].callback;
209 DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_Transforms (SWIG_AdaExceptionCallback_t systemException,
210 SWIG_AdaExceptionCallback_t outOfMemory,
211 SWIG_AdaExceptionCallback_t indexOutOfRange,
212 SWIG_AdaExceptionCallback_t divideByZero,
213 SWIG_AdaExceptionCallback_t argumentOutOfRange,
214 SWIG_AdaExceptionCallback_t nullReference)
216 SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
217 SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
218 SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
219 SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
220 SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
221 SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
225 /* Callback for returning strings to Ada without leaking memory */
227 typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
228 static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
232 /* probably obsolete ...
236 DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_Transforms(SWIG_AdaStringHelperCallback callback) {
237 SWIG_ada_string_callback = callback;
243 /* Contract support */
245 #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
248 #define protected public
249 #define private public
251 #include "llvm-c/Transforms/IPO.h"
252 #include "llvm-c/Transforms/Scalar.h"
264 DllExport void SWIGSTDCALL Ada_LLVMAddArgumentPromotionPass (
268 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
270 arg1 = (LLVMPassManagerRef)jarg1;
272 LLVMAddArgumentPromotionPass(arg1);
279 DllExport void SWIGSTDCALL Ada_LLVMAddConstantMergePass (
283 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
285 arg1 = (LLVMPassManagerRef)jarg1;
287 LLVMAddConstantMergePass(arg1);
294 DllExport void SWIGSTDCALL Ada_LLVMAddDeadArgEliminationPass (
298 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
300 arg1 = (LLVMPassManagerRef)jarg1;
302 LLVMAddDeadArgEliminationPass(arg1);
309 DllExport void SWIGSTDCALL Ada_LLVMAddDeadTypeEliminationPass (
313 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
315 arg1 = (LLVMPassManagerRef)jarg1;
317 LLVMAddDeadTypeEliminationPass(arg1);
324 DllExport void SWIGSTDCALL Ada_LLVMAddFunctionAttrsPass (
328 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
330 arg1 = (LLVMPassManagerRef)jarg1;
332 LLVMAddFunctionAttrsPass(arg1);
339 DllExport void SWIGSTDCALL Ada_LLVMAddFunctionInliningPass (
343 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
345 arg1 = (LLVMPassManagerRef)jarg1;
347 LLVMAddFunctionInliningPass(arg1);
354 DllExport void SWIGSTDCALL Ada_LLVMAddGlobalDCEPass (
358 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
360 arg1 = (LLVMPassManagerRef)jarg1;
362 LLVMAddGlobalDCEPass(arg1);
369 DllExport void SWIGSTDCALL Ada_LLVMAddGlobalOptimizerPass (
373 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
375 arg1 = (LLVMPassManagerRef)jarg1;
377 LLVMAddGlobalOptimizerPass(arg1);
384 DllExport void SWIGSTDCALL Ada_LLVMAddIPConstantPropagationPass (
388 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
390 arg1 = (LLVMPassManagerRef)jarg1;
392 LLVMAddIPConstantPropagationPass(arg1);
399 DllExport void SWIGSTDCALL Ada_LLVMAddLowerSetJmpPass (
403 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
405 arg1 = (LLVMPassManagerRef)jarg1;
407 LLVMAddLowerSetJmpPass(arg1);
414 DllExport void SWIGSTDCALL Ada_LLVMAddPruneEHPass (
418 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
420 arg1 = (LLVMPassManagerRef)jarg1;
422 LLVMAddPruneEHPass(arg1);
429 DllExport void SWIGSTDCALL Ada_LLVMAddRaiseAllocationsPass (
433 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
435 arg1 = (LLVMPassManagerRef)jarg1;
437 LLVMAddRaiseAllocationsPass(arg1);
444 DllExport void SWIGSTDCALL Ada_LLVMAddStripDeadPrototypesPass (
448 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
450 arg1 = (LLVMPassManagerRef)jarg1;
452 LLVMAddStripDeadPrototypesPass(arg1);
459 DllExport void SWIGSTDCALL Ada_LLVMAddStripSymbolsPass (
463 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
465 arg1 = (LLVMPassManagerRef)jarg1;
467 LLVMAddStripSymbolsPass(arg1);
474 DllExport void SWIGSTDCALL Ada_LLVMAddAggressiveDCEPass (
478 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
480 arg1 = (LLVMPassManagerRef)jarg1;
482 LLVMAddAggressiveDCEPass(arg1);
489 DllExport void SWIGSTDCALL Ada_LLVMAddCFGSimplificationPass (
493 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
495 arg1 = (LLVMPassManagerRef)jarg1;
497 LLVMAddCFGSimplificationPass(arg1);
504 DllExport void SWIGSTDCALL Ada_LLVMAddCondPropagationPass (
508 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
510 arg1 = (LLVMPassManagerRef)jarg1;
512 LLVMAddCondPropagationPass(arg1);
519 DllExport void SWIGSTDCALL Ada_LLVMAddDeadStoreEliminationPass (
523 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
525 arg1 = (LLVMPassManagerRef)jarg1;
527 LLVMAddDeadStoreEliminationPass(arg1);
534 DllExport void SWIGSTDCALL Ada_LLVMAddGVNPass (
538 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
540 arg1 = (LLVMPassManagerRef)jarg1;
542 LLVMAddGVNPass(arg1);
549 DllExport void SWIGSTDCALL Ada_LLVMAddIndVarSimplifyPass (
553 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
555 arg1 = (LLVMPassManagerRef)jarg1;
557 LLVMAddIndVarSimplifyPass(arg1);
564 DllExport void SWIGSTDCALL Ada_LLVMAddInstructionCombiningPass (
568 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
570 arg1 = (LLVMPassManagerRef)jarg1;
572 LLVMAddInstructionCombiningPass(arg1);
579 DllExport void SWIGSTDCALL Ada_LLVMAddJumpThreadingPass (
583 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
585 arg1 = (LLVMPassManagerRef)jarg1;
587 LLVMAddJumpThreadingPass(arg1);
594 DllExport void SWIGSTDCALL Ada_LLVMAddLICMPass (
598 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
600 arg1 = (LLVMPassManagerRef)jarg1;
602 LLVMAddLICMPass(arg1);
609 DllExport void SWIGSTDCALL Ada_LLVMAddLoopDeletionPass (
613 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
615 arg1 = (LLVMPassManagerRef)jarg1;
617 LLVMAddLoopDeletionPass(arg1);
624 DllExport void SWIGSTDCALL Ada_LLVMAddLoopIndexSplitPass (
628 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
630 arg1 = (LLVMPassManagerRef)jarg1;
632 LLVMAddLoopIndexSplitPass(arg1);
639 DllExport void SWIGSTDCALL Ada_LLVMAddLoopRotatePass (
643 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
645 arg1 = (LLVMPassManagerRef)jarg1;
647 LLVMAddLoopRotatePass(arg1);
654 DllExport void SWIGSTDCALL Ada_LLVMAddLoopUnrollPass (
658 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
660 arg1 = (LLVMPassManagerRef)jarg1;
662 LLVMAddLoopUnrollPass(arg1);
669 DllExport void SWIGSTDCALL Ada_LLVMAddLoopUnswitchPass (
673 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
675 arg1 = (LLVMPassManagerRef)jarg1;
677 LLVMAddLoopUnswitchPass(arg1);
684 DllExport void SWIGSTDCALL Ada_LLVMAddMemCpyOptPass (
688 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
690 arg1 = (LLVMPassManagerRef)jarg1;
692 LLVMAddMemCpyOptPass(arg1);
699 DllExport void SWIGSTDCALL Ada_LLVMAddPromoteMemoryToRegisterPass (
703 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
705 arg1 = (LLVMPassManagerRef)jarg1;
707 LLVMAddPromoteMemoryToRegisterPass(arg1);
714 DllExport void SWIGSTDCALL Ada_LLVMAddReassociatePass (
718 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
720 arg1 = (LLVMPassManagerRef)jarg1;
722 LLVMAddReassociatePass(arg1);
729 DllExport void SWIGSTDCALL Ada_LLVMAddSCCPPass (
733 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
735 arg1 = (LLVMPassManagerRef)jarg1;
737 LLVMAddSCCPPass(arg1);
744 DllExport void SWIGSTDCALL Ada_LLVMAddScalarReplAggregatesPass (
748 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
750 arg1 = (LLVMPassManagerRef)jarg1;
752 LLVMAddScalarReplAggregatesPass(arg1);
759 DllExport void SWIGSTDCALL Ada_LLVMAddSimplifyLibCallsPass (
763 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
765 arg1 = (LLVMPassManagerRef)jarg1;
767 LLVMAddSimplifyLibCallsPass(arg1);
774 DllExport void SWIGSTDCALL Ada_LLVMAddTailCallEliminationPass (
778 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
780 arg1 = (LLVMPassManagerRef)jarg1;
782 LLVMAddTailCallEliminationPass(arg1);
789 DllExport void SWIGSTDCALL Ada_LLVMAddConstantPropagationPass (
793 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
795 arg1 = (LLVMPassManagerRef)jarg1;
797 LLVMAddConstantPropagationPass(arg1);
804 DllExport void SWIGSTDCALL Ada_LLVMAddDemoteMemoryToRegisterPass (
808 LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
810 arg1 = (LLVMPassManagerRef)jarg1;
812 LLVMAddDemoteMemoryToRegisterPass(arg1);