FileCheck Enhancement - Expressions repeat for CHECK and CHECK-NEXT
Needs RevisionPublic

Authored by eklepilkina on Jul 18 2016, 10:50 PM.

Details

Summary

This patch adds opportunity to use quantifiers for CHECK and CHECK-NEXT directives.

Diff Detail

eklepilkina retitled this revision from to FileCheck Enhancement - Expressions repeat for CHECK and CHECK-NEXT.Jul 18 2016, 10:50 PM
eklepilkina updated this object.
eklepilkina changed the edit policy from "All Users" to "Administrators".
eklepilkina added subscribers: llvm-commits, aprantl.
eklepilkina edited reviewers, added: alexfh; removed: dblaikie.Sep 19 2016, 1:42 AM
alexfh requested changes to this revision.Sep 23 2016, 6:01 PM

This patch brings up a number of questions:

  1. What's your use case? Optimizing tests by replacing a known number of check lines with repeated patterns? Or is the number of patterns you expect not known in advance?
  2. Are there possible usages of this feature in LLVM tests already?
  3. How is this going to interact with [[@LINE]]?
This revision now requires changes to proceed.Sep 23 2016, 6:01 PM
This comment was removed by eklepilkina.

This patch brings up a number of questions:

  1. What's your use case? Optimizing tests by replacing a known number of check lines with repeated patterns? Or is the number of patterns you expect not known in advance?

Both first and second case.

  1. Are there possible usages of this feature in LLVM tests already?

I don't know LLVM tests well to answer this question.

  1. How is this going to interact with [[@LINE]]?

I used FileCheck Match function in loop, so it will be real LINE value. I don't change matching.