Add constexpr evaluation for ExtVectorElementExpr nodes by evaluating
the underlying vector expression.
Add basic folding too, for the case that Evaluate does not return an
LValue.
Paths
| Differential D71133
[OpenCL] Add ExtVectorElementExpr constant evaluation (PR42387) ClosedPublic Authored by svenvh on Dec 6 2019, 10:36 AM.
Details Summary Add constexpr evaluation for ExtVectorElementExpr nodes by evaluating Add basic folding too, for the case that Evaluate does not return an
Diff Detail Event Timeline
Comment Actions LGTM! Thanks!
This revision is now accepted and ready to land.Dec 12 2019, 4:12 AM Closed by commit rGdf5a905aa8a8: [OpenCL] Add ExtVectorElementExpr constant evaluation (PR42387) (authored by svenvh). · Explain WhyDec 17 2019, 3:19 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 232609 clang/lib/AST/ExprConstant.cpp
clang/test/CodeGenOpenCLCXX/constexpr.cl
|
can Val not be vector at this point?