[TRITON][LANG] Added support for bitcast

This commit is contained in:
Philippe Tillet
2020-02-09 20:09:27 -05:00
committed by Philippe Tillet
parent 7a40077bfd
commit d22cf4f717
8 changed files with 42 additions and 3 deletions

View File

@@ -431,6 +431,7 @@ public:
void DerefOpTypeChecking();
void ReduceOpTypeChecking();
void UnaryArithmOpTypeChecking();
void BitcastOpTypeChecking();
void CastOpTypeChecking();
protected:

View File

@@ -91,7 +91,8 @@ protected:
ir::value* GenAssignOp(Expr* lvalue, ir::value* rhs);
ir::value* GenBroadcastOp(ir::value* src, ir::type* dst_ty);
ir::value* GenNumcastOp(ir::value*src, ir::type* dst_ty);
ir::value* GenCastOp(ir::value* op, ir::type* type);
ir::value* GenSemCastOp(ir::value* op, ir::type* type);
ir::value* GenBitCastOp(ir::value* src, ir::type* dst_ty);
// Triton-IR types
static ir::type* GenIRType(::Type* type, ir::context &ctx);

View File

@@ -164,6 +164,7 @@ public:
ALIGNOF, // _Alignof
GENERIC, // _Generic
IMAGINARY, // _Imaginary
BITCAST,
// KEYWORD END
IDENTIFIER,