Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCLomatic] Support migration for cub::{StoreDirectBlocked, StoreDirectStriped} API #1305

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bugs
abhilash1910 committed Sep 20, 2023
commit 8b5589ac075a1ceeb0e076b9dd0be74d11e64071
4 changes: 2 additions & 2 deletions clang/lib/DPCT/CUBAPIMigration.cpp
Original file line number Diff line number Diff line change
@@ -582,7 +582,7 @@ void CubRule::registerMatcher(ast_matchers::MatchFinder &MF) {
MF.addMatcher(cxxMemberCallExpr(has(memberExpr(member(hasAnyName(
"InclusiveSum", "ExclusiveSum",
"InclusiveScan", "ExclusiveScan",
"Reduce", "Sum", "Broadcast", "Scan")))))
"Reduce", "Sum", "Broadcast", "Scan", "Load")))))
.bind("MemberCall"),
this);

@@ -1144,7 +1144,7 @@ void CubRule::processBlockLevelMemberCall(const CXXMemberCallExpr *BlockMC) {
} else if (FuncName == "Load") {

GroupOrWorkitem = DpctGlobalInfo::getItem(BlockMC);
NewFuncName = MapNames::getClNamespace() + "load";
NewFuncName = MapNames::getClNamespace() + "Load";
const Expr *InData = FuncArgs[0];
ExprAnalysis InEA(InData);
OpRepl = getOpRepl(nullptr);