Displaying 3 results from an estimated 3 matches for "poppos".
2012 Sep 07
0
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 7:20 AM, Matthew Curtis wrote:
>
> The attached patch implements one possible solution. It introduces a
> position stack and a couple of directives:
>
> * 'CHECK-PUSH:' pushes the current match position onto the stack.
> * 'CHECK-POP:' pops the top value off of the stack and uses it to set
> the current match position.
>
> The above
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...known match type");
+ break;
}
// If this is a fixed string pattern, just match it now.
@@ -447,6 +468,9 @@ struct CheckString {
/// IsCheckNext - This is true if this is a CHECK-NEXT: directive (as opposed
/// to a CHECK: directive.
bool IsCheckNext;
+ int PushPos;
+ int PopPos;
+ SMLoc PopLoc;
/// NotStrings - These are all of the strings that are disallowed from
/// occurring between this match string and the previous one (or start of
@@ -454,7 +478,7 @@ struct CheckString {
std::vector<std::pair<SMLoc, Pattern> > NotStrings;
CheckString(con...
2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...known match type");
+ break;
}
// If this is a fixed string pattern, just match it now.
@@ -447,6 +468,9 @@ struct CheckString {
/// IsCheckNext - This is true if this is a CHECK-NEXT: directive (as opposed
/// to a CHECK: directive.
bool IsCheckNext;
+ int PushPos;
+ int PopPos;
+ SMLoc PopLoc;
/// NotStrings - These are all of the strings that are disallowed from
/// occurring between this match string and the previous one (or start of
@@ -454,7 +478,7 @@ struct CheckString {
std::vector<std::pair<SMLoc, Pattern> > NotStrings;
CheckString(con...