Displaying 9 results from an estimated 9 matches for "_z13get_global_idj".
2016 May 24
1
BitcodeReader non explicit error
...define void @vector_add(double addrspace(3)* nocapture readonly %a, double addrspace(3)* nocapture readonly %b, double addrspace(1)* %c, i32 %n) #0 {
%1 = tail call i32 @_Z13get_global_idj(i32 0) #2
%2 = mul i32 %1, %n...
2016 Jan 11
4
Some llvm questions (for tgsi backend)
...D = '/home/hans/foo.cl'
target datalayout = "E-p:32:32-i64:64:64-f32:32:32-n32"
target triple = "tgsi--"
; Function Attrs: nounwind
define void @test_kern(i32 addrspace(1)* nocapture readonly %vals, i32 addrspace(1)* nocapture %buf) #0 {
entry:
%call = tail call i32 @_Z13get_global_idj(i32 0) #2
%arrayidx = getelementptr inbounds i32, i32 addrspace(1)* %vals, i32 %call
%0 = load i32, i32 addrspace(1)* %arrayidx, align 4, !tbaa !7
%mul = shl i32 %call, 5
%arrayidx1 = getelementptr inbounds i32, i32 addrspace(1)* %buf, i32 %mul
%1 = load i32, i32 addrspace(1)* %array...
2016 Sep 12
2
builtins name mangling in SPIR 2.0
...al !4
!kernel_arg_type !5 !kernel_arg_base_type !5 !kernel_arg_type_qual !6 {
entry:
%call = tail call spir_func i128 @get_global_id(i32 0) #2
%conv = trunc i128 %call to i32
store i32 %conv, i32 addrspace(1)* %in0, align 4, !tbaa !7
ret void
}
In this case, get_global_id is not mangled to _Z13get_global_idj according
to [2].
Is there an option for clang or an LLVM clang to do the mangling for spir
builtins?
Thanks
Hongbin
[1] https://www.khronos.org/registry/spir/specs/spir_spec-2.0.pdf, page 36
[2]
https://github.com/KhronosGroup/SPIR-Tools/wiki/SPIR-2.0-built-in-functions
-------------- next par...
2016 Jan 12
1
Some llvm questions (for tgsi backend)
...quot;E-p:32:32-i64:64:64-f32:32:32-n32"
>> target triple = "tgsi--"
>>
>> ; Function Attrs: nounwind
>> define void @test_kern(i32 addrspace(1)* nocapture readonly %vals, i32 addrspace(1)* nocapture %buf) #0 {
>> entry:
>> %call = tail call i32 @_Z13get_global_idj(i32 0) #2
>> %arrayidx = getelementptr inbounds i32, i32 addrspace(1)* %vals, i32 %call
>> %0 = load i32, i32 addrspace(1)* %arrayidx, align 4, !tbaa !7
>> %mul = shl i32 %call, 5
>> %arrayidx1 = getelementptr inbounds i32, i32 addrspace(1)* %buf, i32 %mul
>&g...
2016 Jan 11
0
Some llvm questions (for tgsi backend)
...arget datalayout = "E-p:32:32-i64:64:64-f32:32:32-n32"
> target triple = "tgsi--"
>
> ; Function Attrs: nounwind
> define void @test_kern(i32 addrspace(1)* nocapture readonly %vals, i32
> addrspace(1)* nocapture %buf) #0 {
> entry:
> %call = tail call i32 @_Z13get_global_idj(i32 0) #2
> %arrayidx = getelementptr inbounds i32, i32 addrspace(1)* %vals, i32 %call
> %0 = load i32, i32 addrspace(1)* %arrayidx, align 4, !tbaa !7
> %mul = shl i32 %call, 5
> %arrayidx1 = getelementptr inbounds i32, i32 addrspace(1)* %buf, i32 %mul
> %1 = load i32, i32...
2016 Jan 11
0
Some llvm questions (for tgsi backend)
...t; target datalayout = "E-p:32:32-i64:64:64-f32:32:32-n32"
> target triple = "tgsi--"
>
> ; Function Attrs: nounwind
> define void @test_kern(i32 addrspace(1)* nocapture readonly %vals, i32 addrspace(1)* nocapture %buf) #0 {
> entry:
> %call = tail call i32 @_Z13get_global_idj(i32 0) #2
> %arrayidx = getelementptr inbounds i32, i32 addrspace(1)* %vals, i32 %call
> %0 = load i32, i32 addrspace(1)* %arrayidx, align 4, !tbaa !7
> %mul = shl i32 %call, 5
> %arrayidx1 = getelementptr inbounds i32, i32 addrspace(1)* %buf, i32 %mul
> %1 = load i32, i32...
2016 Sep 12
2
builtins name mangling in SPIR 2.0
...gt;
> entry:
>
> %call = tail call spir_func i128 @get_global_id(i32 0) #2
>
> %conv = trunc i128 %call to i32
>
> store i32 %conv, i32 addrspace(1)* %in0, align 4, !tbaa !7
>
> ret void
>
> }
>
>
>
> In this case, get_global_id is not mangled to _Z13get_global_idj according
> to [2].
>
>
>
> Is there an option for clang or an LLVM clang to do the mangling for spir
> builtins?
>
>
>
> Thanks
>
> Hongbin
>
>
>
>
>
> [1] https://www.khronos.org/registry/spir/specs/spir_spec-2.0.pdf, page 36
>
> [2] htt...
2016 Sep 16
2
builtins name mangling in SPIR 2.0
...al !4 !kernel_arg_type !5 !kernel_arg_base_type !5 !kernel_arg_type_qual !6 {
entry:
%call = tail call spir_func i128 @get_global_id(i32 0) #2
%conv = trunc i128 %call to i32
store i32 %conv, i32 addrspace(1)* %in0, align 4, !tbaa !7
ret void
}
In this case, get_global_id is not mangled to _Z13get_global_idj according to [2].
Is there an option for clang or an LLVM clang to do the mangling for spir builtins?
Thanks
Hongbin
[1] https://www.khronos.org/registry/spir/specs/spir_spec-2.0.pdf, page 36
[2] https://github.com/KhronosGroup/SPIR-Tools/wiki/SPIR-2.0-built-in-functions
-------------- next p...
2016 Sep 18
2
builtins name mangling in SPIR 2.0
...al !4 !kernel_arg_type !5 !kernel_arg_base_type !5 !kernel_arg_type_qual !6 {
entry:
%call = tail call spir_func i128 @get_global_id(i32 0) #2
%conv = trunc i128 %call to i32
store i32 %conv, i32 addrspace(1)* %in0, align 4, !tbaa !7
ret void
}
In this case, get_global_id is not mangled to _Z13get_global_idj according to [2].
Is there an option for clang or an LLVM clang to do the mangling for spir builtins?
Thanks
Hongbin
[1] https://www.khronos.org/registry/spir/specs/spir_spec-2.0.pdf, page 36
[2] https://github.com/KhronosGroup/SPIR-Tools/wiki/SPIR-2.0-built-in-functions
-------------- next...