Skip to content

Commit 754aaa0

Browse files
committed
handle new clc conversion functions
This is following llvm/llvm-project#124727, but it can land before the llvm change. Ref google#1447
1 parent 448e8f0 commit 754aaa0

File tree

2 files changed

+3
-702
lines changed

2 files changed

+3
-702
lines changed

lib/Builtins.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ using namespace clspv;
2828
//// Convert Builtin function name to a Type enum
2929
////////////////////////////////////////////////////////////////////////////////
3030
Builtins::BuiltinType Builtins::LookupBuiltinType(const std::string &name) {
31+
if (name.find("__clc_convert_") == 0 || name.find("convert_") == 0) {
32+
return Builtins::kConvert;
33+
}
3134

3235
// Build static map of builtin function names
3336
#include "BuiltinsMap.inc"

0 commit comments

Comments
 (0)