[PATCH] D85099: [UpdateTestChecks] Match unnamed values like "@[0-9]+" and "![0-9]+"

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 02:52:56 PDT 2020


arichardson added inline comments.


================
Comment at: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected:20
 ; IS__CGSCC____-LABEL: define {{[^@]+}}@foo
-; IS__CGSCC____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) #0
+; IS__CGSCC____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) [[ATTRIBUTES0:#.*]]
 ; IS__CGSCC____-NEXT:  entry:
----------------
Since we are capturing the attribute number instead of using a `#{{[0-9]+}}` regex, should we be using a non-capturing [[ATTRIBUTES0]] after the first time?

I guess this would require something like `global_vars_seen` in addition to `vars_seen`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85099



More information about the llvm-commits mailing list