search for: foo___

Displaying 2 results from an estimated 2 matches for "foo___".

2011 Apr 30
2
[LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
...I'm wondering what might be going wrong along the way. More specifically, given a program that is equivalent to the following in C: float foo() { float y = 1234; return y; } My compiler generates the following IR (pay no attention to the ___ at the end of "foo"..): define i32 @foo___(<4 x i32>) nounwind readnone alwaysinline { entry: tail call void @llvm.dbg.value(metadata !6, i64 0, metadata !4), !dbg !7 ret i32 1234 } declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone !llvm.dbg.sp = !{!0} !llvm.dbg.lv.foo___ = !{!4} !0 = metadata !{i32 589870...
2011 May 02
0
[LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
...way. > > More specifically, given a program that is equivalent to the following in C: > > float foo() { > float y = 1234; > return y; > } > > My compiler generates the following IR (pay no attention to the ___ at the end of "foo"..): > > define i32 @foo___(<4 x i32>) nounwind readnone alwaysinline { > entry: > tail call void @llvm.dbg.value(metadata !6, i64 0, metadata !4), !dbg !7 > ret i32 1234 > } > Here there is not any instruction (ignoring dbg intrinsics) with line number information. If you add !dbg !7 at the end of ...