[PATCH] D24548: Add AArch64 unit tests

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 11 10:18:44 PDT 2016


MatzeB accepted this revision.
MatzeB added a comment.
This revision is now accepted and ready to land.

This test looks good to me.

In general though these programmatic unit tests are harder to understand and more work to maintain than (well done) tests using one of the llvm tool. Of course to do this effectively we need a means to print/test the information/functionality we are interested in and right now there is no way to print the computed size next to each instruction or similar. I am also aware that I did a similar thing in MI/LiveIntervalTest.cpp because there was no good way to force codegen to move exactly 1 instruction to another place, so I guess this is more of a "kids don't do this at home" warning :)



================
Comment at: unittests/Target/AArch64/CMakeLists.txt:6-7
+
+# FIXME: We're really requiring way too many components here, and a lot of it is
+# because of the TargetOptions
+set(LLVM_LINK_COMPONENTS
----------------
Doesn't sound so bad to me that it warrants a "FIXME".


https://reviews.llvm.org/D24548





More information about the llvm-commits mailing list