Commit 4d23453
authored
[SYCLomatic] Refactor thrust migration patterns (#621)
* [SYCLomatic] Refactor thrust migration patterns
Signed-off-by: Lu, John <[email protected]>
* Refactor thrust::any_of. Add no_feature request label, when a feature isn't necessary.
Signed-off-by: Lu, John <[email protected]>
* Refactor thrust::replace and thrust::adjacent_different patterns. Allow patterns with 0 non-pointer parms
Signed-off-by: Lu, John <[email protected]>
* Don't test Dpct_no_feature with CUDA 8.0 since it uses thrust::any_of
Signed-off-by: Lu, John <[email protected]>
* Clean up refactoring. Avoid macros as much as possible.
Signed-off-by: Lu, John <[email protected]>
* Update thrust migrations to use CheckThrustArgType instead of CheckArgType
Signed-off-by: Lu, John <[email protected]>
* Implement variable args to call rewriter more cleanly
Signed-off-by: Lu, John <[email protected]>
* Update based on feedback from review. Reformatted with clang-format.
Signed-off-by: Lu, John <[email protected]>
* Add testcase that generates an unsupported thrust overload migration warning
Signed-off-by: Lu, John <[email protected]>
* Make PolicyState enum an enum class
Signed-off-by: Lu, John <[email protected]>
---------
Signed-off-by: Lu, John <[email protected]>1 parent 57ac2d5 commit 4d23453
File tree
3 files changed
+217
-723
lines changed- clang/lib/DPCT
3 files changed
+217
-723
lines changed
0 commit comments