Skip to content

Commit

Permalink
generated
Browse files Browse the repository at this point in the history
  • Loading branch information
jumerckx committed Jul 23, 2024
1 parent dec8dbc commit abc68a1
Show file tree
Hide file tree
Showing 111 changed files with 2,763 additions and 2,683 deletions.
4 changes: 2 additions & 2 deletions src/Dialects/14/AMX.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ function tile_muli(
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(isZextLhs) && push!(attributes, namedattribute("isZextLhs", isZextLhs))
!isnothing(isZextRhs) && push!(attributes, namedattribute("isZextRhs", isZextRhs))
!isnothing(isZextLhs) && push!(_attributes, namedattribute("isZextLhs", isZextLhs))
!isnothing(isZextRhs) && push!(_attributes, namedattribute("isZextRhs", isZextRhs))

return IR.create_operation(
"amx.tile_muli",
Expand Down
2 changes: 1 addition & 1 deletion src/Dialects/14/Async.jl
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function execute(
_owned_regions = Region[body,]
_successors = Block[]
_attributes = NamedAttribute[]
push!(attributes, operandsegmentsizes([length(dependencies), length(operands)]))
push!(_attributes, operandsegmentsizes([length(dependencies), length(operands)]))

return IR.create_operation(
"async.execute",
Expand Down
6 changes: 3 additions & 3 deletions src/Dialects/14/Builtin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function func(; sym_name, type, sym_visibility=nothing, body::Region, location=L
namedattribute("sym_name", sym_name), namedattribute("type", type)
]
!isnothing(sym_visibility) &&
push!(attributes, namedattribute("sym_visibility", sym_visibility))
push!(_attributes, namedattribute("sym_visibility", sym_visibility))

return IR.create_operation(
"builtin.func",
Expand Down Expand Up @@ -93,9 +93,9 @@ function module_(;
_owned_regions = Region[body,]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(sym_name) && push!(attributes, namedattribute("sym_name", sym_name))
!isnothing(sym_name) && push!(_attributes, namedattribute("sym_name", sym_name))
!isnothing(sym_visibility) &&
push!(attributes, namedattribute("sym_visibility", sym_visibility))
push!(_attributes, namedattribute("sym_visibility", sym_visibility))

return IR.create_operation(
"builtin.module",
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 @@ -73,9 +73,9 @@ function call(
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[namedattribute("callee", callee),]
!isnothing(args) && push!(attributes, namedattribute("args", args))
!isnothing(args) && push!(_attributes, namedattribute("args", args))
!isnothing(template_args) &&
push!(attributes, namedattribute("template_args", template_args))
push!(_attributes, namedattribute("template_args", template_args))

return IR.create_operation(
"emitc.call",
Expand Down Expand Up @@ -158,7 +158,7 @@ function include_(; include_, is_standard_include=nothing, location=Location())
_successors = Block[]
_attributes = NamedAttribute[namedattribute("include", include_),]
!isnothing(is_standard_include) &&
push!(attributes, namedattribute("is_standard_include", is_standard_include))
push!(_attributes, namedattribute("is_standard_include", is_standard_include))

return IR.create_operation(
"emitc.include",
Expand Down
10 changes: 5 additions & 5 deletions src/Dialects/14/GPU.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function all_reduce(
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(result_0) && push!(_results, result_0)
!isnothing(op) && push!(attributes, namedattribute("op", op))
!isnothing(op) && push!(_attributes, namedattribute("op", op))

return IR.create_operation(
"gpu.all_reduce",
Expand Down Expand Up @@ -89,7 +89,7 @@ function alloc(
_successors = Block[]
_attributes = NamedAttribute[]
push!(
attributes,
_attributes,
operandsegmentsizes([
length(asyncDependencies), length(dynamicSizes), length(symbolOperands)
]),
Expand Down Expand Up @@ -556,9 +556,9 @@ function launch_func(
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[namedattribute("kernel", kernel),]
!isnothing(dynamicSharedMemorySize) && push!(operands, dynamicSharedMemorySize)
!isnothing(dynamicSharedMemorySize) && push!(_operands, dynamicSharedMemorySize)
push!(
attributes,
_attributes,
operandsegmentsizes([
length(asyncDependencies),
1,
Expand Down Expand Up @@ -669,7 +669,7 @@ function launch(
_owned_regions = Region[body,]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(dynamicSharedMemorySize) && push!(operands, dynamicSharedMemorySize)
!isnothing(dynamicSharedMemorySize) && push!(_operands, dynamicSharedMemorySize)

return IR.create_operation(
"gpu.launch",
Expand Down
108 changes: 58 additions & 50 deletions src/Dialects/14/LLVMIR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ function alias_scope_domain(; sym_name, description=nothing, location=Location()
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[namedattribute("sym_name", sym_name),]
!isnothing(description) && push!(attributes, namedattribute("description", description))
!isnothing(description) &&
push!(_attributes, namedattribute("description", description))

return IR.create_operation(
"llvm.alias_scope_domain",
Expand Down Expand Up @@ -227,7 +228,8 @@ function alias_scope(; sym_name, domain, description=nothing, location=Location(
_attributes = NamedAttribute[
namedattribute("sym_name", sym_name), namedattribute("domain", domain)
]
!isnothing(description) && push!(attributes, namedattribute("description", description))
!isnothing(description) &&
push!(_attributes, namedattribute("description", description))

return IR.create_operation(
"llvm.alias_scope",
Expand All @@ -251,7 +253,7 @@ function alloca(arraySize::Value; res::IR.Type, alignment=nothing, location=Loca
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(alignment) && push!(attributes, namedattribute("alignment", alignment))
!isnothing(alignment) && push!(_attributes, namedattribute("alignment", alignment))

return IR.create_operation(
"llvm.alloca",
Expand Down Expand Up @@ -489,9 +491,9 @@ function call(
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(callee) && push!(attributes, namedattribute("callee", callee))
!isnothing(callee) && push!(_attributes, namedattribute("callee", callee))
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.call",
Expand Down Expand Up @@ -524,11 +526,11 @@ function cond_br(
_successors = Block[trueDest, falseDest]
_attributes = NamedAttribute[]
push!(
attributes,
_attributes,
operandsegmentsizes([1, length(trueDestOperands), length(falseDestOperands)]),
)
!isnothing(branch_weights) &&
push!(attributes, namedattribute("branch_weights", branch_weights))
push!(_attributes, namedattribute("branch_weights", branch_weights))

return IR.create_operation(
"llvm.cond_br",
Expand Down Expand Up @@ -1084,7 +1086,7 @@ function fadd(
_attributes = NamedAttribute[]
!isnothing(res) && push!(_results, res)
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.fadd",
Expand Down Expand Up @@ -1140,7 +1142,7 @@ function fcmp(
_successors = Block[]
_attributes = NamedAttribute[namedattribute("predicate", predicate),]
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.fcmp",
Expand Down Expand Up @@ -1172,7 +1174,7 @@ function fdiv(
_attributes = NamedAttribute[]
!isnothing(res) && push!(_results, res)
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.fdiv",
Expand Down Expand Up @@ -1280,7 +1282,7 @@ function fmul(
_attributes = NamedAttribute[]
!isnothing(res) && push!(_results, res)
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.fmul",
Expand Down Expand Up @@ -1311,7 +1313,7 @@ function fneg(
_attributes = NamedAttribute[]
!isnothing(res) && push!(_results, res)
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.fneg",
Expand Down Expand Up @@ -1435,7 +1437,7 @@ function frem(
_attributes = NamedAttribute[]
!isnothing(res) && push!(_results, res)
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.frem",
Expand Down Expand Up @@ -1467,7 +1469,7 @@ function fsub(
_attributes = NamedAttribute[]
!isnothing(res) && push!(_results, res)
!isnothing(fastmathFlags) &&
push!(attributes, namedattribute("fastmathFlags", fastmathFlags))
push!(_attributes, namedattribute("fastmathFlags", fastmathFlags))

return IR.create_operation(
"llvm.fsub",
Expand Down Expand Up @@ -1781,14 +1783,14 @@ function mlir_global(;
namedattribute("sym_name", sym_name),
namedattribute("linkage", linkage),
]
!isnothing(constant) && push!(attributes, namedattribute("constant", constant))
!isnothing(dso_local) && push!(attributes, namedattribute("dso_local", dso_local))
!isnothing(value) && push!(attributes, namedattribute("value", value))
!isnothing(alignment) && push!(attributes, namedattribute("alignment", alignment))
!isnothing(addr_space) && push!(attributes, namedattribute("addr_space", addr_space))
!isnothing(constant) && push!(_attributes, namedattribute("constant", constant))
!isnothing(dso_local) && push!(_attributes, namedattribute("dso_local", dso_local))
!isnothing(value) && push!(_attributes, namedattribute("value", value))
!isnothing(alignment) && push!(_attributes, namedattribute("alignment", alignment))
!isnothing(addr_space) && push!(_attributes, namedattribute("addr_space", addr_space))
!isnothing(unnamed_addr) &&
push!(attributes, namedattribute("unnamed_addr", unnamed_addr))
!isnothing(section) && push!(attributes, namedattribute("section", section))
push!(_attributes, namedattribute("unnamed_addr", unnamed_addr))
!isnothing(section) && push!(_attributes, namedattribute("section", section))

return IR.create_operation(
"llvm.mlir.global",
Expand Down Expand Up @@ -1855,12 +1857,13 @@ function inline_asm(
]
!isnothing(res) && push!(_results, res)
!isnothing(has_side_effects) &&
push!(attributes, namedattribute("has_side_effects", has_side_effects))
push!(_attributes, namedattribute("has_side_effects", has_side_effects))
!isnothing(is_align_stack) &&
push!(attributes, namedattribute("is_align_stack", is_align_stack))
!isnothing(asm_dialect) && push!(attributes, namedattribute("asm_dialect", asm_dialect))
push!(_attributes, namedattribute("is_align_stack", is_align_stack))
!isnothing(asm_dialect) &&
push!(_attributes, namedattribute("asm_dialect", asm_dialect))
!isnothing(operand_attrs) &&
push!(attributes, namedattribute("operand_attrs", operand_attrs))
push!(_attributes, namedattribute("operand_attrs", operand_attrs))

return IR.create_operation(
"llvm.inline_asm",
Expand Down Expand Up @@ -1967,12 +1970,12 @@ function invoke(
_successors = Block[normalDest, unwindDest]
_attributes = NamedAttribute[]
push!(
attributes,
_attributes,
operandsegmentsizes([
length(callee_operands), length(normalDestOperands), length(unwindDestOperands)
]),
)
!isnothing(callee) && push!(attributes, namedattribute("callee", callee))
!isnothing(callee) && push!(_attributes, namedattribute("callee", callee))

return IR.create_operation(
"llvm.invoke",
Expand Down Expand Up @@ -2028,10 +2031,12 @@ function func(;
_owned_regions = Region[body,]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(linkage) && push!(attributes, namedattribute("linkage", linkage))
!isnothing(dso_local) && push!(attributes, namedattribute("dso_local", dso_local))
!isnothing(personality) && push!(attributes, namedattribute("personality", personality))
!isnothing(passthrough) && push!(attributes, namedattribute("passthrough", passthrough))
!isnothing(linkage) && push!(_attributes, namedattribute("linkage", linkage))
!isnothing(dso_local) && push!(_attributes, namedattribute("dso_local", dso_local))
!isnothing(personality) &&
push!(_attributes, namedattribute("personality", personality))
!isnothing(passthrough) &&
push!(_attributes, namedattribute("passthrough", passthrough))

return IR.create_operation(
"llvm.func",
Expand Down Expand Up @@ -2083,7 +2088,7 @@ function landingpad(
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(cleanup) && push!(attributes, namedattribute("cleanup", cleanup))
!isnothing(cleanup) && push!(_attributes, namedattribute("cleanup", cleanup))

return IR.create_operation(
"llvm.landingpad",
Expand Down Expand Up @@ -2118,14 +2123,15 @@ function load(
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(access_groups) &&
push!(attributes, namedattribute("access_groups", access_groups))
push!(_attributes, namedattribute("access_groups", access_groups))
!isnothing(alias_scopes) &&
push!(attributes, namedattribute("alias_scopes", alias_scopes))
push!(_attributes, namedattribute("alias_scopes", alias_scopes))
!isnothing(noalias_scopes) &&
push!(attributes, namedattribute("noalias_scopes", noalias_scopes))
!isnothing(alignment) && push!(attributes, namedattribute("alignment", alignment))
!isnothing(volatile_) && push!(attributes, namedattribute("volatile_", volatile_))
!isnothing(nontemporal) && push!(attributes, namedattribute("nontemporal", nontemporal))
push!(_attributes, namedattribute("noalias_scopes", noalias_scopes))
!isnothing(alignment) && push!(_attributes, namedattribute("alignment", alignment))
!isnothing(volatile_) && push!(_attributes, namedattribute("volatile_", volatile_))
!isnothing(nontemporal) &&
push!(_attributes, namedattribute("nontemporal", nontemporal))

return IR.create_operation(
"llvm.load",
Expand Down Expand Up @@ -3278,14 +3284,15 @@ function store(
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(access_groups) &&
push!(attributes, namedattribute("access_groups", access_groups))
push!(_attributes, namedattribute("access_groups", access_groups))
!isnothing(alias_scopes) &&
push!(attributes, namedattribute("alias_scopes", alias_scopes))
push!(_attributes, namedattribute("alias_scopes", alias_scopes))
!isnothing(noalias_scopes) &&
push!(attributes, namedattribute("noalias_scopes", noalias_scopes))
!isnothing(alignment) && push!(attributes, namedattribute("alignment", alignment))
!isnothing(volatile_) && push!(attributes, namedattribute("volatile_", volatile_))
!isnothing(nontemporal) && push!(attributes, namedattribute("nontemporal", nontemporal))
push!(_attributes, namedattribute("noalias_scopes", noalias_scopes))
!isnothing(alignment) && push!(_attributes, namedattribute("alignment", alignment))
!isnothing(volatile_) && push!(_attributes, namedattribute("volatile_", volatile_))
!isnothing(nontemporal) &&
push!(_attributes, namedattribute("nontemporal", nontemporal))

return IR.create_operation(
"llvm.store",
Expand Down Expand Up @@ -3348,11 +3355,12 @@ function switch(
"case_operand_segments", case_operand_segments
),]
push!(
attributes, operandsegmentsizes([1, length(defaultOperands), length(caseOperands)])
_attributes, operandsegmentsizes([1, length(defaultOperands), length(caseOperands)])
)
!isnothing(case_values) && push!(attributes, namedattribute("case_values", case_values))
!isnothing(case_values) &&
push!(_attributes, namedattribute("case_values", case_values))
!isnothing(branch_weights) &&
push!(attributes, namedattribute("branch_weights", branch_weights))
push!(_attributes, namedattribute("branch_weights", branch_weights))

return IR.create_operation(
"llvm.switch",
Expand Down Expand Up @@ -3860,7 +3868,7 @@ function intr_vector_reduce_fadd(
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(reassoc) && push!(attributes, namedattribute("reassoc", reassoc))
!isnothing(reassoc) && push!(_attributes, namedattribute("reassoc", reassoc))

return IR.create_operation(
"llvm.intr.vector.reduce.fadd",
Expand Down Expand Up @@ -3932,7 +3940,7 @@ function intr_vector_reduce_fmul(
_owned_regions = Region[]
_successors = Block[]
_attributes = NamedAttribute[]
!isnothing(reassoc) && push!(attributes, namedattribute("reassoc", reassoc))
!isnothing(reassoc) && push!(_attributes, namedattribute("reassoc", reassoc))

return IR.create_operation(
"llvm.intr.vector.reduce.fmul",
Expand Down Expand Up @@ -4499,7 +4507,7 @@ function shfl_sync(
_successors = Block[]
_attributes = NamedAttribute[namedattribute("kind", kind),]
!isnothing(return_value_and_is_valid) && push!(
attributes,
_attributes,
namedattribute("return_value_and_is_valid", return_value_and_is_valid),
)

Expand Down
Loading

0 comments on commit abc68a1

Please sign in to comment.