Results 1 to 2 of 2

Thread: Why opencl use source, instead IR

  1. #1
    Junior Member
    Join Date
    May 2012

    Why opencl use source, instead IR


    I have some question about IR and source.

    I know opencl use source or binary in runtime.

    and opencl can use IR(llvm) code also(use programwithsource or binary API)

    However, why not use IR directly?

    the opencl application use sourcecode and always hold it.(expept use binary)

    when program runtime, compiler make IR from source, and IR translate to ISA.

    I think when use IR dircetly(=application hold IR code, like java), the application sourcecode is not exposed.

    And this way has merit in secure and complie time.

  2. #2
    Junior Member
    Join Date
    Jan 2011

    Re: Why opencl use source, instead IR

    Source code is the most portable encoding.

Similar Threads

  1. Caching of source files
    By Peccable in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 1
    Last Post: 01-19-2012, 04:30 AM
  2. OpenVG source code
    By chandrasekhar in forum OpenVG and VGU
    Replies: 1
    Last Post: 10-24-2007, 11:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts