Created
November 14, 2019 13:58
-
-
Save nikomatsakis/d48b3cea0c46c44e8adc519585c23f95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = '31e3415mrsire8w' | |
source_filename = "31e3415mrsire8w" | |
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | |
target triple = "x86_64-unknown-linux-gnu" | |
@__rustc_debug_gdb_scripts_section__ = linkonce_odr unnamed_addr constant [34 x i8] c"\01gdb_load_rust_pretty_printers.py\00", section ".debug_gdb_scripts", align 1 | |
; Function Attrs: nounwind nonlazybind | |
define i32 @double_input(i32) unnamed_addr #0 !dbg !5 { | |
start: | |
%input = alloca i32, align 4 | |
store i32 %0, i32* %input, align 4 | |
call void @llvm.dbg.declare(metadata i32* %input, metadata !10, metadata !DIExpression()), !dbg !11 | |
%1 = load i32, i32* %input, align 4, !dbg !12 | |
%2 = call i32 @triple_input(i32 %1), !dbg !14 | |
br label %bb1, !dbg !14 | |
bb1: ; preds = %start | |
ret i32 %2, !dbg !15 | |
} | |
; Function Attrs: nounwind readnone speculatable | |
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 | |
; Function Attrs: nounwind nonlazybind | |
declare i32 @triple_input(i32) unnamed_addr #0 | |
attributes #0 = { nounwind nonlazybind "probe-stack"="__rust_probestack" "target-cpu"="x86-64" } | |
attributes #1 = { nounwind readnone speculatable } | |
!llvm.module.flags = !{!0, !1} | |
!llvm.dbg.cu = !{!2} | |
!0 = !{i32 2, !"RtLibUseGOT", i32 1} | |
!1 = !{i32 2, !"Debug Info Version", i32 3} | |
!2 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !3, producer: "clang LLVM (rustc version 1.39.0-nightly (eceec57f7 2019-09-18))", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4) | |
!3 = !DIFile(filename: "src/lib.rs", directory: "/home/nmatsakis/versioned/rust-ffi-examples/cpp-to-rust") | |
!4 = !{} | |
!5 = distinct !DISubprogram(name: "double_input", linkageName: "double_input", scope: !6, file: !3, line: 8, type: !7, scopeLine: 8, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !2, templateParams: !4, retainedNodes: !4) | |
!6 = !DINamespace(name: "double_input", scope: null) | |
!7 = !DISubroutineType(types: !8) | |
!8 = !{!9, !9} | |
!9 = !DIBasicType(name: "i32", size: 32, encoding: DW_ATE_signed) | |
!10 = !DILocalVariable(name: "input", arg: 1, scope: !5, file: !3, line: 1, type: !9) | |
!11 = !DILocation(line: 1, scope: !5) | |
!12 = !DILocation(line: 9, column: 26, scope: !13) | |
!13 = distinct !DILexicalBlock(scope: !5, file: !3, line: 9, column: 4) | |
!14 = !DILocation(line: 9, column: 13, scope: !13) | |
!15 = !DILocation(line: 10, column: 1, scope: !5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment