[Beignet] [PATCH 03/19] backend: Add half float type into the instruction.

junyan.he at inbox.com junyan.he at inbox.com
Thu Jun 11 04:24:07 PDT 2015


From: Junyan He <junyan.he at linux.intel.com>

Now the instruction will have half float as its
arg and return value.

Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
 backend/src/ir/instruction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp
index e2c4a14..12d70a6 100644
--- a/backend/src/ir/instruction.cpp
+++ b/backend/src/ir/instruction.cpp
@@ -871,7 +871,7 @@ namespace ir {
                                       TYPE_S16, TYPE_U16,
                                       TYPE_S32, TYPE_U32,
                                       TYPE_S64, TYPE_U64,
-                                      TYPE_FLOAT, TYPE_DOUBLE};
+                                      TYPE_HALF, TYPE_FLOAT, TYPE_DOUBLE};
     static const uint32_t allButBoolNum = ARRAY_ELEM_NUM(allButBool);
 
     // TODO add support for 64 bits values
-- 
1.9.1



More information about the Beignet mailing list