|
OpenADFortTk (basic)
|
#include "Open64IRInterface/Open64BasicTypes.h"#include "Open64IRInterface/IntrinsicInfo.h"#include "wn2xaif.h"#include "wn2xaif_expr.h"#include "wn2xaif_mem.h"#include "ty2xaif.h"#include "st2xaif.h"
Go to the source code of this file.
Classes | |
| struct | Conv_Op |
Defines | |
| #define | NUMBER_OF_CONV_OPS sizeof(Conv_Op_Map)/sizeof(CONV_OP) |
Typedefs | |
| typedef struct Conv_Op | CONV_OP |
Functions | |
| static void | xlate_UnaryOpUsingIntrinsicTable (xml::ostream &xos, OPCODE opcode, TY_IDX result_ty, WN *wn, PUXlationContext &ctxt) |
| static void | xlate_BinaryOpUsingIntrinsicTable (xml::ostream &xos, OPCODE opcode, TY_IDX result_ty, WN *wn0, WN *wn1, PUXlationContext &ctxt) |
| static void | xlate_Operand (xml::ostream &xos, WN *opnd, TY_IDX assumed_ty, BOOL callByValue, PUXlationContext &ctxt) |
| static void | WN2F_Expr_initialize (void) |
| static void | WN2F_Convert (xml::ostream &xos, MTYPE from_mtype, MTYPE to_mtype) |
| static void | InitConvOpMap () |
| static void | WN2F_Intr_Funcall (xml::ostream &xos, WN *wn, fortTkSupport::IntrinsicXlationTable::XAIFInfoPair &infoPair, INT begArgIdx, INT endArgIdx, BOOL callByValue, PUXlationContext &ctxt) |
Variables | |
| static const char * | Conv_Op [MTYPE_LAST+1][MTYPE_LAST+1] |
| static bool | Conv_OpInitialized = false |
| static const CONV_OP | Conv_Op_Map [] |
| #define NUMBER_OF_CONV_OPS sizeof(Conv_Op_Map)/sizeof(CONV_OP) |
Definition at line 54 of file wn2xaif_expr.cxx.
Referenced by WN2F_Expr_initialize().
| static void InitConvOpMap | ( | ) | [static] |
Definition at line 205 of file wn2xaif_expr.cxx.
References Conv_OpInitialized, and WN2F_Expr_initialize().
Referenced by whirl2xaif::WN2F_cvt(), and whirl2xaif::WN2F_cvtl().

| static void WN2F_Convert | ( | xml::ostream & | xos, |
| MTYPE | from_mtype, | ||
| MTYPE | to_mtype | ||
| ) | [static] |
Definition at line 178 of file wn2xaif_expr.cxx.
References Append_Token_String(), and FORTTK_ASSERT_WARN.
Referenced by whirl2xaif::WN2F_cvtl().

