[llvm-commits] [llvm] r74164 - /llvm/trunk/lib/Target/ARM/ARMSubtarget.h

Bob Wilson bob.wilson at apple.com
Thu Jun 25 09:03:46 PDT 2009


That's a good point.  I wasn't aware of those instructions, but I see  
them now.  I'll revert the change.

The one place I had seen this method used was in the change that I  
backed out earlier to avoid relying on MOVT in ARM mode.  Since MOVT  
is only available in V6T2 and later, I see now that this is exactly  
the right thing to check, and we'll want it back when we add the MOVT  
support in ARM mode.

On Jun 24, 2009, at 11:30 PM, Evan Cheng wrote:

> I am not sure about this. Some ARM instructions are only available
> when Thumb2 is available. But using hasThumb2() predicate in ARM mode
> just seem strange.
>
> How about leaving the predicate in but change it to "return
> ARMArchVersion >= V6 && ThumbMode >= Thumb2"?
>
> Evan
>
> On Jun 24, 2009, at 10:20 PM, Bob Wilson wrote:
>
>> Author: bwilson
>> Date: Thu Jun 25 00:20:31 2009
>> New Revision: 74164
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=74164&view=rev
>> Log:
>> Remove unused hasV6T2Ops method.  We already have a separate feature
>> to
>> identify Thumb2.
>>
>> Modified:
>>   llvm/trunk/lib/Target/ARM/ARMSubtarget.h
>>
>> Modified: llvm/trunk/lib/Target/ARM/ARMSubtarget.h
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMSubtarget.h?rev=74164&r1=74163&r2=74164&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> = 
>> =====================================================================
>> --- llvm/trunk/lib/Target/ARM/ARMSubtarget.h (original)
>> +++ llvm/trunk/lib/Target/ARM/ARMSubtarget.h Thu Jun 25 00:20:31 2009
>> @@ -93,7 +93,6 @@
>>  bool hasV5TOps()  const { return ARMArchVersion >= V5T;  }
>>  bool hasV5TEOps() const { return ARMArchVersion >= V5TE; }
>>  bool hasV6Ops()   const { return ARMArchVersion >= V6;   }
>> -  bool hasV6T2Ops() const { return ARMArchVersion >= V6T2; }
>>  bool hasV7Ops()   const { return ARMArchVersion >= V7A;  }
>>
>>  bool hasVFP2() const { return ARMFPUType >= VFPv2; }
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list