[PATCH] D30521: Introduce llc/ExecuteTestCommands pass

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 18:44:16 PST 2017


MatzeB created this revision.
Herald added subscribers: mgorny, nhaehnle, wdng, mcrosier.

Putting this up for early review to get some of the bikeshedding done while I am finishing this up:

We sometimes want to test a specific codegen API rather than a whole pass.

This adds a special pass to llc that features a minimalistic scripting language to
call some predefined API functions so we can test the API with the usual lit+FileCheck tools.

The first implementation allows moving an instruction to a different
place and updating liveness information with the handleMove() API. This
obsoletes the previously existing unittest for this.


Repository:
  rL LLVM

https://reviews.llvm.org/D30521

Files:
  include/llvm/CodeGen/MIRYamlMapping.h
  lib/CodeGen/MIRParser/MIRParser.cpp
  test/CodeGen/AMDGPU/handlemove.mir
  tools/llc/CMakeLists.txt
  tools/llc/ExecuteTestCommands.cpp
  tools/llc/ExecuteTestCommands.h
  tools/llc/llc.cpp
  unittests/MI/LiveIntervalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30521.90268.patch
Type: text/x-patch
Size: 31417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170302/3732dba1/attachment.bin>


More information about the llvm-commits mailing list