| static void WN2F_Expr_initialize | ( | void | ) | [static] |
Definition at line 168 of file wn2xaif_expr.cxx.
References Conv_Op_Map, Conv_Op::from, Conv_Op::name, NUMBER_OF_CONV_OPS, and Conv_Op::to.
Referenced by InitConvOpMap().
| static void WN2F_Intr_Funcall | ( | xml::ostream & | xos, |
| WN * | wn, | ||
| fortTkSupport::IntrinsicXlationTable::XAIFInfoPair & | infoPair, | ||
| INT | begArgIdx, | ||
| INT | endArgIdx, | ||
| BOOL | callByValue, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 690 of file wn2xaif_expr.cxx.
References xml::Attr(), xml::BegElem(), whirl2xaif::PUXlationContext::currentXlationContext(), whirl2xaif::DumpExprGraphEdge(), xml::EndElem(), whirl2xaif::XlationContext::getNewEdgeId(), whirl2xaif::XlationContext::getNewVertexId(), whirl2xaif::XlationContext::HAS_LOGICAL_ARG, whirl2xaif::IntrinsicKeyAnnot(), fortTkSupport::IntrinsicXlationTable::XAIFInfo::key, fortTkSupport::IntrinsicXlationTable::XAIFInfo::name, whirl2xaif::XlationContext::peekVertexId(), fortTkSupport::IntrinsicXlationTable::XAIFInfoPair::second, whirl2xaif::XlationContext::setFlag(), whirl2xaif::TranslateTYToSymShape(), whirl2xaif::TranslateTYToSymType(), TY_Is_Character_Reference(), TY_Is_Chararray_Reference(), TY_Is_Pointer(), whirl2xaif::XlationContext::unsetFlag(), whirl2xaif::WN2F_String_Argument(), WN_GetExprType(), WN_Tree_Type(), and xlate_Operand().
Referenced by whirl2xaif::xlate_INTRINSIC_OP().

| static void xlate_BinaryOpUsingIntrinsicTable | ( | xml::ostream & | xos, |
| OPCODE | opcode, | ||
| TY_IDX | result_ty, | ||
| WN * | wn0, | ||
| WN * | wn1, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 819 of file wn2xaif_expr.cxx.
References xml::Attr(), xml::BegElem(), whirl2xaif::PUXlationContext::currentXlationContext(), whirl2xaif::DumpExprGraphEdge(), xml::EndElem(), FORTTK_DIE, whirl2xaif::Whirl2Xaif::getIntrinsicXlationTable(), whirl2xaif::XlationContext::getNewEdgeId(), whirl2xaif::XlationContext::getNewVertexId(), whirl2xaif::XlationContext::getVertexId(), fortTkSupport::IntrinsicXlationTable::XAIFInfo::name, fortTkSupport::IntrinsicXlationTable::XAIFInfo::opr, whirl2xaif::XlationContext::peekVertexId(), fortTkSupport::IntrinsicXlationTable::XAIFInfoPair::second, Stab_Mtype_To_Ty(), fortTkSupport::IntrinsicXlationTable::toString(), whirl2xaif::TranslateTYToSymShape(), whirl2xaif::TranslateTYToSymType(), TY_Is_Pointer(), fortTkSupport::IntrinsicXlationTable::XAIFBoolOp, fortTkSupport::IntrinsicXlationTable::XAIFIntrin, and xlate_Operand().
Referenced by whirl2xaif::xlate_BinaryOp(), whirl2xaif::xlate_RECIP(), and xlate_UnaryOpUsingIntrinsicTable().

| static void xlate_Operand | ( | xml::ostream & | xos, |
| WN * | opnd, | ||
| TY_IDX | assumed_ty, | ||
| BOOL | callByValue, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 908 of file wn2xaif_expr.cxx.
References FORTTK_ASSERT, whirl2xaif::TranslateWN(), TY_Is_Character_Reference(), TY_Is_Character_String(), TY_Is_Chararray_Reference(), fortTkSupport::Diagnostics::UnexpectedInput, and whirl2xaif::xlate_MemRef().
Referenced by whirl2xaif::WN2F_bnor(), WN2F_Intr_Funcall(), whirl2xaif::WN2F_lshr(), whirl2xaif::WN2F_madd(), whirl2xaif::WN2F_msub(), whirl2xaif::WN2F_nmadd(), whirl2xaif::WN2F_nmsub(), whirl2xaif::WN2F_rsqrt(), and xlate_BinaryOpUsingIntrinsicTable().

| static void xlate_UnaryOpUsingIntrinsicTable | ( | xml::ostream & | xos, |
| OPCODE | opcode, | ||
| TY_IDX | result_ty, | ||
| WN * | wn, | ||
| PUXlationContext & | ctxt | ||
| ) | [static] |
Definition at line 806 of file wn2xaif_expr.cxx.
References xlate_BinaryOpUsingIntrinsicTable().
Referenced by whirl2xaif::xlate_UnaryOp().

const char* Conv_Op[MTYPE_LAST+1][MTYPE_LAST+1] [static] |
Definition at line 45 of file wn2xaif_expr.cxx.
const CONV_OP Conv_Op_Map[] [static] |
Definition at line 56 of file wn2xaif_expr.cxx.
Referenced by WN2F_Expr_initialize().
bool Conv_OpInitialized = false [static] |
Definition at line 46 of file wn2xaif_expr.cxx.
Referenced by InitConvOpMap().