Skip to content

Commit

Permalink
Manual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jan 16, 2024
1 parent 3405eab commit a9b0a13
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 172 deletions.
26 changes: 13 additions & 13 deletions src/Dialects/14/ArmNeon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ corresponding entry of `a`:
res[i] := a[i] + dot_product(b[i, ...], c[i, ...])
```
"""
function 2d_sdot(a::Value, b::Value, c::Value; res::MLIRType, location=Location())
results = MLIRType[res, ]
operands = Value[a, b, c, ]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[]
# function 2d_sdot(a::Value, b::Value, c::Value; res::MLIRType, location=Location())
# results = MLIRType[res, ]
# operands = Value[a, b, c, ]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[]

create_operation(
"arm_neon.2d.sdot", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "arm_neon.2d.sdot", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`intr_sdot`
Expand Down
2 changes: 1 addition & 1 deletion src/Dialects/14/SPIRV.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4502,7 +4502,7 @@ spv.GlobalVariable @var2 bind(1, 2) : !spv.ptr<f32, Uniform>
spv.GlobalVariable @var3 built_in(\"GlobalInvocationId\") : !spv.ptr<vector<3xi32>, Input>
```
"""
function GlobalVariable(; type, sym_name, initializer=nothing, location=nothing, binding=nothing, descriptorSet=nothing, builtin=nothing, location=Location())
function GlobalVariable(; type, sym_name, initializer=nothing, binding=nothing, descriptorSet=nothing, builtin=nothing, location=Location())
results = MLIRType[]
operands = Value[]
owned_regions = Region[]
Expand Down
26 changes: 13 additions & 13 deletions src/Dialects/15/ArmNeon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ corresponding entry of `a`:
res[i] := a[i] + dot_product(b[i, ...], c[i, ...])
```
"""
function 2d_sdot(a::Value, b::Value, c::Value; res::MLIRType, location=Location())
results = MLIRType[res, ]
operands = Value[a, b, c, ]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[]
# function 2d_sdot(a::Value, b::Value, c::Value; res::MLIRType, location=Location())
# results = MLIRType[res, ]
# operands = Value[a, b, c, ]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[]

create_operation(
"arm_neon.2d.sdot", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "arm_neon.2d.sdot", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`intr_sdot`
Expand Down
130 changes: 65 additions & 65 deletions src/Dialects/15/MLProgram.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ such a load can be considered to have no side effects.
%0 = ml_program.global_load_const @foobar : tensor<?xi32>
```
"""
function global_load_const(; result::MLIRType, global, location=Location())
results = MLIRType[result, ]
operands = Value[]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[namedattribute("global", global), ]
# function global_load_const(; result::MLIRType, global, location=Location())
# results = MLIRType[result, ]
# operands = Value[]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[namedattribute("global", global), ]

create_operation(
"ml_program.global_load_const", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "ml_program.global_load_const", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`global_load_graph`
Expand All @@ -90,20 +90,20 @@ without additional consideration to evaluation order constraints.
ordering (%token -> !ml_program.token) : tensor<?xi32>
```
"""
function global_load_graph(consumeTokens::Vector{Value}; result::MLIRType, produceToken::MLIRType, global, location=Location())
results = MLIRType[result, produceToken, ]
operands = Value[consumeTokens..., ]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[namedattribute("global", global), ]
# function global_load_graph(consumeTokens::Vector{Value}; result::MLIRType, produceToken::MLIRType, global, location=Location())
# results = MLIRType[result, produceToken, ]
# operands = Value[consumeTokens..., ]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[namedattribute("global", global), ]

create_operation(
"ml_program.global_load_graph", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "ml_program.global_load_graph", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`global_load`
Expand All @@ -125,20 +125,20 @@ without additional consideration to evaluation order constraints. See
%0 = ml_program.global_load @foobar : tensor<?xi32>
```
"""
function global_load(; result::MLIRType, global, location=Location())
results = MLIRType[result, ]
operands = Value[]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[namedattribute("global", global), ]
# function global_load(; result::MLIRType, global, location=Location())
# results = MLIRType[result, ]
# operands = Value[]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[namedattribute("global", global), ]

create_operation(
"ml_program.global_load", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "ml_program.global_load", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`global_`
Expand Down Expand Up @@ -208,20 +208,20 @@ without additional consideration to evaluation order constraints.
ordering (%in_token -> !ml_program.token) : tensor<?xi32>
```
"""
function global_store_graph(value::Value, consumeTokens::Vector{Value}; produceToken::MLIRType, global, location=Location())
results = MLIRType[produceToken, ]
operands = Value[value, consumeTokens..., ]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[namedattribute("global", global), ]
# function global_store_graph(value::Value, consumeTokens::Vector{Value}; produceToken::MLIRType, global, location=Location())
# results = MLIRType[produceToken, ]
# operands = Value[value, consumeTokens..., ]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[namedattribute("global", global), ]

create_operation(
"ml_program.global_store_graph", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "ml_program.global_store_graph", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`global_store`
Expand All @@ -243,20 +243,20 @@ without additional consideration to evaluation order constraints. See
ml_program.global_store @foobar = %0 : tensor<?xi32>
```
"""
function global_store(value::Value; global, location=Location())
results = MLIRType[]
operands = Value[value, ]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[namedattribute("global", global), ]
# function global_store(value::Value; global, location=Location())
# results = MLIRType[]
# operands = Value[value, ]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[namedattribute("global", global), ]

create_operation(
"ml_program.global_store", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "ml_program.global_store", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`output`
Expand Down
2 changes: 1 addition & 1 deletion src/Dialects/15/SPIRV.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5201,7 +5201,7 @@ spv.GlobalVariable @var2 bind(1, 2) : !spv.ptr<f32, Uniform>
spv.GlobalVariable @var3 built_in(\"GlobalInvocationId\") : !spv.ptr<vector<3xi32>, Input>
```
"""
function GlobalVariable(; type, sym_name, initializer=nothing, location=nothing, binding=nothing, descriptor_set=nothing, builtin=nothing, location=Location())
function GlobalVariable(; type, sym_name, initializer=nothing, binding=nothing, descriptor_set=nothing, builtin=nothing, location=Location())
results = MLIRType[]
operands = Value[]
owned_regions = Region[]
Expand Down
26 changes: 13 additions & 13 deletions src/Dialects/16/ArmNeon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ corresponding entry of `a`:
res[i] := a[i] + dot_product(b[i, ...], c[i, ...])
```
"""
function 2d_sdot(a::Value, b::Value, c::Value; res::MLIRType, location=Location())
results = MLIRType[res, ]
operands = Value[a, b, c, ]
owned_regions = Region[]
successors = Block[]
attributes = NamedAttribute[]
# function 2d_sdot(a::Value, b::Value, c::Value; res::MLIRType, location=Location())
# results = MLIRType[res, ]
# operands = Value[a, b, c, ]
# owned_regions = Region[]
# successors = Block[]
# attributes = NamedAttribute[]

create_operation(
"arm_neon.2d.sdot", location;
operands, owned_regions, successors, attributes,
results=results,
result_inference=false
)
end
# create_operation(
# "arm_neon.2d.sdot", location;
# operands, owned_regions, successors, attributes,
# results=results,
# result_inference=false
# )
# end

"""
`intr_sdot`
Expand Down
Loading

0 comments on commit a9b0a13

Please sign in to comment.