Gabriel Hjort Åkerlund via llvm-dev
2020-Aug-25 15:20 UTC
[llvm-dev] How to detect in TableGen whether a register class is a union of other register classes?
Given a register class in TableGen (in other words, we have a *Record), is it possible to detect whether the register class is a union of other register classes? I thought of retrieving the corresponding CodeGenRegisterClass and using getSubClasses() but it doesnt seem to give me what I want, so then I thought that maybe I can use the MemberList field from the record, but that would involve parsing add and sequence. Its doable, but if theres a simpler way Id rather do that. Best regards, Gabriel Hjort Åkerlund -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200825/3ebe222a/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6320 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200825/3ebe222a/attachment-0001.bin>