Skip to content

Commit

Permalink
fix clang format
Browse files Browse the repository at this point in the history
Signed-off-by: jinge90 <ge.jin@intel.com>
  • Loading branch information
jinge90 committed Feb 1, 2024
1 parent 69542ae commit c3878ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clang/lib/Driver/ToolChains/SYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ const char *SYCL::Linker::constructLLVMLinkCommand(
}
StringRef LibSyclPrefix("libsycl-");
if (!InputFilename.starts_with(LibSyclPrefix) ||
!InputFilename.ends_with(LibPostfix) || (InputFilename.count('-') < 2))
!InputFilename.ends_with(LibPostfix) ||
(InputFilename.count('-') < 2))
return false;
// Skip the prefix "libsycl-"
std::string PureLibName =
Expand Down
3 changes: 2 additions & 1 deletion llvm/lib/SYCLLowerIR/ESIMD/LowerESIMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,8 @@ SmallPtrSet<Type *, 4> collectGenXVolatileTypes(Module &M) {
assert(
GTy->getName()
.rtrim(".0123456789")
.ends_with("sycl::_V1::ext::intel::esimd::detail::simd_obj_impl"));
.ends_with(
"sycl::_V1::ext::intel::esimd::detail::simd_obj_impl"));
VTy = GTy->getContainedType(0);
}
assert(VTy->isVectorTy());
Expand Down

0 comments on commit c3878ec

Please sign in to comment.