<div dir="ltr">Currently, kernel argument metadata is omitted unless the "-cl-kernel-arg-info" option is specified. <div><br></div><div>But according to the latest SPIR specification </div><div><a href="https://www.khronos.org/registry/spir/specs/spir_spec-1.2.pdf">https://www.khronos.org/registry/spir/specs/spir_spec-1.2.pdf</a></div><div>section 2.4, all metadata except for the kernel_arg_name nodes should be emitted, and kernel_arg_name is only emitted when "-cl-kernel-arg-info" is specified. </div><div><br></div><div>"""<span style="font-size:10pt;font-family:CMR10">Kernel argument specific information is preserved using metadata objects. These objects are gen-
erated for every kernel, with an exception for the </span><span style="font-size:10pt;font-family:CMTT10">kernel 
                                                arg 
                                                name </span><span style="font-size:10pt;font-family:CMR10">metadata, which is generated
only when the </span><span style="font-size:10pt;font-family:CMTT10">-cl-kernel-arg-info </span><span style="font-size:10pt;font-family:CMR10">build option is specified for compilation. The metadata nodes
describing the kernel argument info are in the form of a string tag, and then a list of the corresponding
data for each one of the kernel’s arguments."""</span></div>
                
        
        
                <div class="" title="Page 13">
                        <div class="">
                                <div class="">
                                        <p>This patch fixes the behavior of the option and updates the associated test cases.<span style="font-size:10pt;font-family:CMR10"><br></span></p><p>It is a follow up to this bug report: <a href="http://llvm.org/bugs/show_bug.cgi?id=21555" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://llvm.org/bugs/show_bug.cgi?id=21555</a></p><p>Let me know if you have questions or would like any further changes. - thanks</p>
                                </div>
                        </div>
                </div></div>