mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
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
This commit is contained in:
parent
3c1c042a64
commit
710cb0c782
@ -22,7 +22,9 @@
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/DebugInfo/DIContext.h"
|
||||
#include "llvm/ExecutionEngine/ObjectImage.h"
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Support/Errno.h"
|
||||
@ -78,6 +80,18 @@ static LineNumberInfo LineStartToIntelJITFormat(
|
||||
return Result;
|
||||
}
|
||||
|
||||
static LineNumberInfo DILineInfoToIntelJITFormat(uintptr_t StartAddress,
|
||||
uintptr_t Address,
|
||||
DILineInfo Line)
|
||||
{
|
||||
LineNumberInfo Result;
|
||||
|
||||
Result.Offset = Address - StartAddress;
|
||||
Result.LineNumber = Line.getLine();
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
static iJIT_Method_Load FunctionDescToIntelJITFormat(
|
||||
IntelJITEventsWrapper& Wrapper,
|
||||
const char* FnName,
|
||||
@ -177,6 +191,7 @@ void IntelJITEventListener::NotifyFreeingMachineCode(void *FnStart) {
|
||||
void IntelJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) {
|
||||
// Get the address of the object image for use as a unique identifier
|
||||
const void* ObjData = Obj.getData().data();
|
||||
DIContext* Context = DIContext::getDWARFContext(Obj.getObjectFile());
|
||||
MethodAddressVector Functions;
|
||||
|
||||
// Use symbol info to iterate functions in the object.
|
||||
@ -185,12 +200,15 @@ void IntelJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) {
|
||||
E = Obj.end_symbols();
|
||||
I != E && !ec;
|
||||
I.increment(ec)) {
|
||||
std::vector<LineNumberInfo> LineInfo;
|
||||
std::string SourceFileName;
|
||||
|
||||
object::SymbolRef::Type SymType;
|
||||
if (I->getType(SymType)) continue;
|
||||
if (SymType == object::SymbolRef::ST_Function) {
|
||||
StringRef Name;
|
||||
uint64_t Addr;
|
||||
uint64_t Size;
|
||||
StringRef Name;
|
||||
uint64_t Addr;
|
||||
uint64_t Size;
|
||||
if (I->getName(Name)) continue;
|
||||
if (I->getAddress(Addr)) continue;
|
||||
if (I->getSize(Size)) continue;
|
||||
@ -203,11 +221,30 @@ void IntelJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) {
|
||||
Name.data(),
|
||||
Addr,
|
||||
Size);
|
||||
|
||||
// FIXME: Try to find line info for this function in the DWARF sections.
|
||||
FunctionMessage.source_file_name = 0;
|
||||
FunctionMessage.line_number_size = 0;
|
||||
FunctionMessage.line_number_table = 0;
|
||||
if (Context) {
|
||||
DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr, Size);
|
||||
DILineInfoTable::iterator Begin = Lines.begin();
|
||||
DILineInfoTable::iterator End = Lines.end();
|
||||
for (DILineInfoTable::iterator It = Begin; It != End; ++It) {
|
||||
LineInfo.push_back(DILineInfoToIntelJITFormat((uintptr_t)Addr,
|
||||
It->first,
|
||||
It->second));
|
||||
}
|
||||
if (LineInfo.size() == 0) {
|
||||
FunctionMessage.source_file_name = 0;
|
||||
FunctionMessage.line_number_size = 0;
|
||||
FunctionMessage.line_number_table = 0;
|
||||
} else {
|
||||
SourceFileName = Lines.front().second.getFileName();
|
||||
FunctionMessage.source_file_name = (char *)SourceFileName.c_str();
|
||||
FunctionMessage.line_number_size = LineInfo.size();
|
||||
FunctionMessage.line_number_table = &*LineInfo.begin();
|
||||
}
|
||||
} else {
|
||||
FunctionMessage.source_file_name = 0;
|
||||
FunctionMessage.line_number_size = 0;
|
||||
FunctionMessage.line_number_table = 0;
|
||||
}
|
||||
|
||||
Wrapper->iJIT_NotifyEvent(iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED,
|
||||
&FunctionMessage);
|
||||
|
@ -1,13 +1,29 @@
|
||||
; RUN: llvm-jitlistener %s | FileCheck %s
|
||||
|
||||
; CHECK: Method load [1]: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 165
|
||||
; CHECK: Method load [2]: _Z3food, Size = 39
|
||||
; CHECK: Method load [1]: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
|
||||
; CHECK: Line info @ 0: test-inline.cpp, line 33
|
||||
; CHECK: Line info @ 35: test-inline.cpp, line 34
|
||||
; CHECK: Line info @ 165: test-inline.cpp, line 35
|
||||
; CHECK: Method load [2]: _Z3foov, Size = 3
|
||||
; CHECK: Line info @ 0: test-inline.cpp, line 28
|
||||
; CHECK: Line info @ 2: test-inline.cpp, line 29
|
||||
; CHECK: Line info @ 3: test-inline.cpp, line 29
|
||||
; CHECK: Method load [3]: main, Size = 146
|
||||
; CHECK: Line info @ 0: test-inline.cpp, line 39
|
||||
; CHECK: Line info @ 21: test-inline.cpp, line 41
|
||||
; CHECK: Line info @ 39: test-inline.cpp, line 42
|
||||
; CHECK: Line info @ 60: test-inline.cpp, line 44
|
||||
; CHECK: Line info @ 80: test-inline.cpp, line 48
|
||||
; CHECK: Line info @ 90: test-inline.cpp, line 45
|
||||
; CHECK: Line info @ 95: test-inline.cpp, line 46
|
||||
; CHECK: Line info @ 114: test-inline.cpp, line 48
|
||||
; CHECK: Line info @ 141: test-inline.cpp, line 49
|
||||
; CHECK: Line info @ 146: test-inline.cpp, line 49
|
||||
; CHECK: Method unload [1]
|
||||
; CHECK: Method unload [2]
|
||||
; CHECK: Method unload [3]
|
||||
|
||||
; ModuleID = 'test-inline.bc'
|
||||
; ModuleID = 'test-inline.cpp'
|
||||
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"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
@ -25,64 +41,54 @@ entry:
|
||||
%us.addr = alloca i16, align 2
|
||||
%l.addr = alloca i64, align 8
|
||||
%result = alloca double, align 8
|
||||
%result2 = alloca i32, align 4
|
||||
store float* %pf, float** %pf.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !32), !dbg !35
|
||||
call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !46), !dbg !47
|
||||
store [2 x double]* %ppd, [2 x double]** %ppd.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !36), !dbg !39
|
||||
call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !48), !dbg !47
|
||||
store %struct.char_struct* %s, %struct.char_struct** %s.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !40), !dbg !42
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !49), !dbg !47
|
||||
store i32** %ppn, i32*** %ppn.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !43), !dbg !46
|
||||
call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !50), !dbg !47
|
||||
store i16 %us, i16* %us.addr, align 2
|
||||
call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !47), !dbg !49
|
||||
call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !51), !dbg !47
|
||||
store i64 %l, i64* %l.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !50), !dbg !53
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !54), !dbg !56
|
||||
%0 = load float** %pf.addr, align 8, !dbg !57
|
||||
%arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !57
|
||||
%1 = load float* %arrayidx, !dbg !57
|
||||
%conv = fpext float %1 to double, !dbg !57
|
||||
%2 = load [2 x double]** %ppd.addr, align 8, !dbg !57
|
||||
%arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !57
|
||||
%arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !57
|
||||
%3 = load double* %arrayidx2, !dbg !57
|
||||
%mul = fmul double %conv, %3, !dbg !57
|
||||
%4 = load %struct.char_struct** %s.addr, !dbg !57
|
||||
%c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !57
|
||||
%5 = load i8* %c, align 1, !dbg !57
|
||||
%conv3 = sext i8 %5 to i32, !dbg !57
|
||||
%conv4 = sitofp i32 %conv3 to double, !dbg !57
|
||||
%mul5 = fmul double %mul, %conv4, !dbg !57
|
||||
%6 = load i16* %us.addr, align 2, !dbg !57
|
||||
%conv6 = zext i16 %6 to i32, !dbg !57
|
||||
%conv7 = sitofp i32 %conv6 to double, !dbg !57
|
||||
%mul8 = fmul double %mul5, %conv7, !dbg !57
|
||||
%7 = load i64* %l.addr, align 8, !dbg !57
|
||||
%conv9 = uitofp i64 %7 to double, !dbg !57
|
||||
%mul10 = fmul double %mul8, %conv9, !dbg !57
|
||||
store double %mul10, double* %result, align 8, !dbg !57
|
||||
call void @llvm.dbg.declare(metadata !{i32* %result2}, metadata !58), !dbg !59
|
||||
%8 = load double* %result, align 8, !dbg !60
|
||||
%call = call i32 @_Z3food(double %8), !dbg !60
|
||||
store i32 %call, i32* %result2, align 4, !dbg !60
|
||||
%9 = load i32* %result2, align 4, !dbg !61
|
||||
%conv11 = sitofp i32 %9 to double, !dbg !61
|
||||
ret double %conv11, !dbg !61
|
||||
call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !52), !dbg !47
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !53), !dbg !55
|
||||
%0 = load float** %pf.addr, align 8, !dbg !55
|
||||
%arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !55
|
||||
%1 = load float* %arrayidx, align 4, !dbg !55
|
||||
%conv = fpext float %1 to double, !dbg !55
|
||||
%2 = load [2 x double]** %ppd.addr, align 8, !dbg !55
|
||||
%arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !55
|
||||
%arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !55
|
||||
%3 = load double* %arrayidx2, align 8, !dbg !55
|
||||
%mul = fmul double %conv, %3, !dbg !55
|
||||
%4 = load %struct.char_struct** %s.addr, align 8, !dbg !55
|
||||
%c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !55
|
||||
%5 = load i8* %c, align 1, !dbg !55
|
||||
%conv3 = sext i8 %5 to i32, !dbg !55
|
||||
%conv4 = sitofp i32 %conv3 to double, !dbg !55
|
||||
%mul5 = fmul double %mul, %conv4, !dbg !55
|
||||
%6 = load i16* %us.addr, align 2, !dbg !55
|
||||
%conv6 = zext i16 %6 to i32, !dbg !55
|
||||
%conv7 = sitofp i32 %conv6 to double, !dbg !55
|
||||
%mul8 = fmul double %mul5, %conv7, !dbg !55
|
||||
%7 = load i64* %l.addr, align 8, !dbg !55
|
||||
%conv9 = uitofp i64 %7 to double, !dbg !55
|
||||
%mul10 = fmul double %mul8, %conv9, !dbg !55
|
||||
%call = call i32 @_Z3foov(), !dbg !55
|
||||
%conv11 = sitofp i32 %call to double, !dbg !55
|
||||
%add = fadd double %mul10, %conv11, !dbg !55
|
||||
store double %add, double* %result, align 8, !dbg !55
|
||||
%8 = load double* %result, align 8, !dbg !56
|
||||
ret double %8, !dbg !56
|
||||
}
|
||||
|
||||
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
|
||||
|
||||
define linkonce_odr i32 @_Z3food(double %input) nounwind uwtable inlinehint {
|
||||
define linkonce_odr i32 @_Z3foov() nounwind uwtable inlinehint {
|
||||
entry:
|
||||
%input.addr = alloca double, align 8
|
||||
store double %input, double* %input.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{double* %input.addr}, metadata !62), !dbg !63
|
||||
%0 = load double* %input.addr, align 8, !dbg !64
|
||||
%div = fdiv double %0, 3.000000e+00, !dbg !64
|
||||
%add = fadd double %div, 1.000000e+00, !dbg !64
|
||||
%conv = fptosi double %add to i32, !dbg !64
|
||||
ret i32 %conv, !dbg !64
|
||||
ret i32 0, !dbg !57
|
||||
}
|
||||
|
||||
define i32 @main(i32 %argc, i8** %argv) uwtable {
|
||||
@ -96,124 +102,111 @@ entry:
|
||||
%result = alloca double, align 8
|
||||
store i32 0, i32* %retval
|
||||
store i32 %argc, i32* %argc.addr, align 4
|
||||
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !66), !dbg !67
|
||||
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !59), !dbg !60
|
||||
store i8** %argv, i8*** %argv.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !68), !dbg !71
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !72), !dbg !74
|
||||
call void @llvm.dbg.declare(metadata !{float* %f}, metadata !75), !dbg !76
|
||||
store float 0.000000e+00, float* %f, align 4, !dbg !77
|
||||
call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !78), !dbg !81
|
||||
%0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !82
|
||||
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
|
||||
%c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !83
|
||||
store i8 97, i8* %c, align 1, !dbg !83
|
||||
%c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !84
|
||||
%arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !84
|
||||
store i8 48, i8* %arrayidx, align 1, !dbg !84
|
||||
%c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !85
|
||||
%arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !85
|
||||
store i8 49, i8* %arrayidx2, align 1, !dbg !85
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !86), !dbg !87
|
||||
%arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !88
|
||||
%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
|
||||
store double %call, double* %result, align 8, !dbg !88
|
||||
%1 = load double* %result, align 8, !dbg !89
|
||||
%cmp = fcmp oeq double %1, 0.000000e+00, !dbg !89
|
||||
%cond = select i1 %cmp, i32 0, i32 -1, !dbg !89
|
||||
ret i32 %cond, !dbg !89
|
||||
call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !61), !dbg !60
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !62), !dbg !64
|
||||
call void @llvm.dbg.declare(metadata !{float* %f}, metadata !65), !dbg !66
|
||||
store float 0.000000e+00, float* %f, align 4, !dbg !66
|
||||
call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !67), !dbg !70
|
||||
%0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !70
|
||||
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
|
||||
%c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !71
|
||||
store i8 97, i8* %c, align 1, !dbg !71
|
||||
%c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !72
|
||||
%arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !72
|
||||
store i8 48, i8* %arrayidx, align 1, !dbg !72
|
||||
%c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !73
|
||||
%arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !73
|
||||
store i8 49, i8* %arrayidx2, align 1, !dbg !73
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !74), !dbg !75
|
||||
%arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !75
|
||||
%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
|
||||
store double %call, double* %result, align 8, !dbg !75
|
||||
%1 = load double* %result, align 8, !dbg !76
|
||||
%cmp = fcmp oeq double %1, 0.000000e+00, !dbg !76
|
||||
%cond = select i1 %cmp, i32 0, i32 -1, !dbg !76
|
||||
ret i32 %cond, !dbg !76
|
||||
}
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
|
||||
!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 ]
|
||||
!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]
|
||||
!1 = metadata !{metadata !2}
|
||||
!2 = metadata !{i32 0}
|
||||
!3 = metadata !{metadata !4}
|
||||
!4 = metadata !{metadata !5, metadata !12, metadata !16}
|
||||
!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 ]
|
||||
!6 = metadata !{i32 720937, metadata !"test-inline.cpp", metadata !"/home/athirumurthi/dev/opencl-mc/build/RH64/Debug/backend/llvm", null} ; [ DW_TAG_file_type ]
|
||||
!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 ]
|
||||
!8 = metadata !{metadata !9}
|
||||
!9 = metadata !{i32 720932, null, metadata !"double", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
|
||||
!10 = metadata !{metadata !11}
|
||||
!11 = metadata !{i32 720932} ; [ DW_TAG_base_type ]
|
||||
!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 ]
|
||||
!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 ]
|
||||
!4 = metadata !{metadata !5, metadata !35, metadata !40}
|
||||
!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]
|
||||
!6 = metadata !{i32 786473, metadata !"test-inline.cpp", metadata !"/home/akaylor/dev", null} ; [ DW_TAG_file_type ]
|
||||
!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 ]
|
||||
!8 = metadata !{metadata !9, metadata !10, metadata !12, metadata !16, metadata !29, metadata !32, metadata !33}
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!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]
|
||||
!14 = metadata !{metadata !15}
|
||||
!15 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
||||
!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 ]
|
||||
!17 = metadata !{metadata !18}
|
||||
!18 = metadata !{metadata !19}
|
||||
!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 ]
|
||||
!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 ]
|
||||
!21 = metadata !{metadata !22, metadata !24, metadata !28}
|
||||
!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 ]
|
||||
!23 = metadata !{i32 720932, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
|
||||
!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 ]
|
||||
!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 ]
|
||||
!26 = metadata !{metadata !27}
|
||||
!27 = metadata !{i32 720929, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
|
||||
!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 ]
|
||||
!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 ]
|
||||
!30 = metadata !{null, metadata !31}
|
||||
!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 ]
|
||||
!32 = metadata !{i32 721153, metadata !5, metadata !"pf", metadata !6, i32 16777248, metadata !33, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!33 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !34} ; [ DW_TAG_pointer_type ]
|
||||
!34 = metadata !{i32 720932, null, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
|
||||
!35 = metadata !{i32 32, i32 31, metadata !5, null}
|
||||
!36 = metadata !{i32 721153, metadata !5, metadata !"ppd", metadata !6, i32 33554464, metadata !37, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!37 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !38} ; [ DW_TAG_pointer_type ]
|
||||
!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 ]
|
||||
!39 = metadata !{i32 32, i32 42, metadata !5, null}
|
||||
!40 = metadata !{i32 721153, metadata !5, metadata !"s", metadata !6, i32 50331680, metadata !41, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!41 = metadata !{i32 720912, null, null, null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !20} ; [ DW_TAG_reference_type ]
|
||||
!42 = metadata !{i32 32, i32 72, metadata !5, null}
|
||||
!43 = metadata !{i32 721153, metadata !5, metadata !"ppn", metadata !6, i32 67108896, metadata !44, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!44 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !45} ; [ DW_TAG_pointer_type ]
|
||||
!45 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !15} ; [ DW_TAG_pointer_type ]
|
||||
!46 = metadata !{i32 32, i32 81, metadata !5, null}
|
||||
!47 = metadata !{i32 721153, metadata !5, metadata !"us", metadata !6, i32 83886112, metadata !48, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!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 ]
|
||||
!49 = metadata !{i32 32, i32 105, metadata !5, null}
|
||||
!50 = metadata !{i32 721153, metadata !5, metadata !"l", metadata !6, i32 100663328, metadata !51, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!51 = metadata !{i32 720934, null, metadata !"", null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !52} ; [ DW_TAG_const_type ]
|
||||
!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 ]
|
||||
!53 = metadata !{i32 32, i32 135, metadata !5, null}
|
||||
!54 = metadata !{i32 721152, metadata !55, metadata !"result", metadata !6, i32 34, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!55 = metadata !{i32 720907, metadata !5, i32 33, i32 1, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
|
||||
!56 = metadata !{i32 34, i32 10, metadata !55, null}
|
||||
!57 = metadata !{i32 34, i32 51, metadata !55, null}
|
||||
!58 = metadata !{i32 721152, metadata !55, metadata !"result2", metadata !6, i32 35, metadata !15, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!59 = metadata !{i32 35, i32 7, metadata !55, null}
|
||||
!60 = metadata !{i32 35, i32 17, metadata !55, null}
|
||||
!61 = metadata !{i32 36, i32 3, metadata !55, null}
|
||||
!62 = metadata !{i32 721153, metadata !16, metadata !"input", metadata !6, i32 16777243, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!63 = metadata !{i32 27, i32 23, metadata !16, null}
|
||||
!64 = metadata !{i32 29, i32 3, metadata !65, null}
|
||||
!65 = metadata !{i32 720907, metadata !16, i32 28, i32 1, metadata !6, i32 2} ; [ DW_TAG_lexical_block ]
|
||||
!66 = metadata !{i32 721153, metadata !12, metadata !"argc", metadata !6, i32 16777255, metadata !15, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!67 = metadata !{i32 39, i32 14, metadata !12, null}
|
||||
!68 = metadata !{i32 721153, metadata !12, metadata !"argv", metadata !6, i32 33554471, metadata !69, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!69 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !70} ; [ DW_TAG_pointer_type ]
|
||||
!70 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !23} ; [ DW_TAG_pointer_type ]
|
||||
!71 = metadata !{i32 39, i32 26, metadata !12, null}
|
||||
!72 = metadata !{i32 721152, metadata !73, metadata !"s", metadata !6, i32 41, metadata !20, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!73 = metadata !{i32 720907, metadata !12, i32 40, i32 1, metadata !6, i32 1} ; [ DW_TAG_lexical_block ]
|
||||
!74 = metadata !{i32 41, i32 22, metadata !73, null}
|
||||
!75 = metadata !{i32 721152, metadata !73, metadata !"f", metadata !6, i32 42, metadata !34, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!76 = metadata !{i32 42, i32 9, metadata !73, null}
|
||||
!77 = metadata !{i32 42, i32 16, metadata !73, null}
|
||||
!78 = metadata !{i32 721152, metadata !73, metadata !"d", metadata !6, i32 43, metadata !79, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!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 ]
|
||||
!80 = metadata !{metadata !27, metadata !27}
|
||||
!81 = metadata !{i32 43, i32 10, metadata !73, null}
|
||||
!82 = metadata !{i32 43, i32 38, metadata !73, null}
|
||||
!83 = metadata !{i32 45, i32 3, metadata !73, null}
|
||||
!84 = metadata !{i32 46, i32 3, metadata !73, null}
|
||||
!85 = metadata !{i32 47, i32 3, metadata !73, null}
|
||||
!86 = metadata !{i32 721152, metadata !73, metadata !"result", metadata !6, i32 49, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!87 = metadata !{i32 49, i32 10, metadata !73, null}
|
||||
!88 = metadata !{i32 49, i32 19, metadata !73, null}
|
||||
!89 = metadata !{i32 50, i32 3, metadata !73, null}
|
||||
!15 = metadata !{i32 786465, i64 0, i64 2} ; [ DW_TAG_subrange_type ] [0, 1]
|
||||
!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]
|
||||
!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 ]
|
||||
!18 = metadata !{metadata !19, metadata !21, metadata !23}
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!25 = metadata !{null, metadata !26}
|
||||
!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]
|
||||
!27 = metadata !{metadata !28}
|
||||
!28 = metadata !{i32 786468} ; [ DW_TAG_base_type ] [line 0, size 0, align 0, offset 0]
|
||||
!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 ]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!37 = metadata !{metadata !31, metadata !31, metadata !38}
|
||||
!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 ]
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!42 = metadata !{metadata !31}
|
||||
!43 = metadata !{metadata !44}
|
||||
!44 = metadata !{metadata !45}
|
||||
!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]
|
||||
!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]
|
||||
!47 = metadata !{i32 32, i32 0, metadata !5, null}
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!54 = metadata !{i32 786443, metadata !5, i32 33, i32 0, metadata !6, i32 0} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-inline.cpp]
|
||||
!55 = metadata !{i32 34, i32 0, metadata !54, null}
|
||||
!56 = metadata !{i32 35, i32 0, metadata !54, null}
|
||||
!57 = metadata !{i32 29, i32 0, metadata !58, null}
|
||||
!58 = metadata !{i32 786443, metadata !40, i32 28, i32 0, metadata !6, i32 2} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-inline.cpp]
|
||||
!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]
|
||||
!60 = metadata !{i32 38, i32 0, metadata !35, null}
|
||||
!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]
|
||||
!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]
|
||||
!63 = metadata !{i32 786443, metadata !35, i32 39, i32 0, metadata !6, i32 1} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-inline.cpp]
|
||||
!64 = metadata !{i32 40, i32 0, metadata !63, null}
|
||||
!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]
|
||||
!66 = metadata !{i32 41, i32 0, metadata !63, null}
|
||||
!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]
|
||||
!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]
|
||||
!69 = metadata !{metadata !15, metadata !15}
|
||||
!70 = metadata !{i32 42, i32 0, metadata !63, null}
|
||||
!71 = metadata !{i32 44, i32 0, metadata !63, null}
|
||||
!72 = metadata !{i32 45, i32 0, metadata !63, null}
|
||||
!73 = metadata !{i32 46, i32 0, metadata !63, null}
|
||||
!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]
|
||||
!75 = metadata !{i32 48, i32 0, metadata !63, null}
|
||||
!76 = metadata !{i32 49, i32 0, metadata !63, null}
|
||||
|
@ -1,13 +1,28 @@
|
||||
; RUN: llvm-jitlistener %s | FileCheck %s
|
||||
|
||||
; CHECK: Method load [1]: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
|
||||
; CHECK: Line info @ 0: test-parameters.cpp, line 33
|
||||
; CHECK: Line info @ 35: test-parameters.cpp, line 34
|
||||
; CHECK: Line info @ 165: test-parameters.cpp, line 35
|
||||
; CHECK: Method load [2]: _Z3foov, Size = 3
|
||||
; CHECK: Line info @ 0: test-parameters.cpp, line 28
|
||||
; CHECK: Line info @ 2: test-parameters.cpp, line 29
|
||||
; CHECK: Method load [3]: main, Size = 146
|
||||
; CHECK: Line info @ 0: test-parameters.cpp, line 39
|
||||
; CHECK: Line info @ 21: test-parameters.cpp, line 41
|
||||
; CHECK: Line info @ 39: test-parameters.cpp, line 42
|
||||
; CHECK: Line info @ 60: test-parameters.cpp, line 44
|
||||
; CHECK: Line info @ 80: test-parameters.cpp, line 48
|
||||
; CHECK: Line info @ 90: test-parameters.cpp, line 45
|
||||
; CHECK: Line info @ 95: test-parameters.cpp, line 46
|
||||
; CHECK: Line info @ 114: test-parameters.cpp, line 48
|
||||
; CHECK: Line info @ 141: test-parameters.cpp, line 49
|
||||
; CHECK: Line info @ 146: test-parameters.cpp, line 49
|
||||
; CHECK: Method unload [1]
|
||||
; CHECK: Method unload [2]
|
||||
; CHECK: Method unload [3]
|
||||
|
||||
; ModuleID = 'test-parameters.bc'
|
||||
; ModuleID = 'test-parameters.cpp'
|
||||
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"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
@ -18,7 +33,7 @@ target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
define i32 @_Z3foov() nounwind uwtable {
|
||||
entry:
|
||||
ret i32 0, !dbg !32
|
||||
ret i32 0, !dbg !46
|
||||
}
|
||||
|
||||
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 {
|
||||
@ -31,46 +46,46 @@ entry:
|
||||
%l.addr = alloca i64, align 8
|
||||
%result = alloca double, align 8
|
||||
store float* %pf, float** %pf.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !34), !dbg !37
|
||||
call void @llvm.dbg.declare(metadata !{float** %pf.addr}, metadata !48), !dbg !49
|
||||
store [2 x double]* %ppd, [2 x double]** %ppd.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !38), !dbg !41
|
||||
call void @llvm.dbg.declare(metadata !{[2 x double]** %ppd.addr}, metadata !50), !dbg !49
|
||||
store %struct.char_struct* %s, %struct.char_struct** %s.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !42), !dbg !44
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct** %s.addr}, metadata !51), !dbg !49
|
||||
store i32** %ppn, i32*** %ppn.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !45), !dbg !48
|
||||
call void @llvm.dbg.declare(metadata !{i32*** %ppn.addr}, metadata !52), !dbg !49
|
||||
store i16 %us, i16* %us.addr, align 2
|
||||
call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !49), !dbg !51
|
||||
call void @llvm.dbg.declare(metadata !{i16* %us.addr}, metadata !53), !dbg !49
|
||||
store i64 %l, i64* %l.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !52), !dbg !55
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !56), !dbg !58
|
||||
%0 = load float** %pf.addr, align 8, !dbg !59
|
||||
%arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !59
|
||||
%1 = load float* %arrayidx, !dbg !59
|
||||
%conv = fpext float %1 to double, !dbg !59
|
||||
%2 = load [2 x double]** %ppd.addr, align 8, !dbg !59
|
||||
%arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !59
|
||||
%arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !59
|
||||
%3 = load double* %arrayidx2, !dbg !59
|
||||
%mul = fmul double %conv, %3, !dbg !59
|
||||
%4 = load %struct.char_struct** %s.addr, !dbg !59
|
||||
%c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !59
|
||||
%5 = load i8* %c, align 1, !dbg !59
|
||||
%conv3 = sext i8 %5 to i32, !dbg !59
|
||||
%conv4 = sitofp i32 %conv3 to double, !dbg !59
|
||||
%mul5 = fmul double %mul, %conv4, !dbg !59
|
||||
%6 = load i16* %us.addr, align 2, !dbg !59
|
||||
%conv6 = zext i16 %6 to i32, !dbg !59
|
||||
%conv7 = sitofp i32 %conv6 to double, !dbg !59
|
||||
%mul8 = fmul double %mul5, %conv7, !dbg !59
|
||||
%7 = load i64* %l.addr, align 8, !dbg !59
|
||||
%conv9 = uitofp i64 %7 to double, !dbg !59
|
||||
%mul10 = fmul double %mul8, %conv9, !dbg !59
|
||||
%call = call i32 @_Z3foov(), !dbg !60
|
||||
%conv11 = sitofp i32 %call to double, !dbg !60
|
||||
%add = fadd double %mul10, %conv11, !dbg !60
|
||||
store double %add, double* %result, align 8, !dbg !60
|
||||
%8 = load double* %result, align 8, !dbg !61
|
||||
ret double %8, !dbg !61
|
||||
call void @llvm.dbg.declare(metadata !{i64* %l.addr}, metadata !54), !dbg !49
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !55), !dbg !57
|
||||
%0 = load float** %pf.addr, align 8, !dbg !57
|
||||
%arrayidx = getelementptr inbounds float* %0, i64 0, !dbg !57
|
||||
%1 = load float* %arrayidx, align 4, !dbg !57
|
||||
%conv = fpext float %1 to double, !dbg !57
|
||||
%2 = load [2 x double]** %ppd.addr, align 8, !dbg !57
|
||||
%arrayidx1 = getelementptr inbounds [2 x double]* %2, i64 1, !dbg !57
|
||||
%arrayidx2 = getelementptr inbounds [2 x double]* %arrayidx1, i32 0, i64 1, !dbg !57
|
||||
%3 = load double* %arrayidx2, align 8, !dbg !57
|
||||
%mul = fmul double %conv, %3, !dbg !57
|
||||
%4 = load %struct.char_struct** %s.addr, align 8, !dbg !57
|
||||
%c = getelementptr inbounds %struct.char_struct* %4, i32 0, i32 0, !dbg !57
|
||||
%5 = load i8* %c, align 1, !dbg !57
|
||||
%conv3 = sext i8 %5 to i32, !dbg !57
|
||||
%conv4 = sitofp i32 %conv3 to double, !dbg !57
|
||||
%mul5 = fmul double %mul, %conv4, !dbg !57
|
||||
%6 = load i16* %us.addr, align 2, !dbg !57
|
||||
%conv6 = zext i16 %6 to i32, !dbg !57
|
||||
%conv7 = sitofp i32 %conv6 to double, !dbg !57
|
||||
%mul8 = fmul double %mul5, %conv7, !dbg !57
|
||||
%7 = load i64* %l.addr, align 8, !dbg !57
|
||||
%conv9 = uitofp i64 %7 to double, !dbg !57
|
||||
%mul10 = fmul double %mul8, %conv9, !dbg !57
|
||||
%call = call i32 @_Z3foov(), !dbg !57
|
||||
%conv11 = sitofp i32 %call to double, !dbg !57
|
||||
%add = fadd double %mul10, %conv11, !dbg !57
|
||||
store double %add, double* %result, align 8, !dbg !57
|
||||
%8 = load double* %result, align 8, !dbg !58
|
||||
ret double %8, !dbg !58
|
||||
}
|
||||
|
||||
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
|
||||
@ -86,120 +101,111 @@ entry:
|
||||
%result = alloca double, align 8
|
||||
store i32 0, i32* %retval
|
||||
store i32 %argc, i32* %argc.addr, align 4
|
||||
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !62), !dbg !63
|
||||
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !59), !dbg !60
|
||||
store i8** %argv, i8*** %argv.addr, align 8
|
||||
call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !64), !dbg !67
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !68), !dbg !70
|
||||
call void @llvm.dbg.declare(metadata !{float* %f}, metadata !71), !dbg !72
|
||||
store float 0.000000e+00, float* %f, align 4, !dbg !73
|
||||
call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !74), !dbg !77
|
||||
%0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !78
|
||||
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
|
||||
%c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !79
|
||||
store i8 97, i8* %c, align 1, !dbg !79
|
||||
%c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !80
|
||||
%arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !80
|
||||
store i8 48, i8* %arrayidx, align 1, !dbg !80
|
||||
%c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !81
|
||||
%arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !81
|
||||
store i8 49, i8* %arrayidx2, align 1, !dbg !81
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !82), !dbg !83
|
||||
%arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !84
|
||||
%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
|
||||
store double %call, double* %result, align 8, !dbg !84
|
||||
%1 = load double* %result, align 8, !dbg !85
|
||||
%cmp = fcmp oeq double %1, 0.000000e+00, !dbg !85
|
||||
%cond = select i1 %cmp, i32 0, i32 -1, !dbg !85
|
||||
ret i32 %cond, !dbg !85
|
||||
call void @llvm.dbg.declare(metadata !{i8*** %argv.addr}, metadata !61), !dbg !60
|
||||
call void @llvm.dbg.declare(metadata !{%struct.char_struct* %s}, metadata !62), !dbg !64
|
||||
call void @llvm.dbg.declare(metadata !{float* %f}, metadata !65), !dbg !66
|
||||
store float 0.000000e+00, float* %f, align 4, !dbg !66
|
||||
call void @llvm.dbg.declare(metadata !{[2 x [2 x double]]* %d}, metadata !67), !dbg !70
|
||||
%0 = bitcast [2 x [2 x double]]* %d to i8*, !dbg !70
|
||||
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
|
||||
%c = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 0, !dbg !71
|
||||
store i8 97, i8* %c, align 1, !dbg !71
|
||||
%c2 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !72
|
||||
%arrayidx = getelementptr inbounds [2 x i8]* %c2, i32 0, i64 0, !dbg !72
|
||||
store i8 48, i8* %arrayidx, align 1, !dbg !72
|
||||
%c21 = getelementptr inbounds %struct.char_struct* %s, i32 0, i32 1, !dbg !73
|
||||
%arrayidx2 = getelementptr inbounds [2 x i8]* %c21, i32 0, i64 1, !dbg !73
|
||||
store i8 49, i8* %arrayidx2, align 1, !dbg !73
|
||||
call void @llvm.dbg.declare(metadata !{double* %result}, metadata !74), !dbg !75
|
||||
%arraydecay = getelementptr inbounds [2 x [2 x double]]* %d, i32 0, i32 0, !dbg !75
|
||||
%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
|
||||
store double %call, double* %result, align 8, !dbg !75
|
||||
%1 = load double* %result, align 8, !dbg !76
|
||||
%cmp = fcmp oeq double %1, 0.000000e+00, !dbg !76
|
||||
%cond = select i1 %cmp, i32 0, i32 -1, !dbg !76
|
||||
ret i32 %cond, !dbg !76
|
||||
}
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
|
||||
!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 ]
|
||||
!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]
|
||||
!1 = metadata !{metadata !2}
|
||||
!2 = metadata !{i32 0}
|
||||
!3 = metadata !{metadata !4}
|
||||
!4 = metadata !{metadata !5, metadata !12, metadata !16}
|
||||
!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 ]
|
||||
!6 = metadata !{i32 720937, metadata !"test-parameters.cpp", metadata !"/home/athirumurthi/dev/opencl-mc/build/RH64/Debug/backend/llvm", null} ; [ DW_TAG_file_type ]
|
||||
!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 ]
|
||||
!4 = metadata !{metadata !5, metadata !10, metadata !38}
|
||||
!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]
|
||||
!6 = metadata !{i32 786473, metadata !"test-parameters.cpp", metadata !"/home/akaylor/dev", null} ; [ DW_TAG_file_type ]
|
||||
!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 ]
|
||||
!8 = metadata !{metadata !9}
|
||||
!9 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
||||
!10 = metadata !{metadata !11}
|
||||
!11 = metadata !{i32 720932} ; [ DW_TAG_base_type ]
|
||||
!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 ]
|
||||
!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 ]
|
||||
!14 = metadata !{metadata !15}
|
||||
!15 = metadata !{i32 720932, null, metadata !"double", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
|
||||
!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 ]
|
||||
!17 = metadata !{metadata !18}
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!12 = metadata !{metadata !13, metadata !14, metadata !16, metadata !20, metadata !33, metadata !35, metadata !36}
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!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]
|
||||
!18 = metadata !{metadata !19}
|
||||
!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 ]
|
||||
!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 ]
|
||||
!21 = metadata !{metadata !22, metadata !24, metadata !28}
|
||||
!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 ]
|
||||
!23 = metadata !{i32 720932, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
|
||||
!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 ]
|
||||
!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 ]
|
||||
!26 = metadata !{metadata !27}
|
||||
!27 = metadata !{i32 720929, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
|
||||
!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 ]
|
||||
!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 ]
|
||||
!30 = metadata !{null, metadata !31}
|
||||
!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 ]
|
||||
!32 = metadata !{i32 29, i32 3, metadata !33, null}
|
||||
!33 = metadata !{i32 720907, metadata !5, i32 28, i32 1, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
|
||||
!34 = metadata !{i32 721153, metadata !12, metadata !"pf", metadata !6, i32 16777248, metadata !35, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!35 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !36} ; [ DW_TAG_pointer_type ]
|
||||
!36 = metadata !{i32 720932, null, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
|
||||
!37 = metadata !{i32 32, i32 31, metadata !12, null}
|
||||
!38 = metadata !{i32 721153, metadata !12, metadata !"ppd", metadata !6, i32 33554464, metadata !39, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!39 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !40} ; [ DW_TAG_pointer_type ]
|
||||
!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 ]
|
||||
!41 = metadata !{i32 32, i32 42, metadata !12, null}
|
||||
!42 = metadata !{i32 721153, metadata !12, metadata !"s", metadata !6, i32 50331680, metadata !43, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!43 = metadata !{i32 720912, null, null, null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !20} ; [ DW_TAG_reference_type ]
|
||||
!44 = metadata !{i32 32, i32 72, metadata !12, null}
|
||||
!45 = metadata !{i32 721153, metadata !12, metadata !"ppn", metadata !6, i32 67108896, metadata !46, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!46 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !47} ; [ DW_TAG_pointer_type ]
|
||||
!47 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !9} ; [ DW_TAG_pointer_type ]
|
||||
!48 = metadata !{i32 32, i32 81, metadata !12, null}
|
||||
!49 = metadata !{i32 721153, metadata !12, metadata !"us", metadata !6, i32 83886112, metadata !50, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!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 ]
|
||||
!51 = metadata !{i32 32, i32 105, metadata !12, null}
|
||||
!52 = metadata !{i32 721153, metadata !12, metadata !"l", metadata !6, i32 100663328, metadata !53, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!53 = metadata !{i32 720934, null, metadata !"", null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !54} ; [ DW_TAG_const_type ]
|
||||
!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 ]
|
||||
!55 = metadata !{i32 32, i32 135, metadata !12, null}
|
||||
!56 = metadata !{i32 721152, metadata !57, metadata !"result", metadata !6, i32 34, metadata !15, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!57 = metadata !{i32 720907, metadata !12, i32 33, i32 1, metadata !6, i32 1} ; [ DW_TAG_lexical_block ]
|
||||
!58 = metadata !{i32 34, i32 10, metadata !57, null}
|
||||
!59 = metadata !{i32 34, i32 59, metadata !57, null}
|
||||
!60 = metadata !{i32 34, i32 54, metadata !57, null}
|
||||
!61 = metadata !{i32 35, i32 3, metadata !57, null}
|
||||
!62 = metadata !{i32 721153, metadata !16, metadata !"argc", metadata !6, i32 16777254, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!63 = metadata !{i32 38, i32 14, metadata !16, null}
|
||||
!64 = metadata !{i32 721153, metadata !16, metadata !"argv", metadata !6, i32 33554470, metadata !65, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
||||
!65 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !66} ; [ DW_TAG_pointer_type ]
|
||||
!66 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !23} ; [ DW_TAG_pointer_type ]
|
||||
!67 = metadata !{i32 38, i32 26, metadata !16, null}
|
||||
!68 = metadata !{i32 721152, metadata !69, metadata !"s", metadata !6, i32 40, metadata !20, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!69 = metadata !{i32 720907, metadata !16, i32 39, i32 1, metadata !6, i32 2} ; [ DW_TAG_lexical_block ]
|
||||
!70 = metadata !{i32 40, i32 22, metadata !69, null}
|
||||
!71 = metadata !{i32 721152, metadata !69, metadata !"f", metadata !6, i32 41, metadata !36, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!72 = metadata !{i32 41, i32 9, metadata !69, null}
|
||||
!73 = metadata !{i32 41, i32 16, metadata !69, null}
|
||||
!74 = metadata !{i32 721152, metadata !69, metadata !"d", metadata !6, i32 42, metadata !75, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!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 ]
|
||||
!76 = metadata !{metadata !27, metadata !27}
|
||||
!77 = metadata !{i32 42, i32 10, metadata !69, null}
|
||||
!78 = metadata !{i32 42, i32 38, metadata !69, null}
|
||||
!79 = metadata !{i32 44, i32 3, metadata !69, null}
|
||||
!80 = metadata !{i32 45, i32 3, metadata !69, null}
|
||||
!81 = metadata !{i32 46, i32 3, metadata !69, null}
|
||||
!82 = metadata !{i32 721152, metadata !69, metadata !"result", metadata !6, i32 48, metadata !15, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
|
||||
!83 = metadata !{i32 48, i32 10, metadata !69, null}
|
||||
!84 = metadata !{i32 48, i32 19, metadata !69, null}
|
||||
!85 = metadata !{i32 49, i32 3, metadata !69, null}
|
||||
!19 = metadata !{i32 786465, i64 0, i64 2} ; [ DW_TAG_subrange_type ] [0, 1]
|
||||
!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]
|
||||
!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 ]
|
||||
!22 = metadata !{metadata !23, metadata !25, metadata !27}
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!29 = metadata !{null, metadata !30}
|
||||
!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]
|
||||
!31 = metadata !{metadata !32}
|
||||
!32 = metadata !{i32 786468} ; [ DW_TAG_base_type ] [line 0, size 0, align 0, offset 0]
|
||||
!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 ]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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 ]
|
||||
!40 = metadata !{metadata !9, metadata !9, metadata !41}
|
||||
!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 ]
|
||||
!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]
|
||||
!43 = metadata !{metadata !44}
|
||||
!44 = metadata !{metadata !45}
|
||||
!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]
|
||||
!46 = metadata !{i32 29, i32 0, metadata !47, null}
|
||||
!47 = metadata !{i32 786443, metadata !5, i32 28, i32 0, metadata !6, i32 0} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-parameters.cpp]
|
||||
!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]
|
||||
!49 = metadata !{i32 32, i32 0, metadata !10, null}
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!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]
|
||||
!56 = metadata !{i32 786443, metadata !10, i32 33, i32 0, metadata !6, i32 1} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-parameters.cpp]
|
||||
!57 = metadata !{i32 34, i32 0, metadata !56, null}
|
||||
!58 = metadata !{i32 35, i32 0, metadata !56, null}
|
||||
!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]
|
||||
!60 = metadata !{i32 38, i32 0, metadata !38, null}
|
||||
!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]
|
||||
!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]
|
||||
!63 = metadata !{i32 786443, metadata !38, i32 39, i32 0, metadata !6, i32 2} ; [ DW_TAG_lexical_block ] [/home/akaylor/dev/test-parameters.cpp]
|
||||
!64 = metadata !{i32 40, i32 0, metadata !63, null}
|
||||
!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]
|
||||
!66 = metadata !{i32 41, i32 0, metadata !63, null}
|
||||
!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]
|
||||
!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]
|
||||
!69 = metadata !{metadata !19, metadata !19}
|
||||
!70 = metadata !{i32 42, i32 0, metadata !63, null}
|
||||
!71 = metadata !{i32 44, i32 0, metadata !63, null}
|
||||
!72 = metadata !{i32 45, i32 0, metadata !63, null}
|
||||
!73 = metadata !{i32 46, i32 0, metadata !63, null}
|
||||
!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]
|
||||
!75 = metadata !{i32 48, i32 0, metadata !63, null}
|
||||
!76 = metadata !{i32 49, i32 0, metadata !63, null}
|
||||
|
@ -11,7 +11,9 @@ endif( LLVM_USE_OPROFILE )
|
||||
if( LLVM_USE_INTEL_JITEVENTS )
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_LINK_COMPONENTS}
|
||||
DebugInfo
|
||||
IntelJITEvents
|
||||
Object
|
||||
)
|
||||
endif( LLVM_USE_INTEL_JITEVENTS )
|
||||
|
||||
|
@ -17,7 +17,7 @@ LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selec
|
||||
# If Intel JIT Events support is confiured, link against the LLVM Intel JIT
|
||||
# Events interface library
|
||||
ifeq ($(USE_INTEL_JITEVENTS), 1)
|
||||
LINK_COMPONENTS += inteljitevents
|
||||
LINK_COMPONENTS += debuginfo inteljitevents object
|
||||
endif
|
||||
|
||||
# If oprofile support is confiured, link against the LLVM oprofile interface
|
||||
|
@ -6,6 +6,7 @@ include_directories( ${LLVM_INTEL_JITEVENTS_INCDIR} )
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
asmparser
|
||||
bitreader
|
||||
debuginfo
|
||||
inteljitevents
|
||||
interpreter
|
||||
jit
|
||||
|
@ -18,7 +18,7 @@ LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selec
|
||||
# Events interface library. If not, this tool will do nothing useful, but it
|
||||
# will build correctly.
|
||||
ifeq ($(USE_INTEL_JITEVENTS), 1)
|
||||
LINK_COMPONENTS += inteljitevents
|
||||
LINK_COMPONENTS += debuginfo inteljitevents
|
||||
endif
|
||||
|
||||
# This tool has no plugins, optimize startup time.
|
||||
|
@ -19,7 +19,9 @@ if( LLVM_USE_INTEL_JITEVENTS )
|
||||
)
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_LINK_COMPONENTS}
|
||||
DebugInfo
|
||||
IntelJITEvents
|
||||
Object
|
||||
)
|
||||
endif( LLVM_USE_INTEL_JITEVENTS )
|
||||
|
||||
|
@ -24,7 +24,7 @@ ifeq ($(USE_INTEL_JITEVENTS), 1)
|
||||
CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR)
|
||||
|
||||
# Link against the LLVM Intel JIT Evens interface library
|
||||
LINK_COMPONENTS += inteljitevents
|
||||
LINK_COMPONENTS += debuginfo inteljitevents object
|
||||
endif
|
||||
|
||||
ifeq ($(USE_OPROFILE), 1)
|
||||
|
Loading…
Reference in New Issue
Block a user