[PATCH] D30725: [FileCheck] Added [[@CLEAR:regex]] as a way to clear variables.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 7 16:47:29 PST 2017


tra added a comment.

In https://reviews.llvm.org/D30725#695081, @arsenm wrote:

> I always thought that a CHECK-LABEL should clear all defined variables


As far as I can tell it does not. E.g. this passes:

  // RUN: FileCheck -check-prefix Y -input-file %s %s
  
  op y2
  op y2l
  op y2 y3
  ; Y:  [[REGY:y[0-9]]]
  ; Y-LABEL:  op y2l
  ; Y:  op [[REGY]] y3


https://reviews.llvm.org/D30725





More information about the llvm-commits mailing list