Skip to content

Instantly share code, notes, and snippets.

View delexi's full-sized avatar

Alexander Baier delexi

View GitHub Profile
@alloy
alloy / README.markdown
Created August 8, 2014 09:56
Learn the LLVM C++ API by example.

The easiest way to start using the LLVM C++ API by example is to have LLVM generate the API usage for a given code sample. In this example it will emit the code required to rebuild the test.c sample by using LLVM:

$ clang -c -emit-llvm test.c -o test.ll
$ llc -march=cpp test.ll -o test.cpp
@delexi
delexi / gist:2936401
Created June 15, 2012 13:08
lsmod | grep usb output
lsmod | grep usb
usblp 9406 0
usb_storage 35386 0
btusb 10047 0
bluetooth 150114 1 btusb
scsi_mod 112765 5 libata,sd_mod,uas,usb_storage,ses
usbcore 122909 7 ehci_hcd,uhci_hcd,uas,usb_storage,btusb,usblp
usb_common 622 1 usbcore