This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Target macros vs. target hooks - policy/goal is hooks, isn't it?


On Thu, Jun 3, 2010 at 1:14 PM, Ira Rosen <IRAR@il.ibm.com> wrote:
>
>
> Richard Guenther <richard.guenther@gmail.com> wrote on 03/06/2010 02:00:00
> PM:
>
>> >> tree-vectorizer.h:#ifndef TARG_COND_TAKEN_BRANCH_COST
>> >> tree-vectorizer.h:#ifndef TARG_COND_NOT_TAKEN_BRANCH_COST
>> >> tree-vectorizer.h:#ifndef TARG_SCALAR_STMT_COST
>> >> tree-vectorizer.h:#ifndef TARG_SCALAR_LOAD_COST
>> >> tree-vectorizer.h:#ifndef TARG_SCALAR_STORE_COST
>> >> tree-vectorizer.h:#ifndef TARG_VEC_STMT_COST
>> >> tree-vectorizer.h:#ifndef TARG_VEC_TO_SCALAR_COST
>> >> tree-vectorizer.h:#ifndef TARG_SCALAR_TO_VEC_COST
>> >> tree-vectorizer.h:#ifndef TARG_VEC_LOAD_COST
>> >> tree-vectorizer.h:#ifndef TARG_VEC_UNALIGNED_LOAD_COST
>> >> tree-vectorizer.h:#ifndef TARG_VEC_STORE_COST
>> >> tree-vectorizer.h:#ifndef TARG_VEC_PERMUTE_COST
>> >>
>> >> Could the vectorizer folks please turn these into target hooks?
>>
>> Btw, a single cost target hook with an enum argument would be
>> preferred here.
>
> Where is the best place to define such enum?

target.h already has some of them, so that would be the appropriate
place.

Richard.

> Thanks,
> Ira
>
>>
>> Richard.
>>
>> > OK, I'll do that.
>> >
>> > Ira
>> >
>> >>
>> >> Ciao!
>> >> Steven
>> >
>> >
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]