[PATCH] D146302: [llvm-exegesis] Improve test flexibility by using available_features
Pavel Kosov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 08:17:39 PDT 2023
kpdev42 created this revision.
kpdev42 added reviewers: tstellar, courbet, lebedev.ri.
kpdev42 added a project: LLVM.
Herald added subscribers: StephenFan, mstojanovic, atanasyan, jrtc27, sdardis.
Herald added a project: All.
kpdev42 requested review of this revision.
Currently, all llvm-exegesis regression tests are target-specific and
they are organized so that the entire subdirectories of
llvm/test/tools/llvm-exegesis are enabled or disabled as a whole.
After the commit e0ad2af691 <https://reviews.llvm.org/rGe0ad2af6916a6c743e8ff19489818381e697d4ee> ("Skip codegen" dry-run mode), at least two
kinds of tests are possible:
1. ensure that a snippet can be *generated* for the particular opcode
2. tests involving actual snippet execution inside the llvm-exegesis process
Thus, for the particular target subdirectory, some tests should run only
on the particular host architecture and other tests only need the target
being among LLVM_TARGETS_TO_BUILD.
This commit defines a bunch of exegesis-specific features that can be
referenced in REQUIRES, UNSUPPORTED, etc. on a test-by-test basis.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146302
Files:
llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s
llvm/test/tools/llvm-exegesis/AArch64/lit.local.cfg
llvm/test/tools/llvm-exegesis/Mips/latency-GPR64.s
llvm/test/tools/llvm-exegesis/Mips/latency-by-opcode-name.s
llvm/test/tools/llvm-exegesis/Mips/lit.local.cfg
llvm/test/tools/llvm-exegesis/X86/lbr/lit.local.cfg
llvm/test/tools/llvm-exegesis/X86/lbr/mov-add.s
llvm/test/tools/llvm-exegesis/lit.local.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146302.506090.patch
Type: text/x-patch
Size: 8067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230317/3f81cc68/attachment.bin>
More information about the llvm-commits
mailing list