File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2674,7 +2674,8 @@ void TypeInDeclRule::runRule(const MatchFinder::MatchResult &Result) {
2674
2674
}
2675
2675
2676
2676
std::string CanonicalTypeStr =
2677
- DpctGlobalInfo::getTypeName(TL->getType().getCanonicalType());
2677
+ DpctGlobalInfo::getUnqualifiedTypeName(
2678
+ TL->getType().getCanonicalType());
2678
2679
StringRef CanonicalTypeStrRef(CanonicalTypeStr);
2679
2680
if (CanonicalTypeStrRef.startswith(
2680
2681
"cooperative_groups::__v1::thread_block_tile<")) {
@@ -2702,8 +2703,7 @@ void TypeInDeclRule::runRule(const MatchFinder::MatchResult &Result) {
2702
2703
}
2703
2704
}
2704
2705
2705
- if (DpctGlobalInfo::getTypeName(TL->getType().getCanonicalType()) ==
2706
- "cooperative_groups::__v1::thread_block") {
2706
+ if (CanonicalTypeStr == "cooperative_groups::__v1::thread_block") {
2707
2707
// Skip migrate the type in function body.
2708
2708
if (DpctGlobalInfo::findAncestor<clang::CompoundStmt>(TL) &&
2709
2709
DpctGlobalInfo::findAncestor<clang::FunctionDecl>(TL))
Original file line number Diff line number Diff line change @@ -200,3 +200,8 @@ int foo3() {
200
200
foo2<<<1 ,1 >>> ();
201
201
return 0 ;
202
202
}
203
+
204
+ // CHECK: void foo4(const sycl::group<3> &crtb,
205
+ // CHECK-NEXT: const sycl::group<3> *cptb);
206
+ __device__ void foo4 (const cg::thread_block &crtb,
207
+ const cg::thread_block *cptb);
You can’t perform that action at this time.
0 commit comments