/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/Disassembler/ |
H A D | X86Disassembler.cpp | 178 static bool peek(struct InternalInstruction *insn, uint8_t &byte) { in peek() argument 179 uint64_t offset = insn->readerCursor - insn->startLocation; in peek() 180 if (offset >= insn->bytes.size()) in peek() 182 byte = insn->bytes[offset]; in peek() 186 template <typename T> static bool consume(InternalInstruction *insn, T &ptr) { in consume() argument 187 auto r = insn->bytes; in consume() 188 uint64_t offset = insn->readerCursor - insn->startLocation; in consume() 195 insn in consume() 199 isREX(struct InternalInstruction *insn, uint8_t prefix) isREX() argument 208 readPrefixes(struct InternalInstruction *insn) readPrefixes() argument 507 readSIB(struct InternalInstruction *insn) readSIB() argument 569 readDisplacement(struct InternalInstruction *insn) readDisplacement() argument 600 readModRM(struct InternalInstruction *insn) readModRM() argument 831 fixupReg(struct InternalInstruction *insn, const struct OperandSpecifier *op) fixupReg() argument 867 readOpcode(struct InternalInstruction *insn) readOpcode() argument 1010 getInstructionIDWithAttrMask(uint16_t *instructionID, struct InternalInstruction *insn, uint16_t attrMask) getInstructionIDWithAttrMask() argument 1059 getInstructionID(struct InternalInstruction *insn, const MCInstrInfo *mii) getInstructionID() argument 1350 readOpcodeRegister(struct InternalInstruction *insn, uint8_t size) readOpcodeRegister() argument 1393 readImmediate(struct InternalInstruction *insn, uint8_t size) readImmediate() argument 1437 readVVVV(struct InternalInstruction *insn) readVVVV() argument 1464 readMaskRegister(struct InternalInstruction *insn) readMaskRegister() argument 1477 readOperands(struct InternalInstruction *insn) readOperands() argument 1819 translateSrcIndex(MCInst &mcInst, InternalInstruction &insn) translateSrcIndex() argument 1844 translateDstIndex(MCInst &mcInst, InternalInstruction &insn) translateDstIndex() argument 1866 translateImmediate(MCInst &mcInst, uint64_t immediate, const OperandSpecifier &operand, InternalInstruction &insn, const MCDisassembler *Dis) translateImmediate() argument 1972 translateRMRegister(MCInst &mcInst, InternalInstruction &insn) translateRMRegister() argument 2010 translateRMMemory(MCInst &mcInst, InternalInstruction &insn, const MCDisassembler *Dis) translateRMMemory() argument 2170 translateRM(MCInst &mcInst, const OperandSpecifier &operand, InternalInstruction &insn, const MCDisassembler *Dis) translateRM() argument 2233 translateOperand(MCInst &mcInst, const OperandSpecifier &operand, InternalInstruction &insn, const MCDisassembler *Dis) translateOperand() argument 2295 translateInstruction(MCInst &mcInst, InternalInstruction &insn, const MCDisassembler *Dis) translateInstruction() argument [all...] |
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | simplify.c | 89 static int get_phisources(struct instruction *sources[], int nbr, struct instruction *insn) in get_phisources() argument 94 assert(insn->opcode == OP_PHI); in get_phisources() 95 FOR_EACH_PTR(insn->phi_list, phi) { in get_phisources() 108 static int if_convert_phi(struct instruction *insn) in if_convert_phi() argument 116 bb = insn->bb; in if_convert_phi() 117 if (get_phisources(array, 2, insn)) in if_convert_phi() 181 insert_select(source, br, insn, p1, p2); in if_convert_phi() 182 kill_instruction(insn); in if_convert_phi() 188 // @insn: the phi-node 199 static pseudo_t trivial_phi(pseudo_t pseudo, struct instruction *insn, struc argument 238 clean_up_phi(struct instruction *insn) clean_up_phi() argument 311 kill_asm(struct instruction *insn) kill_asm() argument 330 kill_insn(struct instruction *insn, int force) kill_insn() argument 407 has_target(struct instruction *insn) has_target() argument 417 struct instruction *insn; remove_dead_insns() local 470 replace_pseudo(struct instruction *insn, pseudo_t *pp, pseudo_t new) replace_pseudo() argument 478 replace_with_pseudo(struct instruction *insn, pseudo_t pseudo) replace_with_pseudo() argument 484 replace_with_value(struct instruction *insn, long long val) replace_with_value() argument 495 replace_with_unop(struct instruction *insn, int op, pseudo_t src) replace_with_unop() argument 509 replace_binop_value(struct instruction *insn, int op, long long val) replace_binop_value() argument 521 replace_binop(struct instruction *insn, int op, pseudo_t *pa, pseudo_t a, pseudo_t *pb, pseudo_t b) replace_binop() argument 536 replace_opcode(struct instruction *insn, int op) replace_opcode() argument 609 operand_size(struct instruction *insn, pseudo_t pseudo) operand_size() argument 777 simplify_mask_or_and(struct instruction *insn, unsigned long long mask, pseudo_t ora, pseudo_t orb) simplify_mask_or_and() argument 816 simplify_mask_or(struct instruction *insn, unsigned long long mask, struct instruction *or) simplify_mask_or() argument 883 eval_insn(struct instruction *insn) eval_insn() argument 892 check_shift_count(struct instruction *insn, unsigned long long uval) check_shift_count() argument 911 simplify_shift(struct instruction *insn, pseudo_t pseudo, long long value) simplify_shift() argument 1057 simplify_mul_div(struct instruction *insn, long long value) simplify_mul_div() argument 1084 simplify_seteq_setne(struct instruction *insn, long long value) simplify_seteq_setne() argument 1170 simplify_compare_constant(struct instruction *insn, long long value) simplify_compare_constant() argument 1468 simplify_constant_mask(struct instruction *insn, unsigned long long mask) simplify_constant_mask() argument 1504 simplify_const_rightadd(struct instruction *def, struct instruction *insn) simplify_const_rightadd() argument 1522 simplify_constant_rightside(struct instruction *insn) simplify_constant_rightside() argument 1590 simplify_const_leftsub(struct instruction *insn, struct instruction *def) simplify_const_leftsub() argument 1614 simplify_constant_leftside(struct instruction *insn) simplify_constant_leftside() argument 1641 simplify_constant_binop(struct instruction *insn) simplify_constant_binop() argument 1651 simplify_binop_same_args(struct instruction *insn, pseudo_t arg) simplify_binop_same_args() argument 1681 simplify_binop(struct instruction *insn) simplify_binop() argument 1738 canonicalize_commutative(struct instruction *insn) canonicalize_commutative() argument 1747 canonicalize_compare(struct instruction *insn) canonicalize_compare() argument 1766 struct instruction *insn; insn_before() local 1800 simplify_associative_binop(struct instruction *insn) simplify_associative_binop() argument 1827 simplify_add_one_side(struct instruction *insn, pseudo_t *p1, pseudo_t *p2) simplify_add_one_side() argument 1866 simplify_add(struct instruction *insn) simplify_add() argument 1872 simplify_sub(struct instruction *insn) simplify_sub() argument 1902 simplify_compare(struct instruction *insn) simplify_compare() argument 1926 simplify_and_one_side(struct instruction *insn, pseudo_t *p1, pseudo_t *p2) simplify_and_one_side() argument 1985 simplify_and(struct instruction *insn) simplify_and() argument 1991 simplify_ior_one_side(struct instruction *insn, pseudo_t *p1, pseudo_t *p2) simplify_ior_one_side() argument 2039 simplify_ior(struct instruction *insn) simplify_ior() argument 2045 simplify_xor_one_side(struct instruction *insn, pseudo_t *p1, pseudo_t *p2) simplify_xor_one_side() argument 2093 simplify_xor(struct instruction *insn) simplify_xor() argument 2099 simplify_constant_unop(struct instruction *insn) simplify_constant_unop() argument 2129 simplify_unop(struct instruction *insn) simplify_unop() argument 2194 simplify_one_memop(struct instruction *insn, pseudo_t orig) simplify_one_memop() argument 2248 simplify_memop(struct instruction *insn) simplify_memop() argument 2260 simplify_cast(struct instruction *insn) simplify_cast() argument 2426 simplify_select(struct instruction *insn) simplify_select() argument 2573 simplify_range(struct instruction *insn) simplify_range() argument 2602 simplify_branch(struct instruction *insn) simplify_branch() argument 2646 simplify_switch(struct instruction *insn) simplify_switch() argument 2679 simplify_cgoto(struct instruction *insn) simplify_cgoto() argument 2714 simplify_setval(struct instruction *insn) simplify_setval() argument 2729 simplify_instruction(struct instruction *insn) simplify_instruction() argument [all...] |
H A D | ir.c | 9 static int nbr_phi_operands(struct instruction *insn) in nbr_phi_operands() argument 14 if (!insn->phi_list) in nbr_phi_operands() 17 FOR_EACH_PTR(insn->phi_list, p) { in nbr_phi_operands() 26 static int check_phi_node(struct instruction *insn) in check_phi_node() argument 32 if (!has_users(insn->target)) in check_phi_node() 35 if (bb_list_size(insn->bb->parents) != nbr_phi_operands(insn)) { in check_phi_node() 36 sparse_error(insn->pos, "bad number of phi operands in:\n\t%s", in check_phi_node() 37 show_instruction(insn)); in check_phi_node() 38 info(insn in check_phi_node() 62 check_user(struct instruction *insn, pseudo_t pseudo) check_user() argument 88 check_branch(struct entrypoint *ep, struct instruction *insn, struct basic_block *bb) check_branch() argument 96 check_switch(struct entrypoint *ep, struct instruction *insn) check_switch() argument 110 check_return(struct instruction *insn) check_return() argument 121 validate_insn(struct entrypoint *ep, struct instruction *insn) validate_insn() argument 196 struct instruction *insn; ir_validate() local [all...] |
H A D | memops.c | 20 static void rewrite_load_instruction(struct instruction *insn, struct pseudo_list *dominators) in rewrite_load_instruction() argument 41 replace_with_pseudo(insn, new); in rewrite_load_instruction() 48 kill_use(&insn->src); in rewrite_load_instruction() 49 insn->opcode = OP_PHI; in rewrite_load_instruction() 50 insn->phi_list = dominators; in rewrite_load_instruction() 56 static int find_dominating_parents(struct instruction *insn, in find_dominating_parents() argument 71 if (one == insn) in find_dominating_parents() 73 dominance = dominates(insn, one, local); in find_dominating_parents() 88 if (!find_dominating_parents(insn, parent, dominators, local)) in find_dominating_parents() 94 phisrc->phi_node = insn; in find_dominating_parents() 107 struct instruction *insn = pu->insn; address_taken() local 134 struct instruction *insn; simplify_loads() local 200 try_to_kill_store(struct instruction *insn, struct instruction *dom, int local) try_to_kill_store() argument 226 struct instruction *insn; kill_dominated_stores() local [all...] |
H A D | scheck.c | 74 static BoolectorNode *get_arg(Btor *btor, struct instruction *insn, int idx) in get_arg() argument 76 pseudo_t arg = ptr_list_nth(insn->arguments, idx); in get_arg() 77 struct symbol *type = ptr_list_nth(insn->fntypes, idx + 1); in get_arg() 78 BoolectorSort s = get_sort(btor, type, insn->pos); in get_arg() 83 static BoolectorNode *zext(Btor *btor, struct instruction *insn, BoolectorNode *s) in zext() argument 86 int new = insn->type->bit_size; in zext() 90 static BoolectorNode *sext(Btor *btor, struct instruction *insn, BoolectorNode *s) in sext() argument 93 int new = insn->type->bit_size; in sext() 97 static BoolectorNode *slice(Btor *btor, struct instruction *insn, BoolectorNode *s) in slice() argument 100 int new = insn in slice() 104 binary(Btor *btor, BoolectorSort s, struct instruction *insn) binary() argument 143 binop(Btor *btor, struct instruction *insn) binop() argument 149 icmp(Btor *btor, struct instruction *insn) icmp() argument 155 unop(Btor *btor, struct instruction *insn) unop() argument 176 ternop(Btor *btor, struct instruction *insn) ternop() argument 199 add_precondition(Btor *btor, BoolectorNode **pre, struct instruction *insn) add_precondition() argument 209 check_btor(Btor *btor, BoolectorNode *p, BoolectorNode *n, struct instruction *insn) check_btor() argument 233 check_assert(Btor *btor, BoolectorNode *pre, struct instruction *insn) check_assert() argument 241 check_equal(Btor *btor, BoolectorNode *pre, struct instruction *insn) check_equal() argument 249 check_const(Btor *ctxt, struct instruction *insn) check_const() argument 265 check_call(Btor *btor, BoolectorNode **pre, struct instruction *insn) check_call() argument 292 struct instruction *insn; check_function() local [all...] |
H A D | flow.c | 33 struct instruction *insn; in remove_phisources() local 36 FOR_EACH_PTR(old->insns, insn) { in remove_phisources() 39 if (!insn->bb) in remove_phisources() 41 if (insn->opcode != OP_PHI) in remove_phisources() 46 FOR_EACH_PTR(insn->phi_list, phi) { in remove_phisources() 51 assert(phisrc->phi_node == insn); in remove_phisources() 64 } END_FOR_EACH_PTR(insn); in remove_phisources() 119 struct instruction *insn = pseudo->def; in pseudo_truth_value() local 122 if (insn->opcode == OP_SYMADDR && insn in pseudo_truth_value() 155 struct instruction *insn; bb_depends_on_phi() local 172 struct instruction *insn; bb_is_forwarder() local 273 struct instruction *insn; bb_has_side_effects() local 323 struct instruction *insn; simplify_branch_branch() local 392 convert_instruction_target(struct instruction *insn, pseudo_t src) convert_instruction_target() argument 447 dominates(struct instruction *insn, struct instruction *dom, int local) dominates() argument 498 struct instruction *insn; kill_dead_stores_bb() local 535 check_access(struct instruction *insn) check_access() argument 577 struct instruction *insn = pu->insn; kill_dead_stores() local 607 kill_defs(struct instruction *insn) kill_defs() argument 621 struct instruction *insn; kill_bb() local 667 struct instruction *insn = last_instruction(bb->insns); rewrite_parent_branch() local 795 convert_to_jump(struct instruction *insn, struct basic_block *target) convert_to_jump() argument 846 remove_merging_phisrc(struct instruction *insn, struct basic_block *bot) remove_merging_phisrc() argument 869 remove_merging_phi(struct basic_block *top, struct instruction *insn) remove_merging_phi() argument 895 struct instruction *insn; merge_bb() local 947 struct instruction *insn; simplify_cfg_early() local [all...] |
H A D | sparse-llvm.c | 221 static LLVMTypeRef insn_symbol_type(struct instruction *insn) in insn_symbol_type() argument 223 if (insn->type) in insn_symbol_type() 224 return symbol_type(insn->type); in insn_symbol_type() 226 switch (insn->size) { in insn_symbol_type() 233 die("invalid bit size %d", insn->size); in insn_symbol_type() 534 static void output_op_binary(struct function *fn, struct instruction *insn) in output_op_binary() argument 539 lhs = get_ioperand(fn, insn->type, insn->src1); in output_op_binary() 540 rhs = get_ioperand(fn, insn->type, insn in output_op_binary() 619 output_op_compare(struct function *fn, struct instruction *insn) output_op_compare() argument 672 output_op_ret(struct function *fn, struct instruction *insn) output_op_ret() argument 683 calc_memop_addr(struct function *fn, struct instruction *insn) calc_memop_addr() argument 705 output_op_load(struct function *fn, struct instruction *insn) output_op_load() argument 719 output_op_store(struct function *fn, struct instruction *insn) output_op_store() argument 754 output_op_sel(struct function *fn, struct instruction *insn) output_op_sel() argument 769 output_op_switch(struct function *fn, struct instruction *insn) output_op_switch() argument 797 output_op_call(struct function *fn, struct instruction *insn) output_op_call() argument 827 output_op_phisrc(struct function *fn, struct instruction *insn) output_op_phisrc() argument 832 output_op_phi(struct function *fn, struct instruction *insn) output_op_phi() argument 839 output_op_ptrcast(struct function *fn, struct instruction *insn) output_op_ptrcast() argument 877 output_op_cast(struct function *fn, struct instruction *insn, LLVMOpcode op) output_op_cast() argument 911 output_op_fpcast(struct function *fn, struct instruction *insn) output_op_fpcast() argument 938 output_op_label(struct function *fn, struct instruction *insn) output_op_label() argument 943 output_op_setval(struct function *fn, struct instruction *insn) output_op_setval() argument 959 output_op_setfval(struct function *fn, struct instruction *insn) output_op_setfval() argument 968 output_insn(struct function *fn, struct instruction *insn) output_insn() argument 1105 struct instruction *insn; output_bb() local 1165 struct instruction *insn; output_fn() local [all...] |
H A D | ssa.c | 77 static void kill_store(struct instruction *insn) in kill_store() argument 79 remove_use(&insn->src); in kill_store() 80 remove_use(&insn->target); in kill_store() 81 insn->bb = NULL; in kill_store() 98 struct instruction *insn; in rewrite_local_var() local 104 FOR_EACH_PTR(bb->insns, insn) { in rewrite_local_var() 106 if (!insn->bb || insn->src != addr) in rewrite_local_var() 108 switch (insn->opcode) { in rewrite_local_var() 111 replace_with_pseudo(insn, undef_pseud in rewrite_local_var() 163 struct instruction *insn = pu->insn; ssa_convert_one_var() local 216 struct instruction *insn = phi_map_lookup(bb->phi_map, var); lookup_var() local 227 matching_load(struct instruction *def, struct instruction *insn) matching_load() argument 244 ssa_rename_insn(struct basic_block *bb, struct instruction *insn) ssa_rename_insn() argument 295 struct instruction *insn; ssa_rename_insns() local 319 ssa_rename_phi(struct instruction *insn) ssa_rename_phi() argument [all...] |
H A D | sparse.c | 46 struct instruction *insn; in context_increase() local 48 FOR_EACH_PTR(bb->insns, insn) { in context_increase() 50 if (!insn->bb) in context_increase() 52 if (insn->opcode != OP_CONTEXT) in context_increase() 54 val = insn->increment; in context_increase() 55 if (insn->check) { in context_increase() 62 warning(insn->pos, "context check failure"); in context_increase() 66 } END_FOR_EACH_PTR(insn); in context_increase() 83 struct instruction *insn; in check_children() local 86 insn in check_children() 118 check_cast_instruction(struct instruction *insn) check_cast_instruction() argument 147 check_range_instruction(struct instruction *insn) check_range_instruction() argument 152 check_byte_count(struct instruction *insn, pseudo_t count) check_byte_count() argument 166 check_memset(struct instruction *insn) check_memset() argument 180 check_call_instruction(struct instruction *insn) check_call_instruction() argument 205 check_one_instruction(struct instruction *insn) check_one_instruction() argument 226 struct instruction *insn; check_bb_instructions() local [all...] |
H A D | linearize.c | 43 struct instruction * insn = __alloc_instruction(0); in alloc_instruction() local 44 insn->opcode = opcode; in alloc_instruction() 45 insn->size = size; in alloc_instruction() 46 insn->pos = current_pos; in alloc_instruction() 47 return insn; in alloc_instruction() 57 struct instruction *insn = alloc_instruction(opcode, type_size(type)); in alloc_typed_instruction() local 58 insn->type = type; in alloc_typed_instruction() 59 return insn; in alloc_typed_instruction() 296 static char *show_asm(char *buf, struct instruction *insn) in show_asm() argument 298 struct asm_rules *rules = insn in show_asm() 307 show_instruction(struct instruction *insn) show_instruction() argument 509 struct instruction *insn; show_bb() local 566 show_insn_bb(struct instruction *insn) show_insn_bb() argument 622 show_insn_entry(struct instruction *insn) show_insn_entry() argument 668 add_one_insn(struct entrypoint *ep, struct instruction *insn) add_one_insn() argument 680 struct instruction *insn = alloc_instruction(OP_UNREACH, 0); add_unreachable() local 833 struct instruction *insn = alloc_typed_instruction(OP_PHISOURCE, type); alloc_phisrc() local 848 struct instruction *insn; alloc_phi() local 874 struct instruction *insn; add_phi_node() local 968 struct instruction *insn; add_load() local 1040 taint_undefined_behaviour(struct instruction *insn) taint_undefined_behaviour() argument 1059 struct instruction *insn = alloc_typed_instruction(op, ctype); add_binary_op() local 1077 struct instruction *insn = alloc_typed_instruction(OP_SETVAL, ctype); add_setval() local 1087 struct instruction *insn = alloc_typed_instruction(OP_SETFVAL, ctype); add_setfval() local 1097 struct instruction *insn = alloc_typed_instruction(OP_SYMADDR, expr->ctype); add_symbol_address() local 1172 struct instruction *insn = alloc_typed_instruction(op, ctype); add_unop() local 1192 struct instruction *insn = alloc_typed_instruction(OP_SLICE, expr->ctype); linearize_slice() local 1364 struct instruction *insn; cast_pseudo() local 1495 struct instruction *insn; linearize_call_expression() local 1611 struct instruction *insn; linearize_select() local 2034 struct instruction *insn = alloc_instruction(OP_INLINED_CALL, 0); linearize_inlined_call() local 2062 struct instruction *insn = alloc_instruction(OP_CONTEXT, 0); linearize_context() local 2073 struct instruction *insn = alloc_instruction(OP_RANGE, 0); linearize_range() local 2085 add_asm_rule(struct instruction *insn, struct asm_constraint_list **list, struct asm_operand *op, pseudo_t pseudo) add_asm_rule() argument 2095 add_asm_input(struct entrypoint *ep, struct instruction *insn, struct asm_operand *op) add_asm_input() argument 2102 add_asm_output_address(struct entrypoint *ep, struct instruction *insn, struct asm_operand *op) add_asm_output_address() argument 2114 add_asm_output(struct entrypoint *ep, struct instruction *insn, struct asm_operand *op) add_asm_output() argument 2132 struct instruction *insn; linearize_asm_statement() local 2195 sort_switch_cases(struct instruction *insn) sort_switch_cases() argument 2483 check_tainted_insn(struct instruction *insn) check_tainted_insn() argument 2516 struct instruction *insn; late_warnings() local 2603 struct instruction *insn = alloc_typed_instruction(OP_FMADD, expr->ctype); linearize_fma() local 2620 struct instruction *insn; linearize_isdigit() local [all...] |
H A D | graph.c | 47 struct instruction *insn; in graph_ep() local 76 FOR_EACH_PTR(bb->insns, insn) { in graph_ep() 77 if (!insn->bb) in graph_ep() 79 switch(insn->opcode) { in graph_ep() 81 if (insn->src->type == PSEUDO_SYM) { in graph_ep() 82 printf("%s store(%s)", s, show_ident(insn->src->sym->ident)); in graph_ep() 88 if (insn->src->type == PSEUDO_SYM) { in graph_ep() 89 printf("%s load(%s)", s, show_ident(insn->src->sym->ident)); in graph_ep() 99 } END_FOR_EACH_PTR(insn); in graph_ep() 123 struct instruction *insn; in graph_calls() local [all...] |
H A D | cse.c | 38 void cse_collect(struct instruction *insn) in cse_collect() argument 42 hash = (insn->opcode << 3) + (insn->size >> 3); in cse_collect() 43 switch (insn->opcode) { in cse_collect() 45 hash += hashval(insn->src3); in cse_collect() 73 hash += hashval(insn->src2); in cse_collect() 80 hash += hashval(insn->src1); in cse_collect() 84 hash += hashval(insn->bb_true); in cse_collect() 88 hash += hashval(insn->val); in cse_collect() 92 hash += hashval(insn in cse_collect() 273 cse_one_instruction(struct instruction *insn, struct instruction *def) cse_one_instruction() argument 296 remove_instruction(struct instruction_list **list, struct instruction *insn, int count) remove_instruction() argument 317 struct instruction *insn; try_to_cse() local 354 struct instruction *insn, *last; cse_eliminate() local [all...] |
/third_party/mesa3d/src/nouveau/codegen/ |
H A D | nv50_ir_emit_gv100.cpp | 51 emitIMMD(32, 32, insn->src(src)); in emitFormA_I32() 52 if (insn->src(src).mod.abs()) in emitFormA_I32() 54 if (insn->src(src).mod.neg()) in emitFormA_I32() 65 emitGPR (64, insn->src(src1 & FA_SRC_MASK)); in emitFormA_RRC() 70 emitCBUF(54, -1, 38, 0, 2, insn->src(src2 & FA_SRC_MASK)); in emitFormA_RRC() 81 emitGPR (64, insn->src(src1 & FA_SRC_MASK)); in emitFormA_RRI() 94 emitGPR (64, insn->src(src2 & FA_SRC_MASK)); in emitFormA_RRR() 100 emitGPR (32, insn->src(src1 & FA_SRC_MASK)); in emitFormA_RRR() 108 switch ((src1 < 0) ? FILE_GPR : insn->src(src1 & FA_SRC_MASK).getFile()) { in emitFormA() 110 switch ((src2 < 0) ? FILE_GPR : insn in emitFormA() 161 const FlowInstruction *insn = this->insn->asFlow(); emitBRA() local 513 const CmpInstruction *insn = this->insn->asCmp(); emitFSET_BF() local 538 const CmpInstruction *insn = this->insn->asCmp(); emitFSETP() local 639 const CmpInstruction *insn = this->insn->asCmp(); emitDSETP() local 735 const CmpInstruction *insn = this->insn->asCmp(); emitISETP() local 1225 const TexInstruction *insn = this->insn->asTex(); emitTEX() local 1269 const TexInstruction *insn = this->insn->asTex(); emitTLD() local 1297 const TexInstruction *insn = this->insn->asTex(); emitTLD4() local 1334 const TexInstruction *insn = this->insn->asTex(); emitTMML() local 1359 const TexInstruction *insn = this->insn->asTex(); emitTXD() local 1385 const TexInstruction *insn = this->insn->asTex(); emitTXQ() local 1420 const TexInstruction *insn = this->insn->asTex(); emitSUHandle() local 1439 const TexInstruction *insn = this->insn->asTex(); emitSUTarget() local 1466 const TexInstruction *insn = this->insn->asTex(); emitSUATOM() local 1512 const TexInstruction *insn = this->insn->asTex(); emitSULD() local 1550 const TexInstruction *insn = this->insn->asTex(); emitSUST() local [all...] |
H A D | nv50_ir_emit_gm107.cpp | 50 const Instruction *insn; member in nv50_ir::CodeEmitterGM107 107 emitRND(pos, insn->rnd, -1); in emitRND() 242 if (insn->predSrc >= 0) { in emitPred() 243 emitField(16, 3, insn->getSrc(insn->predSrc)->rep()->reg.data.id); in emitPred() 244 emitField(19, 1, insn->cc == CC_NOT_P); in emitPred() 332 if (isFloatType(insn->sType)) in longIMMD() 347 if (insn->sType == TYPE_F32 || insn->sType == TYPE_F16) { in emitIMMD() 350 } else if (insn in emitIMMD() 530 const FlowInstruction *insn = this->insn->asFlow(); emitBRA() local 567 const FlowInstruction *insn = this->insn->asFlow(); emitCAL() local 596 const FlowInstruction *insn = this->insn->asFlow(); emitPCNT() local 618 const FlowInstruction *insn = this->insn->asFlow(); emitPBK() local 640 const FlowInstruction *insn = this->insn->asFlow(); emitPRET() local 662 const FlowInstruction *insn = this->insn->asFlow(); emitSSY() local 1190 const CmpInstruction *insn = this->insn->asCmp(); emitDSET() local 1238 const CmpInstruction *insn = this->insn->asCmp(); emitDSETP() local 1531 const CmpInstruction *insn = this->insn->asCmp(); emitFCMP() local 1577 const CmpInstruction *insn = this->insn->asCmp(); emitFSET() local 1626 const CmpInstruction *insn = this->insn->asCmp(); emitFSETP() local 2030 const CmpInstruction *insn = this->insn->asCmp(); emitICMP() local 2076 const CmpInstruction *insn = this->insn->asCmp(); emitISET() local 2122 const CmpInstruction *insn = this->insn->asCmp(); emitISETP() local 2888 const TexInstruction *insn = this->insn->asTex(); emitTEX() local 2930 const TexInstruction *insn = this->insn->asTex(); emitTEXS() local 2974 const TexInstruction *insn = this->insn->asTex(); emitTLD() local 2999 const TexInstruction *insn = this->insn->asTex(); emitTLD4() local 3029 const TexInstruction *insn = this->insn->asTex(); emitTXD() local 3052 const TexInstruction *insn = this->insn->asTex(); emitTMML() local 3075 const TexInstruction *insn = this->insn->asTex(); emitTXQ() local 3263 const TexInstruction *insn = this->insn->asTex(); emitSUTarget() local 3290 const TexInstruction *insn = this->insn->asTex(); emitSUHandle() local 3307 const TexInstruction *insn = this->insn->asTex(); emitSUSTx() local 3325 const TexInstruction *insn = this->insn->asTex(); emitSULDx() local 3355 const TexInstruction *insn = this->insn->asTex(); emitSUREDx() local 3787 emitStall(Instruction *insn, uint8_t cnt) emitStall() argument [all...] |
H A D | nv50_ir_lowering_helper.cpp | 30 LoweringHelper::visit(Instruction *insn) in visit() argument 32 switch (insn->op) { in visit() 34 return handleABS(insn); in visit() 36 return handleCVT(insn); in visit() 39 return handleMAXMIN(insn); in visit() 41 return handleMOV(insn); in visit() 43 return handleNEG(insn); in visit() 45 return handleSAT(insn); in visit() 47 return handleSLCT(insn->asCmp()); in visit() 52 return handleLogOp(insn); in visit() 59 handleABS(Instruction *insn) handleABS() argument 83 handleCVT(Instruction *insn) handleCVT() argument 113 handleMAXMIN(Instruction *insn) handleMAXMIN() argument 149 handleMOV(Instruction *insn) handleMOV() argument 177 handleNEG(Instruction *insn) handleNEG() argument 191 handleSAT(Instruction *insn) handleSAT() argument 208 handleSLCT(CmpInstruction *insn) handleSLCT() argument 242 handleLogOp(Instruction *insn) handleLogOp() argument [all...] |
H A D | nv50_ir_target_gm107.cpp | 84 TargetGM107::isReuseSupported(const Instruction *insn) const 86 const OpClass cl = getOpClass(insn->op); 97 if (insn->op == OP_INSBF || insn->op == OP_EXTBF) 111 TargetGM107::isBarrierRequired(const Instruction *insn) const 113 const OpClass cl = getOpClass(insn->op); 115 if (insn->dType == TYPE_F64 || insn->sType == TYPE_F64) 126 switch (insn->op) { 142 switch (insn [all...] |
H A D | nv50_ir_from_nir.cpp | 255 Converter::getDType(nir_alu_instr *insn) in getDType() argument 257 if (insn->dest.dest.is_ssa) in getDType() 258 return getDType(insn->op, insn->dest.dest.ssa.bit_size); in getDType() 260 return getDType(insn->op, insn->dest.dest.reg.reg->bit_size); in getDType() 264 Converter::getDType(nir_intrinsic_instr *insn) in getDType() argument 267 switch (insn->intrinsic) { in getDType() 289 if (insn->dest.is_ssa) in getDType() 290 return typeOfSize(insn in getDType() 307 getSTypes(nir_alu_instr *insn) getSTypes() argument 840 getIndirect(nir_intrinsic_instr *insn, uint8_t s, uint8_t c, Value *&indirect, bool isScalar) getIndirect() argument 1175 getSlotAddress(nir_intrinsic_instr *insn, uint8_t idx, uint8_t slot) getSlotAddress() argument 1262 storeTo(nir_intrinsic_instr *insn, DataFile file, operation op, DataType ty, Value *src, uint8_t idx, uint8_t c, Value *indirect0, Value *indirect1) storeTo() argument [all...] |
H A D | nv50_ir_bb.cpp | 239 BasicBlock::remove(Instruction *insn) in remove() argument 241 assert(insn->bb == this); in remove() 243 if (insn->prev) in remove() 244 insn->prev->next = insn->next; in remove() 246 if (insn->next) in remove() 247 insn->next->prev = insn->prev; in remove() 249 exit = insn->prev; in remove() 251 if (insn in remove() 299 splitCommon(Instruction *insn, BasicBlock *bb, bool attach) splitCommon() argument 330 splitBefore(Instruction *insn, bool attach) splitBefore() argument 343 splitAfter(Instruction *insn, bool attach) splitAfter() argument 485 Instruction *insn, *next; doRun() local [all...] |
H A D | nv50_ir_build_util.cpp | 70 Instruction *insn = new_Instruction(func, op, ty); in mkOp1() local 72 insn->setDef(0, dst); in mkOp1() 73 insn->setSrc(0, src); in mkOp1() 75 insert(insn); in mkOp1() 76 return insn; in mkOp1() 83 Instruction *insn = new_Instruction(func, op, ty); in mkOp2() local 85 insn->setDef(0, dst); in mkOp2() 86 insn->setSrc(0, src0); in mkOp2() 87 insn->setSrc(1, src1); in mkOp2() 89 insert(insn); in mkOp2() 97 Instruction *insn = new_Instruction(func, op, ty); mkOp3() local 111 Instruction *insn = new_Instruction(func, OP_LOAD, ty); mkLoad() local 126 Instruction *insn = new_Instruction(func, op, ty); mkStore() local 143 Instruction *insn = mkOp1(OP_VFETCH, ty, dst, sym); mkFetch() local 166 Instruction *insn = mkOp1(op, ty, dst, sym); mkInterp() local 175 Instruction *insn = new_Instruction(func, OP_MOV, ty); mkMov() local 187 Instruction *insn = new_Instruction(func, OP_MOV, typeOfSize(src->reg.size)); mkMovToReg() local 200 Instruction *insn = new_Instruction(func, OP_MOV, typeOfSize(dst->reg.size)); mkMovFromReg() local 214 Instruction *insn = new_Instruction(func, op, dstTy); mkCvt() local 228 CmpInstruction *insn = new_CmpInstruction(func, op); mkCmp() local 289 Instruction *insn = NULL; mkSplit() local 314 FlowInstruction *insn = new_FlowInstruction(func, op, targ); mkFlow() local 342 Instruction *insn = mkOp(OP_NOP, TYPE_NONE, NULL); mkClobber() local [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_eu_emit.c | 518 brw_inst *insn, in brw_set_ff_sync_message() 525 brw_set_desc(p, insn, brw_message_desc( in brw_set_ff_sync_message() 528 brw_inst_set_sfid(devinfo, insn, BRW_SFID_URB); in brw_set_ff_sync_message() 529 brw_inst_set_eot(devinfo, insn, end_of_thread); in brw_set_ff_sync_message() 530 brw_inst_set_urb_opcode(devinfo, insn, 1); /* FF_SYNC */ in brw_set_ff_sync_message() 531 brw_inst_set_urb_allocate(devinfo, insn, allocate); in brw_set_ff_sync_message() 533 brw_inst_set_urb_global_offset(devinfo, insn, 0); in brw_set_ff_sync_message() 534 brw_inst_set_urb_swizzle_control(devinfo, insn, 0); in brw_set_ff_sync_message() 535 brw_inst_set_urb_used(devinfo, insn, 0); in brw_set_ff_sync_message() 536 brw_inst_set_urb_complete(devinfo, insn, in brw_set_ff_sync_message() 517 brw_set_ff_sync_message(struct brw_codegen *p, brw_inst *insn, bool allocate, unsigned response_length, bool end_of_thread) brw_set_ff_sync_message() argument 539 brw_set_urb_message( struct brw_codegen *p, brw_inst *insn, enum brw_urb_write_flags flags, unsigned msg_length, unsigned response_length, unsigned offset, unsigned swizzle_control ) brw_set_urb_message() argument 613 brw_inst_set_state(const struct brw_isa_info *isa, brw_inst *insn, const struct brw_insn_state *state) brw_inst_set_state() argument 699 brw_inst *insn = brw_append_insns(p, 1, sizeof(brw_inst)); brw_next_insn() local 733 brw_inst *insn = next_insn(p, opcode); brw_alu1() local 747 brw_inst *insn = next_insn(p, opcode); brw_alu2() local 1335 brw_inst *insn = next_insn(p, BRW_OPCODE_NOP); brw_NOP() local 1342 brw_inst *insn = next_insn(p, BRW_OPCODE_SYNC); brw_SYNC() local 1425 brw_inst *insn; brw_IF() local 1474 brw_inst *insn; gfx6_IF() local 1628 brw_inst *insn; brw_ELSE() local 1667 brw_inst *insn = NULL; brw_ENDIF() local 1748 brw_inst *insn; brw_BREAK() local 1775 brw_inst *insn; brw_CONT() local 1799 brw_inst *insn; brw_HALT() local 1849 brw_inst *insn = next_insn(p, BRW_OPCODE_DO); brw_DO() local 1903 brw_inst *insn, *do_insn; brw_WHILE() local 1991 brw_inst *insn = next_insn(p, BRW_OPCODE_CMP); brw_CMP() local 2020 brw_inst *insn = next_insn(p, BRW_OPCODE_CMPN); brw_CMPN() local 2057 brw_inst *insn = next_insn(p, BRW_OPCODE_SEND); gfx4_math() local 2090 brw_inst *insn = next_insn(p, BRW_OPCODE_MATH); gfx6_math() local 2209 brw_inst *insn = next_insn(p, BRW_OPCODE_SEND); brw_oword_block_write_scratch() local 2322 brw_inst *insn = next_insn(p, BRW_OPCODE_SEND); brw_oword_block_read_scratch() local 2351 brw_inst *insn = next_insn(p, BRW_OPCODE_SEND); gfx7_block_read_scratch() local 2425 brw_inst *insn = next_insn(p, BRW_OPCODE_SEND); brw_oword_block_read() local 2466 brw_inst *insn; brw_fb_WRITE() local 2515 brw_inst *insn = next_insn(p, BRW_OPCODE_SENDC); gfx9_fb_READ() local 2549 brw_inst *insn; brw_SAMPLE() local 2648 brw_inst *insn; brw_urb_WRITE() local 2893 while_jumps_before_offset(const struct intel_device_info *devinfo, brw_inst *insn, int while_offset, int start_offset) while_jumps_before_offset() argument 2916 brw_inst *insn = store + offset; brw_find_next_block_end() local 2966 brw_inst *insn = store + offset; brw_find_loop_end() local 2993 brw_inst *insn = store + offset; brw_set_uip_jip() local 3069 brw_inst *insn; brw_ff_sync() local 3110 brw_inst *insn; brw_svb_write() local 3226 brw_set_memory_fence_message(struct brw_codegen *p, struct brw_inst *insn, enum brw_message_target sfid, bool commit_enable, unsigned bti) brw_set_memory_fence_message() argument 3258 gfx12_set_memory_fence_message(struct brw_codegen *p, struct brw_inst *insn, enum brw_message_target sfid, uint32_t desc) gfx12_set_memory_fence_message() argument 3322 struct brw_inst *insn = next_insn(p, send_op); brw_memory_fence() local 3618 struct brw_inst *insn; brw_WAIT() local [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | register_pressure.cpp | 38 bool operator()(Instruction* insn) const { in operator ()() 39 return !(insn->opcode() == SpvOpPhi && in operator ()() 40 context_->get_instr_block(insn) == bb_); in operator ()() 48 // Returns true if |insn| generates a SSA register that is likely to require a 50 bool CreatesRegisterUsage(Instruction* insn) { in CreatesRegisterUsage() argument 51 if (!insn->HasResultId()) return false; in CreatesRegisterUsage() 52 if (insn->opcode() == SpvOpUndef) return false; in CreatesRegisterUsage() 53 if (IsConstantInst(insn->opcode())) return false; in CreatesRegisterUsage() 54 if (insn->opcode() == SpvOpLabel) return false; in CreatesRegisterUsage() 149 for (Instruction& insn in ComputePartialLiveness() 265 AddRegisterClass( Instruction* insn) AddRegisterClass() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | register_pressure.cpp | 38 bool operator()(Instruction* insn) const { in operator ()() 39 return !(insn->opcode() == SpvOpPhi && in operator ()() 40 context_->get_instr_block(insn) == bb_); in operator ()() 48 // Returns true if |insn| generates a SSA register that is likely to require a 50 bool CreatesRegisterUsage(Instruction* insn) { in CreatesRegisterUsage() argument 51 if (!insn->HasResultId()) return false; in CreatesRegisterUsage() 52 if (insn->opcode() == SpvOpUndef) return false; in CreatesRegisterUsage() 53 if (IsConstantInst(insn->opcode())) return false; in CreatesRegisterUsage() 54 if (insn->opcode() == SpvOpLabel) return false; in CreatesRegisterUsage() 149 for (Instruction& insn in ComputePartialLiveness() 265 AddRegisterClass( Instruction* insn) AddRegisterClass() argument [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | register_pressure.cpp | 37 bool operator()(Instruction* insn) const { in operator ()() 38 return !(insn->opcode() == spv::Op::OpPhi && in operator ()() 39 context_->get_instr_block(insn) == bb_); in operator ()() 47 // Returns true if |insn| generates a SSA register that is likely to require a 49 bool CreatesRegisterUsage(Instruction* insn) { in CreatesRegisterUsage() argument 50 if (!insn->HasResultId()) return false; in CreatesRegisterUsage() 51 if (insn->opcode() == spv::Op::OpUndef) return false; in CreatesRegisterUsage() 52 if (IsConstantInst(insn->opcode())) return false; in CreatesRegisterUsage() 53 if (insn->opcode() == spv::Op::OpLabel) return false; in CreatesRegisterUsage() 148 for (Instruction& insn in ComputePartialLiveness() 264 AddRegisterClass( Instruction* insn) AddRegisterClass() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShader.cpp | 69 for(auto insn : *this) in robustBufferAccess() 71 spv::Op opcode = insn.opcode(); in robustBufferAccess() 77 spv::ExecutionModel executionModel = spv::ExecutionModel(insn.word(1)); in robustBufferAccess() 78 Function::ID entryPoint = Function::ID(insn.word(2)); in robustBufferAccess() 79 const char *name = insn.string(3); in robustBufferAccess() 88 auto interfaceIdsOffset = 3 + insn.stringSizeInWords(3); in robustBufferAccess() 89 for(uint32_t i = interfaceIdsOffset; i < insn.wordCount(); i++) in robustBufferAccess() 91 interfaceIds.emplace(insn.word(i)); in robustBufferAccess() 98 ProcessExecutionMode(insn); in robustBufferAccess() 103 TypeOrObjectID targetId = insn in robustBufferAccess() 790 DeclareType(InsnIterator insn) DeclareType() argument 840 CreateConstant(InsnIterator insn) CreateConstant() argument 953 ProcessExecutionMode(InsnIterator insn) ProcessExecutionMode() argument 995 ComputeTypeSize(InsnIterator insn) ComputeTypeSize() argument 1561 DefineResult(const InsnIterator &insn) DefineResult() argument 1711 EmitInstruction(InsnIterator insn, EmitState *state) const EmitInstruction() argument 2081 EmitAccessChain(InsnIterator insn, EmitState *state) const EmitAccessChain() argument 2108 EmitCompositeConstruct(InsnIterator insn, EmitState *state) const EmitCompositeConstruct() argument 2130 EmitCompositeInsert(InsnIterator insn, EmitState *state) const EmitCompositeInsert() argument 2161 EmitCompositeExtract(InsnIterator insn, EmitState *state) const EmitCompositeExtract() argument 2178 EmitVectorShuffle(InsnIterator insn, EmitState *state) const EmitVectorShuffle() argument 2212 EmitVectorExtractDynamic(InsnIterator insn, EmitState *state) const EmitVectorExtractDynamic() argument 2232 EmitVectorInsertDynamic(InsnIterator insn, EmitState *state) const EmitVectorInsertDynamic() argument 2249 EmitSelect(InsnIterator insn, EmitState *state) const EmitSelect() argument 2272 EmitAny(InsnIterator insn, EmitState *state) const EmitAny() argument 2291 EmitAll(InsnIterator insn, EmitState *state) const EmitAll() argument 2310 EmitAtomicOp(InsnIterator insn, EmitState *state) const EmitAtomicOp() argument 2385 EmitAtomicCompareExchange(InsnIterator insn, EmitState *state) const EmitAtomicCompareExchange() argument 2420 EmitCopyObject(InsnIterator insn, EmitState *state) const EmitCopyObject() argument 2432 EmitArrayLength(InsnIterator insn, EmitState *state) const EmitArrayLength() argument 2465 EmitExtendedInstruction(InsnIterator insn, EmitState *state) const EmitExtendedInstruction() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/Disassembler/ |
H A D | SparcDisassembler.cpp | 269 static DecodeStatus DecodeLoadInt(MCInst &Inst, unsigned insn, uint64_t Address, 271 static DecodeStatus DecodeLoadIntPair(MCInst &Inst, unsigned insn, uint64_t Address, 273 static DecodeStatus DecodeLoadFP(MCInst &Inst, unsigned insn, uint64_t Address, 275 static DecodeStatus DecodeLoadDFP(MCInst &Inst, unsigned insn, uint64_t Address, 277 static DecodeStatus DecodeLoadQFP(MCInst &Inst, unsigned insn, uint64_t Address, 279 static DecodeStatus DecodeLoadCP(MCInst &Inst, unsigned insn, uint64_t Address, 281 static DecodeStatus DecodeLoadCPPair(MCInst &Inst, unsigned insn, uint64_t Address, 283 static DecodeStatus DecodeStoreInt(MCInst &Inst, unsigned insn, 285 static DecodeStatus DecodeStoreIntPair(MCInst &Inst, unsigned insn, 287 static DecodeStatus DecodeStoreFP(MCInst &Inst, unsigned insn, 370 DecodeMem(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder, bool isLoad, DecodeFunc DecodeRD) DecodeMem() argument 417 DecodeLoadInt(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeLoadInt() argument 423 DecodeLoadIntPair(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeLoadIntPair() argument 429 DecodeLoadFP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeLoadFP() argument 435 DecodeLoadDFP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeLoadDFP() argument 441 DecodeLoadQFP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeLoadQFP() argument 447 DecodeLoadCP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeLoadCP() argument 453 DecodeLoadCPPair(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeLoadCPPair() argument 459 DecodeStoreInt(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeStoreInt() argument 465 DecodeStoreIntPair(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeStoreIntPair() argument 471 DecodeStoreFP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeStoreFP() argument 477 DecodeStoreDFP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeStoreDFP() argument 483 DecodeStoreQFP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeStoreQFP() argument 489 DecodeStoreCP(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeStoreCP() argument 495 DecodeStoreCPPair(MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) DecodeStoreCPPair() argument 510 DecodeCall(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) DecodeCall() argument 520 DecodeSIMM13(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) DecodeSIMM13() argument 527 DecodeJMPL(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) DecodeJMPL() argument 561 DecodeReturn(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) DecodeReturn() argument 589 DecodeSWAP(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) DecodeSWAP() argument 629 DecodeTRAP(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) DecodeTRAP() argument [all...] |