[PATCH] D60386: FileCheck [6/12]: Introduce numeric variable definition

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 06:27:53 PST 2020


hliao added inline comments.


================
Comment at: llvm/trunk/docs/CommandGuide/FileCheck.rst:630-632
+Important note: In its current implementation, a numeric expression cannot use
+a numeric variable defined on the same line.
+
----------------
Just curious why we have such a restriction. Could someone elaborate more?

That makes numeric checks on the same line must be written in split like this

CHECK: [[#VAR:...]]
CHECK-SAME: [[#VAR + 1]]

instead of

CHECK: [[#VAR:...]] [[#VAR + 1]]

That's quite verbose.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D60386





More information about the llvm-commits mailing list