Searched refs:brig_inst (Results 1 – 8 of 8) sorted by relevance
/netbsd-src/external/gpl3/gcc.old/dist/gcc/brig/brigfrontend/ |
H A D | brig-copy-move-inst-handler.cc | 29 brig_copy_move_inst_handler::handle_lda (const BrigInstBase *brig_inst) in handle_lda() argument 31 tree dest_type = gccbrig_tree_type_for_hsa_type (brig_inst->type); in handle_lda() 33 tree input = build_tree_operand_from_brig (brig_inst, NULL, 1); in handle_lda() 34 tree output = build_tree_operand_from_brig (brig_inst, dest_type, 0); in handle_lda() 36 build_output_assignment (*brig_inst, output, input); in handle_lda() 37 return brig_inst->base.byteCount; in handle_lda() 43 const BrigInstBase *brig_inst in operator ()() local 46 if (brig_inst->opcode == BRIG_OPCODE_LDA) in operator ()() 47 return handle_lda (brig_inst); in operator ()() 52 tree dest_type = gccbrig_tree_type_for_hsa_type (brig_inst->type); in operator ()() [all …]
|
H A D | brig-mem-inst-handler.cc | 33 brig_mem_inst_handler::build_mem_access (const BrigInstBase *brig_inst, in build_mem_access() argument 36 bool is_load = brig_inst->opcode == BRIG_OPCODE_LD; in build_mem_access() 37 bool is_store = brig_inst->opcode == BRIG_OPCODE_ST; in build_mem_access() 42 tree instr_type = gccbrig_tree_type_for_hsa_type (brig_inst->type); in build_mem_access() 67 return build_output_assignment (*brig_inst, data, mem_ref); in build_mem_access() 80 const BrigInstBase *brig_inst in operator ()() local 83 if (brig_inst->opcode == BRIG_OPCODE_ALLOCA) in operator ()() 85 tree_stl_vec operands = build_operands (*brig_inst); in operator ()() 87 const BrigInstMem *mem_inst = (const BrigInstMem *) brig_inst; in operator ()() 101 build_output_assignment (*brig_inst, operands[0], builtin_call); in operator ()() [all …]
|
H A D | brig-code-entry-handler.cc | 98 brig_code_entry_handler::build_tree_operand (const BrigInstBase &brig_inst, in build_tree_operand() argument 119 = build_tree_operand (brig_inst, *operand_element, operand_type); in build_tree_operand() 202 return build_address_operand (brig_inst, in build_tree_operand() 215 (const BrigInstBase &brig_inst, const BrigOperandAddress &addr_operand) in build_address_operand() argument 217 tree instr_type = gccbrig_tree_type_for_hsa_type (brig_inst.type); in build_address_operand() 220 if (brig_inst.opcode == BRIG_OPCODE_LDA) in build_address_operand() 221 segment = ((const BrigInstAddr &) brig_inst).segment; in build_address_operand() 222 else if (brig_inst.base.kind == BRIG_KIND_INST_MEM) in build_address_operand() 223 segment = ((const BrigInstMem &) brig_inst).segment; in build_address_operand() 224 else if (brig_inst.base.kind == BRIG_KIND_INST_ATOMIC) in build_address_operand() [all …]
|
H A D | brig-branch-inst-handler.cc | 34 const BrigInstBase *brig_inst in operator ()() local 37 if (brig_inst->opcode == BRIG_OPCODE_CALL) in operator ()() 40 = m_parent.get_brig_data_entry (brig_inst->operands); in operator ()() 60 func_ref = build_tree_operand (*brig_inst, *operand_data); in operator ()() 161 tree instr_type = gccbrig_tree_type_for_hsa_type (brig_inst->type); in operator ()() 162 tree_stl_vec operands = build_operands (*brig_inst); in operator ()() 164 if (brig_inst->opcode == BRIG_OPCODE_BR) in operator ()() 169 else if (brig_inst->opcode == BRIG_OPCODE_SBR) in operator ()() 200 else if (brig_inst->opcode == BRIG_OPCODE_CBR) in operator ()() 209 else if (brig_inst->opcode == BRIG_OPCODE_WAVEBARRIER) in operator ()() [all …]
|
H A D | brig-basic-inst-handler.cc | 46 scalarized_sat_arithmetics (const BrigInstBase &brig_inst) in scalarized_sat_arithmetics() argument 47 : m_brig_inst (brig_inst) in scalarized_sat_arithmetics() 49 BrigType16_t element_type = brig_inst.type & BRIG_TYPE_BASE_MASK; in scalarized_sat_arithmetics() 59 if (brig_inst.opcode == BRIG_OPCODE && element_type == HSAIL_TYPE) \ in scalarized_sat_arithmetics() 449 const BrigInstBase *brig_inst = (const BrigInstBase *) base; in operator ()() local 450 if (brig_inst->opcode == BRIG_OPCODE_NOP) in operator ()() 453 tree_stl_vec operands = build_operands (*brig_inst); in operator ()() 456 = gccbrig_hsa_opcode_op_output_p (brig_inst->opcode, 0) ? 1 : 0; in operator ()() 469 BrigType16_t brig_inst_type = brig_inst->type; in operator ()() 471 if (brig_inst->opcode == BRIG_OPCODE_FIRSTBIT in operator ()() [all …]
|
H A D | brig-code-entry-handler.h | 56 tree build_tree_operand (const BrigInstBase &brig_inst, 61 tree build_address_operand (const BrigInstBase &brig_inst, 64 tree build_tree_operand_from_brig (const BrigInstBase *brig_inst, 77 tree_stl_vec build_operands (const BrigInstBase &brig_inst); 78 void analyze_operands (const BrigInstBase &brig_inst); 79 tree build_output_assignment (const BrigInstBase &brig_inst, tree output, 91 tree_stl_vec build_or_analyze_operands (const BrigInstBase &brig_inst, 272 bool must_be_scalarized (const BrigInstBase *brig_inst, 321 tree build_mem_access (const BrigInstBase *brig_inst, tree addr, tree data);
|
H A D | brig-cvt-inst-handler.cc | 59 const BrigInstBase *brig_inst in generate() local 72 tree dest_type = gccbrig_tree_type_for_hsa_type (brig_inst->type); in generate() 74 bool dest_is_fp16 = brig_inst->type == BRIG_TYPE_F16; in generate() 82 tree_stl_vec operands = build_operands (*brig_inst); in generate() 130 if (brig_inst->type == BRIG_TYPE_B1) in generate() 217 if (brig_inst->type == HSAIL_DST_TYPE \ in generate()
|
H A D | brig-to-generic.cc | 139 const BrigInstBase *brig_inst = (const BrigInstBase *) base; in operator ()() local 140 analyze_operands (*brig_inst); in operator ()()
|