[PATCH] D46223: Introduce a direct LLVM IR execution UnitTests framework, and add the first such test.

Alex Denisov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 9 03:35:39 PDT 2018


AlexDenisov added inline comments.


================
Comment at: Bitcode/UnitTests/update_bc.sh:1-4
+#!/bin/sh
+#
+# This script simply finds all .ll files in immediate subdirectories of the
+# script itself and runs `llvm-as` to convert them into bitcode.
----------------
dberris wrote:
> My CMake-fu is not strong, but is it possible/valuable to make this run as part of the testing process? i.e. checking that we can generate the .bc files from the .ll files?
It is certainly possible to do via CMake. One could add custom command/target, this way there won't be a need to store the bc file in the repo.


Repository:
  rT test-suite

https://reviews.llvm.org/D46223





More information about the llvm-commits mailing list