search for: ocl_glob

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

Did you mean: ocl_global
2011 Oct 13
3
[LLVMdev] RFC: Representation of OpenCL Memory Spaces
.... This can take the form of metadata, 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 u...
2011 Oct 13
4
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...ta, 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 (...
2011 Oct 13
1
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...tes 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...
2011 Oct 13
0
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...n 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...
2011 Oct 13
0
[LLVMdev] [cfe-dev] RFC: Representation of OpenCL Memory Spaces
...n 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...