[Beignet] [PATCH] GBE: handle half type size
Ruiling Song
ruiling.song at intel.com
Mon Nov 11 17:10:01 PST 2013
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
backend/src/llvm/llvm_passes.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/backend/src/llvm/llvm_passes.cpp b/backend/src/llvm/llvm_passes.cpp
index 6097f80..d31f07e 100644
--- a/backend/src/llvm/llvm_passes.cpp
+++ b/backend/src/llvm/llvm_passes.cpp
@@ -141,6 +141,7 @@ namespace gbe
case Type::IntegerTyID:
case Type::FloatTyID:
case Type::DoubleTyID:
+ case Type::HalfTyID:
return getTypeBitSize(unit, Ty)/8;
case Type::ArrayTyID:
return getAlignmentByte(unit, cast<ArrayType>(Ty)->getElementType());
@@ -165,6 +166,7 @@ namespace gbe
case Type::VoidTyID: NOT_SUPPORTED;
case Type::PointerTyID: return unit.getPointerSize();
case Type::IntegerTyID: return cast<IntegerType>(Ty)->getBitWidth();
+ case Type::HalfTyID: return 16;
case Type::FloatTyID: return 32;
case Type::DoubleTyID: return 64;
case Type::VectorTyID:
--
1.7.9.5
More information about the Beignet
mailing list