Skip to content

Commit 2e5d52e

Browse files
authored
Merge pull request #19792 from jketema/sve
C++: Add Arm scalable vector type QL classes
2 parents 16c6411 + fe80d9a commit 2e5d52e

File tree

16 files changed

+11866
-1742
lines changed

16 files changed

+11866
-1742
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class BuiltinType extends @builtintype {
2+
string toString() { none() }
3+
}
4+
5+
from BuiltinType id, string name, int kind, int new_kind, int size, int sign, int alignment
6+
where
7+
builtintypes(id, name, kind, size, sign, alignment) and
8+
if kind = 63 then /* @errortype */ new_kind = 1 else new_kind = kind
9+
select id, name, new_kind, size, sign, alignment
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Type extends @type {
2+
string toString() { none() }
3+
}
4+
5+
from Type type, string name, int kind, int new_kind, Type type_id
6+
where
7+
derivedtypes(type, name, kind, type_id) and
8+
if kind = 11 then /* @gnu_vector */ new_kind = 5 else new_kind = kind
9+
select type, name, new_kind, type_id

0 commit comments

Comments
 (0)