LLVM Ada language bindings. Credit to Rod Kay and the AuroraUX team.
[oota-llvm.git] / bindings / ada / executionengine / llvm_executionengine_wrap.cxx
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 1.3.36
4  * 
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  * ----------------------------------------------------------------------------- */
10
11
12 #ifdef __cplusplus
13 template<typename T> class SwigValueWrapper {
14     T *tt;
15 public:
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; }
23 private:
24     SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
25 };
26
27 template <typename T> T SwigValueInit() {
28   return T();
29 }
30 #endif
31
32 /* -----------------------------------------------------------------------------
33  *  This section contains generic SWIG labels for method/variable
34  *  declarations/attributes, and other compiler dependent labels.
35  * ----------------------------------------------------------------------------- */
36
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
45 # else
46 #  define SWIGTEMPLATEDISAMBIGUATOR
47 # endif
48 #endif
49
50 /* inline attribute */
51 #ifndef SWIGINLINE
52 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
53 #   define SWIGINLINE inline
54 # else
55 #   define SWIGINLINE
56 # endif
57 #endif
58
59 /* attribute recognised by some compilers to avoid 'unused' warnings */
60 #ifndef SWIGUNUSED
61 # if defined(__GNUC__)
62 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
63 #     define SWIGUNUSED __attribute__ ((__unused__)) 
64 #   else
65 #     define SWIGUNUSED
66 #   endif
67 # elif defined(__ICC)
68 #   define SWIGUNUSED __attribute__ ((__unused__)) 
69 # else
70 #   define SWIGUNUSED 
71 # endif
72 #endif
73
74 #ifndef SWIGUNUSEDPARM
75 # ifdef __cplusplus
76 #   define SWIGUNUSEDPARM(p)
77 # else
78 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
79 # endif
80 #endif
81
82 /* internal SWIG method */
83 #ifndef SWIGINTERN
84 # define SWIGINTERN static SWIGUNUSED
85 #endif
86
87 /* internal inline SWIG method */
88 #ifndef SWIGINTERNINLINE
89 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
90 #endif
91
92 /* exporting methods */
93 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
94 #  ifndef GCC_HASCLASSVISIBILITY
95 #    define GCC_HASCLASSVISIBILITY
96 #  endif
97 #endif
98
99 #ifndef SWIGEXPORT
100 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
101 #   if defined(STATIC_LINKED)
102 #     define SWIGEXPORT
103 #   else
104 #     define SWIGEXPORT __declspec(dllexport)
105 #   endif
106 # else
107 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
108 #     define SWIGEXPORT __attribute__ ((visibility("default")))
109 #   else
110 #     define SWIGEXPORT
111 #   endif
112 # endif
113 #endif
114
115 /* calling conventions for Windows */
116 #ifndef SWIGSTDCALL
117 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
118 #   define SWIGSTDCALL __stdcall
119 # else
120 #   define SWIGSTDCALL
121 # endif 
122 #endif
123
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
127 #endif
128
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
132 #endif
133
134
135
136 #include <stdlib.h>
137 #include <string.h>
138 #include <stdio.h>
139 #if defined(_WIN32) || defined(__CYGWIN32__)
140 #  define DllExport   __declspec( dllexport )
141 #  define SWIGSTDCALL __stdcall
142 #else
143 #  define DllExport  
144 #  define SWIGSTDCALL
145 #endif 
146
147
148 #ifdef __cplusplus
149 #  include <new>
150 #endif
151
152
153
154
155 /* Support for throwing Ada exceptions from C/C++ */
156
157 typedef enum 
158 {
159   SWIG_AdaException,
160   SWIG_AdaOutOfMemoryException,
161   SWIG_AdaIndexOutOfRangeException,
162   SWIG_AdaDivideByZeroException,
163   SWIG_AdaArgumentOutOfRangeException,
164   SWIG_AdaNullReferenceException
165 } SWIG_AdaExceptionCodes;
166
167
168 typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
169
170
171 typedef struct 
172 {
173   SWIG_AdaExceptionCodes code;
174   SWIG_AdaExceptionCallback_t callback;
175
176   SWIG_AdaExceptions_t;
177
178
179 static 
180 SWIG_AdaExceptions_t 
181 SWIG_ada_exceptions[] = 
182 {
183   { SWIG_AdaException, NULL },
184   { SWIG_AdaOutOfMemoryException, NULL },
185   { SWIG_AdaIndexOutOfRangeException, NULL },
186   { SWIG_AdaDivideByZeroException, NULL },
187   { SWIG_AdaArgumentOutOfRangeException, NULL },
188   { SWIG_AdaNullReferenceException, NULL } 
189 };
190
191
192 static 
193 void 
194 SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg) 
195 {
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;
199   }
200   callback(msg);
201 }
202
203
204
205 #ifdef __cplusplus
206 extern "C" 
207 #endif
208
209 DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_execution_Engine (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) 
215 {
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;
222 }
223
224
225 /* Callback for returning strings to Ada without leaking memory */
226
227 typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
228 static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
229
230
231
232 /* probably obsolete ...
233 #ifdef __cplusplus
234 extern "C" 
235 #endif
236 DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_execution_Engine(SWIG_AdaStringHelperCallback callback) {
237   SWIG_ada_string_callback = callback;
238 }
239 */
240
241
242
243 /* Contract support */
244
245 #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
246
247
248 #define protected public
249 #define private   public
250
251 #include "llvm-c/ExecutionEngine.h"
252
253
254
255 //  struct LLVMCtxt;
256
257
258 #undef protected
259 #undef private
260 #ifdef __cplusplus 
261 extern "C" {
262 #endif
263 DllExport void SWIGSTDCALL Ada_LLVMLinkInJIT (
264   )
265 {
266   LLVMLinkInJIT();
267   
268   
269 }
270
271
272
273 DllExport void SWIGSTDCALL Ada_LLVMLinkInInterpreter (
274   )
275 {
276   LLVMLinkInInterpreter();
277   
278   
279 }
280
281
282
283 DllExport void * SWIGSTDCALL Ada_LLVMCreateGenericValueOfInt (
284   void * jarg1
285   ,
286   
287   unsigned long long jarg2
288   ,
289   
290   int jarg3
291   )
292 {
293   void * jresult ;
294   LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
295   unsigned long long arg2 ;
296   int arg3 ;
297   LLVMGenericValueRef result;
298   
299   arg1 = (LLVMTypeRef)jarg1; 
300   
301   
302   arg2 = (unsigned long long) jarg2; 
303   
304   
305   
306   arg3 = (int) jarg3; 
307   
308   
309   result = (LLVMGenericValueRef)LLVMCreateGenericValueOfInt(arg1,arg2,arg3);
310   jresult = (void *) result;      
311   
312   
313   
314   return jresult;
315   
316 }
317
318
319
320 DllExport void * SWIGSTDCALL Ada_LLVMCreateGenericValueOfPointer (
321   void* jarg1
322   )
323 {
324   void * jresult ;
325   void *arg1 = (void *) 0 ;
326   LLVMGenericValueRef result;
327   
328   arg1 = (void *)jarg1; 
329   
330   result = (LLVMGenericValueRef)LLVMCreateGenericValueOfPointer(arg1);
331   jresult = (void *) result;      
332   
333   
334   
335   return jresult;
336   
337 }
338
339
340
341 DllExport void * SWIGSTDCALL Ada_LLVMCreateGenericValueOfFloat (
342   void * jarg1
343   ,
344   
345   double jarg2
346   )
347 {
348   void * jresult ;
349   LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
350   double arg2 ;
351   LLVMGenericValueRef result;
352   
353   arg1 = (LLVMTypeRef)jarg1; 
354   
355   
356   arg2 = (double) jarg2; 
357   
358   
359   result = (LLVMGenericValueRef)LLVMCreateGenericValueOfFloat(arg1,arg2);
360   jresult = (void *) result;      
361   
362   
363   
364   return jresult;
365   
366 }
367
368
369
370 DllExport unsigned int SWIGSTDCALL Ada_LLVMGenericValueIntWidth (
371   void * jarg1
372   )
373 {
374   unsigned int jresult ;
375   LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
376   unsigned int result;
377   
378   arg1 = (LLVMGenericValueRef)jarg1; 
379   
380   result = (unsigned int)LLVMGenericValueIntWidth(arg1);
381   jresult = result; 
382   
383   
384   
385   return jresult;
386   
387 }
388
389
390
391 DllExport unsigned long long SWIGSTDCALL Ada_LLVMGenericValueToInt (
392   void * jarg1
393   ,
394   
395   int jarg2
396   )
397 {
398   unsigned long long jresult ;
399   LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
400   int arg2 ;
401   unsigned long long result;
402   
403   arg1 = (LLVMGenericValueRef)jarg1; 
404   
405   
406   arg2 = (int) jarg2; 
407   
408   
409   result = (unsigned long long)LLVMGenericValueToInt(arg1,arg2);
410   jresult = result; 
411   
412   
413   
414   return jresult;
415   
416 }
417
418
419
420 DllExport void* SWIGSTDCALL Ada_LLVMGenericValueToPointer (
421   void * jarg1
422   )
423 {
424   void* jresult ;
425   LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
426   void *result = 0 ;
427   
428   arg1 = (LLVMGenericValueRef)jarg1; 
429   
430   result = (void *)LLVMGenericValueToPointer(arg1);
431   jresult = (void *) result;      
432   
433   
434   
435   return jresult;
436   
437 }
438
439
440
441 DllExport double SWIGSTDCALL Ada_LLVMGenericValueToFloat (
442   void * jarg1
443   ,
444   
445   void * jarg2
446   )
447 {
448   double jresult ;
449   LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
450   LLVMGenericValueRef arg2 = (LLVMGenericValueRef) 0 ;
451   double result;
452   
453   arg1 = (LLVMTypeRef)jarg1; 
454   
455   arg2 = (LLVMGenericValueRef)jarg2; 
456   
457   result = (double)LLVMGenericValueToFloat(arg1,arg2);
458   jresult = result; 
459   
460   
461   
462   return jresult;
463   
464 }
465
466
467
468 DllExport void SWIGSTDCALL Ada_LLVMDisposeGenericValue (
469   void * jarg1
470   )
471 {
472   LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
473   
474   arg1 = (LLVMGenericValueRef)jarg1; 
475   
476   LLVMDisposeGenericValue(arg1);
477   
478   
479 }
480
481
482
483 DllExport int SWIGSTDCALL Ada_LLVMCreateExecutionEngine (
484   void * jarg1
485   ,
486   
487   void * jarg2
488   ,
489   
490   void * jarg3
491   )
492 {
493   int jresult ;
494   LLVMExecutionEngineRef *arg1 = (LLVMExecutionEngineRef *) 0 ;
495   LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
496   char **arg3 = (char **) 0 ;
497   int result;
498   
499   arg1 = (LLVMExecutionEngineRef *)jarg1; 
500   
501   arg2 = (LLVMModuleProviderRef)jarg2; 
502   
503   arg3 = (char **)jarg3; 
504   
505   result = (int)LLVMCreateExecutionEngine(arg1,arg2,arg3);
506   jresult = result; 
507   
508   
509   
510   return jresult;
511   
512 }
513
514
515
516 DllExport int SWIGSTDCALL Ada_LLVMCreateInterpreter (
517   void * jarg1
518   ,
519   
520   void * jarg2
521   ,
522   
523   void * jarg3
524   )
525 {
526   int jresult ;
527   LLVMExecutionEngineRef *arg1 = (LLVMExecutionEngineRef *) 0 ;
528   LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
529   char **arg3 = (char **) 0 ;
530   int result;
531   
532   arg1 = (LLVMExecutionEngineRef *)jarg1; 
533   
534   arg2 = (LLVMModuleProviderRef)jarg2; 
535   
536   arg3 = (char **)jarg3; 
537   
538   result = (int)LLVMCreateInterpreter(arg1,arg2,arg3);
539   jresult = result; 
540   
541   
542   
543   return jresult;
544   
545 }
546
547
548
549 DllExport int SWIGSTDCALL Ada_LLVMCreateJITCompiler (
550   void * jarg1
551   ,
552   
553   void * jarg2
554   ,
555   
556   unsigned int jarg3
557   ,
558   
559   void * jarg4
560   )
561 {
562   int jresult ;
563   LLVMExecutionEngineRef *arg1 = (LLVMExecutionEngineRef *) 0 ;
564   LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
565   unsigned int arg3 ;
566   char **arg4 = (char **) 0 ;
567   int result;
568   
569   arg1 = (LLVMExecutionEngineRef *)jarg1; 
570   
571   arg2 = (LLVMModuleProviderRef)jarg2; 
572   
573   
574   arg3 = (unsigned int) jarg3; 
575   
576   
577   arg4 = (char **)jarg4; 
578   
579   result = (int)LLVMCreateJITCompiler(arg1,arg2,arg3,arg4);
580   jresult = result; 
581   
582   
583   
584   return jresult;
585   
586 }
587
588
589
590 DllExport void SWIGSTDCALL Ada_LLVMDisposeExecutionEngine (
591   void * jarg1
592   )
593 {
594   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
595   
596   arg1 = (LLVMExecutionEngineRef)jarg1; 
597   
598   LLVMDisposeExecutionEngine(arg1);
599   
600   
601 }
602
603
604
605 DllExport void SWIGSTDCALL Ada_LLVMRunStaticConstructors (
606   void * jarg1
607   )
608 {
609   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
610   
611   arg1 = (LLVMExecutionEngineRef)jarg1; 
612   
613   LLVMRunStaticConstructors(arg1);
614   
615   
616 }
617
618
619
620 DllExport void SWIGSTDCALL Ada_LLVMRunStaticDestructors (
621   void * jarg1
622   )
623 {
624   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
625   
626   arg1 = (LLVMExecutionEngineRef)jarg1; 
627   
628   LLVMRunStaticDestructors(arg1);
629   
630   
631 }
632
633
634
635 DllExport int SWIGSTDCALL Ada_LLVMRunFunctionAsMain (
636   void * jarg1
637   ,
638   
639   void * jarg2
640   ,
641   
642   unsigned int jarg3
643   ,
644   
645   void * jarg4
646   ,
647   
648   void * jarg5
649   )
650 {
651   int jresult ;
652   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
653   LLVMValueRef arg2 = (LLVMValueRef) 0 ;
654   unsigned int arg3 ;
655   char **arg4 = (char **) 0 ;
656   char **arg5 = (char **) 0 ;
657   int result;
658   
659   arg1 = (LLVMExecutionEngineRef)jarg1; 
660   
661   arg2 = (LLVMValueRef)jarg2; 
662   
663   
664   arg3 = (unsigned int) jarg3; 
665   
666   
667   arg4 = (char **)jarg4; 
668   
669   arg5 = (char **)jarg5; 
670   
671   result = (int)LLVMRunFunctionAsMain(arg1,arg2,arg3,(char const *const *)arg4,(char const *const *)arg5);
672   jresult = result; 
673   
674   
675   
676   return jresult;
677   
678 }
679
680
681
682 DllExport void * SWIGSTDCALL Ada_LLVMRunFunction (
683   void * jarg1
684   ,
685   
686   void * jarg2
687   ,
688   
689   unsigned int jarg3
690   ,
691   
692   void * jarg4
693   )
694 {
695   void * jresult ;
696   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
697   LLVMValueRef arg2 = (LLVMValueRef) 0 ;
698   unsigned int arg3 ;
699   LLVMGenericValueRef *arg4 = (LLVMGenericValueRef *) 0 ;
700   LLVMGenericValueRef result;
701   
702   arg1 = (LLVMExecutionEngineRef)jarg1; 
703   
704   arg2 = (LLVMValueRef)jarg2; 
705   
706   
707   arg3 = (unsigned int) jarg3; 
708   
709   
710   arg4 = (LLVMGenericValueRef *)jarg4; 
711   
712   result = (LLVMGenericValueRef)LLVMRunFunction(arg1,arg2,arg3,arg4);
713   jresult = (void *) result;      
714   
715   
716   
717   return jresult;
718   
719 }
720
721
722
723 DllExport void SWIGSTDCALL Ada_LLVMFreeMachineCodeForFunction (
724   void * jarg1
725   ,
726   
727   void * jarg2
728   )
729 {
730   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
731   LLVMValueRef arg2 = (LLVMValueRef) 0 ;
732   
733   arg1 = (LLVMExecutionEngineRef)jarg1; 
734   
735   arg2 = (LLVMValueRef)jarg2; 
736   
737   LLVMFreeMachineCodeForFunction(arg1,arg2);
738   
739   
740 }
741
742
743
744 DllExport void SWIGSTDCALL Ada_LLVMAddModuleProvider (
745   void * jarg1
746   ,
747   
748   void * jarg2
749   )
750 {
751   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
752   LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
753   
754   arg1 = (LLVMExecutionEngineRef)jarg1; 
755   
756   arg2 = (LLVMModuleProviderRef)jarg2; 
757   
758   LLVMAddModuleProvider(arg1,arg2);
759   
760   
761 }
762
763
764
765 DllExport int SWIGSTDCALL Ada_LLVMRemoveModuleProvider (
766   void * jarg1
767   ,
768   
769   void * jarg2
770   ,
771   
772   void * jarg3
773   ,
774   
775   void * jarg4
776   )
777 {
778   int jresult ;
779   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
780   LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
781   LLVMModuleRef *arg3 = (LLVMModuleRef *) 0 ;
782   char **arg4 = (char **) 0 ;
783   int result;
784   
785   arg1 = (LLVMExecutionEngineRef)jarg1; 
786   
787   arg2 = (LLVMModuleProviderRef)jarg2; 
788   
789   arg3 = (LLVMModuleRef *)jarg3; 
790   
791   arg4 = (char **)jarg4; 
792   
793   result = (int)LLVMRemoveModuleProvider(arg1,arg2,arg3,arg4);
794   jresult = result; 
795   
796   
797   
798   return jresult;
799   
800 }
801
802
803
804 DllExport int SWIGSTDCALL Ada_LLVMFindFunction (
805   void * jarg1
806   ,
807   
808   char * jarg2
809   ,
810   
811   void * jarg3
812   )
813 {
814   int jresult ;
815   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
816   char *arg2 = (char *) 0 ;
817   LLVMValueRef *arg3 = (LLVMValueRef *) 0 ;
818   int result;
819   
820   arg1 = (LLVMExecutionEngineRef)jarg1; 
821   
822   arg2 = jarg2; 
823   
824   arg3 = (LLVMValueRef *)jarg3; 
825   
826   result = (int)LLVMFindFunction(arg1,(char const *)arg2,arg3);
827   jresult = result; 
828   
829   
830   
831   return jresult;
832   
833 }
834
835
836
837 DllExport LLVMTargetDataRef SWIGSTDCALL Ada_LLVMGetExecutionEngineTargetData (
838   void * jarg1
839   )
840 {
841   LLVMTargetDataRef jresult ;
842   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
843   LLVMTargetDataRef result;
844   
845   arg1 = (LLVMExecutionEngineRef)jarg1; 
846   
847   result = LLVMGetExecutionEngineTargetData(arg1);
848   
849   jresult = result; 
850   //jresult = new LLVMTargetDataRef ((LLVMTargetDataRef &) result); 
851   
852   
853   
854   
855   return jresult;
856   
857 }
858
859
860
861 DllExport void SWIGSTDCALL Ada_LLVMAddGlobalMapping (
862   void * jarg1
863   ,
864   
865   void * jarg2
866   ,
867   
868   void* jarg3
869   )
870 {
871   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
872   LLVMValueRef arg2 = (LLVMValueRef) 0 ;
873   void *arg3 = (void *) 0 ;
874   
875   arg1 = (LLVMExecutionEngineRef)jarg1; 
876   
877   arg2 = (LLVMValueRef)jarg2; 
878   
879   arg3 = (void *)jarg3; 
880   
881   LLVMAddGlobalMapping(arg1,arg2,arg3);
882   
883   
884 }
885
886
887
888 DllExport void* SWIGSTDCALL Ada_LLVMGetPointerToGlobal (
889   void * jarg1
890   ,
891   
892   void * jarg2
893   )
894 {
895   void* jresult ;
896   LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
897   LLVMValueRef arg2 = (LLVMValueRef) 0 ;
898   void *result = 0 ;
899   
900   arg1 = (LLVMExecutionEngineRef)jarg1; 
901   
902   arg2 = (LLVMValueRef)jarg2; 
903   
904   result = (void *)LLVMGetPointerToGlobal(arg1,arg2);
905   jresult = (void *) result;      
906   
907   
908   
909   return jresult;
910   
911 }
912
913
914
915 #ifdef __cplusplus
916 }
917 #endif
918 #ifdef __cplusplus
919 extern "C" {
920 #endif
921 #ifdef __cplusplus
922 }
923 #endif
924