/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_lowering.c | 135 struct tgsi_full_instruction new_inst; in create_mov() local 137 new_inst = tgsi_default_full_instruction(); in create_mov() 138 new_inst.Instruction.Opcode = TGSI_OPCODE_MOV; in create_mov() 139 new_inst.Instruction.Saturate = saturate; in create_mov() 140 new_inst.Instruction.NumDstRegs = 1; in create_mov() 141 reg_dst(&new_inst.Dst[0], dst, mask); in create_mov() 142 new_inst.Instruction.NumSrcRegs = 1; in create_mov() 143 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in create_mov() 144 tctx->emit_instruction(tctx, &new_inst); in create_mov() 203 struct tgsi_full_instruction new_inst; in transform_dst() local [all …]
|
D | tgsi_emulate.c | 66 struct tgsi_full_instruction new_inst; in passthrough_edgeflag() local 84 new_inst = tgsi_default_full_instruction(); in passthrough_edgeflag() 85 new_inst.Instruction.Opcode = TGSI_OPCODE_MOV; in passthrough_edgeflag() 87 new_inst.Instruction.NumDstRegs = 1; in passthrough_edgeflag() 88 new_inst.Dst[0].Register.File = TGSI_FILE_OUTPUT; in passthrough_edgeflag() 89 new_inst.Dst[0].Register.Index = ctx->info.num_outputs; in passthrough_edgeflag() 90 new_inst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_XYZW; in passthrough_edgeflag() 92 new_inst.Instruction.NumSrcRegs = 1; in passthrough_edgeflag() 93 new_inst.Src[0].Register.File = TGSI_FILE_INPUT; in passthrough_edgeflag() 94 new_inst.Src[0].Register.Index = ctx->info.num_inputs; in passthrough_edgeflag() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/ |
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.Src[0].Register.Index = vsctx->pos_temp; in transform_inst() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_vert_fc.c | 111 struct rc_instruction * new_inst = in lower_bgnloop() local 129 new_inst->U.I.Opcode = RC_ME_PRED_SEQ; in lower_bgnloop() 130 build_pred_dst(&new_inst->U.I.DstReg, fc_state); in lower_bgnloop() 131 new_inst->U.I.SrcReg[0].Index = 0; in lower_bgnloop() 132 new_inst->U.I.SrcReg[0].File = RC_FILE_NONE; in lower_bgnloop() 133 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 141 build_pred_src(&new_inst->U.I.SrcReg[0], fc_state); in lower_bgnloop() 149 new_inst->U.I.Opcode = RC_OPCODE_ADD; in lower_bgnloop() 150 build_pred_dst(&new_inst->U.I.DstReg, fc_state); in lower_bgnloop() 151 new_inst->U.I.SrcReg[1].Index = 0; in lower_bgnloop() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
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( 171 return AddInstruction(std::move(new_inst)); 441 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract() 444 return AddInstruction(std::move(new_inst)); in AddCompositeExtract() 465 std::unique_ptr<Instruction> new_inst( in AddAccessChain() 468 return AddInstruction(std::move(new_inst)); in AddAccessChain() 476 std::unique_ptr<Instruction> new_inst( in AddLoad() 479 return AddInstruction(std::move(new_inst)); in AddLoad() [all …]
|
D | flatten_decoration_pass.cpp | 92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() local 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() local 119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
|
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() 868 state_.new_inst[basic_block->GetLabelInst()->result_id()] = new_label_id; in AssignNewResultIds() 886 state_.new_inst[old_id] = inst.result_id(); in AssignNewResultIds() [all …]
|
D | decoration_manager.cpp | 139 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() local 141 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom() 142 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom() 503 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local 504 new_inst->SetInOperand(0, {to}); in CloneDecorations() 505 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations() 558 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local 559 new_inst->SetInOperand(0, {to}); in CloneDecorations() 560 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
|
D | loop_utils.cpp | 578 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() local 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()
|
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()
|
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()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
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( 171 return AddInstruction(std::move(new_inst)); 441 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract() 444 return AddInstruction(std::move(new_inst)); in AddCompositeExtract() 465 std::unique_ptr<Instruction> new_inst( in AddAccessChain() 468 return AddInstruction(std::move(new_inst)); in AddAccessChain() 476 std::unique_ptr<Instruction> new_inst( in AddLoad() 479 return AddInstruction(std::move(new_inst)); in AddLoad() [all …]
|
D | flatten_decoration_pass.cpp | 92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() local 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() local 119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
|
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() 868 state_.new_inst[basic_block->GetLabelInst()->result_id()] = new_label_id; in AssignNewResultIds() 886 state_.new_inst[old_id] = inst.result_id(); in AssignNewResultIds() [all …]
|
D | decoration_manager.cpp | 139 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() local 141 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom() 142 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom() 506 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local 507 new_inst->SetInOperand(0, {to}); in CloneDecorations() 508 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations() 561 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local 562 new_inst->SetInOperand(0, {to}); in CloneDecorations() 563 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
|
D | loop_utils.cpp | 578 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() local 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()
|
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()
|
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()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
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( 171 return AddInstruction(std::move(new_inst)); 441 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract() 444 return AddInstruction(std::move(new_inst)); in AddCompositeExtract() 465 std::unique_ptr<Instruction> new_inst( in AddAccessChain() 468 return AddInstruction(std::move(new_inst)); in AddAccessChain() 476 std::unique_ptr<Instruction> new_inst( in AddLoad() 479 return AddInstruction(std::move(new_inst)); in AddLoad() [all …]
|
D | flatten_decoration_pass.cpp | 92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() local 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() local 119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
|
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() 889 state_.new_inst[old_id] = inst.result_id(); in AssignNewResultIds() [all …]
|
D | decoration_manager.cpp | 139 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() local 141 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom() 142 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom() 506 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local 507 new_inst->SetInOperand(0, {to}); in CloneDecorations() 508 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations() 561 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local 562 new_inst->SetInOperand(0, {to}); in CloneDecorations() 563 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
|
D | loop_utils.cpp | 578 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() local 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()
|
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()
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | generic_utils_test.py | 112 new_inst = keras.utils.generic_utils.deserialize_keras_object(config) 113 self.assertIsNot(inst, new_inst) 114 self.assertIsInstance(new_inst, TestClass) 115 self.assertEqual(10, new_inst._value) 153 new_inst = keras.utils.generic_utils.deserialize_keras_object(config) 154 self.assertIsNot(inst, new_inst) 155 self.assertIsInstance(new_inst, OtherTestClass) 156 self.assertEqual(5, new_inst._val)
|