Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [OpenCL] Add ExtVectorElementExpr constant evaluation (PR42387) | Sven van Haastregt | 2019-12-17 | 1 | -0/+28 |
| | | | | | | | | Add constexpr evaluation for ExtVectorElementExpr nodes by evaluating the underlying vector expression. Add basic folding for the case that Evaluate does not return an LValue. Differential Revision: https://reviews.llvm.org/D71133 | ||||
* | [OpenCL] Handle address space conversions for constexpr (PR44177) | Sven van Haastregt | 2019-12-09 | 1 | -0/+26 |
The AST for the constexpr.cl test contains address space conversion nodes to cast through the implicit generic address space. These caused the evaluator to reject the input as constexpr in C++ for OpenCL mode, whereas the input was considered constexpr in plain C++ mode as the AST won't have address space cast nodes then. Fixes PR44177. Differential Revision: https://reviews.llvm.org/D71015 |