[PATCH] D11072: Implement tool to convert bitcode to text.

Karl Schimpf kschimpf at google.com
Wed Aug 5 14:40:31 PDT 2015


kschimpf updated this revision to Diff 31399.
kschimpf added a comment.

Files in llvm/test/Convert show how this code could be used.

Files in llvm/test/Convert are as follows:

  File MyMain.cpp that shows how the bitcode coversion library of
  http://reviews.llvm.org/D11072 can be used. The single input fed to
  the generated fuzzer is a trivial program in foo.ll.
   

Within less than a minute I was able to generate the crashes in this
CL (files with prefix "crash"). Files with extension '.bc' are LLVM
bitcode files. Files with extension '.sbc' are the corresponding
bitcode files in simplified (binary) form. Files with extension '.err'
are the corresponding crashes caused by the '.bc' file.


http://reviews.llvm.org/D11072

Files:
  include/llvm/Bitcode/BitcodeConvert.h
  lib/Bitcode/CMakeLists.txt
  lib/Bitcode/Convert/BinaryBitcodeReader.cpp
  lib/Bitcode/Convert/BinaryBitcodeWriter.cpp
  lib/Bitcode/Convert/BitcodeWriter.cpp
  lib/Bitcode/Convert/BitcodeWriter.h
  lib/Bitcode/Convert/CMakeLists.txt
  lib/Bitcode/Convert/LLVMBuild.txt
  lib/Bitcode/Convert/Makefile
  lib/Bitcode/Convert/SimplifiedBitcodeReader.cpp
  lib/Bitcode/Convert/SimplifiedBitcodeWriter.cpp
  lib/Bitcode/Convert/TextualBitcodeReader.cpp
  lib/Bitcode/Convert/TextualBitcodeWriter.cpp
  lib/Bitcode/LLVMBuild.txt
  lib/Bitcode/Makefile
  test/Bitcode/text-bitcode.ll
  test/Convert/MyMain.cpp
  test/Convert/crash1.bc
  test/Convert/crash1.err
  test/Convert/crash1.sbc
  test/Convert/crash4.bc
  test/Convert/crash4.err
  test/Convert/crash4.sbc
  test/Convert/crash5.bc
  test/Convert/crash5.err
  test/Convert/crash5.sbc
  test/Convert/crash6.bc
  test/Convert/crash6.err
  test/Convert/crash6.sbc
  test/Convert/foo.bc
  test/Convert/foo.ll
  test/Convert/foo.sbc
  test/lit.cfg
  tools/LLVMBuild.txt
  tools/Makefile
  tools/llvm-bcconv/CMakeLists.txt
  tools/llvm-bcconv/LLVMBuild.txt
  tools/llvm-bcconv/Makefile
  tools/llvm-bcconv/llvm-bcconv.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11072.31399.patch
Type: text/x-patch
Size: 72475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150805/b50b5dc0/attachment.bin>


More information about the llvm-commits mailing list