Skip to content

Commit 260c4a9

Browse files
committed
Document the automatic alias printing of InstAliases.
llvm-svn: 130889
1 parent 27a761d commit 260c4a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/docs/CodeGenerator.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,11 @@ <h4>Instruction Aliases</h4>
20192019
<p>Instruction aliases can also have a Requires clause to make them
20202020
subtarget specific.</p>
20212021

2022+
<p>If the back-end supports it, the instruction printer can automatically emit
2023+
the alias rather than what's being aliased. It typically leads to better,
2024+
more readable code. If it's better to print out what's being aliased, then
2025+
pass a '0' as the third parameter to the InstAlias definition.</p>
2026+
20222027
</div>
20232028

20242029
</div>

0 commit comments

Comments
 (0)