Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion clang/lib/DPCT/CallExprRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ std::unique_ptr<std::unordered_map<
std::string, std::shared_ptr<CallExprRewriterFactoryBase>>>();

void CallExprRewriterFactoryBase::initRewriterMap() {
if (DpctGlobalInfo::useSYCLCompat())
if (DpctGlobalInfo::useSYCLCompat()) {
initRewriterMapSYCLcompat(*RewriterMap);
initRewriterMethodMapSYCLcompat(*MethodRewriterMap);
}
initRewriterMapAtomic();
initRewriterMapCUB();
initRewriterMapCUFFT();
Expand Down
4 changes: 4 additions & 0 deletions clang/lib/DPCT/CallExprRewriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class CallExprRewriterFactoryBase {
std::unordered_map<std::string,
std::shared_ptr<CallExprRewriterFactoryBase>>
&RewriterMap);
static void initRewriterMethodMapSYCLcompat(
std::unordered_map<std::string,
std::shared_ptr<CallExprRewriterFactoryBase>>
&MethodRewriterMap);
static void initRewriterMapAtomic();
static void initRewriterMapCUB();
static void initRewriterMapCUFFT();
Expand Down
Loading