Displaying 20 results from an estimated 8000 matches similar to: "[LLVMdev] alloc_size metadata"
2012 May 24
0
[LLVMdev] alloc_size metadata
Hi Nuno,
> I'm implementing the alloc_size function attribute in clang.
does anyone actually use this attribute? And if they do, can it really buy
them anything? How about "implementing" it by ignoring it!
Ciao, Duncan.
This
> attribute exists in gcc since version 4.3.
> The attribute specifies that a function returns a buffer with the size
> given by the
2012 May 24
5
[LLVMdev] alloc_size metadata
On 5/24/12 3:51 AM, Duncan Sands wrote:
> Hi Nuno,
>
>> I'm implementing the alloc_size function attribute in clang.
> does anyone actually use this attribute? And if they do, can it really buy
> them anything? How about "implementing" it by ignoring it!
Tools like ASan and SAFECode *could* use this attribute to determine the
size of memory objects created by
2012 May 25
0
[LLVMdev] alloc_size metadata
On Thu, May 24, 2012 at 7:43 PM, John Criswell <criswell at illinois.edu>wrote:
> On 5/24/12 3:51 AM, Duncan Sands wrote:
> > Hi Nuno,
> >
> >> I'm implementing the alloc_size function attribute in clang.
> > does anyone actually use this attribute? And if they do, can it really
> buy
> > them anything? How about "implementing" it by
2012 May 25
0
[LLVMdev] alloc_size metadata
Hi John,
On 25/05/12 17:22, John Criswell wrote:
> On 5/25/12 2:16 AM, Duncan Sands wrote:
>> Hi John,
>>
>>>>> I'm implementing the alloc_size function attribute in clang.
>>>> does anyone actually use this attribute? And if they do, can it really buy
>>>> them anything? How about "implementing" it by ignoring it!
>>>
2012 May 25
3
[LLVMdev] alloc_size metadata
On Fri, 25 May 2012 17:43:52 +0200
Duncan Sands <baldrick at free.fr> wrote:
> Hi John,
>
> On 25/05/12 17:22, John Criswell wrote:
> > On 5/25/12 2:16 AM, Duncan Sands wrote:
> >> Hi John,
> >>
> >>>>> I'm implementing the alloc_size function attribute in clang.
> >>>> does anyone actually use this attribute? And if
2012 May 25
4
[LLVMdev] alloc_size metadata
On 5/25/12 2:16 AM, Duncan Sands wrote:
> Hi John,
>
>>>> I'm implementing the alloc_size function attribute in clang.
>>> does anyone actually use this attribute? And if they do, can it
>>> really buy
>>> them anything? How about "implementing" it by ignoring it!
>>
> ...
>>
>> Currently, SAFECode has a pass which
2012 May 29
0
[LLVMdev] alloc_size metadata
>> On 25/05/12 17:22, John Criswell wrote:
>> > On 5/25/12 2:16 AM, Duncan Sands wrote:
>> >> Hi John,
>> >>
>> >>>>> I'm implementing the alloc_size function attribute in clang.
>> >>>> does anyone actually use this attribute? And if they do, can it
>> >>>> really buy them anything? How about
2012 May 25
0
[LLVMdev] alloc_size metadata
Hi John,
>>> I'm implementing the alloc_size function attribute in clang.
>> does anyone actually use this attribute? And if they do, can it really buy
>> them anything? How about "implementing" it by ignoring it!
>
...
>
> Currently, SAFECode has a pass which just recognizes certain functions as
> allocators and knows how to interpret the arguments
2012 May 25
1
[LLVMdev] alloc_size metadata
>>>> Currently, SAFECode has a pass which just recognizes certain functions as
>>>> allocators and knows how to interpret the arguments to find the
>>>> size. If we want
>>>> SAFECode to work with another allocator (like a program's custom
>>>> allocator, the
>>>> Objective-C allocator, the Boehm garbage collector,
2012 May 29
1
[LLVMdev] alloc_size metadata
On Tue, 29 May 2012 17:37:40 +0100
Nuno Lopes <nunoplopes at sapo.pt> wrote:
> >> On 25/05/12 17:22, John Criswell wrote:
> >> > On 5/25/12 2:16 AM, Duncan Sands wrote:
> >> >> Hi John,
> >> >>
> >> >>>>> I'm implementing the alloc_size function attribute in clang.
> >> >>>> does anyone
2012 Jun 04
2
[LLVMdev] alloc_size metadata
On Jun 4, 2012, at 10:37 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
> So here is a new proposal:
>
> !0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
The parameters are a separate metadata array or the alloc_size metadata
is variable length?
You'll probably want to write up some docs for the website on how this
is supposed to be laid out and work.
-eric
2012 Jun 04
0
[LLVMdev] alloc_size metadata
Hi,
So here is a new proposal:
!0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
alloc_size_fn and offset_fn are functions that return either i32/i64
depending on the platform, and they must have the same number of
arguments (not necessarily the same as the as allocation function).
The parameters are given in the metadata as well.
To accommodate the common case, offer_fn can be
2012 Jun 05
3
[LLVMdev] alloc_size metadata
Hi Nuno,
> So here is a new proposal:
>
> !0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
>
> alloc_size_fn and offset_fn are functions that return either i32/i64
> depending on the platform, and they must have the same number of
> arguments (not necessarily the same as the as allocation function).
> The parameters are given in the metadata as well.
> To
2012 Jun 04
0
[LLVMdev] alloc_size metadata
Quoting Eric Christopher <echristo at apple.com>:
> On Jun 4, 2012, at 10:37 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
>
>> So here is a new proposal:
>>
>> !0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
>
> The parameters are a separate metadata array or the alloc_size metadata
> is variable length?
Variable length. I think that's
2012 Jun 05
0
[LLVMdev] alloc_size metadata
>> So here is a new proposal:
>>
>> !0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
>>
>> alloc_size_fn and offset_fn are functions that return either i32/i64
>> depending on the platform, and they must have the same number of
>> arguments (not necessarily the same as the as allocation function).
>> The parameters are given in the metadata as
2012 Jun 05
2
[LLVMdev] alloc_size metadata
On Mon, 04 Jun 2012 18:37:31 +0100
Nuno Lopes <nunoplopes at sapo.pt> wrote:
> Hi,
>
> So here is a new proposal:
>
> !0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
>
> alloc_size_fn and offset_fn are functions that return either i32/i64
> depending on the platform, and they must have the same number of
> arguments (not necessarily the same as the
2012 May 29
2
[LLVMdev] alloc_size metadata
>> >> I think this is a good point, here's a suggestion:
>> >>
>> >> Have the metadata name two functions, both assumed to have the same
>> >> signature as the tagged function, one which returns the offset of
>> >> the start of the allocated region and one which returns the length
>> >> of the allocated region.
2012 Jun 05
0
[LLVMdev] alloc_size metadata
>> Hi,
>>
>> So here is a new proposal:
>>
>> !0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
>>
>> alloc_size_fn and offset_fn are functions that return either i32/i64
>> depending on the platform, and they must have the same number of
>> arguments (not necessarily the same as the as allocation function).
>> The parameters are
2012 May 29
2
[LLVMdev] alloc_size metadata
Hi Nuno,
>> I think this is a good point, here's a suggestion:
>>
>> Have the metadata name two functions, both assumed to have the same
>> signature as the tagged function, one which returns the offset of the
>> start of the allocated region and one which returns the length of the
>> allocated region. Alternatively, these functions could take the same
2012 May 29
0
[LLVMdev] alloc_size metadata
On Tue, 29 May 2012 19:23:56 +0200
Duncan Sands <baldrick at free.fr> wrote:
> Hi Nuno,
>
> >> I think this is a good point, here's a suggestion:
> >>
> >> Have the metadata name two functions, both assumed to have the same
> >> signature as the tagged function, one which returns the offset of
> >> the start of the allocated region and