[LLVMdev] expanding i16 operations in presence of an i16 regclass.
Sanjiv Gupta
llvmdev at gmail.com
Thu Feb 28 06:31:36 PST 2008
Reframing and Reposting my earlier query:
My target has 16-bit registers for indirect address of data.
All other registers are 8-bit.
Therefore I have added regclasses for i8 and i16 types.
All arithmetic operations (including pointer arithmetic ) are 8-bit
operations.
The problem is that LLVM does not expand i16 operations to i8 operations in
presence of i16 regclass.
What is the best way to tackle this?
Do I need to custom lower arithmetic operations during Legalize using
LowerOperation ( )?
- Sanjiv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080228/4a19316a/attachment.html>
More information about the llvm-dev
mailing list