Skip to content

Commit

Permalink
Merge pull request #436 from craigblackmore/vec-type-table-format
Browse files Browse the repository at this point in the history
Fix rendering of vector type tables
  • Loading branch information
kito-cheng authored May 10, 2024
2 parents 60b1424 + 8fd15bd commit 2092568
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion gen_vector_type_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_note(sew, lmul, base_t, nf=1):
print ("[cols=\"4,3,>3,>2\"]")
print ("[width=80%]")
print ("|===")
print("| Internal Name | Type | Description")
print ("| Internal Name | Type | Size (Bytes) | Alignment (Bytes)")
print("")

for sew in SEW:
Expand All @@ -93,13 +93,16 @@ def get_note(sew, lmul, base_t, nf=1):
mname = "__rvv_" + typename
size = sizestr(lmul)
print ("| %-22s | %-20s | %-18s | %d" %(mname, typename, size, sew/8))
print ("|===")
print ("")

print (".Type sizes and alignments for vector tuple types")
print ("[cols=\"4,3,>3,>2\"]")
print ("[width=80%]")
print ("|===")

print ("| Internal Name | Type | Size (Bytes) | Alignment (Bytes)")
print ("")
for sew in SEW:
for lmul in LMUL:
for nf in NF:
Expand All @@ -110,3 +113,4 @@ def get_note(sew, lmul, base_t, nf=1):
mname = "__rvv_" + typename
size = sizestr(lmul, nf)
print ("| %-22s | %-20s | %-18s | %d" %(mname, typename, size, sew/8))
print ("|===")
6 changes: 5 additions & 1 deletion vector_type_infos.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[cols="4,3,>3,>2"]
[width=80%]
|===
| Internal Name | Type | Description
| Internal Name | Type | Size (Bytes) | Alignment (Bytes)

| __rvv_vint8mf8_t | vint8mf8_t | (VLEN / 8) / 8 | 1
| __rvv_vuint8mf8_t | vuint8mf8_t | (VLEN / 8) / 8 | 1
Expand Down Expand Up @@ -88,11 +88,14 @@
| __rvv_vint64m8_t | vint64m8_t | (VLEN / 8) * 8 | 8
| __rvv_vuint64m8_t | vuint64m8_t | (VLEN / 8) * 8 | 8
| __rvv_vfloat64m8_t | vfloat64m8_t | (VLEN / 8) * 8 | 8
|===
.Type sizes and alignments for vector tuple types
[cols="4,3,>3,>2"]
[width=80%]
|===
| Internal Name | Type | Size (Bytes) | Alignment (Bytes)
| __rvv_vint8mf8x2_t | vint8mf8x2_t | (VLEN / 8) / 4 | 1
| __rvv_vuint8mf8x2_t | vuint8mf8x2_t | (VLEN / 8) / 4 | 1
| __rvv_vfloat8mf8x2_t | vfloat8mf8x2_t | (VLEN / 8) / 4 | 1
Expand Down Expand Up @@ -477,3 +480,4 @@
| __rvv_vint64m4x2_t | vint64m4x2_t | (VLEN / 8) * 8 | 8
| __rvv_vuint64m4x2_t | vuint64m4x2_t | (VLEN / 8) * 8 | 8
| __rvv_vfloat64m4x2_t | vfloat64m4x2_t | (VLEN / 8) * 8 | 8
|===

0 comments on commit 2092568

Please sign in to comment.