Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

root/gen/dwarftypes.cpp

Revision 1571:8d086d552909, 10.6 kB (checked in by Benjamin Kramer <benny.kra@gmail.com>, 3 years ago)

IntegerType? is now contextifed.

Requires llvm >= 78969. resistor says this will be the last context API change :)

Line 
1 // Generated by llvm2cpp - DO NOT MODIFY!
2
3 #include <llvm/Module.h>
4 #include <llvm/DerivedTypes.h>
5 #include <llvm/Constants.h>
6 #include <llvm/GlobalVariable.h>
7 #include <llvm/Function.h>
8 #include <llvm/CallingConv.h>
9 #include <llvm/BasicBlock.h>
10 #include <llvm/Instructions.h>
11 #include <llvm/InlineAsm.h>
12 #include <llvm/Attributes.h>
13 #include <llvm/Support/MathExtras.h>
14 #include <llvm/Pass.h>
15 #include <llvm/PassManager.h>
16 #include <llvm/Analysis/Verifier.h>
17 #include <llvm/Assembly/PrintModulePass.h>
18 #include <algorithm>
19
20 void RegisterDwarfSymbols(llvm::Module* mod) {
21   using namespace llvm;
22   // Type Definitions
23   std::vector<const Type*>StructTy_llvm_dbg_anchor_type_fields;
24   StructTy_llvm_dbg_anchor_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
25   StructTy_llvm_dbg_anchor_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
26   StructType* StructTy_llvm_dbg_anchor_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_anchor_type_fields, /*isPacked=*/false);
27   mod->addTypeName("llvm.dbg.anchor.type", StructTy_llvm_dbg_anchor_type);
28  
29   std::vector<const Type*>StructTy_llvm_dbg_basictype_type_fields;
30   StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
31   std::vector<const Type*>StructTy_1_fields;
32   StructType* StructTy_1 = StructType::get(mod->getContext(), StructTy_1_fields, /*isPacked=*/false);
33  
34   PointerType* PointerTy_0 = PointerType::get(StructTy_1,0);
35  
36   StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0);
37   PointerType* PointerTy_2 = PointerType::get(IntegerType::get(mod->getContext(), 8),0);
38  
39   StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_2);
40   StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0);
41   StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
42   StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
43   StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
44   StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
45   StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
46   StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
47   StructType* StructTy_llvm_dbg_basictype_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_basictype_type_fields, /*isPacked=*/false);
48   mod->addTypeName("llvm.dbg.basictype.type", StructTy_llvm_dbg_basictype_type);
49  
50   std::vector<const Type*>StructTy_llvm_dbg_compile_unit_type_fields;
51   StructTy_llvm_dbg_compile_unit_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
52   StructTy_llvm_dbg_compile_unit_type_fields.push_back(PointerTy_0);
53   StructTy_llvm_dbg_compile_unit_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
54   StructTy_llvm_dbg_compile_unit_type_fields.push_back(PointerTy_2);
55   StructTy_llvm_dbg_compile_unit_type_fields.push_back(PointerTy_2);
56   StructTy_llvm_dbg_compile_unit_type_fields.push_back(PointerTy_2);
57   StructType* StructTy_llvm_dbg_compile_unit_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_compile_unit_type_fields, /*isPacked=*/false);
58   mod->addTypeName("llvm.dbg.compile_unit.type", StructTy_llvm_dbg_compile_unit_type);
59  
60   std::vector<const Type*>StructTy_llvm_dbg_compositetype_type_fields;
61   StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
62   StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0);
63   StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_2);
64   StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0);
65   StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
66   StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
67   StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
68   StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
69   StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
70   StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0);
71   StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0);
72   StructType* StructTy_llvm_dbg_compositetype_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_compositetype_type_fields, /*isPacked=*/false);
73   mod->addTypeName("llvm.dbg.compositetype.type", StructTy_llvm_dbg_compositetype_type);
74  
75   std::vector<const Type*>StructTy_llvm_dbg_derivedtype_type_fields;
76   StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
77   StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_0);
78   StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_2);
79   StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_0);
80   StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
81   StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
82   StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
83   StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(mod->getContext(), 64));
84   StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
85   StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_0);
86   StructType* StructTy_llvm_dbg_derivedtype_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_derivedtype_type_fields, /*isPacked=*/false);
87   mod->addTypeName("llvm.dbg.derivedtype.type", StructTy_llvm_dbg_derivedtype_type);
88  
89   std::vector<const Type*>StructTy_llvm_dbg_global_variable_type_fields;
90   StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
91   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0);
92   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0);
93   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_2);
94   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_2);
95   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_2);
96   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0);
97   StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
98   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0);
99   StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(mod->getContext(), 1));
100   StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(mod->getContext(), 1));
101   StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0);
102   StructType* StructTy_llvm_dbg_global_variable_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_global_variable_type_fields, /*isPacked=*/false);
103   mod->addTypeName("llvm.dbg.global_variable.type", StructTy_llvm_dbg_global_variable_type);
104  
105   std::vector<const Type*>StructTy_llvm_dbg_subprogram_type_fields;
106   StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
107   StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0);
108   StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0);
109   StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_2);
110   StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_2);
111   StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_2);
112   StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0);
113   StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
114   StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0);
115   StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(mod->getContext(), 1));
116   StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(mod->getContext(), 1));
117   StructType* StructTy_llvm_dbg_subprogram_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_subprogram_type_fields, /*isPacked=*/false);
118   mod->addTypeName("llvm.dbg.subprogram.type", StructTy_llvm_dbg_subprogram_type);
119  
120   std::vector<const Type*>StructTy_llvm_dbg_variable_type_fields;
121   StructTy_llvm_dbg_variable_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
122   StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_0);
123   StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_2);
124   StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_0);
125   StructTy_llvm_dbg_variable_type_fields.push_back(IntegerType::get(mod->getContext(), 32));
126   StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_0);
127   StructType* StructTy_llvm_dbg_variable_type = StructType::get(mod->getContext(), StructTy_llvm_dbg_variable_type_fields, /*isPacked=*/false);
128   mod->addTypeName("llvm.dbg.variable.type", StructTy_llvm_dbg_variable_type);
129
130   std::vector<const Type*>FuncTy_3_args;
131   FuncTy_3_args.push_back(PointerTy_0);
132   FunctionType* FuncTy_3 = FunctionType::get(
133     /*Result=*/Type::getVoidTy(mod->getContext()),
134     /*Params=*/FuncTy_3_args,
135     /*isVarArg=*/false);
136  
137   std::vector<const Type*>FuncTy_4_args;
138   FuncTy_4_args.push_back(IntegerType::get(mod->getContext(), 32));
139   FuncTy_4_args.push_back(IntegerType::get(mod->getContext(), 32));
140   FuncTy_4_args.push_back(PointerTy_0);
141   FunctionType* FuncTy_4 = FunctionType::get(
142     /*Result=*/Type::getVoidTy(mod->getContext()),
143     /*Params=*/FuncTy_4_args,
144     /*isVarArg=*/false);
145  
146   std::vector<const Type*>FuncTy_5_args;
147   FuncTy_5_args.push_back(PointerTy_0);
148   FuncTy_5_args.push_back(PointerTy_0);
149   FunctionType* FuncTy_5 = FunctionType::get(
150     /*Result=*/Type::getVoidTy(mod->getContext()),
151     /*Params=*/FuncTy_5_args,
152     /*isVarArg=*/false);
153  
154  
155   // Function Declarations
156  
157   Function* func_llvm_dbg_func_start = Function::Create(
158     /*Type=*/FuncTy_3,
159     /*Linkage=*/GlobalValue::ExternalLinkage,
160     /*Name=*/"llvm.dbg.func.start", mod); // (external, no body)
161   func_llvm_dbg_func_start->setCallingConv(CallingConv::C);
162  
163   Function* func_llvm_dbg_stoppoint = Function::Create(
164     /*Type=*/FuncTy_4,
165     /*Linkage=*/GlobalValue::ExternalLinkage,
166     /*Name=*/"llvm.dbg.stoppoint", mod); // (external, no body)
167   func_llvm_dbg_stoppoint->setCallingConv(CallingConv::C);
168  
169   Function* func_llvm_dbg_declare = Function::Create(
170     /*Type=*/FuncTy_5,
171     /*Linkage=*/GlobalValue::ExternalLinkage,
172     /*Name=*/"llvm.dbg.declare", mod); // (external, no body)
173   func_llvm_dbg_declare->setCallingConv(CallingConv::C);
174  
175   Function* func_llvm_dbg_region_end = Function::Create(
176     /*Type=*/FuncTy_3,
177     /*Linkage=*/GlobalValue::ExternalLinkage,
178     /*Name=*/"llvm.dbg.region.end", mod); // (external, no body)
179   func_llvm_dbg_region_end->setCallingConv(CallingConv::C);
180 }
Note: See TracBrowser for help on using the browser.
Copyright © 2008, LDC Development Team.