[PATCH] D60057: [llvm-exegesis] Handle CMOV's OPERAND_COND_CODE OperandType

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 1 05:05:32 PDT 2019


lebedev.ri added inline comments.


================
Comment at: tools/llvm-exegesis/lib/SnippetGenerator.cpp:49
               : RATC.emptyRegisters();
       // TODO: Generate as many BenchmarkCode as needed.
       {
----------------
Any advice on how to best produce multiple variants covering all the condcodes?
The obvious solution could be to pass `BenchmarkCode` to Target hook that would
duplicate it for each of the possible condcodes,
and return vector that would get appended to `Output`.
Is that on the right track? Anything cleaner?


Repository:
  rL LLVM

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

https://reviews.llvm.org/D60057





More information about the llvm-commits mailing list