[LLVMdev] Minimum Array Size

Eli Friedman eli.friedman at gmail.com
Mon Sep 10 17:04:28 PDT 2012


On Mon, Sep 10, 2012 at 2:43 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> Hello,
>
> clang currently seems to generate the same code for both:
>
> double something_a(char A[const static 256]) {
>   ...
> }
>
> and for:
>
> double something_b(char (*const A)) {
>   ...
> }
>
> even though in the first case the programmer has told us that the array
> A is at least 256 bytes in length (and, thus, will not be null). Do we
> currently have a way to pass this information to LLVM?

No.

-Eli



More information about the llvm-dev mailing list