Skip to content

Commit

Permalink
Merge pull request #19 from agozillon/sycl/unified/kernel_name_prefix
Browse files Browse the repository at this point in the history
Prefix kernel names with "x"
  • Loading branch information
keryell authored Apr 18, 2019
2 parents 7f7f680 + a081939 commit bf0037c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/SYCL/InSPIRation/InSPIRation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ struct InSPIRation : public ModulePass {
/// changing all the names to a SHA-1 hash. Like asking for an update
/// to the xocc compiler to accept characters that appear in mangled
/// names
F.setName(std::to_string(uuidHashValue));
F.setName("x" + std::to_string(uuidHashValue));
}

/// Add metadata for the SPIR 2.0 version
Expand Down
2 changes: 1 addition & 1 deletion sycl/source/detail/program_manager/program_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static std::string getUniqueName(const char *KernelName) {
boost::hash<boost::uuids::uuid> uuid_hasher;
std::size_t uuid_hash_value = uuid_hasher(udoc);

return std::to_string(uuid_hash_value);
return "x" + std::to_string(uuid_hash_value);
}

cl_kernel ProgramManager::getOrCreateKernel(OSModuleHandle M,
Expand Down

0 comments on commit bf0037c

Please sign in to comment.