File: genopcodes.sh

package info (click to toggle)
llvm-py 0.6%2Bsvn105-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,060 kB
  • sloc: python: 3,844; ansic: 1,963; cpp: 508; pascal: 87; makefile: 9; sh: 1
file content (1 line) | stat: -rwxr-xr-x 190 bytes parent folder | download | duplicates (3)
1
cat ~/local/include/llvm/Instruction.def | grep '^HANDLE' | sed -e 's/^[^(]*(//' | sed -e 's#).*$##' | sed -e 's/,[^,]*$//' | sed -e 's/,//' | awk '{printf("OPCODE_%-14s = %s\n", $2, $1);}'