[llvm-dev] Legal names for Functions and other Identifiers

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 22 07:37:26 PDT 2017


>
> Produces the effect,
> --- a/test/GPGPU/kernel-params-only-some-arrays.ll
> <https://github.com/llvm-mirror/polly/blob/6b8cb877c2fa3ee0e626cac5811115a9c5c71b5b/test/GPGPU/kernel-params-only-some-arrays.ll#L19-L20>
> +++ b/test/GPGPU/kernel-params-only-some-arrays.ll
> @@ -16,12 +16,12 @@
>  ;        B[i] += 42;
>  ;    }
>
> -; KERNEL: ; ModuleID = 'kernel_0'
> -; KERNEL-NEXT: source_filename = "kernel_0"
> +; KERNEL: ; ModuleID = 'kernel_params_only_some_
> arrays_%or.cond---%or.end9_kernel_0'
> +; KERNEL-NEXT: source_filename = "kernel_params_only_some_
> arrays_%or.cond---%or.end9_kernel_0"
>
> I don't understand how Module verification
> <https://github.com/llvm-mirror/polly/blob/6b8cb877c2fa3ee0e626cac5811115a9c5c71b5b/lib/CodeGen/PPCGCodeGeneration.cpp#L1813>
> was fine with this name. What are your thoughts ?
>

​I think ModuleID and source_filename are just simple string, or they are
not? I don't see any function name here.

-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170622/16eacc9a/attachment.html>


More information about the llvm-dev mailing list