[llvm] r215588 - [FastISel] Let the target decide first if it wants to materialize a constant.

Juergen Ributzka juergen at apple.com
Fri Aug 22 19:44:11 PDT 2014


Finally got around to do some spring cleaning :P I guess the function names still deserve some bikeshedding.

Cheers,
Juergen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-FastISel-Some-long-overdue-spring-cleaning-of-FastIS.patch
Type: application/octet-stream
Size: 100733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140822/9ea4a0f2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-FastISel-Rename-public-visible-FastISel-functions.patch
Type: application/octet-stream
Size: 61606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140822/9ea4a0f2/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-FastISel-tblgen-Rename-tblgen-generated-FastISel-fun.patch
Type: application/octet-stream
Size: 67991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140822/9ea4a0f2/attachment-0002.obj>
-------------- next part --------------



On Aug 14, 2014, at 11:02 AM, Jim Grosbach <grosbach at apple.com> wrote:

> Indeed. Just remember, you touch it you own it. ;)
> 
> -Jim
> 
>> On Aug 14, 2014, at 10:52 AM, Eric Christopher <echristo at gmail.com> wrote:
>> 
>> Thanks for all the work Juergen!
>> 
>> -eric
>> 
>> On Thu, Aug 14, 2014 at 10:52 AM, Juergen Ributzka <juergen at apple.com> wrote:
>>> Sure, will do.
>>> 
>>> On Aug 14, 2014, at 10:50 AM, Eric Christopher <echristo at gmail.com> wrote:
>>> 
>>>> Excellent. Let's do it.
>>>> 
>>>> On Thu, Aug 14, 2014 at 10:49 AM, Jim Grosbach <grosbach at apple.com> wrote:
>>>>> When there’s active and steady development in the area already is when it makes sense to go ahead and do style and conventions cleanups like this. Go for it.
>>>>> 
>>>>> -Jim
>>>>> 
>>>>>> On Aug 14, 2014, at 10:43 AM, Eric Christopher <echristo at gmail.com> wrote:
>>>>>> 
>>>>>> Mmm.. that way may lie madness. I'm always a proponent of big changes
>>>>>> to make things consistent, but let's use a 3rd party to check.
>>>>>> 
>>>>>> Jim? :)
>>>>>> 
>>>>>> -eric
>>>>>> 
>>>>>> On Thu, Aug 14, 2014 at 10:41 AM, Juergen Ributzka <juergen at apple.com> wrote:
>>>>>>> Should we also change tblgen to not emit capitalized function names anymore for FastEmit_*?
>>>>>>> 
>>>>>>> -Juergen
>>>>>>> 
>>>>>>> On Aug 14, 2014, at 10:38 AM, Eric Christopher <echristo at gmail.com> wrote:
>>>>>>> 
>>>>>>>> That would be pretty nice. Generally we don't do the mass changes like
>>>>>>>> that, but I think the file is pretty awkward right now and so I'd
>>>>>>>> appreciate it for sure :)
>>>>>>>> 
>>>>>>>> -eric
>>>>>>>> 
>>>>>>>> On Thu, Aug 14, 2014 at 10:37 AM, Juergen Ributzka <juergen at apple.com> wrote:
>>>>>>>>> Copy paste from TargetMaterializeConstant ;) The file is a little bit of a
>>>>>>>>> mess when it comes to function names. Should I do a cleanup and update all
>>>>>>>>> the function names while I am at it?
>>>>>>>>> 
>>>>>>>>> -Juergen
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Aug 13, 2014, at 6:30 PM, Eric Christopher <echristo at gmail.com> wrote:
>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> -/// materializeRegForValue - Helper for getRegForValue. This function is
>>>>>>>>>> -/// called when the value isn't already available in a register and must
>>>>>>>>>> -/// be materialized with new instructions.
>>>>>>>>>> -unsigned FastISel::materializeRegForValue(const Value *V, MVT VT) {
>>>>>>>>>> +unsigned FastISel::MaterializeConstant(const Value *V, MVT VT) {
>>>>>>>>>> unsigned Reg = 0;
>>>>>>>>>> -
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Coding standard has functions with lower case names? :)
>>>>>>>>> 
>>>>>>>>> -eric
>>>>>>>>> 
>>>>>>>>> 
>>>>>>> 
>>>>> 
>>> 
> 



More information about the llvm-commits mailing list