search for: ocl_local

Displaying 5 results from an estimated 5 matches for "ocl_local".

Did you mean: ocl_global
2011 Oct 13
3
[LLVMdev] RFC: Representation of OpenCL Memory Spaces
...ata, or additional LLVM IR attributes on types and parameters, such as: ; ModuleID = 'test1.cl' target datalayout = "e-p:32:32-i64:64:64-f64:64:64-n1:8:16:32:64" target triple = "ptx32--" define *ocl_kernel* void @foo(float* nocapture *ocl_global* %a, float* nocapture *ocl_local* %b) nounwind noinline { entry: %0 = load float* %a, align 4 store float %0, float* %b, align 4 ret void } Instead of extending the LLVM IR language, this information could also be encoded as metadata by either (1) emitting some global metadata that binds useful properties to globals and par...
2011 Oct 13
4
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...types and parameters, > such as: > > ; ModuleID = 'test1.cl' > target datalayout = "e-p:32:32-i64:64:64-f64:64:64-n1:8:16:32:64" > target triple = "ptx32--" > > define *ocl_kernel* void @foo(float* nocapture *ocl_global* %a, float* > nocapture *ocl_local* %b) nounwind noinline { > entry: > %0 = load float* %a, align 4 > store float %0, float* %b, align 4 > ret void > } > > Instead of extending the LLVM IR language, this information could also be > encoded as metadata by either (1) emitting some global metadata that bi...
2011 Oct 13
1
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...as: > > > > ; ModuleID = 'test1.cl' > > target datalayout = "e-p:32:32-i64:64:64-f64:64:64-n1:8:16:32:64" > > target triple = "ptx32--" > > > > define *ocl_kernel* void @foo(float* nocapture *ocl_global* %a, float* > > nocapture *ocl_local* %b) nounwind noinline { > > entry: > > %0 = load float* %a, align 4 > > store float %0, float* %b, align 4 > > ret void > > } > > > > Instead of extending the LLVM IR language, this information could also be > > encoded as metadata by either (1...
2011 Oct 13
0
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...gt; > > > ; ModuleID = 'test1.cl' > > target datalayout = "e-p:32:32-i64:64:64-f64:64:64-n1:8:16:32:64" > > target triple = "ptx32--" > > > > define *ocl_kernel* void @foo(float* nocapture *ocl_global* %a, > float* > > nocapture *ocl_local* %b) nounwind noinline { > > entry: > > %0 = load float* %a, align 4 > > store float %0, float* %b, align 4 > > ret void > > } > > > > Instead of extending the LLVM IR language, this information could > also be > > encoded as metadata by eith...
2011 Oct 13
0
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...as: > > > > ; ModuleID = 'test1.cl' > > target datalayout = "e-p:32:32-i64:64:64-f64:64:64-n1:8:16:32:64" > > target triple = "ptx32--" > > > > define *ocl_kernel* void @foo(float* nocapture *ocl_global* %a, float* > > nocapture *ocl_local* %b) nounwind noinline { > > entry: > > %0 = load float* %a, align 4 > > store float %0, float* %b, align 4 > > ret void > > } > > > > Instead of extending the LLVM IR language, this information could also be > > encoded as metadata by either (1...