Home
last modified time | relevance | path

Searched refs:getSrc (Results 1 – 25 of 55) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceInstMIPS32.cpp69 auto *Src0 = llvm::cast<Constant>(getSrc(0)); in emit()
270 Inst->getSrc(0)->emit(Func); in emitUnaryopGPR()
287 Inst->getSrc(0)->emit(Func); in emitUnaryopGPRTLoHi()
299 Inst->getSrc(0)->emit(Func); in emitThreeAddr()
301 Inst->getSrc(1)->emit(Func); in emitThreeAddr()
313 Inst->getSrc(0)->emit(Func); in emitTwoAddr()
323 Inst->getSrc(0)->emit(Func); in emitThreeAddrLoHi()
325 Inst->getSrc(1)->emit(Func); in emitThreeAddrLoHi()
332 auto *RA = llvm::cast<Variable>(getSrc(0)); in emit()
349 Asm->bcc(Predicate, getSrc(0), getSrc(1), in emitIAS()
[all …]
DIceInstARM32.cpp162 Type SrcTy = Instr->getSrc(0)->getType(); in emitUnaryopGPR()
169 Instr->getSrc(0)->emit(Func); in emitUnaryopGPR()
176 Type SrcTy = Instr->getSrc(0)->getType(); in emitUnaryopFP()
192 Instr->getSrc(0)->emit(Func); in emitUnaryopFP()
202 assert(Dest == Instr->getSrc(0)); in emitTwoAddr()
206 Instr->getSrc(1)->emit(Func); in emitTwoAddr()
220 Instr->getSrc(0)->emit(Func); in emitThreeAddr()
222 Instr->getSrc(1)->emit(Func); in emitThreeAddr()
235 Instr->getSrc(0)->emit(Func); in emitThreeAddrFP()
237 Instr->getSrc(1)->emit(Func); in emitThreeAddrFP()
[all …]
DIceInstX8632.cpp532 const Operand *Src = this->getSrc(0); in emit()
644 Dest = getSrc(0); in emitTwoAddress()
645 assert(Dest == getSrc(0)); in emitTwoAddress()
646 Operand *Src1 = getSrc(1); in emitTwoAddress()
933 Str << " = movmsk." << this->getSrc(0)->getType() << " "; in dump()
942 Type SrcTy = this->getSrc(0)->getType(); in emit()
959 this->getSrc(0)->emit(Func); in emit()
968 const Variable *Src = llvm::cast<Variable>(this->getSrc(0)); in emitIAS()
985 Type Ty = this->getSrc(0)->getType(); in emit()
990 this->getSrc(0)->emit(Func); in emit()
[all …]
DIceInstX8664.cpp512 const Operand *Src = this->getSrc(0); in emit()
631 Dest = getSrc(0); in emitTwoAddress()
632 assert(Dest == getSrc(0)); in emitTwoAddress()
633 Operand *Src1 = getSrc(1); in emitTwoAddress()
925 Str << " = movmsk." << this->getSrc(0)->getType() << " "; in dump()
934 Type SrcTy = this->getSrc(0)->getType(); in emit()
951 this->getSrc(0)->emit(Func); in emit()
960 const Variable *Src = llvm::cast<Variable>(this->getSrc(0)); in emitIAS()
977 Type Ty = this->getSrc(0)->getType(); in emit()
982 this->getSrc(0)->emit(Func); in emit()
[all …]
DIceInst.cpp172 Operand *Src = OrigInst->getSrc(I); in spliceLivenessInfo()
177 (RightMask << (Index + getSrc(I)->getNumVars())); in spliceLivenessInfo()
180 Index += getSrc(I)->getNumVars(); in spliceLivenessInfo()
299 bool InstAssign::isVarAssign() const { return llvm::isa<Variable>(getSrc(0)); } in isVarAssign()
407 return getSrc(I); in getOperandForTarget()
435 if (auto *Var = llvm::dyn_cast<Variable>(getSrc(I))) { in livenessPhiOperand()
488 return llvm::dyn_cast<Variable>(getSrc(2)); in getRmwBeacon()
688 getSrc(I)->dump(Func); in dumpSources()
699 getSrc(I)->emit(Func); in emitSources()
790 Str << " = " << getCastName(getCastKind()) << " " << getSrc(0)->getType() in dump()
[all …]
DIceCfg.cpp469 Result ^= Instr->getSrc(i)->hashValue(); in localCSE()
494 if (!srcEq(InstrA->getSrc(i), InstrB->getSrc(i))) in localCSE()
543 auto *Opnd = Instr.getSrc(i); in localCSE()
562 auto *Opnd = Instr.getSrc(i); in localCSE()
635 if (auto *Var = llvm::dyn_cast<Variable>(Inst.getSrc(i))) { in findLoopInvariantInstructions()
761 if (auto *Const = llvm::dyn_cast<Constant>(Current->getSrc(i))) { in floatConstantCSE()
796 if (auto *Const = llvm::dyn_cast<Constant>(InstUse->getSrc(i))) { in floatConstantCSE()
1028 auto *Src0Var = llvm::dyn_cast<Variable>(Arith->getSrc(0)); in rematerializeArithmetic()
1032 auto *Src1Imm = llvm::dyn_cast<ConstantInteger32>(Arith->getSrc(1)); in rematerializeArithmetic()
1049 auto *Src0Var = llvm::dyn_cast<Variable>(Instr->getSrc(0)); in rematerializeAssign()
[all …]
DIceInstMIPS32.h644 getSrc(0)->emit(Func); in emit()
661 getSrc(0)->dump(Func); in dump()
695 const Type Ty = getSrc(0)->getType(); in emit()
731 getSrc(0)->emit(Func); in emit()
734 getSrc(1)->emit(Func); in emit()
746 dumpOpcode(Str, Opcode, getSrc(0)->getType()); in dump()
748 getSrc(0)->dump(Func); in dump()
751 getSrc(1)->dump(Func); in dump()
886 Operand *getCallTarget() const { return getSrc(0); } in getCallTarget()
914 getSrc(0)->emit(Func); in emit()
[all …]
DIceInst.h105 Operand *getSrc(SizeT I) const { in getSrc() function
116 Operand *getLoadAddress() const { return getSrc(0); } in getLoadAddress()
117 Operand *getStoreAddress() const { return getSrc(1); } in getStoreAddress()
118 Operand *getData() const { return getSrc(0); } in getData()
298 Operand *getSizeInBytes() const { return getSrc(0); } in getSizeInBytes()
397 return getSrc(0); in getCondition()
443 Operand *getCallTarget() const { return getSrc(0); } in getCallTarget()
444 Operand *getArg(SizeT I) const { return getSrc(I + 1); } in getArg()
629 Operand *getArg(SizeT I) const { return getSrc(I); } in getArg()
718 return getSrc(0); in getRetValue()
[all …]
DIceTargetLoweringX8664.cpp300 if (llvm::isa<X86OperandMem>(PInst->getSrc(I))) { in invalidateProducersOnStore()
611 Operand *ArithSrcFromLoad = Arith->getSrc(0); in findRMW()
612 Operand *ArithSrcOther = Arith->getSrc(1); in findRMW()
720 Operand *Src0 = Arith->getSrc(0); in doLoadOpt()
721 Operand *Src1 = Arith->getSrc(1); in doLoadOpt()
727 Operand *Src0 = Icmp->getSrc(0); in doLoadOpt()
728 Operand *Src1 = Icmp->getSrc(1); in doLoadOpt()
734 Operand *Src0 = Fcmp->getSrc(0); in doLoadOpt()
735 Operand *Src1 = Fcmp->getSrc(1); in doLoadOpt()
749 auto *Src0 = llvm::dyn_cast<Variable>(Cast->getSrc(0)); in doLoadOpt()
[all …]
/third_party/mesa3d/src/nouveau/codegen/
Dnv50_ir_lowering_gv100.cpp38 i->sType, bld.mkImm(0), i->getSrc(2))->ftz = i->ftz; in handleCMP()
39 bld.mkOp3(OP_SELP, TYPE_U32, i->getDef(0), i->getSrc(0), i->getSrc(1), pred); in handleCMP()
53 if (i->getSrc(s)->reg.size == 8) { in handleIADD64()
54 bld.mkSplit(src[s], 4, i->getSrc(s)); in handleIADD64()
56 src[s][0] = i->getSrc(s); in handleIADD64()
76 (!i->getSrc(2)->asImm() || i->getSrc(2)->asImm()->reg.data.u32)) { in handleIMAD_HIGH()
79 bld.mkMov(src2s[1], i->getSrc(2)); in handleIMAD_HIGH()
86 i->getSrc(0), i->getSrc(1), src2); in handleIMAD_HIGH()
102 i->sType, i->getSrc(0), i->getSrc(1)); in handleIMNMX()
103 bld.mkOp3(OP_SELP, i->dType, i->getDef(0), i->getSrc(0), i->getSrc(1), pred); in handleIMNMX()
[all …]
Dnv50_ir_peephole.cpp53 if (!getDef(0)->equals(getSrc(0))) in isNop()
56 if (!getDef(0)->equals(getSrc(1))) in isNop()
103 if (mov->op != OP_MOV || mov->fixed || !mov->getSrc(0)->asLValue()) in visit()
109 si = mov->getSrc(0)->getInsn(); in visit()
112 mov->def(0).replace(mov->getSrc(0), false); in visit()
138 si = i->getSrc(0)->getInsn(); in visit()
139 if (si->op != OP_SPLIT || si != i->getSrc(1)->getInsn()) in visit()
141 i->def(0).replace(si->getSrc(0), false); in visit()
212 Instruction *i0 = insn->getSrc(0)->getInsn(); in checkSwapSrc01()
213 Instruction *i1 = insn->getSrc(1)->getInsn(); in checkSwapSrc01()
[all …]
Dnv50_ir_lowering_helper.cpp70 bld.mkOp2(OP_SUB, dTy, neg, bld.mkImm((uint64_t)0), insn->getSrc(0)); in handleABS()
72 bld.mkSplit(srcComp, 4, insn->getSrc(0)); in handleABS()
96 bld.mkSplit(src, 4, insn->getSrc(0)); in handleCVT()
101 bld.mkOp2(OP_SHR, TYPE_S32, tmp, insn->getSrc(0), bld.loadImm(bld.getSSA(), 31)); in handleCVT()
127 bld.mkSplit(src0, 4, insn->getSrc(0)); in handleMAXMIN()
128 bld.mkSplit(src1, 4, insn->getSrc(1)); in handleMAXMIN()
156 Storage &reg = insn->getSrc(0)->reg; in handleMOV()
185 insn->setSrc(1, insn->getSrc(0)); in handleNEG()
200 …Value *tmp = bld.mkOp2v(OP_MAX, dTy, bld.getSSA(8), insn->getSrc(0), bld.loadImm(bld.getSSA(8), 0.… in handleSAT()
224 bld.mkSplit(src0, 4, insn->getSrc(0)); in handleSLCT()
[all …]
Dnv50_ir_from_nir.cpp90 Value* getSrc(nir_alu_src *, uint8_t component = 0);
91 Value* getSrc(nir_register *, uint8_t);
92 Value* getSrc(nir_src *, uint8_t, bool indirect = false);
93 Value* getSrc(nir_ssa_def *, uint8_t);
774 Converter::getSrc(nir_alu_src *src, uint8_t component) in getSrc() function in __anon73e220090111::Converter
780 return getSrc(&src->src, src->swizzle[component]); in getSrc()
784 Converter::getSrc(nir_register *reg, uint8_t idx) in getSrc() function in __anon73e220090111::Converter
793 Converter::getSrc(nir_src *src, uint8_t idx, bool indirect) in getSrc() function in __anon73e220090111::Converter
796 return getSrc(src->ssa, idx); in getSrc()
800 return getSrc(src->reg.indirect, idx); in getSrc()
[all …]
Dnv50_ir_lowering_gm107.cpp58 bld.mkOp2(OP_ADD , TYPE_U32, src0, i->getSrc(0), i->getSrc(1)); in handlePFETCH()
60 bld.mkOp1(OP_MOV , TYPE_U32, src0, i->getSrc(0)); in handlePFETCH()
146 bld.mkOp3(OP_SHFL, TYPE_F32, arr, i->getSrc(0), lane, quad); in handleManualTXD()
148 bld.mkOp3(OP_SHFL, TYPE_F32, shadow, i->getSrc(array + dim + indirect), lane, quad); in handleManualTXD()
153 bld.mkOp3(OP_SHFL, TYPE_F32, crd[c], i->getSrc(c + array), lane, quad); in handleManualTXD()
243 shfl = bld.mkOp3(OP_SHFL, TYPE_F32, bld.getScratch(), insn->getSrc(0), in handleDFDX()
249 insn->setSrc(1, insn->getSrc(0)); in handleDFDX()
263 if (i->getSrc(1)) in handlePFETCH()
264 bld.mkOp2(OP_ADD , TYPE_U32, tmp2, i->getSrc(0), i->getSrc(1)); in handlePFETCH()
266 bld.mkOp1(OP_MOV , TYPE_U32, tmp2, i->getSrc(0)); in handlePFETCH()
[all …]
Dnv50_ir_lowering_nv50.cpp98 bld->mkOp1(OP_ABS, mul->sType, s[0], mul->getSrc(0)); in expandIntegerMUL()
99 bld->mkOp1(OP_ABS, mul->sType, s[1], mul->getSrc(1)); in expandIntegerMUL()
102 s[0] = mul->getSrc(0); in expandIntegerMUL()
103 s[1] = mul->getSrc(1); in expandIntegerMUL()
171 bld->mkOp2(OP_XOR, fTy, NULL, mul->getSrc(0), mul->getSrc(1)) in expandIntegerMUL()
260 (*it)->getSrc(1)->defs.front()->getInsn()->setDef(0, (*it)->getSrc(0)); in visit()
272 ImmediateValue *imm = i->getSrc(s)->asImm(); in replaceZero()
387 if (st->src(0).isIndirect(0) || st->getSrc(1)->refCount() != 1) in propagateWriteToOutput()
391 Instruction *di = st->getSrc(1)->defs.front()->getInsn(); in propagateWriteToOutput()
453 Value *a = i->getSrc(s); in handleAddrDef()
[all …]
Dnv50_ir_lowering_nvc0.cpp53 Instruction *ld = i->getSrc(s)->getInsn(); in handleDIV()
57 bld.mkMovToReg(s, i->getSrc(s)); in handleDIV()
59 assert(ld->getSrc(0) != NULL); in handleDIV()
60 bld.mkMovToReg(s, ld->getSrc(0)); in handleDIV()
129 bld.mkSplit(src, 4, i->getSrc(0)); in handleRCPRSQ()
207 Value *shift = lo->getSrc(1); in handleShift()
214 bld.mkSplit(src, 4, lo->getSrc(0)); in handleShift()
303 bld.mkSplit(src0, 4, cmp->getSrc(0)); in handleSET()
304 bld.mkSplit(src1, 4, cmp->getSrc(1)); in handleSET()
712 ImmediateValue *imm = i->getSrc(s)->asImm(); in replaceZero()
[all …]
Dnv50_ir_from_tgsi.cpp193 SrcRegister getSrc(unsigned int s) const in getSrc() function in tgsi::Instruction
1478 insn.getSrc(0).getFile() == TGSI_FILE_INPUT; in isEdgeFlagPassthrough()
1578 info_out->io.edgeFlagIn = insn.getSrc(0).getIndex(0); in scanInstruction()
1593 insn.getSrc(0).getFile() != TGSI_FILE_MEMORY || in scanInstruction()
1594 memoryFiles[insn.getSrc(0).getIndex(0)].mem_type == in scanInstruction()
1619 scanInstructionSrc(insn, insn.getSrc(s), insn.srcMask(s)); in scanInstruction()
1633 switch (getSrc(s).getFile()) { in getTexture()
1640 r = getSrc(s).getIndex(0); in getTexture()
1860 Modifier m = tgsi.getSrc(s).getMod(c); in applySrcMod()
1877 const int index = tgsi.getSrc(s).getIndex(1); in getVertexBase()
[all …]
Dnv50_ir_ra.cpp445 phis.insert(std::make_pair(std::make_pair(phi, pb), phi->getSrc(j))); in splitEdges()
508 mov->setSrc(0, phi->getSrc(j)); in visit()
537 LValue *tmp = new_LValue(func, cal->getSrc(s)->asLValue()); in visit()
543 mov->setSrc(0, cal->getSrc(s)); in visit()
637 if (i->getSrc(s)->asLValue()) in buildLiveSets()
638 bb->liveSet.set(i->getSrc(s)->id); in buildLiveSets()
692 if (i->getSrc(s)->getUniqueInsn()->bb == bb) // XXX: reachableBy ? in visit()
693 bb->liveSet.set(i->getSrc(s)->id); in visit()
695 bb->liveSet.clr(i->getSrc(s)->id); in visit()
715 if (!i->getSrc(s)->asLValue()) in visit()
[all …]
Dnv50_ir_inlines.h246 return srcs[s].isIndirect(dim) ? getSrc(srcs[s].indirect[dim]) : NULL; in getIndirect()
251 return (predSrc >= 0) ? getSrc(predSrc) : NULL; in getPredicate()
276 return tex.rIndirectSrc >= 0 ? getSrc(tex.rIndirectSrc) : NULL; in getIndirectR()
281 return tex.rIndirectSrc >= 0 ? getSrc(tex.rIndirectSrc) : NULL; in getIndirectS()
331 pol.set(obj->getSrc(i), obj->getSrc(i)); in cloneForward()
Dnv50_ir_build_util.cpp204 insn->getSrc(0)->reg.data.id = id; in mkMovFromReg()
634 if (lo->getSrc(s)->reg.size < 8) { in split64BitOpPostRA()
636 hi->setSrc(s, lo->getSrc(s)); in split64BitOpPostRA()
640 if (lo->getSrc(s)->refCount() > 1) in split64BitOpPostRA()
641 lo->setSrc(s, cloneShallow(fn, lo->getSrc(s))); in split64BitOpPostRA()
642 lo->getSrc(s)->reg.size /= 2; in split64BitOpPostRA()
643 hi->setSrc(s, cloneShallow(fn, lo->getSrc(s))); in split64BitOpPostRA()
647 hi->getSrc(s)->reg.data.u64 >>= 32; in split64BitOpPostRA()
653 hi->getSrc(s)->reg.data.offset += 4; in split64BitOpPostRA()
657 hi->getSrc(s)->reg.data.id++; in split64BitOpPostRA()
Dnv50_ir_emit_nv50.cpp253 assert(i->getSrc(s)->reg.file == FILE_FLAGS); in emitFlagsRd()
413 code[1] |= (i->getSrc(1)->reg.fileIndex << 22); in setSrcFileBits()
422 code[1] |= (i->getSrc(1)->reg.fileIndex << 22); in setSrcFileBits()
426 code[1] |= (i->getSrc(2)->reg.fileIndex << 22); in setSrcFileBits()
430 code[1] |= 0x00200000 | (i->getSrc(2)->reg.fileIndex << 22); in setSrcFileBits()
455 assert(i->getSrc(0)->reg.size == 4); in setSrcFileBits()
622 ASSERTED int32_t offset = i->getSrc(0)->reg.data.offset; in emitLOAD()
657 code[1] = 0x20000000 | (i->getSrc(0)->reg.fileIndex << 22); in emitLOAD()
667 code[0] = 0xd0000001 | (i->getSrc(0)->reg.fileIndex << 16); in emitLOAD()
694 DataFile f = i->getSrc(0)->reg.file; in emitSTORE()
[all …]
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/interfaces/2_declaration_merging/
Ddeclaration_merging_1.ts64 static getSrc(src :Ds<number | string>){ variable
69 Assert.equal(Get.getSrc(src).createE1(1),1);
70 Assert.equal(Get.getSrc(src).createE2(""),2);
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DOptimizer.cpp270 auto *rhs = arithmetic->getSrc(1); in performScalarReplacementOfAggregates()
364 if(use->getSrc(i) == loadData) in eliminateUnitializedLoads()
491 if(instruction.getSrc(i) == instruction.getSrc(unique)) in analyzeUses()
499 Ice::Operand *src = instruction.getSrc(i); in analyzeUses()
524 if(use->getSrc(i) == oldValue) in replace()
551 Ice::Operand *src = instruction->getSrc(i); in deleteInstruction()
635 auto *rhs = arithmetic->getSrc(1); in isStaticallyIndexedArray()
725 return llvm::cast<Ice::ConstantInteger32>(storeSubVector->getSrc(2))->getValue() == in loadTypeMatchesStore()
726 llvm::cast<Ice::ConstantInteger32>(loadSubVector->getSrc(1))->getValue(); in loadTypeMatchesStore()
748 return llvm::cast<Ice::ConstantInteger32>(storeSubVector1->getSrc(2))->getValue() == in storeTypeMatchesStore()
[all …]
/third_party/node/test/parallel/
Dtest-http-zero-length-write.js30 function getSrc() { function
72 getSrc().pipe(res);
89 getSrc().pipe(req);
Dtest-http2-zero-length-write.js11 function getSrc() { function
34 getSrc().pipe(stream);
51 getSrc().pipe(req);

123