[llvm-dev] TableGen Instruction class Uses and Defs

Miguel Inigo J. Manalac via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 2 14:54:12 PST 2020


Hello Nicolai,

Thank you for your help! I understand its use now.

Best,
Miguel

-----Original Message-----
From: Nicolai Hähnle [mailto:nhaehnle at gmail.com]
Sent: March 02, 2020 10:44 PM
To: Miguel Inigo J. Manalac
Cc: llvm-dev
Subject: Re: [llvm-dev] TableGen Instruction class Uses and Defs

Hi Miguel,

On Mon, Mar 2, 2020 at 2:42 AM Miguel Inigo J. Manalac via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> For example, for compare and compare with carry instructions, is my understanding correct that the instructions should be defined as described below?
>
> Considering that the carry flag is part of the status register:
>
> Compare – The status register is only listed in the Defs register list since it modifies the status register.
> Compare with carry – The status register is listed in both Defs and Uses register lists since it refers the status register (Carry flag information) and modifies it.
>
> With this understanding, am I correct to assume that all “with carry” instructions lists the status register in the Uses? The status register being listed in the Defs depends on whether the instruction modifies the status register or not.

Yes, this is the typical way to define such instructions.

Cheers,
Nicolai

>
>
>
> Thank you in advance for your responses, they are highly appreciated.
>
>
>
> Sincerely,
>
> Miguel Inigo J. Manalac (1852)
>
>
>
> JAPANESE: このメールは、宛先に書かれている方のみに送信することを意図しております。誤ってそれ以外の方に送信された場合は、申し訳ございませんが、送信者までお知らせいただき、受信されたメールを削除していただきますようお願いいたします。また、コンピュータ・ウィルスの混入等によってメールの欠落・不整合・遅滞等が発生し、何らのご不便をおかけすることが生じても弊社はその責任を負いません。 ENGLISH: This e-mail is intended for the person(s) to which it is addressed. If you have received it by mistake, please notify the sender and delete the received email. In addition, our company shall not assume any responsibility even if it causes any inconvenience, such as loss of mail, inconsistencies, delays, etc., due to the inclusion of computer viruses.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



--
Lerne, wie die Welt wirklich ist,
aber vergiss niemals, wie sie sein sollte.
JAPANESE: このメールは、宛先に書かれている方のみに送信することを意図しております。誤ってそれ以外の方に送信された場合は、申し訳ございませんが、送信者までお知らせいただき、受信されたメールを削除していただきますようお願いいたします。また、コンピュータ・ウィルスの混入等によってメールの欠落・不整合・遅滞等が発生し、何らのご不便をおかけすることが生じても弊社はその責任を負いません。 ENGLISH: This e-mail is intended for the person(s) to which it is addressed. If you have received it by mistake, please notify the sender and delete the received email. In addition, our company shall not assume any responsibility even if it causes any inconvenience, such as loss of mail, inconsistencies, delays, etc., due to the inclusion of computer viruses.


More information about the llvm-dev mailing list