[llvm-dev] Question about TableGen RegisterClass definition

JinGu Kang via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 18 07:03:24 PDT 2019


Hi All,

I have a question about TableGen RegisterClass definition.

I need to map different size of MVTs into a register class as below.

def TestReg : RegisterClass<"Test", [v8i32, v4i32], ...>

When I look at TableGen and CodeGen, it looks the types are used as following:

1. MCRegisterClass's RegSize and Alignment
2. SpillSize in TableGen
3. Type constraint for instruction pattern matching

>From my opinion, it seems it is possible to do it... but I am not 100% sure... If anyone has information about it, please give me comment.

Thanks


JinGu Kang
Software Engineer
Codeplay Software Ltd
Level C Argyle House, 3 Lady Lawson Street, Edinburgh, United Kingdom, EH3 9DR<http://maps.google.co.uk/?q=EH3%209DR>
Tel: +44 (0)131 466 0503
Website: http://www.codeplay.com<http://www.codeplay.com/>
Twitter: https://twitter.com/codeplaysoft

This email and any attachments may contain confidential and /or privileged information and is for use by the addressee only. If you are not the intended recipient, please notify Codeplay Software Ltd immediately and delete the message from your computer. You may not copy or forward it, or use or disclose its contents to any other person. Any views or other information in this message which do not relate to our business are not authorized by Codeplay software Ltd, nor does this message form part of any contract unless so stated.
As internet communications are capable of data corruption Codeplay Software Ltd does not accept any responsibility for any changes made to this message after it was sent. Please note that Codeplay Software Ltd does not accept any liability or responsibility for viruses and it is your responsibility to scan any attachments.
Company registered in England and Wales, number: 04567874
Registered office: Regent House, 316 Beulah Hill, London, United Kingdom, SE19 3HF

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190718/a1c4f065/attachment.html>


More information about the llvm-dev mailing list