Displaying 5 results from an estimated 5 matches for "something_b".
Did you mean:
something_a
2012 Sep 10
5
[LLVMdev] Minimum Array Size
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?
Thanks again,
Hal
--
Hal Finkel
Postdoctoral Appointee
Leadership Com...
2012 Sep 11
2
[LLVMdev] Minimum Array Size
...icholas at mxc.ca> wrote:
> Hal Finkel 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...
2012 Sep 11
0
[LLVMdev] Minimum Array Size
Hal Finkel 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, but I'm interested in this. C++ re...
2012 Sep 11
0
[LLVMdev] Minimum Array Size
...Hal Finkel 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...
2012 Sep 11
0
[LLVMdev] Minimum Array Size
On Mon, Sep 10, 2012 at 16:43:57 -0500, Hal Finkel wrote:
> 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).
Is this really the case? In what language(s)? As I understand it, the C99
standard simply states that a func...