Skip to content

Instantly share code, notes, and snippets.

View laprej's full-sized avatar

Justin M. LaPre laprej

View GitHub Profile

Keybase proof

I hereby claim:

  • I am laprej on github.
  • I am laprej (https://keybase.io/laprej) on keybase.
  • I have a public key whose fingerprint is 6A9F E66B AAD6 48FE 4CA9 1436 70A9 0CC5 695F 238E

To claim this, I am signing this object:

@laprej
laprej / gist:9125890
Created February 20, 2014 23:50
Order of operations
DO THIS
opt -O3 phold-output.bc -o foo.bc ; llc foo.bc ; clang -c foo.s
NOT THIS
opt -O3 phold-output.bc -o foo.bc ; clang -c foo.bc
@laprej
laprej / gist:8025030
Created December 18, 2013 16:13
Basic block count for function
llvm-extract -func=rc airport-output.bc | opt -analyze -stats -instcount
@laprej
laprej / gist:6055073
Created July 22, 2013 16:06
bugpoint example!
bugpoint foo.bc -debug -break-crit-edges -loop-simplify -indvars --opt-args ---load /Users/laprej/temp/llvm-3.2-install/lib/LLVMFoo4.dylib -hello -rev-func=event_handler -tgt-func=rc