From 8e38796b20cee1806ee552458d0856043ae77bd4 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 6 Jun 2014 15:34:18 +0800 Subject: [PATCH] GBE: ignoring some debug related intrinsics. We don't need to assert the kernel if we met some debug related intrinsics. Just ignore them. This patch could make beignet works well with Debug mode clBLAS. Signed-off-by: Zhigang Gong Reviewed-by: "Yang, Rong R" --- backend/src/llvm/llvm_gen_backend.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/src/llvm/llvm_gen_backend.cpp b/backend/src/llvm/llvm_gen_backend.cpp index 4bb9039..7cb71b7 100644 --- a/backend/src/llvm/llvm_gen_backend.cpp +++ b/backend/src/llvm/llvm_gen_backend.cpp @@ -2188,6 +2188,10 @@ namespace gbe this->newRegister(&I); break; #endif /* LLVM_VERSION_MINOR >= 2 */ + case Intrinsic::debugtrap: + case Intrinsic::dbg_value: + case Intrinsic::dbg_declare: + break; default: GBE_ASSERTM(false, "Unsupported intrinsics"); } @@ -2494,6 +2498,10 @@ namespace gbe case Intrinsic::lifetime_end: break; #endif /* LLVM_VERSION_MINOR >= 2 */ + case Intrinsic::debugtrap: + case Intrinsic::dbg_value: + case Intrinsic::dbg_declare: + break; default: NOT_IMPLEMENTED; } } else { -- 2.7.4