[PATCH] D113858: [llvm-reduce] Allow writing temporary files as bitcode.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 16 09:11:44 PST 2021


dblaikie added a comment.

In D113858#3134353 <https://reviews.llvm.org/D113858#3134353>, @fhahn wrote:

> In D113858#3131872 <https://reviews.llvm.org/D113858#3131872>, @dblaikie wrote:
>
>> In D113858#3131850 <https://reviews.llvm.org/D113858#3131850>, @fhahn wrote:
>>
>>> In D113858#3131845 <https://reviews.llvm.org/D113858#3131845>, @dblaikie wrote:
>>>
>>>> Would be good to have some testing - I guess it might look like the testing that was done before it was switched over to `FileCheck` - but I forget /exactly/ how awkward that was.
>>>
>>> There are a couple of tests that still use a python script from the `Inputs` directory. But I am not sure how to pass the path to `llvm-as` to the script? :(
>>
>> If the script took the path as an argument, then the test would pass the argument via `--test-arg llvm-as` - I think `lit` will do the substitution there...
>
> Ah great, I missed that there's `--test-arg` to pass multipel options through to the test script. I updated the patch with a python script to run llvm-dis and then FileCheck on the output. I'm planning on landing this once the pre-commit tests come back ok.

Nice, looks great!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113858/new/

https://reviews.llvm.org/D113858



More information about the llvm-commits mailing list