[PATCH] Add llvm-c-test tool for testing llvm-c

Anders Waldenborg anders at 0x63.nu
Mon Oct 21 06:41:00 PDT 2013


wanders added you to the CC list for the revision "Add llvm-c-test tool for testing llvm-c".

Hi hans,

This provides rudimentary testing of the llvm-c api.

The following commands are implemented:

  * --module-dump
    Read bytecode from stdin - print disassembly

  * --module-list-functions
    Read bytecode from stdin - list summary of functions

  * --module-list-globals
    Read bytecode from stdin - list summary of globals

  * --targets-list
    List available targets

  * --object-list-sections
    Read object file from stdin - list sections

  * --object-list-symbols
    Read object file form stdin - list symbols (like nm)

  * --disassemble
    Read lines of triple, hex ascii machine code from stdin - print disassembly

  * --calc
    Read lines of name, rpn from stdin - print generated module


http://llvm-reviews.chandlerc.com/D1776

Files:
  tools/Makefile
  tools/llvm-c-test/Makefile
  tools/CMakeLists.txt
  tools/llvm-c-test/CMakeLists.txt
  tools/llvm-c-test/calc.c
  tools/llvm-c-test/disassemble.c
  tools/llvm-c-test/helpers.c
  tools/llvm-c-test/include-all.c
  tools/llvm-c-test/main.c
  tools/llvm-c-test/module.c
  tools/llvm-c-test/object.c
  tools/llvm-c-test/targets.c
  tools/llvm-c-test/llvm-c-test.h
  test/Bindings/llvm-c/calc.test
  test/Bindings/llvm-c/disassemble.test
  test/Bindings/llvm-c/functions.ll
  test/Bindings/llvm-c/globals.ll
  test/Bindings/llvm-c/lit.local.cfg
  test/lit.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1776.3.patch
Type: text/x-patch
Size: 29490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131021/8dd433dc/attachment.bin>


More information about the llvm-commits mailing list