Skip to content

Commit e622bf1

Browse files
committed
LLVM14 dialect wrappers (had to be generated using Julia 1.9)
1 parent e150d57 commit e622bf1

29 files changed

+6974
-13615
lines changed

src/Dialects/14/AMX.jl

Lines changed: 98 additions & 218 deletions
Large diffs are not rendered by default.

src/Dialects/14/Affine.jl

Lines changed: 99 additions & 189 deletions
Large diffs are not rendered by default.

src/Dialects/14/Arithmetic.jl

Lines changed: 298 additions & 521 deletions
Large diffs are not rendered by default.

src/Dialects/14/ArmNeon.jl

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
module arm_neon
22

3-
import ...IR:
4-
IR, NamedAttribute, Value, Location, Block, Region, Attribute, context, IndexType
3+
import ...IR: IR, NamedAttribute, Value, Location, Block, Region, Attribute, context, IndexType
54
import ..Dialects: namedattribute, operandsegmentsizes
6-
import ...API
5+
76

87
"""
98
`intr_smull`
@@ -17,21 +16,17 @@ Source:
1716
https://developer.arm.com/architectures/instruction-sets/simd-isas/neon/intrinsics
1817
"""
1918
function intr_smull(a::Value, b::Value; res::IR.Type, location=Location())
20-
results = IR.Type[res,]
21-
operands = Value[a, b]
19+
results = IR.Type[res, ]
20+
operands = Value[a, b, ]
2221
owned_regions = Region[]
2322
successors = Block[]
2423
attributes = NamedAttribute[]
25-
26-
return IR.create_operation(
27-
"arm_neon.intr.smull",
28-
location;
29-
operands,
30-
owned_regions,
31-
successors,
32-
attributes,
24+
25+
IR.create_operation(
26+
"arm_neon.intr.smull", location;
27+
operands, owned_regions, successors, attributes,
3328
results=results,
34-
result_inference=false,
29+
result_inference=false
3530
)
3631
end
3732

@@ -48,21 +43,17 @@ res[i] := a[i] + dot_product(b[i, ...], c[i, ...])
4843
```
4944
"""
5045
function _2d_sdot(a::Value, b::Value, c::Value; res::IR.Type, location=Location())
51-
results = IR.Type[res,]
52-
operands = Value[a, b, c]
46+
results = IR.Type[res, ]
47+
operands = Value[a, b, c, ]
5348
owned_regions = Region[]
5449
successors = Block[]
5550
attributes = NamedAttribute[]
56-
57-
return IR.create_operation(
58-
"arm_neon.2d.sdot",
59-
location;
60-
operands,
61-
owned_regions,
62-
successors,
63-
attributes,
51+
52+
IR.create_operation(
53+
"arm_neon.2d.sdot", location;
54+
operands, owned_regions, successors, attributes,
6455
results=results,
65-
result_inference=false,
56+
result_inference=false
6657
)
6758
end
6859

@@ -77,21 +68,17 @@ Source:
7768
https://developer.arm.com/architectures/instruction-sets/simd-isas/neon/intrinsics
7869
"""
7970
function intr_sdot(a::Value, b::Value, c::Value; res::IR.Type, location=Location())
80-
results = IR.Type[res,]
81-
operands = Value[a, b, c]
71+
results = IR.Type[res, ]
72+
operands = Value[a, b, c, ]
8273
owned_regions = Region[]
8374
successors = Block[]
8475
attributes = NamedAttribute[]
85-
86-
return IR.create_operation(
87-
"arm_neon.intr.sdot",
88-
location;
89-
operands,
90-
owned_regions,
91-
successors,
92-
attributes,
76+
77+
IR.create_operation(
78+
"arm_neon.intr.sdot", location;
79+
operands, owned_regions, successors, attributes,
9380
results=results,
94-
result_inference=false,
81+
result_inference=false
9582
)
9683
end
9784

0 commit comments

Comments
 (0)