Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ext/ReactantOffsetArraysExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ function Base.getindex(
end

function Base.getindex(
x::OffsetVector{Reactant.TracedRNumber{T}, Reactant.TracedRArray{T, 1}}, indices::Base.OneTo{Int}
x::OffsetVector{Reactant.TracedRNumber{T},Reactant.TracedRArray{T,1}},
indices::Base.OneTo{Int},
) where {T}
offset_indices = indices .- x.offsets[1]
return getindex(parent(x), offset_indices)
Expand Down
6 changes: 4 additions & 2 deletions src/Compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2170,8 +2170,10 @@ function compile_mlir!(
)
end
end

func_op = MLIR.API.mlirSymbolTableLookup(MLIR.IR.SymbolTable(MLIR.IR.Operation(mod)), fnname)

func_op = MLIR.API.mlirSymbolTableLookup(
MLIR.IR.SymbolTable(MLIR.IR.Operation(mod)), fnname
)
@assert func_op.ptr !== C_NULL
func_op = MLIR.IR.Operation(func_op, false)
fnbody = MLIR.IR.first_block(MLIR.IR.region(func_op, 1))::MLIR.IR.Block
Expand Down