Skip to content

Instantly share code, notes, and snippets.

View FPU2.sv
// Standard header to adapt well known macros to our needs.
`ifdef RANDOMIZE_REG_INIT
`define RANDOMIZE
`endif
// RANDOM may be set to an expression that produces a 32-bit random unsigned value.
`ifndef RANDOM
`define RANDOM {$random}
`endif
View fpu.sv
// Standard header to adapt well known macros to our needs.
`ifdef RANDOMIZE_REG_INIT
`define RANDOMIZE
`endif
// RANDOM may be set to an expression that produces a 32-bit random unsigned value.
`ifndef RANDOM
`define RANDOM {$random}
`endif
View function pass list
aa-eval
adce
add-discriminators
aggressive-instcombine
assume-builder
assume-simplify
alignment-from-assumptions
bdce
bounds-checking
break-crit-edges
View gist:3a8cd201a08120bf8e158b4587408038
https://github.com/tom-james-watson/dotfiles/blob/master/docs/thinkpad-x1-extreme-setup.md#thermal-management
# tlp
/etc/default/tlp
STARTみたいなやつを75, 80とかにする
View count.py
import gspread
from oauth2client.service_account import ServiceAccountCredentials
import sys
import time
import datetime
import subprocess
import argparse
scope = ['https://spreadsheets.google.com/feeds',
'https://www.googleapis.com/auth/drive']
View gist:2f96469a36e2ee74075b95f0b668b159
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 01d09105e..6ea831f5f 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -120,6 +120,11 @@ ChangeStatus operator|(ChangeStatus l, ChangeStatus r);
ChangeStatus operator&(ChangeStatus l, ChangeStatus r);
///}
+enum Direction {
+ FORWARD = 0,
View mandelbrot.s
.text
.file "mandelbrot.7rcbfp3g-cgu.0"
.p2align 2 # -- Begin function _ZN10mandelbrot5start17h7d351b8658bbf2baE
.type _ZN10mandelbrot5start17h7d351b8658bbf2baE,@function
_ZN10mandelbrot5start17h7d351b8658bbf2baE: # @_ZN10mandelbrot5start17h7d351b8658bbf2baE
# %bb.0: # %start
store %sp, %sp, -5
addi %sp, %sp, -5
store %lr, %sp, 4 # 4-byte Folded Spill
li %r3, 0
View mandelbrot.ll
; ModuleID = 'mandelbrot.7rcbfp3g-cgu.0'
source_filename = "mandelbrot.7rcbfp3g-cgu.0"
target datalayout = "e-m:e-p:32:32-i64:64-n32-S128"
target triple = "riscv32"
%"core::panic::PanicInfo" = type { [0 x i32], { {}*, [3 x i32]* }, [0 x i32], i32*, [0 x i32], %"core::panic::Location", [0 x i32] }
%"core::panic::Location" = type { [0 x i32], { [0 x i8]*, i32 }, [0 x i32], i32, [0 x i32], i32, [0 x i32] }
; mandelbrot::start
; Function Attrs: nounwind
View mandelbrot.rs
/* rustc mandelbrot.rs --emit=llvm-ir --target=riscv32imc-unknown-none-elf -C opt-level=3 */
#![no_std]
#![feature(lang_items, start)]
use core::panic::PanicInfo;
extern "C" {
fn print_int(x: i32);
fn print_newline();
}
View minrt.s
.text
.file "llvm-link"
.globl V66.V23.mul10 # -- Begin function V66.V23.mul10
.p2align 2
.type V66.V23.mul10,@function
V66.V23.mul10: # @V66.V23.mul10
# %bb.0: # %entry
slawi %r4, %r3, 1
slawi %r3, %r3, 3
add %r3, %r3, %r4