Mercurial > projects > ldc
comparison gen/dwarftypes.cpp @ 86:fd32135dca3e trunk
[svn r90] Major updates to the gen directory. Redesigned the 'elem' struct. Much more... !!!
Lots of bugfixes.
Added support for special foreach on strings.
Added std.array, std.utf, std.ctype and std.uni to phobos.
Changed all the .c files in the gen dir to .cpp (it *is* C++ after all)
author | lindquist |
---|---|
date | Sat, 03 Nov 2007 14:44:58 +0100 |
parents | gen/dwarftypes.c@d8dd47ef3973 |
children | 44a95ac7368a |
comparison
equal
deleted
inserted
replaced
85:f869c636a113 | 86:fd32135dca3e |
---|---|
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/ParameterAttributes.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 #include <iostream> | |
20 | |
21 void RegisterDwarfSymbols(llvm::Module* mod) { | |
22 using namespace llvm; | |
23 // Type Definitions | |
24 std::vector<const Type*>StructTy_llvm_dbg_anchor_type_fields; | |
25 StructTy_llvm_dbg_anchor_type_fields.push_back(IntegerType::get(32)); | |
26 StructTy_llvm_dbg_anchor_type_fields.push_back(IntegerType::get(32)); | |
27 StructType* StructTy_llvm_dbg_anchor_type = StructType::get(StructTy_llvm_dbg_anchor_type_fields, /*isPacked=*/false); | |
28 mod->addTypeName("llvm.dbg.anchor.type", StructTy_llvm_dbg_anchor_type); | |
29 | |
30 std::vector<const Type*>StructTy_llvm_dbg_basictype_type_fields; | |
31 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32)); | |
32 std::vector<const Type*>StructTy_1_fields; | |
33 StructType* StructTy_1 = StructType::get(StructTy_1_fields, /*isPacked=*/false); | |
34 | |
35 PointerType* PointerTy_0 = PointerType::get(StructTy_1); | |
36 | |
37 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0); | |
38 PointerType* PointerTy_2 = PointerType::get(IntegerType::get(8)); | |
39 | |
40 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_2); | |
41 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0); | |
42 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32)); | |
43 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(64)); | |
44 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(64)); | |
45 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(64)); | |
46 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32)); | |
47 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32)); | |
48 StructType* StructTy_llvm_dbg_basictype_type = StructType::get(StructTy_llvm_dbg_basictype_type_fields, /*isPacked=*/false); | |
49 mod->addTypeName("llvm.dbg.basictype.type", StructTy_llvm_dbg_basictype_type); | |
50 | |
51 std::vector<const Type*>StructTy_llvm_dbg_compile_unit_type_fields; | |
52 StructTy_llvm_dbg_compile_unit_type_fields.push_back(IntegerType::get(32)); | |
53 StructTy_llvm_dbg_compile_unit_type_fields.push_back(PointerTy_0); | |
54 StructTy_llvm_dbg_compile_unit_type_fields.push_back(IntegerType::get(32)); | |
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 StructTy_llvm_dbg_compile_unit_type_fields.push_back(PointerTy_2); | |
58 StructType* StructTy_llvm_dbg_compile_unit_type = StructType::get(StructTy_llvm_dbg_compile_unit_type_fields, /*isPacked=*/false); | |
59 mod->addTypeName("llvm.dbg.compile_unit.type", StructTy_llvm_dbg_compile_unit_type); | |
60 | |
61 std::vector<const Type*>StructTy_llvm_dbg_compositetype_type_fields; | |
62 StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(32)); | |
63 StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0); | |
64 StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_2); | |
65 StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0); | |
66 StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(32)); | |
67 StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(64)); | |
68 StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(64)); | |
69 StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(64)); | |
70 StructTy_llvm_dbg_compositetype_type_fields.push_back(IntegerType::get(32)); | |
71 StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0); | |
72 StructTy_llvm_dbg_compositetype_type_fields.push_back(PointerTy_0); | |
73 StructType* StructTy_llvm_dbg_compositetype_type = StructType::get(StructTy_llvm_dbg_compositetype_type_fields, /*isPacked=*/false); | |
74 mod->addTypeName("llvm.dbg.compositetype.type", StructTy_llvm_dbg_compositetype_type); | |
75 | |
76 std::vector<const Type*>StructTy_llvm_dbg_derivedtype_type_fields; | |
77 StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(32)); | |
78 StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_0); | |
79 StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_2); | |
80 StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_0); | |
81 StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(32)); | |
82 StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(64)); | |
83 StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(64)); | |
84 StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(64)); | |
85 StructTy_llvm_dbg_derivedtype_type_fields.push_back(IntegerType::get(32)); | |
86 StructTy_llvm_dbg_derivedtype_type_fields.push_back(PointerTy_0); | |
87 StructType* StructTy_llvm_dbg_derivedtype_type = StructType::get(StructTy_llvm_dbg_derivedtype_type_fields, /*isPacked=*/false); | |
88 mod->addTypeName("llvm.dbg.derivedtype.type", StructTy_llvm_dbg_derivedtype_type); | |
89 | |
90 std::vector<const Type*>StructTy_llvm_dbg_global_variable_type_fields; | |
91 StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(32)); | |
92 StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0); | |
93 StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0); | |
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_2); | |
97 StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0); | |
98 StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(32)); | |
99 StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0); | |
100 StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(1)); | |
101 StructTy_llvm_dbg_global_variable_type_fields.push_back(IntegerType::get(1)); | |
102 StructTy_llvm_dbg_global_variable_type_fields.push_back(PointerTy_0); | |
103 StructType* StructTy_llvm_dbg_global_variable_type = StructType::get(StructTy_llvm_dbg_global_variable_type_fields, /*isPacked=*/false); | |
104 mod->addTypeName("llvm.dbg.global_variable.type", StructTy_llvm_dbg_global_variable_type); | |
105 | |
106 std::vector<const Type*>StructTy_llvm_dbg_subprogram_type_fields; | |
107 StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(32)); | |
108 StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0); | |
109 StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0); | |
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_2); | |
113 StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0); | |
114 StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(32)); | |
115 StructTy_llvm_dbg_subprogram_type_fields.push_back(PointerTy_0); | |
116 StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(1)); | |
117 StructTy_llvm_dbg_subprogram_type_fields.push_back(IntegerType::get(1)); | |
118 StructType* StructTy_llvm_dbg_subprogram_type = StructType::get(StructTy_llvm_dbg_subprogram_type_fields, /*isPacked=*/false); | |
119 mod->addTypeName("llvm.dbg.subprogram.type", StructTy_llvm_dbg_subprogram_type); | |
120 | |
121 std::vector<const Type*>StructTy_llvm_dbg_variable_type_fields; | |
122 StructTy_llvm_dbg_variable_type_fields.push_back(IntegerType::get(32)); | |
123 StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_0); | |
124 StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_2); | |
125 StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_0); | |
126 StructTy_llvm_dbg_variable_type_fields.push_back(IntegerType::get(32)); | |
127 StructTy_llvm_dbg_variable_type_fields.push_back(PointerTy_0); | |
128 StructType* StructTy_llvm_dbg_variable_type = StructType::get(StructTy_llvm_dbg_variable_type_fields, /*isPacked=*/false); | |
129 mod->addTypeName("llvm.dbg.variable.type", StructTy_llvm_dbg_variable_type); | |
130 | |
131 std::vector<const Type*>FuncTy_3_args; | |
132 FuncTy_3_args.push_back(PointerTy_0); | |
133 ParamAttrsList *FuncTy_3_PAL = 0; | |
134 FunctionType* FuncTy_3 = FunctionType::get( | |
135 /*Result=*/Type::VoidTy, | |
136 /*Params=*/FuncTy_3_args, | |
137 /*isVarArg=*/false, | |
138 /*ParamAttrs=*/FuncTy_3_PAL); | |
139 | |
140 std::vector<const Type*>FuncTy_4_args; | |
141 FuncTy_4_args.push_back(IntegerType::get(32)); | |
142 FuncTy_4_args.push_back(IntegerType::get(32)); | |
143 FuncTy_4_args.push_back(PointerTy_0); | |
144 ParamAttrsList *FuncTy_4_PAL = 0; | |
145 FunctionType* FuncTy_4 = FunctionType::get( | |
146 /*Result=*/Type::VoidTy, | |
147 /*Params=*/FuncTy_4_args, | |
148 /*isVarArg=*/false, | |
149 /*ParamAttrs=*/FuncTy_4_PAL); | |
150 | |
151 std::vector<const Type*>FuncTy_5_args; | |
152 FuncTy_5_args.push_back(PointerTy_0); | |
153 FuncTy_5_args.push_back(PointerTy_0); | |
154 ParamAttrsList *FuncTy_5_PAL = 0; | |
155 FunctionType* FuncTy_5 = FunctionType::get( | |
156 /*Result=*/Type::VoidTy, | |
157 /*Params=*/FuncTy_5_args, | |
158 /*isVarArg=*/false, | |
159 /*ParamAttrs=*/FuncTy_5_PAL); | |
160 | |
161 | |
162 // Function Declarations | |
163 | |
164 Function* func_llvm_dbg_func_start = new Function( | |
165 /*Type=*/FuncTy_3, | |
166 /*Linkage=*/GlobalValue::ExternalLinkage, | |
167 /*Name=*/"llvm.dbg.func.start", mod); // (external, no body) | |
168 func_llvm_dbg_func_start->setCallingConv(CallingConv::C); | |
169 | |
170 Function* func_llvm_dbg_stoppoint = new Function( | |
171 /*Type=*/FuncTy_4, | |
172 /*Linkage=*/GlobalValue::ExternalLinkage, | |
173 /*Name=*/"llvm.dbg.stoppoint", mod); // (external, no body) | |
174 func_llvm_dbg_stoppoint->setCallingConv(CallingConv::C); | |
175 | |
176 Function* func_llvm_dbg_declare = new Function( | |
177 /*Type=*/FuncTy_5, | |
178 /*Linkage=*/GlobalValue::ExternalLinkage, | |
179 /*Name=*/"llvm.dbg.declare", mod); // (external, no body) | |
180 func_llvm_dbg_declare->setCallingConv(CallingConv::C); | |
181 | |
182 Function* func_llvm_dbg_region_end = new Function( | |
183 /*Type=*/FuncTy_3, | |
184 /*Linkage=*/GlobalValue::ExternalLinkage, | |
185 /*Name=*/"llvm.dbg.region.end", mod); // (external, no body) | |
186 func_llvm_dbg_region_end->setCallingConv(CallingConv::C); | |
187 } |