Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
Pre-codegen
Ty interner total ty region both
TyAdt : 1116 40.1%, 0.0% 0.0% 0.0%
TyArray : 248 8.9%, 0.0% 0.0% 0.0%
TySlice : 17 0.6%, 0.0% 0.0% 0.0%
TyRawPtr : 6 0.2%, 0.0% 0.0% 0.0%
TyRef : 957 34.4%, 0.0% 0.0% 0.0%
TyFnDef : 99 3.6%, 0.0% 0.0% 0.0%
TyFnPtr : 83 3.0%, 0.0% 0.0% 0.0%
TyGenerator : 0 0.0%, 0.0% 0.0% 0.0%
build/rust/compile_3p_crates.py --rustc /usr/local/google/home/cramertj/src/fuchsia/buildtools/linux-x64/rust/bin/rustc --cipd-version 077d5951c20e5843119dde33c21b8a8b2e5adddc --cargo /usr/local/google/home/cramertj/src/fuchsia/buildtools/linux-x64/rust/bin/cargo --crate-root /usr/local/google/home/cramertj/src/fuchsia/third_party/rust-crates/rustc_deps --opt-level 0 --out-dir /usr/local/google/home/cramertj/src/fuchsia/out/arm64/rust_third_party --out-deps-data /usr/local/google/home/cramertj/src/fuchsia/out/arm64/rust_third_party/deps_data.json --target aarch64-fuchsia --cmake-dir /usr/local/google/home/cramertj/src/fuchsia/buildtools/cmake/bin --shared-libs-root /usr/local/google/home/cramertj/src/fuchsia/out/arm64/arm64-shared --clang_prefix /usr/local/google/home/cramertj/src/fuchsia/buildtools/linux-x64/clang/bin --sysroot /usr/local/google/home/cramertj/src/fuchsia/out/arm64/sdks/zircon_sysroot/arch/arm64/sysroot
@cramertj
cramertj / vte-1a91a6433ea8e7b6.15uuiki9s1a8yvyu.rcgu.ll
Created July 31, 2018 15:27
Rust VTE crate LLVM IR for aarch64-unknown-linux-gnu target
; ModuleID = '15uuiki9s1a8yvyu-58e698513a262007b3207a313c3d2e7f.rs'
source_filename = "15uuiki9s1a8yvyu-58e698513a262007b3207a313c3d2e7f.rs"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
%Parser = type { [0 x i64], i64, [0 x i64], [16 x i64], [0 x i64], i64, [0 x i64], i64, [0 x i64], [16 x { i64, i64 }], [0 x i64], i64, [0 x i64], i64, [0 x i32], { i32, i8 }, [0 x i8], i8, [0 x i8], [2 x i8], [0 x i8], i8, [0 x i8], [1024 x i8], [0 x i8], i8, [3 x i8] }
@__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
; vte::Parser::new
; ModuleID = '15uuiki9s1a8yvyu-58e698513a262007b3207a313c3d2e7f.rs'
source_filename = "15uuiki9s1a8yvyu-58e698513a262007b3207a313c3d2e7f.rs"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
%Parser = type { [0 x i64], i64, [0 x i64], [16 x i64], [0 x i64], i64, [0 x i64], i64, [0 x i64], [16 x { i64, i64 }], [0 x i64], i64, [0 x i64], i64, [0 x i32], { i32, i8 }, [0 x i8], i8, [0 x i8], [2 x i8], [0 x i8], i8, [0 x i8], [1024 x i8], [0 x i8], i8, [3 x i8] }
@__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
; vte::Parser::new
; ModuleID = 'bugpoint-reduced-instructions.bc'
source_filename = "15uuiki9s1a8yvyu-58e698513a262007b3207a313c3d2e7f.rs"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
%Parser.0.3.5.8.10.11.19 = type { [0 x i64], i64, [0 x i64], [16 x i64], [0 x i64], i64, [0 x i64], i64, [0 x i64], [16 x { i64, i64 }], [0 x i64], i64, [0 x i64], i64, [0 x i32], { i32, i8 }, [0 x i8], i8, [0 x i8], [2 x i8], [0 x i8], i8, [0 x i8], [1024 x i8], [0 x i8], i8, [3 x i8] }
@__rustc_debug_gdb_scripts_section__ = external unnamed_addr constant [34 x i8], section ".debug_gdb_scripts", align 1
; Function Attrs: uwtable
cargo-features = ["edition"]
[package]
name = "foo"
edition = "2018"
version = "0.1.0"
[dependencies]
rand = "0.5"
@cramertj
cramertj / main.rs
Created August 4, 2018 00:34
Simple Executor
#![feature(async_await, await_macro, futures_api, pin)]
use std::future::{Future, FutureObj};
use std::mem::PinMut;
use std::sync::{Arc, Mutex};
use std::sync::mpsc::{sync_channel, SyncSender, SendError, Receiver};
use std::task::{
self,
Executor as ExecutorTrait,
local_waker_from_nonlocal,
; ModuleID = 'main0-317d481089b8c8fe83113de504472633.rs'
source_filename = "main0-317d481089b8c8fe83113de504472633.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"core::fmt::Arguments" = type { [0 x i64], { [0 x { [0 x i8]*, i64 }]*, i64 }, [0 x i64], { i64*, i64 }, [0 x i64], { [0 x { i8*, i8* }]*, i64 }, [0 x i64] }
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i64], i64, [0 x i64], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i64], [6 x i64], [0 x i64] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
@vtable.0 = private unnamed_addr constant { void (i8**)*, i64, i64, i32 (i8**)*, i32 (i8**)*, i32 (i8*)* } { void (i8**)* @_ZN4core3ptr13drop_in_place17h2f1aa87fe2ee6613E, i64 8, i64 8, i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h20a9a6e32dc32665E", i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h20a9a6e32dc32665E", i32 (i8*)* @_ZN4core3ops8function6FnOnce9call_once17h6
; ModuleID = 'main0-317d481089b8c8fe83113de504472633.rs'
source_filename = "main0-317d481089b8c8fe83113de504472633.rs"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--fuchsia"
%"core::fmt::Arguments" = type { [0 x i64], { [0 x { [0 x i8]*, i64 }]*, i64 }, [0 x i64], { i64*, i64 }, [0 x i64], { [0 x { i8*, i8* }]*, i64 }, [0 x i64] }
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i64], i64, [0 x i64], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i64], [2 x i64], [0 x i64] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
@vtable.0 = private unnamed_addr constant { void (i8**)*, i64, i64, i32 (i8**)*, i32 (i8**)*, i32 (i8*)* } { void (i8**)* @_ZN4core3ptr13drop_in_place17h34262f1889056112E, i64 8, i64 8, i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h8e9769335058ccddE", i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h8e9769335058ccddE", i32 (i8*)* @_ZN4core3ops8function6FnOnce9call_on
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/fuchsia/third_party/rust-crates/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/fuchsia/third_party/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/fuchsia/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/Carg