项目作者: EricR

项目描述 :
A query tool for LLVM IR.
高级语言: Go
项目地址: git://github.com/EricR/llvmq.git
创建时间: 2018-12-15T19:06:21Z
项目社区:https://github.com/EricR/llvmq

开源协议:MIT License

下载


llvmq

A query tool for LLVM IR.

Usage

  1. $ llvmq testdata/coreutils/test/stat.ll "ll.Funcs.forEach(function(func) { console.log(func.GlobalIdent.GlobalName) })"
  2. 2018/12/15 14:11:30 Parsing testdata/coreutils/test/stat.ll
  3. 2018/12/15 14:11:30 Parsed in 0.231463s
  4. 2018/12/15 14:11:30 Executing query
  5. usage
  6. llvm.dbg.declare
  7. llvm.dbg.value
  8. dcgettext
  9. __fprintf_chk
  10. __printf_chk
  11. fputs_unlocked
  12. llvm.lifetime.start.p0i8
  13. llvm.memcpy.p0i8.p0i8.i64
  14. strcmp
  15. setlocale
  16. strncmp
  17. llvm.lifetime.end.p0i8
  18. exit
  19. main
  20. bindtextdomain
  21. textdomain
  22. localeconv
  23. strlen
  24. atexit
  25. [...]
  26. 2018/12/15 14:11:30 Query executed in 0.069387s
  27. undefined

Credits

Big thanks to: