[LLVMdev] Making a CopyToReg/CopyFromReg into a zext/sext? (original) (raw)
Matt Arsenault Matthew.Arsenault at amd.com
Tue Jan 27 12:22:09 PST 2015
- Previous message: [LLVMdev] Making a CopyToReg/CopyFromReg into a zext/sext?
- Next message: [LLVMdev] Making a CopyToReg/CopyFromReg into a zext/sext?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 01/27/2015 12:16 PM, Ryan Taylor wrote:
I have a CopyToReg that is copying from different size types, what's the best way to change that to a zext or sext node based on signed or unsigned?
I'm fairly unfamiliar with SelectionDAG process (outside of the docs on llvm website). It seems like I should be able to insert a custom hook using the register class to identify the type, potentially in ISelDAGToDag.cpp or is there a better place for this to be done? Thanks.
It sounds to me like you are looking for the AssertSext / AssertZext nodes
-Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150127/7eb003f4/attachment.html>
- Previous message: [LLVMdev] Making a CopyToReg/CopyFromReg into a zext/sext?
- Next message: [LLVMdev] Making a CopyToReg/CopyFromReg into a zext/sext?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]