Skip to content

Commit

Permalink
LLVM 14, 15, 16, 17
Browse files Browse the repository at this point in the history
  • Loading branch information
jumerckx committed Jul 23, 2024
1 parent 6151e95 commit 2821579
Show file tree
Hide file tree
Showing 119 changed files with 43,164 additions and 43,826 deletions.
8 changes: 4 additions & 4 deletions src/Dialects/14/Affine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function apply(mapOperands::Vector{Value}; result_0::IR.Type, map, location=Loca
end

"""
`_for`
`for_`
# Syntax
Expand Down Expand Up @@ -152,7 +152,7 @@ If the `affine.for` defines any values, a yield terminator must be
explicitly present. The number and types of the \"affine.for\" results must
match the initial values in the `iter_args` binding and the yield operands.
"""
function _for(
function for_(
operand_0::Vector{Value}; results::Vector{IR.Type}, region::Region, location=Location()
)
_results = IR.Type[results...,]
Expand All @@ -174,7 +174,7 @@ function _for(
end

"""
`_if`
`if_`
# Syntax
Expand Down Expand Up @@ -243,7 +243,7 @@ func @pad_edges(%I : memref<10x10xf32>) -> (memref<12x12xf32) {
}
```
"""
function _if(
function if_(
operand_0::Vector{Value};
results::Vector{IR.Type},
thenRegion::Region,
Expand Down
4 changes: 2 additions & 2 deletions src/Dialects/14/Builtin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function func(; sym_name, type, sym_visibility=nothing, body::Region, location=L
end

"""
`_module`
`module_`
A `module` represents a top-level container operation. It contains a single
[graph region](../LangRef.md#control-flow-and-ssacfg-regions) containing a single block
Expand All @@ -85,7 +85,7 @@ module {
}
```
"""
function _module(;
function module_(;
sym_name=nothing, sym_visibility=nothing, body::Region, location=Location()
)
_results = IR.Type[]
Expand Down
6 changes: 3 additions & 3 deletions src/Dialects/14/EmitC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function constant(; result_0::IR.Type, value, location=Location())
end

"""
`_include`
`include_`
The `include` operation allows to define a source file inclusion via the
`#include` directive.
Expand All @@ -151,12 +151,12 @@ emitc.include \"myheader.h\"
\"emitc.include\" (){include = \"myheader.h\"} : () -> ()
```
"""
function _include(; _include, is_standard_include=nothing, location=Location())
function include_(; include_, is_standard_include=nothing, location=Location())
_results = IR.Type[]
_operands = Value[]
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[namedattribute("include", _include),]
_attributes = NamedAttribute[namedattribute("include", include_),]
!isnothing(is_standard_include) &&
push!(attributes, namedattribute("is_standard_include", is_standard_include))

Expand Down
8 changes: 4 additions & 4 deletions src/Dialects/14/GPU.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function func(; body::Region, location=Location())
end

"""
`_module`
`module_`
GPU module contains code that is intended to be run on a GPU. A host device
can launch this code through a gpu.launc_func that creates a fully
Expand All @@ -363,7 +363,7 @@ or not intended to be run on the separate device.
```
"""
function _module(; body::Region, location=Location())
function module_(; body::Region, location=Location())
_results = IR.Type[]
_operands = Value[]
_owned_regions = Region[body,]
Expand Down Expand Up @@ -855,13 +855,13 @@ function printf(args::Vector{Value}; format, location=Location())
end

"""
`_return`
`return_`
A terminator operation for regions that appear in the body of `gpu.func`
functions. The operands to the `gpu.return` are the result values returned
by an invocation of the `gpu.func`.
"""
function _return(operands::Vector{Value}; location=Location())
function return_(operands::Vector{Value}; location=Location())
_results = IR.Type[]
_operands = Value[operands...,]
_owned_regions = Region[]
Expand Down
4 changes: 2 additions & 2 deletions src/Dialects/14/LLVMIR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2837,10 +2837,10 @@ function resume(value::Value; location=Location())
end

"""
`_return`
`return_`
"""
function _return(args::Vector{Value}; location=Location())
function return_(args::Vector{Value}; location=Location())
_results = IR.Type[]
_operands = Value[args...,]
_owned_regions = Region[]
Expand Down
4 changes: 2 additions & 2 deletions src/Dialects/14/MemRef.jl
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ function get_global(; result::IR.Type, name, location=Location())
end

"""
`_global`
`global_`
The `memref.global` operation declares or defines a named global memref
variable. The backing memory for the variable is allocated statically and is
Expand Down Expand Up @@ -893,7 +893,7 @@ memref.global @z : memref<3xf16> = uninitialized
memref.global constant @c : memref<2xi32> = dense<1, 4>
```
"""
function _global(;
function global_(;
sym_name,
sym_visibility=nothing,
type,
Expand Down
4 changes: 2 additions & 2 deletions src/Dialects/14/PDLInterp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function check_types(
end

"""
`_continue`
`continue_`
`pdl_interp.continue` operation breaks the current iteration within the
`pdl_interp.foreach` region and continues with the next iteration from
Expand All @@ -410,7 +410,7 @@ the beginning of the region.
pdl_interp.continue
```
"""
function _continue(; location=Location())
function continue_(; location=Location())
_results = IR.Type[]
_operands = Value[]
_owned_regions = Region[]
Expand Down
4 changes: 2 additions & 2 deletions src/Dialects/14/Quant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ function region(
end

"""
`_return`
`return_`
"""
function _return(results::Vector{Value}; location=Location())
function return_(results::Vector{Value}; location=Location())
_results = IR.Type[]
_operands = Value[results...,]
_owned_regions = Region[]
Expand Down
12 changes: 6 additions & 6 deletions src/Dialects/14/SCF.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function execute_region(; result_0::Vector{IR.Type}, region::Region, location=Lo
end

"""
`_for`
`for_`
The \"scf.for\" operation represents a loop taking 3 SSA value as operands
that represent the lower bound, upper bound and step respectively. The
Expand Down Expand Up @@ -180,7 +180,7 @@ func @conditional_reduce(%buffer: memref<1024xf32>, %lb: index,
}
```
"""
function _for(
function for_(
lowerBound::Value,
upperBound::Value,
step::Value,
Expand Down Expand Up @@ -208,7 +208,7 @@ function _for(
end

"""
`_if`
`if_`
The `scf.if` operation represents an if-then-else construct for
conditionally executing two regions of code. The operand to an if operation
Expand Down Expand Up @@ -253,7 +253,7 @@ scf.if %b {
}
```
"""
function _if(
function if_(
condition::Value;
results::Vector{IR.Type},
thenRegion::Region,
Expand Down Expand Up @@ -443,7 +443,7 @@ function reduce_return(result::Value; location=Location())
end

"""
`_while`
`while_`
This operation represents a generic \"while\"/\"do-while\" loop that keeps
iterating as long as a condition is satisfied. There is no restriction on
Expand Down Expand Up @@ -556,7 +556,7 @@ assignment-list ::= assignment | assignment `,` assignment-list
assignment ::= ssa-value `=` ssa-value
```
"""
function _while(
function while_(
inits::Vector{Value};
results::Vector{IR.Type},
before::Region,
Expand Down
8 changes: 4 additions & 4 deletions src/Dialects/14/SPIRV.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5214,7 +5214,7 @@ function GlobalVariable(;
type,
sym_name,
initializer=nothing,
_location=nothing,
location_=nothing,
binding=nothing,
descriptorSet=nothing,
builtin=nothing,
Expand All @@ -5228,7 +5228,7 @@ function GlobalVariable(;
namedattribute("type", type), namedattribute("sym_name", sym_name)
]
!isnothing(initializer) && push!(attributes, namedattribute("initializer", initializer))
!isnothing(location) && push!(attributes, namedattribute("location", _location))
!isnothing(location) && push!(attributes, namedattribute("location", location_))
!isnothing(binding) && push!(attributes, namedattribute("binding", binding))
!isnothing(descriptorSet) &&
push!(attributes, namedattribute("descriptorSet", descriptorSet))
Expand Down Expand Up @@ -7253,7 +7253,7 @@ function mlir_merge(; location=Location())
end

"""
`_module`
`module_`
This op defines a SPIR-V module using a MLIR region. The region contains
one block. Module-level operations, including functions definitions,
Expand Down Expand Up @@ -7295,7 +7295,7 @@ spv.module Logical Vulkan
}
```
"""
function _module(;
function module_(;
addressing_model,
memory_model,
vce_triple=nothing,
Expand Down
4 changes: 2 additions & 2 deletions src/Dialects/14/StandardOps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function constant(; result_0::IR.Type, value, location=Location())
end

"""
`_return`
`return_`
The `return` operation represents a return operation within a function.
The operation takes variable number of operands and produces no results.
Expand All @@ -279,7 +279,7 @@ func @foo() : (i32, f8) {
}
```
"""
function _return(operands::Vector{Value}; location=Location())
function return_(operands::Vector{Value}; location=Location())
_results = IR.Type[]
_operands = Value[operands...,]
_owned_regions = Region[]
Expand Down
4 changes: 2 additions & 2 deletions src/Dialects/14/Tosa.jl
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,12 @@ function concat(input1::Vector{Value}; output::IR.Type, axis, location=Location(
end

"""
`_const`
`const_`
A node containing constant data for use as the input to an operation. May
hold data in any of the supported data formats.
"""
function _const(; output=nothing::Union{Nothing,IR.Type}, value, location=Location())
function const_(; output=nothing::Union{Nothing,IR.Type}, value, location=Location())
_results = IR.Type[]
_operands = Value[]
_owned_regions = Region[]
Expand Down
Loading

0 comments on commit 2821579

Please sign in to comment.