[llvm-dev] how to overwrite target specific flag conditionally in Instruction in td file

林政宗 via llvm-dev llvm-dev at lists.llvm.org
Thu Apr 15 19:26:51 PDT 2021




Hi,
I just want to overwrite target specific flag in Instruction conditionally based on different register class as in operand in td file.
Is there any mechanism or hook function that can do it?




Thanks,
Jerry










-------- Forwarding messages --------
From: "林政宗" <jackie_linzz at 126.com>
Date: 2021-04-15 16:52:31
To: llvm-dev at lists.llvm.org
Subject: how to overwrite an variable conditionally using let in td file

Hi,


There is an instruction definition in td file which use a super register class as in operand. The super register class contains two register classes.
can I overwrite an variable conditionally using let statement in instruction definition when the in operand is of one register class and not for the other register class?
Is there any solution like conditional let in instruction definition in td file?


Thanks,
Jerry




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


More information about the llvm-dev mailing list