From: Chris Lattner Date: Sun, 27 Sep 2009 08:01:44 +0000 (+0000) Subject: rename REG -> REGISTER to make it explicit in the doc. ify some stuff. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9217f6b2e40c1a4d5caf43d6ff1d37d056552310;p=oota-llvm.git rename REG -> REGISTER to make it explicit in the doc. ify some stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82892 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html index 8e1041ec2a0..43c414d4c97 100644 --- a/docs/TestingGuide.html +++ b/docs/TestingGuide.html @@ -671,17 +671,17 @@ simple example:

 ; CHECK: test5:
-; CHECK:    notw	[[REG:%[a-z]+]]
-; CHECK:    andw	{{.*}}[[REG]]
+; CHECK:    notw	[[REGISTER:%[a-z]+]]
+; CHECK:    andw	{{.*}}[[REGISTER]]
 
-

The first check line matches a regex (%[a-z]+) and captures it into the -variables "REG". The second line verifies that whatever is in REG occurs later -in the file after an "andw". FileCheck variable references are always contained -in [[ ]] pairs, are named, and their names can be formed with the regex -"[a-zA-Z][a-zA-Z0-9]*". If a colon follows the name, then it is a definition of -the variable, if not, it is a use.

+

The first check line matches a regex (%[a-z]+) and captures it into +the variables "REGISTER". The second line verifies that whatever is in REGISTER +occurs later in the file after an "andw". FileCheck variable references are +always contained in [[ ]] pairs, are named, and their names can be +formed with the regex "[a-zA-Z][a-zA-Z0-9]*". If a colon follows the +name, then it is a definition of the variable, if not, it is a use.

FileCheck variables can be defined multiple times, and uses always get the latest value. Note that variables are all read at the start of a "CHECK" line