This is an archive of the discontinued LLVM Phabricator instance.

[LangRef] Update description of Constant Expression
ClosedPublic

Authored by bjope on Oct 22 2017, 3:52 AM.

Details

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

Event Timeline

bjope created this revision.Oct 22 2017, 3:52 AM
efriedma accepted this revision.Oct 23 2017, 4:19 PM

LGTM.

This revision is now accepted and ready to land.Oct 23 2017, 4:19 PM
This revision was automatically updated to reflect the committed changes.