From 3f58a513e19fba487cb8416492456e9ade7db32e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 4 May 2011 23:40:14 +0000 Subject: [PATCH] Document the automatic alias printing of InstAliases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130889 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CodeGenerator.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/CodeGenerator.html b/docs/CodeGenerator.html index 91855633239..60f42607f07 100644 --- a/docs/CodeGenerator.html +++ b/docs/CodeGenerator.html @@ -2019,6 +2019,11 @@ def : InstAlias<"fcomi $reg", (COM_FIr RST:$reg)>;

Instruction aliases can also have a Requires clause to make them subtarget specific.

+

If the back-end supports it, the instruction printer can automatically emit + the alias rather than what's being aliased. It typically leads to better, + more readable code. If it's better to print out what's being aliased, then + pass a '0' as the third parameter to the InstAlias definition.

+ -- 2.34.1