Skip to content

Commit

Permalink
Update libclc builtin after changes in llvm (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjodinchr committed May 17, 2024
1 parent 2a3052b commit c0b2bc4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
Binary file modified cmake/clspv--.bc
Binary file not shown.
Binary file modified cmake/clspv64--.bc
Binary file not shown.
2 changes: 1 addition & 1 deletion deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"subrepo" : "llvm/llvm-project",
"branch" : "main",
"subdir" : "third_party/llvm",
"commit" : "0a8cd1ed1f4f35905df318015b0dbcb69d81d7c2"
"commit" : "932ca85680db5e4579306f37e55746097fb8ec7f"
},
{
"name" : "SPIRV-Headers",
Expand Down
8 changes: 1 addition & 7 deletions lib/NativeMathPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ using namespace llvm;

namespace {
bool is_libclc_builtin(llvm::Function *F) {
for (auto &Attr : F->getAttributes().getFnAttrs()) {
if (Attr.isStringAttribute() && Attr.getKindAsString() == "llvm.assume" &&
Attr.getValueAsString() == "clspv_libclc_builtin") {
return true;
}
}
return false;
return F->getMetadata("clspv_libclc_builtin");
}
} // namespace

Expand Down

0 comments on commit c0b2bc4

Please sign in to comment.