This file contains hidden or 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
| // 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 |
This file contains hidden or 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
| // 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 |
This file contains hidden or 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
| aa-eval | |
| adce | |
| add-discriminators | |
| aggressive-instcombine | |
| assume-builder | |
| assume-simplify | |
| alignment-from-assumptions | |
| bdce | |
| bounds-checking | |
| break-crit-edges |
This file contains hidden or 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
| https://github.com/tom-james-watson/dotfiles/blob/master/docs/thinkpad-x1-extreme-setup.md#thermal-management | |
| # tlp | |
| /etc/default/tlp | |
| STARTみたいなやつを75, 80とかにする |
This file contains hidden or 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
| 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'] |
This file contains hidden or 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
| 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, |
This file contains hidden or 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
| .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 |
This file contains hidden or 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 = '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 |
This file contains hidden or 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
| /* 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(); | |
| } |
This file contains hidden or 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
| .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 |