]> granicus.if.org Git - llvm/commit
[LangRef] Update description of Constant Expressions
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Tue, 24 Oct 2017 11:59:20 +0000 (11:59 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Tue, 24 Oct 2017 11:59:20 +0000 (11:59 +0000)
commit7b97ca1b57a2b7f2eb1e82f76328dfe240c2bf22
tree041c9d6268663519a9da9cb490991f7e4e20aa93
parent2e2ff0a1e633bb4434e966b8ca9f3eda5c935743
[LangRef] Update description of Constant Expressions

Summary:
When describing trunc/zext/sext/ptrtoint/inttoptr in the chapter
about Constant Expressions we now simply refer to the Instruction
Reference. As far as I know there are no difference when it comes
to the semantics and the argument constraints. The only difference
is that the syntax is slighly different for the constant expressions,
regarding the use of parenthesis in constant expressions.
Referring to the Instruction Reference is the same solution as
already used for several other operations, such as bitcast.

The main goal was to add information that vector types are allowed
also in trunc/zext/sext/ptrtoint/inttoptr constant expressions.
That was not explicitly mentioned earlier, and resulted in some
questions in the review of https://reviews.llvm.org/D38546

Reviewers: efriedma, majnemer

Reviewed By: efriedma

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D39165

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316429 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst