summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-05-04 23:40:14 +0000
committerBill Wendling <isanbard@gmail.com>2011-05-04 23:40:14 +0000
commit260c4a946636f0e789266eba1b65937d0d41e29f (patch)
treedd2563eaffd68b018bc462b4b19fced4bdd09c9a
parent27a761d5bde0255ae6fbe71c5239544db81e2d63 (diff)
downloadbcm5719-llvm-260c4a946636f0e789266eba1b65937d0d41e29f.tar.gz
bcm5719-llvm-260c4a946636f0e789266eba1b65937d0d41e29f.zip
Document the automatic alias printing of InstAliases.
llvm-svn: 130889
-rw-r--r--llvm/docs/CodeGenerator.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/CodeGenerator.html b/llvm/docs/CodeGenerator.html
index 91855633239..60f42607f07 100644
--- a/llvm/docs/CodeGenerator.html
+++ b/llvm/docs/CodeGenerator.html
@@ -2019,6 +2019,11 @@ def : InstAlias&lt;"fcomi $reg", (COM_FIr RST:$reg)&gt;;
<p>Instruction aliases can also have a Requires clause to make them
subtarget specific.</p>
+<p>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.</p>
+
</div>
</div>
OpenPOWER on IntegriCloud