These tests were placed in the CodeGen directory while they really should have been placed in the Preprocessor directory.
See https://reviews.llvm.org/D78117 for background.
Differential D78163
[AVR][NFC] Move preprocessor tests to Preprocessor directory aykevl on Apr 14 2020, 3:50 PM. Authored by
Details These tests were placed in the CodeGen directory while they really should have been placed in the Preprocessor directory. See https://reviews.llvm.org/D78117 for background.
Diff Detail
Unit Tests Event TimelineComment Actions Not sure we need target-cpu-defines/ You can add a lit.local.cfg to avoid REQUIRES: avr-registered-target Comment Actions Looks like the established convention would be to just put these tests in test/Preprocessor with an avr- prefix. Comment Actions Honestly I don't know the convention but I agree with @rjmccall that the convention appears to be to not use a separate subdirectory (I don't see any other arch-specific subdirectories). So, should the files be moved to clang/test/Preprocessor/avr-*.c (e.g. clang/test/Preprocessor/avr-attiny104.c) while keeping REQUIRES: avr-registered-target? Comment Actions I don't think the REQUIRES is needed unless there's something special about AVR as a target. Clang doesn't conditionally compile out frontend target support. Comment Actions
I grepped for REQUIRES: and found just a few files with such a line - most files by far didn't specify any requirements. So it should be fine to leave it out. |