Skip to content

Commit

Permalink
fix a ptr return type
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed May 12, 2024
1 parent c4cab11 commit 2017591
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/llvm_intrin/memory_addr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2322,17 +2322,17 @@ end
push!(instrs, "%masktrunc = trunc $mtyp_input %1 to $mtyp_trunc")
push!(instrs, "%mask = bitcast $mtyp_trunc %masktrunc to <$W x i1>")
end
decl = "declare ptr @llvm.masked.expandload.$(suffix(W,T))(ptr, <$W x i1>, $vtyp)"
decl = "declare $vtyp @llvm.masked.expandload.$(suffix(W,T))(ptr, <$W x i1>, $vtyp)"
push!(
instrs,
"%res = call ptr @llvm.masked.expandload.$(suffix(W,T))(ptr %ptr.0, <$W x i1> %mask, ptr zeroinitializer)\nret $vtyp %res"
"%res = call $vtyp @llvm.masked.expandload.$(suffix(W,T))(ptr %ptr.0, <$W x i1> %mask, $vtyp zeroinitializer)\nret $vtyp %res"
)
llvmcall_expr(
decl,
join(instrs, "\n"),
:(_Vec{$W,$T}),
:(Tuple{Ptr{$T},$U}),
"ptr",
vtyp,
["ptr"],
[:ptr, :(data(mask))],
false,
Expand Down

0 comments on commit 2017591

Please sign in to comment.