Changeset View
Changeset View
Standalone View
Standalone View
lld/test/ELF/lto/Inputs/bpf-same-sec-2.ll
- This file was added.
; Source code: | |||||
; int __attribute__((noinline)) foo(int a) { | |||||
; return a * a; | |||||
; } | |||||
; Compilation flags: | |||||
; clang -target bpfel -flto -O2 -g -S t2.c -o t2.ll | |||||
; ModuleID = 't2.c' | |||||
source_filename = "t2.c" | |||||
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128" | |||||
target triple = "bpfel" | |||||
; Function Attrs: nofree noinline norecurse nosync nounwind readnone willreturn mustprogress | |||||
define dso_local i32 @foo(i32 %a) local_unnamed_addr #0 !dbg !8 { | |||||
entry: | |||||
call void @llvm.dbg.value(metadata i32 %a, metadata !13, metadata !DIExpression()), !dbg !14 | |||||
%mul = mul nsw i32 %a, %a, !dbg !15 | |||||
ret i32 %mul, !dbg !16 | |||||
} | |||||
; Function Attrs: nofree nosync nounwind readnone speculatable willreturn | |||||
declare void @llvm.dbg.value(metadata, metadata, metadata) #1 | |||||
attributes #0 = { nofree noinline norecurse nosync nounwind readnone willreturn mustprogress "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" } | |||||
attributes #1 = { nofree nosync nounwind readnone speculatable willreturn } | |||||
!llvm.dbg.cu = !{!0} | |||||
!llvm.module.flags = !{!3, !4, !5, !6} | |||||
!llvm.ident = !{!7} | |||||
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 13.0.0 (https://github.com/llvm/llvm-project.git 433a5046a139601b86ac0f5a8ce89c79e153ff06)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None) | |||||
!1 = !DIFile(filename: "t2.c", directory: "/tmp/home/yhs/work/tests/llvm/lto") | |||||
!2 = !{} | |||||
!3 = !{i32 7, !"Dwarf Version", i32 4} | |||||
!4 = !{i32 2, !"Debug Info Version", i32 3} | |||||
!5 = !{i32 1, !"wchar_size", i32 4} | |||||
!6 = !{i32 7, !"frame-pointer", i32 2} | |||||
!7 = !{!"clang version 13.0.0 (https://github.com/llvm/llvm-project.git 433a5046a139601b86ac0f5a8ce89c79e153ff06)"} | |||||
!8 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !9, scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !12) | |||||
!9 = !DISubroutineType(types: !10) | |||||
!10 = !{!11, !11} | |||||
!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) | |||||
!12 = !{!13} | |||||
!13 = !DILocalVariable(name: "a", arg: 1, scope: !8, file: !1, line: 1, type: !11) | |||||
!14 = !DILocation(line: 0, scope: !8) | |||||
!15 = !DILocation(line: 2, column: 12, scope: !8) | |||||
!16 = !DILocation(line: 2, column: 3, scope: !8) |