Skip to content

Commit 5842bad

Browse files
committed
remove shadowing static defs
1 parent 7d835f8 commit 5842bad

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VectorizationBase"
22
uuid = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f"
33
authors = ["Chris Elrod <elrodc@gmail.com>"]
4-
version = "0.21.39"
4+
version = "0.21.40"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/llvm_intrin/memory_addr.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,16 +1916,22 @@ end
19161916
# @inline prefetch2(x, i, j, oi, oj) = prefetch(gep(stridedpointer(x), (data(i) + data(oi) - 1, data(j) + data(oj) - 1)), Val{1}(), Val{0}())
19171917

19181918
@generated function lifetime_start!(ptr::Ptr{T}, ::Val{L}) where {L,T}
1919-
decl = "declare void @llvm.lifetime.start(i64, i8* nocapture)"
1920-
instrs = "%ptr = inttoptr $JULIAPOINTERTYPE %0 to i8*\ncall void @llvm.lifetime.start(i64 $(L*sizeof(T)), i8* %ptr)\nret void"
1919+
ptyp = LLVM_TYPES[T]
1920+
decl = "declare void @llvm.lifetime.start(i64, $ptyp* nocapture)"
1921+
instrs = "%ptr = inttoptr $JULIAPOINTERTYPE %0 to $ptyp*\ncall void @llvm.lifetime.start(i64 $L, $ptyp* %ptr)\nret void"
19211922
llvmcall_expr(decl, instrs, :Cvoid, :(Tuple{Ptr{$T}}), "void", [JULIAPOINTERTYPE], [:ptr])
19221923
end
19231924
@generated function lifetime_end!(ptr::Ptr{T}, ::Val{L}) where {L,T}
19241925
ptyp = LLVM_TYPES[T]
19251926
decl = "declare void @llvm.lifetime.end(i64, $ptyp* nocapture)"
1926-
instrs = "%ptr = inttoptr $JULIAPOINTERTYPE %0 to $ptyp*\ncall void @llvm.lifetime.end(i64 $(L*sizeof(T)), $ptyp* %ptr)\nret void"
1927+
instrs = "%ptr = inttoptr $JULIAPOINTERTYPE %0 to $ptyp*\ncall void @llvm.lifetime.end(i64 $L, $ptyp* %ptr)\nret void"
19271928
llvmcall_expr(decl, instrs, :Cvoid, :(Tuple{Ptr{$T}}), "void", [JULIAPOINTERTYPE], [:ptr])
19281929
end
1930+
# @generated function lifetime_start!(ptr::Ptr{T}, ::Val{L}) where {L,T}
1931+
# decl = "declare void @llvm.lifetime.start(i64, i8* nocapture)"
1932+
# instrs = "%ptr = inttoptr $JULIAPOINTERTYPE %0 to i8*\ncall void @llvm.lifetime.start(i64 $(L*sizeof(T)), i8* %ptr)\nret void"
1933+
# llvmcall_expr(decl, instrs, :Cvoid, :(Tuple{Ptr{$T}}), "void", [JULIAPOINTERTYPE], [:ptr])
1934+
# end
19291935
# @generated function lifetime_end!(ptr::Ptr{T}, ::Val{L}) where {L,T}
19301936
# decl = "declare void @llvm.lifetime.end(i64, i8* nocapture)"
19311937
# instrs = "%ptr = inttoptr $JULIAPOINTERTYPE %0 to i8*\ncall void @llvm.lifetime.end(i64 $(L*sizeof(T)), i8* %ptr)\nret void"

src/static.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#TODO: Document interface to support static size
22
# Define maybestaticsize, maybestaticlength, and maybestaticfirstindex
33

4-
5-
@inline static(::Val{N}) where {N} = StaticInt{N}()
6-
@inline static(::Nothing) = nothing
7-
84
@inline maybestaticfirst(a) = static_first(a)
95
@inline maybestaticlast(a) = static_last(a)
106
@inline maybestaticlength(a) = static_length(a)

0 commit comments

Comments
 (0)