/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_lowering.c | 136 struct tgsi_full_instruction new_inst; in create_mov() local 138 new_inst = tgsi_default_full_instruction(); in create_mov() 139 new_inst.Instruction.Opcode = TGSI_OPCODE_MOV; in create_mov() 140 new_inst.Instruction.Saturate = saturate; in create_mov() 141 new_inst.Instruction.NumDstRegs = 1; in create_mov() 142 reg_dst(&new_inst.Dst[0], dst, mask); in create_mov() 143 new_inst.Instruction.NumSrcRegs = 1; in create_mov() 144 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in create_mov() 145 tctx->emit_instruction(tctx, &new_inst); in create_mov() 204 struct tgsi_full_instruction new_inst; in transform_dst() local 286 struct tgsi_full_instruction new_inst; transform_lrp() local 334 struct tgsi_full_instruction new_inst; transform_frc() local 380 struct tgsi_full_instruction new_inst; transform_pow() local 439 struct tgsi_full_instruction new_inst; transform_lit() local 564 struct tgsi_full_instruction new_inst; transform_exp() local 687 struct tgsi_full_instruction new_inst; transform_log() local 826 struct tgsi_full_instruction new_inst; transform_dotp() local 911 struct tgsi_full_instruction new_inst; transform_flr_ceil() local 965 struct tgsi_full_instruction new_inst; transform_trunc() local 1038 struct tgsi_full_instruction new_inst; transform_samp() local 1172 struct tgsi_full_instruction new_inst; emit_twoside() local [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_vs_draw.c | 226 struct tgsi_full_instruction new_inst; in transform_inst() local 248 new_inst = tgsi_default_full_instruction(); in transform_inst() 249 new_inst.Instruction.Opcode = TGSI_OPCODE_MOV; in transform_inst() 250 new_inst.Instruction.NumDstRegs = 1; in transform_inst() 251 new_inst.Dst[0].Register.File = TGSI_FILE_OUTPUT; in transform_inst() 252 new_inst.Dst[0].Register.Index = vsctx->pos_output; in transform_inst() 253 new_inst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_XYZW; in transform_inst() 254 new_inst.Instruction.NumSrcRegs = 1; in transform_inst() 255 new_inst.Src[0].Register.File = TGSI_FILE_TEMPORARY; in transform_inst() 256 new_inst in transform_inst() [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_vert_fc.c | 110 struct rc_instruction * new_inst = in lower_bgnloop() local 128 new_inst->U.I.Opcode = RC_ME_PRED_SEQ; in lower_bgnloop() 129 build_pred_dst(&new_inst->U.I.DstReg, fc_state); in lower_bgnloop() 130 new_inst->U.I.SrcReg[0].Index = 0; in lower_bgnloop() 131 new_inst->U.I.SrcReg[0].File = RC_FILE_NONE; in lower_bgnloop() 132 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 140 build_pred_src(&new_inst->U.I.SrcReg[0], fc_state); in lower_bgnloop() 148 new_inst->U.I.Opcode = RC_OPCODE_ADD; in lower_bgnloop() 149 build_pred_dst(&new_inst->U.I.DstReg, fc_state); in lower_bgnloop() 150 new_inst in lower_bgnloop() 179 struct rc_instruction * new_inst = lower_endloop() local [all...] |
H A D | r3xx_vertprog.c | 706 struct rc_instruction *new_inst; in transform_nonnative_modifiers() local 713 new_inst = rc_insert_new_instruction(c, inst->Prev); in transform_nonnative_modifiers() 714 new_inst->U.I.Opcode = RC_OPCODE_MAX; in transform_nonnative_modifiers() 715 new_inst->U.I.DstReg.File = RC_FILE_TEMPORARY; in transform_nonnative_modifiers() 716 new_inst->U.I.DstReg.Index = temp; in transform_nonnative_modifiers() 717 new_inst->U.I.SrcReg[0] = inst->U.I.SrcReg[i]; in transform_nonnative_modifiers() 718 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; in transform_nonnative_modifiers() 719 new_inst->U.I.SrcReg[1] = inst->U.I.SrcReg[i]; in transform_nonnative_modifiers() 720 new_inst->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XYZW; in transform_nonnative_modifiers() 721 new_inst in transform_nonnative_modifiers() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | ir_builder.h | 69 std::unique_ptr<Instruction> new_inst( in AddNullaryOp() 71 return AddInstruction(std::move(new_inst)); in AddNullaryOp() 168 std::unique_ptr<Instruction> new_inst(new Instruction( in AddNaryOp() 171 return AddInstruction(std::move(new_inst)); in AddNaryOp() 449 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract() 452 return AddInstruction(std::move(new_inst)); in AddCompositeExtract() 473 std::unique_ptr<Instruction> new_inst( in AddAccessChain() 476 return AddInstruction(std::move(new_inst)); in AddAccessChain() 484 std::unique_ptr<Instruction> new_inst( in AddLoad() 487 return AddInstruction(std::move(new_inst)); in AddLoad() [all...] |
H A D | flatten_decoration_pass.cpp | 92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() 93 new_inst->SetInOperand(0, Words{target}); in Process() 94 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process() 117 std::unique_ptr<Instruction> new_inst(new Instruction( in Process() 119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
|
H A D | loop_unroller.cpp | 120 new_inst.clear(); in NextIterationState() 160 std::unordered_map<uint32_t, uint32_t> new_inst; member 701 state_.ids_to_new_inst[state_.new_inst[primary_copy->result_id()]]; in CopyBody() 707 state_.new_inst[primary_copy->result_id()] = GetPhiDefID( in CopyBody() 711 state_.new_inst[primary_copy->result_id()] = primary_copy->result_id(); in CopyBody() 722 state_.new_inst[loop->GetHeaderBlock()->id()] = loop->GetHeaderBlock()->id(); in CopyBody() 789 state_.new_inst.clear(); in CloseUnrolledLoop() 794 state_.new_inst[induction->result_id()] = initalizer_id; in CloseUnrolledLoop() 871 state_.new_inst[basic_block->GetLabelInst()->result_id()] = new_label_id; in AssignNewResultIds() 893 state_.new_inst[old_i in AssignNewResultIds() [all...] |
H A D | decoration_manager.cpp | 139 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() 141 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom() 142 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom() 514 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() 515 new_inst->SetInOperand(0, {to}); in CloneDecorations() 516 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations() 569 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() 570 new_inst->SetInOperand(0, {to}); in CloneDecorations() 571 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
|
H A D | loop_utils.cpp | 578 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() 579 new_inst != new_bb->end(); ++new_inst, ++old_inst) { in CloneLoop() 580 cloning_result->ptr_map_[&*new_inst] = &*old_inst; in CloneLoop() 581 if (new_inst->HasResultId()) { in CloneLoop() 583 new_inst->SetResultId(context_->TakeNextId()); in CloneLoop() 585 new_inst->result_id(); in CloneLoop() 588 def_use_mgr->AnalyzeInstDef(&*new_inst); in CloneLoop()
|
H A D | constants.cpp | 213 auto new_inst = CreateInstruction(new_id, new_const, type_id); in BuildInstructionAndAddToModule() local 214 if (!new_inst) { in BuildInstructionAndAddToModule() 217 auto* new_inst_ptr = new_inst.get(); in BuildInstructionAndAddToModule() 218 *pos = pos->InsertBefore(std::move(new_inst)); in BuildInstructionAndAddToModule()
|
H A D | local_access_chain_convert_pass.cpp | 89 std::vector<std::unique_ptr<Instruction>> new_inst; in ReplaceAccessChainLoad() local 93 BuildAndAppendVarLoad(address_inst, &varId, &varPteTypeId, &new_inst); in ReplaceAccessChainLoad() 98 new_inst[0]->UpdateDebugInfoFrom(original_load); in ReplaceAccessChainLoad() 101 original_load->InsertBefore(std::move(new_inst)); in ReplaceAccessChainLoad()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | ir_builder.h | 69 std::unique_ptr<Instruction> new_inst( in AddNullaryOp() 71 return AddInstruction(std::move(new_inst)); in AddNullaryOp() 168 std::unique_ptr<Instruction> new_inst(new Instruction( in AddNaryOp() 171 return AddInstruction(std::move(new_inst)); in AddNaryOp() 449 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract() 452 return AddInstruction(std::move(new_inst)); in AddCompositeExtract() 473 std::unique_ptr<Instruction> new_inst( in AddAccessChain() 476 return AddInstruction(std::move(new_inst)); in AddAccessChain() 484 std::unique_ptr<Instruction> new_inst( in AddLoad() 487 return AddInstruction(std::move(new_inst)); in AddLoad() [all...] |
H A D | flatten_decoration_pass.cpp | 92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() 93 new_inst->SetInOperand(0, Words{target}); in Process() 94 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process() 117 std::unique_ptr<Instruction> new_inst(new Instruction( in Process() 119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
|
H A D | loop_unroller.cpp | 120 new_inst.clear(); in NextIterationState() 160 std::unordered_map<uint32_t, uint32_t> new_inst; member 701 state_.ids_to_new_inst[state_.new_inst[primary_copy->result_id()]]; in CopyBody() 707 state_.new_inst[primary_copy->result_id()] = GetPhiDefID( in CopyBody() 711 state_.new_inst[primary_copy->result_id()] = primary_copy->result_id(); in CopyBody() 722 state_.new_inst[loop->GetHeaderBlock()->id()] = loop->GetHeaderBlock()->id(); in CopyBody() 789 state_.new_inst.clear(); in CloseUnrolledLoop() 794 state_.new_inst[induction->result_id()] = initalizer_id; in CloseUnrolledLoop() 871 state_.new_inst[basic_block->GetLabelInst()->result_id()] = new_label_id; in AssignNewResultIds() 893 state_.new_inst[old_i in AssignNewResultIds() [all...] |
H A D | decoration_manager.cpp | 139 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() 141 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom() 142 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom() 514 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() 515 new_inst->SetInOperand(0, {to}); in CloneDecorations() 516 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations() 569 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() 570 new_inst->SetInOperand(0, {to}); in CloneDecorations() 571 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
|
H A D | loop_utils.cpp | 578 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() 579 new_inst != new_bb->end(); ++new_inst, ++old_inst) { in CloneLoop() 580 cloning_result->ptr_map_[&*new_inst] = &*old_inst; in CloneLoop() 581 if (new_inst->HasResultId()) { in CloneLoop() 583 new_inst->SetResultId(context_->TakeNextId()); in CloneLoop() 585 new_inst->result_id(); in CloneLoop() 588 def_use_mgr->AnalyzeInstDef(&*new_inst); in CloneLoop()
|
H A D | constants.cpp | 213 auto new_inst = CreateInstruction(new_id, new_const, type_id); in BuildInstructionAndAddToModule() local 214 if (!new_inst) { in BuildInstructionAndAddToModule() 217 auto* new_inst_ptr = new_inst.get(); in BuildInstructionAndAddToModule() 218 *pos = pos->InsertBefore(std::move(new_inst)); in BuildInstructionAndAddToModule()
|
H A D | local_access_chain_convert_pass.cpp | 89 std::vector<std::unique_ptr<Instruction>> new_inst; in ReplaceAccessChainLoad() local 93 BuildAndAppendVarLoad(address_inst, &varId, &varPteTypeId, &new_inst); in ReplaceAccessChainLoad() 98 new_inst[0]->UpdateDebugInfoFrom(original_load); in ReplaceAccessChainLoad() 101 original_load->InsertBefore(std::move(new_inst)); in ReplaceAccessChainLoad()
|
/third_party/spirv-tools/source/opt/ |
H A D | ir_builder.h | 69 std::unique_ptr<Instruction> new_inst( in AddNullaryOp() 71 return AddInstruction(std::move(new_inst)); in AddNullaryOp() 169 std::unique_ptr<Instruction> new_inst(new Instruction( in AddNaryOp() 172 return AddInstruction(std::move(new_inst)); in AddNaryOp() 469 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract() 472 return AddInstruction(std::move(new_inst)); in AddCompositeExtract() 493 std::unique_ptr<Instruction> new_inst( in AddAccessChain() 496 return AddInstruction(std::move(new_inst)); in AddAccessChain() 511 std::unique_ptr<Instruction> new_inst( in AddLoad() 514 return AddInstruction(std::move(new_inst)); in AddLoad() [all...] |
H A D | flatten_decoration_pass.cpp | 92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() 93 new_inst->SetInOperand(0, Words{target}); in Process() 94 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process() 117 std::unique_ptr<Instruction> new_inst(new Instruction( in Process() 119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
|
H A D | loop_unroller.cpp | 119 new_inst.clear(); in NextIterationState() 159 std::unordered_map<uint32_t, uint32_t> new_inst; member 700 state_.ids_to_new_inst[state_.new_inst[primary_copy->result_id()]]; in CopyBody() 706 state_.new_inst[primary_copy->result_id()] = GetPhiDefID( in CopyBody() 710 state_.new_inst[primary_copy->result_id()] = primary_copy->result_id(); in CopyBody() 721 state_.new_inst[loop->GetHeaderBlock()->id()] = loop->GetHeaderBlock()->id(); in CopyBody() 788 state_.new_inst.clear(); in CloseUnrolledLoop() 793 state_.new_inst[induction->result_id()] = initalizer_id; in CloseUnrolledLoop() 870 state_.new_inst[basic_block->GetLabelInst()->result_id()] = new_label_id; in AssignNewResultIds() 892 state_.new_inst[old_i in AssignNewResultIds() [all...] |
H A D | decoration_manager.cpp | 139 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() 141 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom() 142 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom() 521 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() 522 new_inst->SetInOperand(0, {to}); in CloneDecorations() 523 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations() 576 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() 577 new_inst->SetInOperand(0, {to}); in CloneDecorations() 578 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
|
H A D | loop_utils.cpp | 577 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() 578 new_inst != new_bb->end(); ++new_inst, ++old_inst) { in CloneLoop() 579 cloning_result->ptr_map_[&*new_inst] = &*old_inst; in CloneLoop() 580 if (new_inst->HasResultId()) { in CloneLoop() 582 new_inst->SetResultId(context_->TakeNextId()); in CloneLoop() 584 new_inst->result_id(); in CloneLoop() 587 def_use_mgr->AnalyzeInstDef(&*new_inst); in CloneLoop()
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
H A D | pthread_barrier_wait.c | 78 struct instance new_inst = { 0 }; in pthread_barrier_wait() local 80 b->_b_inst = inst = &new_inst; in pthread_barrier_wait()
|
/third_party/musl/src/thread/ |
H A D | pthread_barrier_wait.c | 78 struct instance new_inst = { 0 }; in pthread_barrier_wait() local 80 b->_b_inst = inst = &new_inst; in pthread_barrier_wait()
|