[llvm-commits] [llvm] r169791 - in /llvm/trunk: include/llvm/Target/ lib/CodeGen/SelectionDAG/ lib/Target/ARM/ lib/Target/Mips/ lib/Target/X86/ test/CodeGen/ARM/ test/CodeGen/X86/

Evan Cheng evan.cheng at apple.com
Wed Dec 12 22:55:28 PST 2012



Sent from my iPad

On Dec 12, 2012, at 5:53 PM, Chris Lattner <clattner at apple.com> wrote:

> On Dec 10, 2012, at 3:21 PM, Evan Cheng <evan.cheng at apple.com> wrote:
>> Author: evancheng
>> Date: Mon Dec 10 17:21:26 2012
>> New Revision: 169791
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=169791&view=rev
>> Log:
>> Some enhancements for memcpy / memset inline expansion.
> 
> Very cool.
> 
>> +  virtual bool isIntImmLegal(const APInt &/*Imm*/, EVT /*VT*/) const {
>> +    return true;
>> +  }
> 
>> -  virtual bool allowsUnalignedMemoryAccesses(EVT) const {
>> +  virtual bool allowsUnalignedMemoryAccesses(EVT, bool *Fast = 0) const {
>>    return false;
>>  }
> 
> I know that these shifted around a bit in subsequent patches, but can they take MVTs?  Targets should only have to implement the hooks for legal VTs, not arbitrary LLVM IR types, right?

Yes this can definitely be moved to MVTs.

Evan

> 
> -Chris



More information about the llvm-commits mailing list