This fixes the implicit initialization that uses constructors in the __constant address space without arguments.
It also adds several tests to make sure that constructors in other address spaces also work, since these have not yet been tested.
Differential D102248
[C++4OpenCL] Fix initialization of __constant constructors without arguments olestrohm on May 11 2021, 9:00 AM. Authored by
Details This fixes the implicit initialization that uses constructors in the __constant address space without arguments. It also adds several tests to make sure that constructors in other address spaces also work, since these have not yet been tested.
Diff Detail
Unit Tests Event Timeline
Comment Actions LGTM! Thanks!
Comment Actions Relaxed the checks in the codegen test because of failures on platforms with slightly different IR being generated. |
ctor -> Ctor