Update examples to reflect that Cretonne indices typically start at 0.

This commit is contained in:
Dan Gohman
2018-04-26 20:51:45 -07:00
parent 779114aaed
commit 9e48344f7f
5 changed files with 46 additions and 46 deletions

View File

@@ -6,7 +6,7 @@
#
# .. cton::type:: type
# Document an IR type.
# .. cton:inst:: v1, v2 = inst op1, op2
# .. cton:inst:: v0, v1 = inst op0, op1
# Document an IR instruction.
#
from __future__ import absolute_import
@@ -146,9 +146,9 @@ class CtonInst(CtonObject):
def handle_signature(self, sig, signode):
# Look for signatures like
#
# v1, v2 = foo op1, op2
# v1 = foo
# foo op1
# v0, v1 = foo op0, op1
# v0 = foo
# foo op0
parts = re.split(sep_equal, sig, 1)
if len(parts) == 2: