summaryrefslogtreecommitdiff
path: root/docs
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
commit3f58a513e19fba487cb8416492456e9ade7db32e (patch)
tree6f61e86a56aeb39545ee6d5e4da54c5b00210dad /docs
parent2169ad8c60c9d4fcc3665836be6c5f9302b1c4ec (diff)
downloadllvm-3f58a513e19fba487cb8416492456e9ade7db32e.tar.gz
llvm-3f58a513e19fba487cb8416492456e9ade7db32e.tar.bz2
llvm-3f58a513e19fba487cb8416492456e9ade7db32e.tar.xz
Document the automatic alias printing of InstAliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/CodeGenerator.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/CodeGenerator.html b/docs/CodeGenerator.html
index 9185563323..60f42607f0 100644
--- a/docs/CodeGenerator.html
+++ b/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>