llvm.org GIT mirror llvm / 710cb0c
Add support for source and line information to IntelJITEventListener for object emitted by MCJIT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173712 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Kaylor 7 years ago
9 changed file(s) with 354 addition(s) and 313 deletion(s). Raw diff Collapse all Expand all
2121 #include "llvm/ADT/DenseMap.h"
2222 #include "llvm/ADT/OwningPtr.h"
2323 #include "llvm/CodeGen/MachineFunction.h"
24 #include "llvm/DebugInfo/DIContext.h"
2425 #include "llvm/ExecutionEngine/ObjectImage.h"
26 #include "llvm/Object/ObjectFile.h"
2527 #include "llvm/Support/Debug.h"
2628 #include "llvm/Support/raw_ostream.h"
2729 #include "llvm/Support/Errno.h"
7375
7476 Result.Offset = Address - StartAddress;
7577 Result.LineNumber = Loc.getLine();
78
79 return Result;
80 }
81
82 static LineNumberInfo DILineInfoToIntelJITFormat(uintptr_t StartAddress,
83 uintptr_t Address,
84 DILineInfo Line)
85 {
86 LineNumberInfo Result;
87
88 Result.Offset = Address - StartAddress;
89 Result.LineNumber = Line.getLine();
7690
7791 return Result;
7892 }
176190 void IntelJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) {
177191 // Get the address of the object image for use as a unique identifier
178192 const void* ObjData = Obj.getData().data();
193 DIContext* Context = DIContext::getDWARFContext(Obj.getObjectFile());
179194 MethodAddressVector Functions;
180195
181196 // Use symbol info to iterate functions in the object.
184199 E = Obj.end_symbols();
185200 I != E && !ec;
186201 I.increment(ec)) {
202 std::vector LineInfo;
203 std::string SourceFileName;
204
187205 object::SymbolRef::Type SymType;
188206 if (I->getType(SymType)) continue;
189207 if (SymType == object::SymbolRef::ST_Function) {
190 StringRef Name;
191 uint64_t Addr;
192 uint64_t Size;
208 StringRef Name;
209 uint64_t Addr;
210 uint64_t Size;
193211 if (I->getName(Name)) continue;
194212 if (I->getAddress(Addr)) continue;
195213 if (I->getSize(Size)) continue;
202220 Name.data(),
203221 Addr,
204222 Size);
205
206 // FIXME: Try to find line info for this function in the DWARF sections.
207 FunctionMessage.source_file_name = 0;
208 FunctionMessage.line_number_size = 0;
209 FunctionMessage.line_number_table = 0;
223 if (Context) {
224 DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr, Size);
225 DILineInfoTable::iterator Begin = Lines.begin();
226 DILineInfoTable::iterator End = Lines.end();
227 for (DILineInfoTable::iterator It = Begin; It != End; ++It) {
228 LineInfo.push_back(DILineInfoToIntelJITFormat((uintptr_t)Addr,
229 It->first,
230 It->second));
231 }
232 if (LineInfo.size() == 0) {
233 FunctionMessage.source_file_name = 0;
234 FunctionMessage.line_number_size = 0;
235 FunctionMessage.line_number_table = 0;
236 } else {
237 SourceFileName = Lines.front().second.getFileName();
238 FunctionMessage.source_file_name = (char *)SourceFileName.c_str();
239 FunctionMessage.line_number_size = LineInfo.size();
240 FunctionMessage.line_number_table = &*LineInfo.begin();
241 }
242 } else {
243 FunctionMessage.source_file_name = 0;
244 FunctionMessage.line_number_size = 0;
245 FunctionMessage.line_number_table = 0;
246 }
210247
211248 Wrapper->iJIT_NotifyEvent(iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED,
212249 &FunctionMessage);
0 ; RUN: llvm-jitlistener %s | FileCheck %s
11
2 ; CHECK: Method load [1]: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 165
3 ; CHECK: Method load [2]: _Z3food, Size = 39
2 ; CHECK: Method load [1]: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
3 ; CHECK: Line info @ 0: test-inline.cpp, line 33
4 ; CHECK: Line info @ 35: test-inline.cpp, line 34
5 ; CHECK: Line info @ 165: test-inline.cpp, line 35
6 ; CHECK: Method load [2]: _Z3foov, Size = 3
7 ; CHECK: Line info @ 0: test-inline.cpp, line 28
8 ; CHECK: Line info @ 2: test-inline.cpp, line 29
9 ; CHECK: Line info @ 3: test-inline.cpp, line 29
410 ; CHECK: Method load [3]: main, Size = 146
11 ; CHECK: Line info @ 0: test-inline.cpp, line 39
12 ; CHECK: Line info @ 21: test-inline.cpp, line 41
13 ; CHECK: Line info @ 39: test-inline.cpp, line 42
14 ; CHECK: Line info @ 60: test-inline.cpp, line 44
15 ; CHECK: Line info @ 80: test-inline.cpp, line 48
16 ; CHECK: Line info @ 90: test-inline.cpp, line 45
17 ; CHECK: Line info @ 95: test-inline.cpp, line 46
18 ; CHECK: Line info @ 114: test-inline.cpp, line 48
19 ; CHECK: Line info @ 141: test-inline.cpp, line 49
20 ; CHECK: Line info @ 146: test-inline.cpp, line 49
521 ; CHECK: Method unload [1]
622 ; CHECK: Method unload [2]
723 ; CHECK: Method unload [3]
824
9 ; ModuleID = 'test-inline.bc'
25 ; ModuleID = 'test-inline.cpp'
1026 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
1127 target triple = "x86_64-unknown-linux-gnu"
1228
2440 %us.addr = alloca i16, align 2
2541 %l.addr = alloca i64, align 8
2642 %result = alloca double, align 8
27 %result2 = alloca i32, align 4
2843 store float* %pf, float** %pf.addr, align 8
29 call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !32), !dbg !35
44 call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !46), !dbg !47
3045 store [2 x double]* %ppd, [2 x double]** %ppd.addr, align 8
31 call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !36), !dbg !39
46 call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !48), !dbg !47
3247 store %struct.char_struct* %s, %struct.char_struct** %s.addr, align 8
33 call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !40), !dbg !42
48 call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !49), !dbg !47
3449 store i32** %ppn, i32*** %ppn.addr, align 8
35 call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !43), !dbg !46
50 call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !50), !dbg !47
3651 store i16 %us, i16* %us.addr, align 2
37 call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !47), !dbg !49
52 call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !51), !dbg !47
3853 store i64 %l, i64* %l.addr, align 8
39 call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !50), !dbg !53
40 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !54), !dbg !56
41 %0 = load float** %pf.addr, align 8, !dbg !57
42 %arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !57
43 %1 = load float* %arrayidx, !dbg !57
44 %conv = fpext float %1 to double, !dbg !57
45 %2 = load [2 x double]** %ppd.addr, align 8, !dbg !57
46 %arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !57
47 %arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !57
48 %3 = load double* %arrayidx2, !dbg !57
49 %mul = fmul double %conv, %3, !dbg !57
50 %4 = load %struct.char_struct** %s.addr, !dbg !57
51 %c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !57
52 %5 = load i8* %c, align 1, !dbg !57
53 %conv3 = sext i8 %5 to i32, !dbg !57
54 %conv4 = sitofp i32 %conv3 to double, !dbg !57
55 %mul5 = fmul double %mul, %conv4, !dbg !57
56 %6 = load i16* %us.addr, align 2, !dbg !57
57 %conv6 = zext i16 %6 to i32, !dbg !57
58 %conv7 = sitofp i32 %conv6 to double, !dbg !57
59 %mul8 = fmul double %mul5, %conv7, !dbg !57
60 %7 = load i64* %l.addr, align 8, !dbg !57
61 %conv9 = uitofp i64 %7 to double, !dbg !57
62 %mul10 = fmul double %mul8, %conv9, !dbg !57
63 store double %mul10, double* %result, align 8, !dbg !57
64 call void @llvm.dbg.declare(metadata !{i32* %result2}, metadata !58), !dbg !59
65 %8 = load double* %result, align 8, !dbg !60
66 %call = call i32 @_Z3food(double %8), !dbg !60
67 store i32 %call, i32* %result2, align 4, !dbg !60
68 %9 = load i32* %result2, align 4, !dbg !61
69 %conv11 = sitofp i32 %9 to double, !dbg !61
70 ret double %conv11, !dbg !61
54 call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !52), !dbg !47
55 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !53), !dbg !55
56 %0 = load float** %pf.addr, align 8, !dbg !55
57 %arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !55
58 %1 = load float* %arrayidx, align 4, !dbg !55
59 %conv = fpext float %1 to double, !dbg !55
60 %2 = load [2 x double]** %ppd.addr, align 8, !dbg !55
61 %arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !55
62 %arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !55
63 %3 = load double* %arrayidx2, align 8, !dbg !55
64 %mul = fmul double %conv, %3, !dbg !55
65 %4 = load %struct.char_struct** %s.addr, align 8, !dbg !55
66 %c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !55
67 %5 = load i8* %c, align 1, !dbg !55
68 %conv3 = sext i8 %5 to i32, !dbg !55
69 %conv4 = sitofp i32 %conv3 to double, !dbg !55
70 %mul5 = fmul double %mul, %conv4, !dbg !55
71 %6 = load i16* %us.addr, align 2, !dbg !55
72 %conv6 = zext i16 %6 to i32, !dbg !55
73 %conv7 = sitofp i32 %conv6 to double, !dbg !55
74 %mul8 = fmul double %mul5, %conv7, !dbg !55
75 %7 = load i64* %l.addr, align 8, !dbg !55
76 %conv9 = uitofp i64 %7 to double, !dbg !55
77 %mul10 = fmul double %mul8, %conv9, !dbg !55
78 %call = call i32 @_Z3foov(), !dbg !55
79 %conv11 = sitofp i32 %call to double, !dbg !55
80 %add = fadd double %mul10, %conv11, !dbg !55
81 store double %add, double* %result, align 8, !dbg !55
82 %8 = load double* %result, align 8, !dbg !56
83 ret double %8, !dbg !56
7184 }
7285
7386 declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
7487
75 define linkonce_odr i32 @_Z3food(double %input) nounwind uwtable inlinehint {
88 define linkonce_odr i32 @_Z3foov() nounwind uwtable inlinehint {
7689 entry:
77 %input.addr = alloca double, align 8
78 store double %input, double* %input.addr, align 8
79 call void @llvm.dbg.declare(metadata !{double* %input.addr}, metadata !62), !dbg !63
80 %0 = load double* %input.addr, align 8, !dbg !64
81 %div = fdiv double %0, 3.000000e+00, !dbg !64
82 %add = fadd double %div, 1.000000e+00, !dbg !64
83 %conv = fptosi double %add to i32, !dbg !64
84 ret i32 %conv, !dbg !64
90 ret i32 0, !dbg !57
8591 }
8692
8793 define i32 @main(i32 %argc, i8** %argv) uwtable {
95101 %result = alloca double, align 8
96102 store i32 0, i32* %retval
97103 store i32 %argc, i32* %argc.addr, align 4
98 call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !66), !dbg !67
104 call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !59), !dbg !60
99105 store i8** %argv, i8*** %argv.addr, align 8
100 call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !68), !dbg !71
101 call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !72), !dbg !74
102 call void @llvm.dbg.declare(metadata !{float* %f}, metadata !75), !dbg !76
103 store float 0.000000e+00, float* %f, align 4, !dbg !77
104 call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !78), !dbg !81
105 %0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !82
106 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast ([2 x [2 x double]]* @_ZZ4mainE1d to i8*), i64 32, i32 16, i1 false), !dbg !82
107 %c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !83
108 store i8 97, i8* %c, align 1, !dbg !83
109 %c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !84
110 %arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !84
111 store i8 48, i8* %arrayidx, align 1, !dbg !84
112 %c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !85
113 %arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !85
114 store i8 49, i8* %arrayidx2, align 1, !dbg !85
115 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !86), !dbg !87
116 %arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !88
117 %call = call double @_Z15test_parametersPfPA2_dR11char_structPPitm(float* %f, [2 x double]* %arraydecay, %struct.char_struct* %s, i32** null, i16 zeroext 10, i64 42), !dbg !88
118 store double %call, double* %result, align 8, !dbg !88
119 %1 = load double* %result, align 8, !dbg !89
120 %cmp = fcmp oeq double %1, 0.000000e+00, !dbg !89
121 %cond = select i1 %cmp, i32 0, i32 -1, !dbg !89
122 ret i32 %cond, !dbg !89
106 call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !61), !dbg !60
107 call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !62), !dbg !64
108 call void @llvm.dbg.declare(metadata !{float* %f}, metadata !65), !dbg !66
109 store float 0.000000e+00, float* %f, align 4, !dbg !66
110 call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !67), !dbg !70
111 %0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !70
112 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast ([2 x [2 x double]]* @_ZZ4mainE1d to i8*), i64 32, i32 16, i1 false), !dbg !70
113 %c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !71
114 store i8 97, i8* %c, align 1, !dbg !71
115 %c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !72
116 %arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !72
117 store i8 48, i8* %arrayidx, align 1, !dbg !72
118 %c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !73
119 %arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !73
120 store i8 49, i8* %arrayidx2, align 1, !dbg !73
121 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !74), !dbg !75
122 %arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !75
123 %call = call double @_Z15test_parametersPfPA2_dR11char_structPPitm(float* %f, [2 x double]* %arraydecay, %struct.char_struct* %s, i32** null, i16 zeroext 10, i64 42), !dbg !75
124 store double %call, double* %result, align 8, !dbg !75
125 %1 = load double* %result, align 8, !dbg !76
126 %cmp = fcmp oeq double %1, 0.000000e+00, !dbg !76
127 %cond = select i1 %cmp, i32 0, i32 -1, !dbg !76
128 ret i32 %cond, !dbg !76
123129 }
124130
125131 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
126132
127133 !llvm.dbg.cu = !{!0}
128134
129 !0 = metadata !{i32 720913, i32 0, i32 4, metadata !"test-inline.cpp", metadata !"/home/athirumurthi/dev/opencl-mc/build/RH64/Debug/backend/llvm", metadata !"clang version 3.0 (branches/release_30 36797)", i1 true, i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !3, metadata !17} ; [ DW_TAG_compile_unit ]
135 !0 = metadata !{i32 786449, i32 0, i32 4, metadata !"test-inline.cpp", metadata !"/home/akaylor/dev", metadata !"clang version 3.3 (ssh://akaylor@git-amr-1.devtools.intel.com:29418/ssg_llvm-clang2 gitosis@miro.kw.intel.com:clang.git 39450d0469e0d5589ad39fd0b20b5742750619a0) (ssh://akaylor@git-amr-1.devtools.intel.com:29418/ssg_llvm-llvm gitosis@miro.kw.intel.com:llvm.git 376642ed620ecae05b68c7bc81f79aeb2065abe0)", i1 true, i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !3, metadata !43} ; [ DW_TAG_compile_unit ] [/home/akaylor/dev/test-inline.cpp] [DW_LANG_C_plus_plus]
130136 !1 = metadata !{metadata !2}
131137 !2 = metadata !{i32 0}
132138 !3 = metadata !{metadata !4}
133 !4 = metadata !{metadata !5, metadata !12, metadata !16}
134 !5 = metadata !{i32 720942, i32 0, metadata !6, metadata !"test_parameters", metadata !"test_parameters", metadata !"_Z15test_parametersPfPA2_dR11char_structPPitm", metadata !6, i32 33, metadata !7, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, double (float*, [2 x double]*, %struct.char_struct*, i32**, i16, i64)* @_Z15test_parametersPfPA2_dR11char_structPPitm, null, null, metadata !10} ; [ DW_TAG_subprogram ]
135 !6 = metadata !{i32 720937, metadata !"test-inline.cpp", metadata !"/home/athirumurthi/dev/opencl-mc/build/RH64/Debug/backend/llvm", null} ; [ DW_TAG_file_type ]
136 !7 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !8, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
137 !8 = metadata !{metadata !9}
138 !9 = metadata !{i32 720932, null, metadata !"double", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
139 !10 = metadata !{metadata !11}
140 !11 = metadata !{i32 720932} ; [ DW_TAG_base_type ]
141 !12 = metadata !{i32 720942, i32 0, metadata !6, metadata !"main", metadata !"main", metadata !"", metadata !6, i32 40, metadata !13, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, i32 (i32, i8**)* @main, null, null, metadata !10} ; [ DW_TAG_subprogram ]
142 !13 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !14, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
139 !4 = metadata !{metadata !5, metadata !35, metadata !40}
140 !5 = metadata !{i32 786478, i32 0, metadata !6, metadata !"test_parameters", metadata !"test_parameters", metadata !"_Z15test_parametersPfPA2_dR11char_structPPitm", metadata !6, i32 32, metadata !7, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, double (float*, [2 x double]*, %struct.char_struct*, i32**, i16, i64)* @_Z15test_parametersPfPA2_dR11char_structPPitm, null, null, metadata !1, i32 33} ; [ DW_TAG_subprogram ] [line 32] [def] [scope 33] [test_parameters]
141 !6 = metadata !{i32 786473, metadata !"test-inline.cpp", metadata !"/home/akaylor/dev", null} ; [ DW_TAG_file_type ]
142 !7 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !8, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
143 !8 = metadata !{metadata !9, metadata !10, metadata !12, metadata !16, metadata !29, metadata !32, metadata !33}
144 !9 = metadata !{i32 786468, null, metadata !"double", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] [double] [line 0, size 64, align 64, offset 0, enc DW_ATE_float]
145 !10 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !11} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from float]
146 !11 = metadata !{i32 786468, null, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] [float] [line 0, size 32, align 32, offset 0, enc DW_ATE_float]
147 !12 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !13} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ]
148 !13 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 128, i64 64, i32 0, i32 0, metadata !9, metadata !14, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 128, align 64, offset 0] [from double]
143149 !14 = metadata !{metadata !15}
144 !15 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
145 !16 = metadata !{i32 720942, i32 0, metadata !6, metadata !"foo", metadata !"foo", metadata !"_Z3food", metadata !6, i32 28, metadata !13, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, i32 (double)* @_Z3food, null, null, metadata !10} ; [ DW_TAG_subprogram ]
146 !17 = metadata !{metadata !18}
147 !18 = metadata !{metadata !19}
148 !19 = metadata !{i32 720948, i32 0, null, metadata !"compound_char", metadata !"compound_char", metadata !"", metadata !6, i32 25, metadata !20, i32 0, i32 1, %struct.char_struct* @compound_char} ; [ DW_TAG_variable ]
149 !20 = metadata !{i32 720898, null, metadata !"char_struct", metadata !6, i32 22, i64 24, i64 8, i32 0, i32 0, null, metadata !21, i32 0, null, null} ; [ DW_TAG_class_type ]
150 !21 = metadata !{metadata !22, metadata !24, metadata !28}
151 !22 = metadata !{i32 720909, metadata !20, metadata !"c", metadata !6, i32 23, i64 8, i64 8, i64 0, i32 0, metadata !23} ; [ DW_TAG_member ]
152 !23 = metadata !{i32 720932, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
153 !24 = metadata !{i32 720909, metadata !20, metadata !"c2", metadata !6, i32 24, i64 16, i64 8, i64 8, i32 0, metadata !25} ; [ DW_TAG_member ]
154 !25 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 16, i64 8, i32 0, i32 0, metadata !23, metadata !26, i32 0, i32 0} ; [ DW_TAG_array_type ]
155 !26 = metadata !{metadata !27}
156 !27 = metadata !{i32 720929, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
157 !28 = metadata !{i32 720942, i32 0, metadata !20, metadata !"char_struct", metadata !"char_struct", metadata !"", metadata !6, i32 22, metadata !29, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !10} ; [ DW_TAG_subprogram ]
158 !29 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !30, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
159 !30 = metadata !{null, metadata !31}
160 !31 = metadata !{i32 720911, i32 0, metadata !"", i32 0, i32 0, i64 64, i64 64, i64 0, i32 64, metadata !20} ; [ DW_TAG_pointer_type ]
161 !32 = metadata !{i32 721153, metadata !5, metadata !"pf", metadata !6, i32 16777248, metadata !33, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
162 !33 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !34} ; [ DW_TAG_pointer_type ]
163 !34 = metadata !{i32 720932, null, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
164 !35 = metadata !{i32 32, i32 31, metadata !5, null}
165 !36 = metadata !{i32 721153, metadata !5, metadata !"ppd", metadata !6, i32 33554464, metadata !37, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
166 !37 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !38} ; [ DW_TAG_pointer_type ]
167 !38 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 128, i64 64, i32 0, i32 0, metadata !9, metadata !26, i32 0, i32 0} ; [ DW_TAG_array_type ]
168 !39 = metadata !{i32 32, i32 42, metadata !5, null}
169 !40 = metadata !{i32 721153, metadata !5, metadata !"s", metadata !6, i32 50331680, metadata !41, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
170 !41 = metadata !{i32 720912, null, null, null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !20} ; [ DW_TAG_reference_type ]
171 !42 = metadata !{i32 32, i32 72, metadata !5, null}
172 !43 = metadata !{i32 721153, metadata !5, metadata !"ppn", metadata !6, i32 67108896, metadata !44, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
173 !44 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !45} ; [ DW_TAG_pointer_type ]
174 !45 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !15} ; [ DW_TAG_pointer_type ]
175 !46 = metadata !{i32 32, i32 81, metadata !5, null}
176 !47 = metadata !{i32 721153, metadata !5, metadata !"us", metadata !6, i32 83886112, metadata !48, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
177 !48 = metadata !{i32 720932, null, metadata !"unsigned short", null, i32 0, i64 16, i64 16, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
178 !49 = metadata !{i32 32, i32 105, metadata !5, null}
179 !50 = metadata !{i32 721153, metadata !5, metadata !"l", metadata !6, i32 100663328, metadata !51, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
180 !51 = metadata !{i32 720934, null, metadata !"", null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !52} ; [ DW_TAG_const_type ]
181 !52 = metadata !{i32 720932, null, metadata !"long unsigned int", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
182 !53 = metadata !{i32 32, i32 135, metadata !5, null}
183 !54 = metadata !{i32 721152, metadata !55, metadata !"result", metadata !6, i32 34, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
184 !55 = metadata !{i32 720907, metadata !5, i32 33, i32 1, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
185 !56 = metadata !{i32 34, i32 10, metadata !55, null}
186 !57 = metadata !{i32 34, i32 51, metadata !55, null}
187 !58 = metadata !{i32 721152, metadata !55, metadata !"result2", metadata !6, i32 35, metadata !15, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
188 !59 = metadata !{i32 35, i32 7, metadata !55, null}
189 !60 = metadata !{i32 35, i32 17, metadata !55, null}
190 !61 = metadata !{i32 36, i32 3, metadata !55, null}
191 !62 = metadata !{i32 721153, metadata !16, metadata !"input", metadata !6, i32 16777243, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
192 !63 = metadata !{i32 27, i32 23, metadata !16, null}
193 !64 = metadata !{i32 29, i32 3, metadata !65, null}
194 !65 = metadata !{i32 720907, metadata !16, i32 28, i32 1, metadata !6, i32 2} ; [ DW_TAG_lexical_block ]
195 !66 = metadata !{i32 721153, metadata !12, metadata !"argc", metadata !6, i32 16777255, metadata !15, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
196 !67 = metadata !{i32 39, i32 14, metadata !12, null}
197 !68 = metadata !{i32 721153, metadata !12, metadata !"argv", metadata !6, i32 33554471, metadata !69, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
198 !69 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !70} ; [ DW_TAG_pointer_type ]
199 !70 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !23} ; [ DW_TAG_pointer_type ]
200 !71 = metadata !{i32 39, i32 26, metadata !12, null}
201 !72 = metadata !{i32 721152, metadata !73, metadata !"s", metadata !6, i32 41, metadata !20, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
202 !73 = metadata !{i32 720907, metadata !12, i32 40, i32 1, metadata !6, i32 1} ; [ DW_TAG_lexical_block ]
203 !74 = metadata !{i32 41, i32 22, metadata !73, null}
204 !75 = metadata !{i32 721152, metadata !73, metadata !"f", metadata !6, i32 42, metadata !34, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
205 !76 = metadata !{i32 42, i32 9, metadata !73, null}
206 !77 = metadata !{i32 42, i32 16, metadata !73, null}
207 !78 = metadata !{i32 721152, metadata !73, metadata !"d", metadata !6, i32 43, metadata !79, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
208 !79 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 256, i64 64, i32 0, i32 0, metadata !9, metadata !80, i32 0, i32 0} ; [ DW_TAG_array_type ]
209 !80 = metadata !{metadata !27, metadata !27}
210 !81 = metadata !{i32 43, i32 10, metadata !73, null}
211 !82 = metadata !{i32 43, i32 38, metadata !73, null}
212 !83 = metadata !{i32 45, i32 3, metadata !73, null}
213 !84 = metadata !{i32 46, i32 3, metadata !73, null}
214 !85 = metadata !{i32 47, i32 3, metadata !73, null}
215 !86 = metadata !{i32 721152, metadata !73, metadata !"result", metadata !6, i32 49, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
216 !87 = metadata !{i32 49, i32 10, metadata !73, null}
217 !88 = metadata !{i32 49, i32 19, metadata !73, null}
218 !89 = metadata !{i32 50, i32 3, metadata !73, null}
150 !15 = metadata !{i32 786465, i64 0, i64 2} ; [ DW_TAG_subrange_type ] [0, 1]
151 !16 = metadata !{i32 786448, null, null, null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !17} ; [ DW_TAG_reference_type ] [line 0, size 0, align 0, offset 0] [from char_struct]
152 !17 = metadata !{i32 786451, null, metadata !"char_struct", metadata !6, i32 22, i64 24, i64 8, i32 0, i32 0, null, metadata !18, i32 0, null, null} ; [ DW_TAG_structure_type ] [char_struct] [line 22, size 24, align 8, offset 0] [from ]
153 !18 = metadata !{metadata !19, metadata !21, metadata !23}
154 !19 = metadata !{i32 786445, metadata !17, metadata !"c", metadata !6, i32 23, i64 8, i64 8, i64 0, i32 0, metadata !20} ; [ DW_TAG_member ] [c] [line 23, size 8, align 8, offset 0] [from char]
155 !20 = metadata !{i32 786468, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ] [char] [line 0, size 8, align 8, offset 0, enc DW_ATE_signed_char]
156 !21 = metadata !{i32 786445, metadata !17, metadata !"c2", metadata !6, i32 24, i64 16, i64 8, i64 8, i32 0, metadata !22} ; [ DW_TAG_member ] [c2] [line 24, size 16, align 8, offset 8] [from ]
157 !22 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 16, i64 8, i32 0, i32 0, metadata !20, metadata !14, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 16, align 8, offset 0] [from char]
158 !23 = metadata !{i32 786478, i32 0, metadata !17, metadata !"char_struct", metadata !"char_struct", metadata !"", metadata !6, i32 22, metadata !24, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !27, i32 22} ; [ DW_TAG_subprogram ] [line 22] [char_struct]
159 !24 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !25, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
160 !25 = metadata !{null, metadata !26}
161 !26 = metadata !{i32 786447, i32 0, metadata !"", i32 0, i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !17} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from char_struct]
162 !27 = metadata !{metadata !28}
163 !28 = metadata !{i32 786468} ; [ DW_TAG_base_type ] [line 0, size 0, align 0, offset 0]
164 !29 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !30} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ]
165 !30 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !31} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from int]
166 !31 = metadata !{i32 786468, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
167 !32 = metadata !{i32 786468, null, metadata !"unsigned short", null, i32 0, i64 16, i64 16, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ] [unsigned short] [line 0, size 16, align 16, offset 0, enc DW_ATE_unsigned]
168 !33 = metadata !{i32 786470, null, metadata !"", null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !34} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from long unsigned int]
169 !34 = metadata !{i32 786468, null, metadata !"long unsigned int", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ] [long unsigned int] [line 0, size 64, align 64, offset 0, enc DW_ATE_unsigned]
170 !35 = metadata !{i32 786478, i32 0, metadata !6, metadata !"main", metadata !"main", metadata !"", metadata !6, i32 38, metadata !36, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 (i32, i8**)* @main, null, null, metadata !1, i32 39} ; [ DW_TAG_subprogram ] [line 38] [def] [scope 39] [main]
171 !36 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !37, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
172 !37 = metadata !{metadata !31, metadata !31, metadata !38}
173 !38 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !39} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ]
174 !39 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !20} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from char]
175 !40 = metadata !{i32 786478, i32 0, metadata !6, metadata !"foo", metadata !"foo", metadata !"_Z3foov", metadata !6, i32 27, metadata !41, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 ()* @_Z3foov, null, null, metadata !1, i32 28} ; [ DW_TAG_subprogram ] [line 27] [def] [scope 28] [foo]
176 !41 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !42, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
177 !42 = metadata !{metadata !31}
178 !43 = metadata !{metadata !44}
179 !44 = metadata !{metadata !45}
180 !45 = metadata !{i32 786484, i32 0, null, metadata !"compound_char", metadata !"compound_char", metadata !"", metadata !6, i32 25, metadata !17, i32 0, i32 1, %struct.char_struct* @compound_char} ; [ DW_TAG_variable ] [compound_char] [line 25] [def]
181 !46 = metadata !{i32 786689, metadata !5, metadata !"pf", metadata !6, i32 16777248, metadata !10, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [pf] [line 32]
182 !47 = metadata !{i32 32, i32 0, metadata !5, null}
183 !48 = metadata !{i32 786689, metadata !5, metadata !"ppd", metadata !6, i32 33554464, metadata !12, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [ppd] [line 32]
184 !49 = metadata !{i32 786689, metadata !5, metadata !"s", metadata !6, i32 50331680, metadata !16, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [s] [line 32]
185 !50 = metadata !{i32 786689, metadata !5, metadata !"ppn", metadata !6, i32 67108896, metadata !29, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [ppn] [line 32]
186 !51 = metadata !{i32 786689, metadata !5, metadata !"us", metadata !6, i32 83886112, metadata !32, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [us] [line 32]
187 !52 = metadata !{i32 786689, metadata !5, metadata !"l", metadata !6, i32 100663328, metadata !33, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [l] [line 32]
188 !53 = metadata !{i32 786688, metadata !54, metadata !"result", metadata !6, i32 34, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [result] [line 34]
189 !54 = metadata !{i32 786443, metadata !5, i32 33, i32 0, metadata !6, i32 0} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-inline.cpp]
190 !55 = metadata !{i32 34, i32 0, metadata !54, null}
191 !56 = metadata !{i32 35, i32 0, metadata !54, null}
192 !57 = metadata !{i32 29, i32 0, metadata !58, null}
193 !58 = metadata !{i32 786443, metadata !40, i32 28, i32 0, metadata !6, i32 2} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-inline.cpp]
194 !59 = metadata !{i32 786689, metadata !35, metadata !"argc", metadata !6, i32 16777254, metadata !31, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [argc] [line 38]
195 !60 = metadata !{i32 38, i32 0, metadata !35, null}
196 !61 = metadata !{i32 786689, metadata !35, metadata !"argv", metadata !6, i32 33554470, metadata !38, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [argv] [line 38]
197 !62 = metadata !{i32 786688, metadata !63, metadata !"s", metadata !6, i32 40, metadata !17, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [s] [line 40]
198 !63 = metadata !{i32 786443, metadata !35, i32 39, i32 0, metadata !6, i32 1} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-inline.cpp]
199 !64 = metadata !{i32 40, i32 0, metadata !63, null}
200 !65 = metadata !{i32 786688, metadata !63, metadata !"f", metadata !6, i32 41, metadata !11, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [f] [line 41]
201 !66 = metadata !{i32 41, i32 0, metadata !63, null}
202 !67 = metadata !{i32 786688, metadata !63, metadata !"d", metadata !6, i32 42, metadata !68, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [d] [line 42]
203 !68 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 256, i64 64, i32 0, i32 0, metadata !9, metadata !69, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 256, align 64, offset 0] [from double]
204 !69 = metadata !{metadata !15, metadata !15}
205 !70 = metadata !{i32 42, i32 0, metadata !63, null}
206 !71 = metadata !{i32 44, i32 0, metadata !63, null}
207 !72 = metadata !{i32 45, i32 0, metadata !63, null}
208 !73 = metadata !{i32 46, i32 0, metadata !63, null}
209 !74 = metadata !{i32 786688, metadata !63, metadata !"result", metadata !6, i32 48, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [result] [line 48]
210 !75 = metadata !{i32 48, i32 0, metadata !63, null}
211 !76 = metadata !{i32 49, i32 0, metadata !63, null}
0 ; RUN: llvm-jitlistener %s | FileCheck %s
11
22 ; CHECK: Method load [1]: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
3 ; CHECK: Line info @ 0: test-parameters.cpp, line 33
4 ; CHECK: Line info @ 35: test-parameters.cpp, line 34
5 ; CHECK: Line info @ 165: test-parameters.cpp, line 35
36 ; CHECK: Method load [2]: _Z3foov, Size = 3
7 ; CHECK: Line info @ 0: test-parameters.cpp, line 28
8 ; CHECK: Line info @ 2: test-parameters.cpp, line 29
49 ; CHECK: Method load [3]: main, Size = 146
10 ; CHECK: Line info @ 0: test-parameters.cpp, line 39
11 ; CHECK: Line info @ 21: test-parameters.cpp, line 41
12 ; CHECK: Line info @ 39: test-parameters.cpp, line 42
13 ; CHECK: Line info @ 60: test-parameters.cpp, line 44
14 ; CHECK: Line info @ 80: test-parameters.cpp, line 48
15 ; CHECK: Line info @ 90: test-parameters.cpp, line 45
16 ; CHECK: Line info @ 95: test-parameters.cpp, line 46
17 ; CHECK: Line info @ 114: test-parameters.cpp, line 48
18 ; CHECK: Line info @ 141: test-parameters.cpp, line 49
19 ; CHECK: Line info @ 146: test-parameters.cpp, line 49
520 ; CHECK: Method unload [1]
621 ; CHECK: Method unload [2]
722 ; CHECK: Method unload [3]
823
9 ; ModuleID = 'test-parameters.bc'
24 ; ModuleID = 'test-parameters.cpp'
1025 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
1126 target triple = "x86_64-unknown-linux-gnu"
1227
1732
1833 define i32 @_Z3foov() nounwind uwtable {
1934 entry:
20 ret i32 0, !dbg !32
35 ret i32 0, !dbg !46
2136 }
2237
2338 define double @_Z15test_parametersPfPA2_dR11char_structPPitm(float* %pf, [2 x double]* %ppd, %struct.char_struct* %s, i32** %ppn, i16 zeroext %us, i64 %l) nounwind uwtable {
3045 %l.addr = alloca i64, align 8
3146 %result = alloca double, align 8
3247 store float* %pf, float** %pf.addr, align 8
33 call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !34), !dbg !37
48 call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !48), !dbg !49
3449 store [2 x double]* %ppd, [2 x double]** %ppd.addr, align 8
35 call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !38), !dbg !41
50 call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !50), !dbg !49
3651 store %struct.char_struct* %s, %struct.char_struct** %s.addr, align 8
37 call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !42), !dbg !44
52 call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !51), !dbg !49
3853 store i32** %ppn, i32*** %ppn.addr, align 8
39 call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !45), !dbg !48
54 call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !52), !dbg !49
4055 store i16 %us, i16* %us.addr, align 2
41 call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !49), !dbg !51
56 call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !53), !dbg !49
4257 store i64 %l, i64* %l.addr, align 8
43 call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !52), !dbg !55
44 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !56), !dbg !58
45 %0 = load float** %pf.addr, align 8, !dbg !59
46 %arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !59
47 %1 = load float* %arrayidx, !dbg !59
48 %conv = fpext float %1 to double, !dbg !59
49 %2 = load [2 x double]** %ppd.addr, align 8, !dbg !59
50 %arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !59
51 %arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !59
52 %3 = load double* %arrayidx2, !dbg !59
53 %mul = fmul double %conv, %3, !dbg !59
54 %4 = load %struct.char_struct** %s.addr, !dbg !59
55 %c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !59
56 %5 = load i8* %c, align 1, !dbg !59
57 %conv3 = sext i8 %5 to i32, !dbg !59
58 %conv4 = sitofp i32 %conv3 to double, !dbg !59
59 %mul5 = fmul double %mul, %conv4, !dbg !59
60 %6 = load i16* %us.addr, align 2, !dbg !59
61 %conv6 = zext i16 %6 to i32, !dbg !59
62 %conv7 = sitofp i32 %conv6 to double, !dbg !59
63 %mul8 = fmul double %mul5, %conv7, !dbg !59
64 %7 = load i64* %l.addr, align 8, !dbg !59
65 %conv9 = uitofp i64 %7 to double, !dbg !59
66 %mul10 = fmul double %mul8, %conv9, !dbg !59
67 %call = call i32 @_Z3foov(), !dbg !60
68 %conv11 = sitofp i32 %call to double, !dbg !60
69 %add = fadd double %mul10, %conv11, !dbg !60
70 store double %add, double* %result, align 8, !dbg !60
71 %8 = load double* %result, align 8, !dbg !61
72 ret double %8, !dbg !61
58 call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !54), !dbg !49
59 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !55), !dbg !57
60 %0 = load float** %pf.addr, align 8, !dbg !57
61 %arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !57
62 %1 = load float* %arrayidx, align 4, !dbg !57
63 %conv = fpext float %1 to double, !dbg !57
64 %2 = load [2 x double]** %ppd.addr, align 8, !dbg !57
65 %arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !57
66 %arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !57
67 %3 = load double* %arrayidx2, align 8, !dbg !57
68 %mul = fmul double %conv, %3, !dbg !57
69 %4 = load %struct.char_struct** %s.addr, align 8, !dbg !57
70 %c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !57
71 %5 = load i8* %c, align 1, !dbg !57
72 %conv3 = sext i8 %5 to i32, !dbg !57
73 %conv4 = sitofp i32 %conv3 to double, !dbg !57
74 %mul5 = fmul double %mul, %conv4, !dbg !57
75 %6 = load i16* %us.addr, align 2, !dbg !57
76 %conv6 = zext i16 %6 to i32, !dbg !57
77 %conv7 = sitofp i32 %conv6 to double, !dbg !57
78 %mul8 = fmul double %mul5, %conv7, !dbg !57
79 %7 = load i64* %l.addr, align 8, !dbg !57
80 %conv9 = uitofp i64 %7 to double, !dbg !57
81 %mul10 = fmul double %mul8, %conv9, !dbg !57
82 %call = call i32 @_Z3foov(), !dbg !57
83 %conv11 = sitofp i32 %call to double, !dbg !57
84 %add = fadd double %mul10, %conv11, !dbg !57
85 store double %add, double* %result, align 8, !dbg !57
86 %8 = load double* %result, align 8, !dbg !58
87 ret double %8, !dbg !58
7388 }
7489
7590 declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
85100 %result = alloca double, align 8
86101 store i32 0, i32* %retval
87102 store i32 %argc, i32* %argc.addr, align 4
88 call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !62), !dbg !63
103 call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !59), !dbg !60
89104 store i8** %argv, i8*** %argv.addr, align 8
90 call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !64), !dbg !67
91 call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !68), !dbg !70
92 call void @llvm.dbg.declare(metadata !{float* %f}, metadata !71), !dbg !72
93 store float 0.000000e+00, float* %f, align 4, !dbg !73
94 call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !74), !dbg !77
95 %0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !78
96 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast ([2 x [2 x double]]* @_ZZ4mainE1d to i8*), i64 32, i32 16, i1 false), !dbg !78
97 %c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !79
98 store i8 97, i8* %c, align 1, !dbg !79
99 %c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !80
100 %arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !80
101 store i8 48, i8* %arrayidx, align 1, !dbg !80
102 %c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !81
103 %arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !81
104 store i8 49, i8* %arrayidx2, align 1, !dbg !81
105 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !82), !dbg !83
106 %arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !84
107 %call = call double @_Z15test_parametersPfPA2_dR11char_structPPitm(float* %f, [2 x double]* %arraydecay, %struct.char_struct* %s, i32** null, i16 zeroext 10, i64 42), !dbg !84
108 store double %call, double* %result, align 8, !dbg !84
109 %1 = load double* %result, align 8, !dbg !85
110 %cmp = fcmp oeq double %1, 0.000000e+00, !dbg !85
111 %cond = select i1 %cmp, i32 0, i32 -1, !dbg !85
112 ret i32 %cond, !dbg !85
105 call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !61), !dbg !60
106 call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !62), !dbg !64
107 call void @llvm.dbg.declare(metadata !{float* %f}, metadata !65), !dbg !66
108 store float 0.000000e+00, float* %f, align 4, !dbg !66
109 call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !67), !dbg !70
110 %0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !70
111 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast ([2 x [2 x double]]* @_ZZ4mainE1d to i8*), i64 32, i32 16, i1 false), !dbg !70
112 %c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !71
113 store i8 97, i8* %c, align 1, !dbg !71
114 %c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !72
115 %arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !72
116 store i8 48, i8* %arrayidx, align 1, !dbg !72
117 %c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !73
118 %arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !73
119 store i8 49, i8* %arrayidx2, align 1, !dbg !73
120 call void @llvm.dbg.declare(metadata !{double* %result}, metadata !74), !dbg !75
121 %arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !75
122 %call = call double @_Z15test_parametersPfPA2_dR11char_structPPitm(float* %f, [2 x double]* %arraydecay, %struct.char_struct* %s, i32** null, i16 zeroext 10, i64 42), !dbg !75
123 store double %call, double* %result, align 8, !dbg !75
124 %1 = load double* %result, align 8, !dbg !76
125 %cmp = fcmp oeq double %1, 0.000000e+00, !dbg !76
126 %cond = select i1 %cmp, i32 0, i32 -1, !dbg !76
127 ret i32 %cond, !dbg !76
113128 }
114129
115130 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
116131
117132 !llvm.dbg.cu = !{!0}
118133
119 !0 = metadata !{i32 720913, i32 0, i32 4, metadata !"test-parameters.cpp", metadata !"/home/athirumurthi/dev/opencl-mc/build/RH64/Debug/backend/llvm", metadata !"clang version 3.0 (branches/release_30 36797)", i1 true, i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !3, metadata !17} ; [ DW_TAG_compile_unit ]
134 !0 = metadata !{i32 786449, i32 0, i32 4, metadata !"test-parameters.cpp", metadata !"/home/akaylor/dev", metadata !"clang version 3.3 (ssh://akaylor@git-amr-1.devtools.intel.com:29418/ssg_llvm-clang2 gitosis@miro.kw.intel.com:clang.git 39450d0469e0d5589ad39fd0b20b5742750619a0) (ssh://akaylor@git-amr-1.devtools.intel.com:29418/ssg_llvm-llvm gitosis@miro.kw.intel.com:llvm.git 376642ed620ecae05b68c7bc81f79aeb2065abe0)", i1 true, i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !3, metadata !43} ; [ DW_TAG_compile_unit ] [/home/akaylor/dev/test-parameters.cpp] [DW_LANG_C_plus_plus]
120135 !1 = metadata !{metadata !2}
121136 !2 = metadata !{i32 0}
122137 !3 = metadata !{metadata !4}
123 !4 = metadata !{metadata !5, metadata !12, metadata !16}
124 !5 = metadata !{i32 720942, i32 0, metadata !6, metadata !"foo", metadata !"foo", metadata !"_Z3foov", metadata !6, i32 28, metadata !7, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, i32 ()* @_Z3foov, null, null, metadata !10} ; [ DW_TAG_subprogram ]
125 !6 = metadata !{i32 720937, metadata !"test-parameters.cpp", metadata !"/home/athirumurthi/dev/opencl-mc/build/RH64/Debug/backend/llvm", null} ; [ DW_TAG_file_type ]
126 !7 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !8, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
138 !4 = metadata !{metadata !5, metadata !10, metadata !38}
139 !5 = metadata !{i32 786478, i32 0, metadata !6, metadata !"foo", metadata !"foo", metadata !"_Z3foov", metadata !6, i32 27, metadata !7, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 ()* @_Z3foov, null, null, metadata !1, i32 28} ; [ DW_TAG_subprogram ] [line 27] [def] [scope 28] [foo]
140 !6 = metadata !{i32 786473, metadata !"test-parameters.cpp", metadata !"/home/akaylor/dev", null} ; [ DW_TAG_file_type ]
141 !7 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !8, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
127142 !8 = metadata !{metadata !9}
128 !9 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
129 !10 = metadata !{metadata !11}
130 !11 = metadata !{i32 720932} ; [ DW_TAG_base_type ]
131 !12 = metadata !{i32 720942, i32 0, metadata !6, metadata !"test_parameters", metadata !"test_parameters", metadata !"_Z15test_parametersPfPA2_dR11char_structPPitm", metadata !6, i32 33, metadata !13, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, double (float*, [2 x double]*, %struct.char_struct*, i32**, i16, i64)* @_Z15test_parametersPfPA2_dR11char_structPPitm, null, null, metadata !10} ; [ DW_TAG_subprogram ]
132 !13 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !14, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
133 !14 = metadata !{metadata !15}
134 !15 = metadata !{i32 720932, null, metadata !"double", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
135 !16 = metadata !{i32 720942, i32 0, metadata !6, metadata !"main", metadata !"main", metadata !"", metadata !6, i32 39, metadata !7, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, i32 (i32, i8**)* @main, null, null, metadata !10} ; [ DW_TAG_subprogram ]
136 !17 = metadata !{metadata !18}
143 !9 = metadata !{i32 786468, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
144 !10 = metadata !{i32 786478, i32 0, metadata !6, metadata !"test_parameters", metadata !"test_parameters", metadata !"_Z15test_parametersPfPA2_dR11char_structPPitm", metadata !6, i32 32, metadata !11, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, double (float*, [2 x double]*, %struct.char_struct*, i32**, i16, i64)* @_Z15test_parametersPfPA2_dR11char_structPPitm, null, null, metadata !1, i32 33} ; [ DW_TAG_subprogram ] [line 32] [def] [scope 33] [test_parameters]
145 !11 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !12, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
146 !12 = metadata !{metadata !13, metadata !14, metadata !16, metadata !20, metadata !33, metadata !35, metadata !36}
147 !13 = metadata !{i32 786468, null, metadata !"double", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] [double] [line 0, size 64, align 64, offset 0, enc DW_ATE_float]
148 !14 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !15} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from float]
149 !15 = metadata !{i32 786468, null, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] [float] [line 0, size 32, align 32, offset 0, enc DW_ATE_float]
150 !16 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !17} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ]
151 !17 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 128, i64 64, i32 0, i32 0, metadata !13, metadata !18, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 128, align 64, offset 0] [from double]
137152 !18 = metadata !{metadata !19}
138 !19 = metadata !{i32 720948, i32 0, null, metadata !"compound_char", metadata !"compound_char", metadata !"", metadata !6, i32 25, metadata !20, i32 0, i32 1, %struct.char_struct* @compound_char} ; [ DW_TAG_variable ]
139 !20 = metadata !{i32 720898, null, metadata !"char_struct", metadata !6, i32 22, i64 24, i64 8, i32 0, i32 0, null, metadata !21, i32 0, null, null} ; [ DW_TAG_class_type ]
140 !21 = metadata !{metadata !22, metadata !24, metadata !28}
141 !22 = metadata !{i32 720909, metadata !20, metadata !"c", metadata !6, i32 23, i64 8, i64 8, i64 0, i32 0, metadata !23} ; [ DW_TAG_member ]
142 !23 = metadata !{i32 720932, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
143 !24 = metadata !{i32 720909, metadata !20, metadata !"c2", metadata !6, i32 24, i64 16, i64 8, i64 8, i32 0, metadata !25} ; [ DW_TAG_member ]
144 !25 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 16, i64 8, i32 0, i32 0, metadata !23, metadata !26, i32 0, i32 0} ; [ DW_TAG_array_type ]
145 !26 = metadata !{metadata !27}
146 !27 = metadata !{i32 720929, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
147 !28 = metadata !{i32 720942, i32 0, metadata !20, metadata !"char_struct", metadata !"char_struct", metadata !"", metadata !6, i32 22, metadata !29, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !10} ; [ DW_TAG_subprogram ]
148 !29 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !30, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
149 !30 = metadata !{null, metadata !31}
150 !31 = metadata !{i32 720911, i32 0, metadata !"", i32 0, i32 0, i64 64, i64 64, i64 0, i32 64, metadata !20} ; [ DW_TAG_pointer_type ]
151 !32 = metadata !{i32 29, i32 3, metadata !33, null}
152 !33 = metadata !{i32 720907, metadata !5, i32 28, i32 1, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
153 !34 = metadata !{i32 721153, metadata !12, metadata !"pf", metadata !6, i32 16777248, metadata !35, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
154 !35 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !36} ; [ DW_TAG_pointer_type ]
155 !36 = metadata !{i32 720932, null, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
156 !37 = metadata !{i32 32, i32 31, metadata !12, null}
157 !38 = metadata !{i32 721153, metadata !12, metadata !"ppd", metadata !6, i32 33554464, metadata !39, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
158 !39 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !40} ; [ DW_TAG_pointer_type ]
159 !40 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 128, i64 64, i32 0, i32 0, metadata !15, metadata !26, i32 0, i32 0} ; [ DW_TAG_array_type ]
160 !41 = metadata !{i32 32, i32 42, metadata !12, null}
161 !42 = metadata !{i32 721153, metadata !12, metadata !"s", metadata !6, i32 50331680, metadata !43, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
162 !43 = metadata !{i32 720912, null, null, null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !20} ; [ DW_TAG_reference_type ]
163 !44 = metadata !{i32 32, i32 72, metadata !12, null}
164 !45 = metadata !{i32 721153, metadata !12, metadata !"ppn", metadata !6, i32 67108896, metadata !46, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
165 !46 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !47} ; [ DW_TAG_pointer_type ]
166 !47 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !9} ; [ DW_TAG_pointer_type ]
167 !48 = metadata !{i32 32, i32 81, metadata !12, null}
168 !49 = metadata !{i32 721153, metadata !12, metadata !"us", metadata !6, i32 83886112, metadata !50, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
169 !50 = metadata !{i32 720932, null, metadata !"unsigned short", null, i32 0, i64 16, i64 16, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
170 !51 = metadata !{i32 32, i32 105, metadata !12, null}
171 !52 = metadata !{i32 721153, metadata !12, metadata !"l", metadata !6, i32 100663328, metadata !53, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
172 !53 = metadata !{i32 720934, null, metadata !"", null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !54} ; [ DW_TAG_const_type ]
173 !54 = metadata !{i32 720932, null, metadata !"long unsigned int", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
174 !55 = metadata !{i32 32, i32 135, metadata !12, null}
175 !56 = metadata !{i32 721152, metadata !57, metadata !"result", metadata !6, i32 34, metadata !15, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
176 !57 = metadata !{i32 720907, metadata !12, i32 33, i32 1, metadata !6, i32 1} ; [ DW_TAG_lexical_block ]
177 !58 = metadata !{i32 34, i32 10, metadata !57, null}
178 !59 = metadata !{i32 34, i32 59, metadata !57, null}
179 !60 = metadata !{i32 34, i32 54, metadata !57, null}
180 !61 = metadata !{i32 35, i32 3, metadata !57, null}
181 !62 = metadata !{i32 721153, metadata !16, metadata !"argc", metadata !6, i32 16777254, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
182 !63 = metadata !{i32 38, i32 14, metadata !16, null}
183 !64 = metadata !{i32 721153, metadata !16, metadata !"argv", metadata !6, i32 33554470, metadata !65, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
184 !65 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !66} ; [ DW_TAG_pointer_type ]
185 !66 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !23} ; [ DW_TAG_pointer_type ]
186 !67 = metadata !{i32 38, i32 26, metadata !16, null}
187 !68 = metadata !{i32 721152, metadata !69, metadata !"s", metadata !6, i32 40, metadata !20, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
188 !69 = metadata !{i32 720907, metadata !16, i32 39, i32 1, metadata !6, i32 2} ; [ DW_TAG_lexical_block ]
189 !70 = metadata !{i32 40, i32 22, metadata !69, null}
190 !71 = metadata !{i32 721152, metadata !69, metadata !"f", metadata !6, i32 41, metadata !36, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
191 !72 = metadata !{i32 41, i32 9, metadata !69, null}
192 !73 = metadata !{i32 41, i32 16, metadata !69, null}
193 !74 = metadata !{i32 721152, metadata !69, metadata !"d", metadata !6, i32 42, metadata !75, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
194 !75 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 256, i64 64, i32 0, i32 0, metadata !15, metadata !76, i32 0, i32 0} ; [ DW_TAG_array_type ]
195 !76 = metadata !{metadata !27, metadata !27}
196 !77 = metadata !{i32 42, i32 10, metadata !69, null}
197 !78 = metadata !{i32 42, i32 38, metadata !69, null}
198 !79 = metadata !{i32 44, i32 3, metadata !69, null}
199 !80 = metadata !{i32 45, i32 3, metadata !69, null}
200 !81 = metadata !{i32 46, i32 3, metadata !69, null}
201 !82 = metadata !{i32 721152, metadata !69, metadata !"result", metadata !6, i32 48, metadata !15, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
202 !83 = metadata !{i32 48, i32 10, metadata !69, null}
203 !84 = metadata !{i32 48, i32 19, metadata !69, null}
204 !85 = metadata !{i32 49, i32 3, metadata !69, null}
153 !19 = metadata !{i32 786465, i64 0, i64 2} ; [ DW_TAG_subrange_type ] [0, 1]
154 !20 = metadata !{i32 786448, null, null, null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !21} ; [ DW_TAG_reference_type ] [line 0, size 0, align 0, offset 0] [from char_struct]
155 !21 = metadata !{i32 786451, null, metadata !"char_struct", metadata !6, i32 22, i64 24, i64 8, i32 0, i32 0, null, metadata !22, i32 0, null, null} ; [ DW_TAG_structure_type ] [char_struct] [line 22, size 24, align 8, offset 0] [from ]
156 !22 = metadata !{metadata !23, metadata !25, metadata !27}
157 !23 = metadata !{i32 786445, metadata !21, metadata !"c", metadata !6, i32 23, i64 8, i64 8, i64 0, i32 0, metadata !24} ; [ DW_TAG_member ] [c] [line 23, size 8, align 8, offset 0] [from char]
158 !24 = metadata !{i32 786468, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ] [char] [line 0, size 8, align 8, offset 0, enc DW_ATE_signed_char]
159 !25 = metadata !{i32 786445, metadata !21, metadata !"c2", metadata !6, i32 24, i64 16, i64 8, i64 8, i32 0, metadata !26} ; [ DW_TAG_member ] [c2] [line 24, size 16, align 8, offset 8] [from ]
160 !26 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 16, i64 8, i32 0, i32 0, metadata !24, metadata !18, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 16, align 8, offset 0] [from char]
161 !27 = metadata !{i32 786478, i32 0, metadata !21, metadata !"char_struct", metadata !"char_struct", metadata !"", metadata !6, i32 22, metadata !28, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !31, i32 22} ; [ DW_TAG_subprogram ] [line 22] [char_struct]
162 !28 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !29, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
163 !29 = metadata !{null, metadata !30}
164 !30 = metadata !{i32 786447, i32 0, metadata !"", i32 0, i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !21} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from char_struct]
165 !31 = metadata !{metadata !32}
166 !32 = metadata !{i32 786468} ; [ DW_TAG_base_type ] [line 0, size 0, align 0, offset 0]
167 !33 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !34} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ]
168 !34 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !9} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from int]
169 !35 = metadata !{i32 786468, null, metadata !"unsigned short", null, i32 0, i64 16, i64 16, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ] [unsigned short] [line 0, size 16, align 16, offset 0, enc DW_ATE_unsigned]
170 !36 = metadata !{i32 786470, null, metadata !"", null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !37} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from long unsigned int]
171 !37 = metadata !{i32 786468, null, metadata !"long unsigned int", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ] [long unsigned int] [line 0, size 64, align 64, offset 0, enc DW_ATE_unsigned]
172 !38 = metadata !{i32 786478, i32 0, metadata !6, metadata !"main", metadata !"main", metadata !"", metadata !6, i32 38, metadata !39, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 (i32, i8**)* @main, null, null, metadata !1, i32 39} ; [ DW_TAG_subprogram ] [line 38] [def] [scope 39] [main]
173 !39 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !40, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
174 !40 = metadata !{metadata !9, metadata !9, metadata !41}
175 !41 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !42} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ]
176 !42 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !24} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from char]
177 !43 = metadata !{metadata !44}
178 !44 = metadata !{metadata !45}
179 !45 = metadata !{i32 786484, i32 0, null, metadata !"compound_char", metadata !"compound_char", metadata !"", metadata !6, i32 25, metadata !21, i32 0, i32 1, %struct.char_struct* @compound_char} ; [ DW_TAG_variable ] [compound_char] [line 25] [def]
180 !46 = metadata !{i32 29, i32 0, metadata !47, null}
181 !47 = metadata !{i32 786443, metadata !5, i32 28, i32 0, metadata !6, i32 0} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-parameters.cpp]
182 !48 = metadata !{i32 786689, metadata !10, metadata !"pf", metadata !6, i32 16777248, metadata !14, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [pf] [line 32]
183 !49 = metadata !{i32 32, i32 0, metadata !10, null}
184 !50 = metadata !{i32 786689, metadata !10, metadata !"ppd", metadata !6, i32 33554464, metadata !16, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [ppd] [line 32]
185 !51 = metadata !{i32 786689, metadata !10, metadata !"s", metadata !6, i32 50331680, metadata !20, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [s] [line 32]
186 !52 = metadata !{i32 786689, metadata !10, metadata !"ppn", metadata !6, i32 67108896, metadata !33, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [ppn] [line 32]
187 !53 = metadata !{i32 786689, metadata !10, metadata !"us", metadata !6, i32 83886112, metadata !35, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [us] [line 32]
188 !54 = metadata !{i32 786689, metadata !10, metadata !"l", metadata !6, i32 100663328, metadata !36, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [l] [line 32]
189 !55 = metadata !{i32 786688, metadata !56, metadata !"result", metadata !6, i32 34, metadata !13, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [result] [line 34]
190 !56 = metadata !{i32 786443, metadata !10, i32 33, i32 0, metadata !6, i32 1} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-parameters.cpp]
191 !57 = metadata !{i32 34, i32 0, metadata !56, null}
192 !58 = metadata !{i32 35, i32 0, metadata !56, null}
193 !59 = metadata !{i32 786689, metadata !38, metadata !"argc", metadata !6, i32 16777254, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [argc] [line 38]
194 !60 = metadata !{i32 38, i32 0, metadata !38, null}
195 !61 = metadata !{i32 786689, metadata !38, metadata !"argv", metadata !6, i32 33554470, metadata !41, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [argv] [line 38]
196 !62 = metadata !{i32 786688, metadata !63, metadata !"s", metadata !6, i32 40, metadata !21, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [s] [line 40]
197 !63 = metadata !{i32 786443, metadata !38, i32 39, i32 0, metadata !6, i32 2} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-parameters.cpp]
198 !64 = metadata !{i32 40, i32 0, metadata !63, null}
199 !65 = metadata !{i32 786688, metadata !63, metadata !"f", metadata !6, i32 41, metadata !15, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [f] [line 41]
200 !66 = metadata !{i32 41, i32 0, metadata !63, null}
201 !67 = metadata !{i32 786688, metadata !63, metadata !"d", metadata !6, i32 42, metadata !68, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [d] [line 42]
202 !68 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 256, i64 64, i32 0, i32 0, metadata !13, metadata !69, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 256, align 64, offset 0] [from double]
203 !69 = metadata !{metadata !19, metadata !19}
204 !70 = metadata !{i32 42, i32 0, metadata !63, null}
205 !71 = metadata !{i32 44, i32 0, metadata !63, null}
206 !72 = metadata !{i32 45, i32 0, metadata !63, null}
207 !73 = metadata !{i32 46, i32 0, metadata !63, null}
208 !74 = metadata !{i32 786688, metadata !63, metadata !"result", metadata !6, i32 48, metadata !13, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [result] [line 48]
209 !75 = metadata !{i32 48, i32 0, metadata !63, null}
210 !76 = metadata !{i32 49, i32 0, metadata !63, null}
1010 if( LLVM_USE_INTEL_JITEVENTS )
1111 set(LLVM_LINK_COMPONENTS
1212 ${LLVM_LINK_COMPONENTS}
13 DebugInfo
1314 IntelJITEvents
15 Object
1416 )
1517 endif( LLVM_USE_INTEL_JITEVENTS )
1618
1616 # If Intel JIT Events support is confiured, link against the LLVM Intel JIT
1717 # Events interface library
1818 ifeq ($(USE_INTEL_JITEVENTS), 1)
19 LINK_COMPONENTS += inteljitevents
19 LINK_COMPONENTS += debuginfo inteljitevents object
2020 endif
2121
2222 # If oprofile support is confiured, link against the LLVM oprofile interface
55 set(LLVM_LINK_COMPONENTS
66 asmparser
77 bitreader
8 debuginfo
89 inteljitevents
910 interpreter
1011 jit
1717 # Events interface library. If not, this tool will do nothing useful, but it
1818 # will build correctly.
1919 ifeq ($(USE_INTEL_JITEVENTS), 1)
20 LINK_COMPONENTS += inteljitevents
20 LINK_COMPONENTS += debuginfo inteljitevents
2121 endif
2222
2323 # This tool has no plugins, optimize startup time.
1818 )
1919 set(LLVM_LINK_COMPONENTS
2020 ${LLVM_LINK_COMPONENTS}
21 DebugInfo
2122 IntelJITEvents
23 Object
2224 )
2325 endif( LLVM_USE_INTEL_JITEVENTS )
2426
2323 CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR)
2424
2525 # Link against the LLVM Intel JIT Evens interface library
26 LINK_COMPONENTS += inteljitevents
26 LINK_COMPONENTS += debuginfo inteljitevents object
2727 endif
2828
2929 ifeq ($(USE_OPROFILE), 1)