This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Handle address space conversions for constexpr (PR44177)
ClosedPublic

Authored by svenvh on Dec 4 2019, 6:55 AM.

Details

Summary

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.

Diff Detail

Event Timeline

svenvh created this revision.Dec 4 2019, 6:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2019, 6:55 AM
Anastasia accepted this revision.Dec 5 2019, 4:21 AM

LGTM! Thanks!

This revision is now accepted and ready to land.Dec 5 2019, 4:21 AM
This revision was automatically updated to reflect the committed changes.