Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/subzero/src/
DIceInstMIPS32.cpp163 auto *Src0 = llvm::cast<Constant>(getSrc(0)); in emit()
364 Inst->getSrc(0)->emit(Func); in emitUnaryopGPR()
381 Inst->getSrc(0)->emit(Func); in emitUnaryopGPRTLoHi()
393 Inst->getSrc(0)->emit(Func); in emitThreeAddr()
395 Inst->getSrc(1)->emit(Func); in emitThreeAddr()
407 Inst->getSrc(0)->emit(Func); in emitTwoAddr()
417 Inst->getSrc(0)->emit(Func); in emitThreeAddrLoHi()
419 Inst->getSrc(1)->emit(Func); in emitThreeAddrLoHi()
426 auto *RA = llvm::cast<Variable>(getSrc(0)); in emit()
443 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 …]
DIceInstX86BaseImpl.h570 const Operand *Src = this->getSrc(0); in emit()
696 Dest = getSrc(0); in emitTwoAddress()
697 assert(Dest == getSrc(0)); in emitTwoAddress()
698 Operand *Src1 = getSrc(1); in emitTwoAddress()
1025 Str << " = movmsk." << this->getSrc(0)->getType() << " "; in dump()
1035 Type SrcTy = this->getSrc(0)->getType(); in emit()
1052 this->getSrc(0)->emit(Func); in emit()
1062 const Variable *Src = llvm::cast<Variable>(this->getSrc(0)); in emitIAS()
1084 Type Ty = this->getSrc(0)->getType(); in emit()
1089 this->getSrc(0)->emit(Func); in emit()
[all …]
DIceInst.cpp174 Operand *Src = OrigInst->getSrc(I); in spliceLivenessInfo()
179 (RightMask << (Index + getSrc(I)->getNumVars())); in spliceLivenessInfo()
182 Index += getSrc(I)->getNumVars(); in spliceLivenessInfo()
301 bool InstAssign::isVarAssign() const { return llvm::isa<Variable>(getSrc(0)); } in isVarAssign()
409 return getSrc(I); in getOperandForTarget()
437 if (auto *Var = llvm::dyn_cast<Variable>(getSrc(I))) { in livenessPhiOperand()
490 return llvm::dyn_cast<Variable>(getSrc(2)); in getRmwBeacon()
697 getSrc(I)->dump(Func); in dumpSources()
708 getSrc(I)->emit(Func); in emitSources()
799 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.h107 Operand *getSrc(SizeT I) const { in getSrc() function
118 Operand *getLoadAddress() const { return getSrc(0); } in getLoadAddress()
119 Operand *getStoreAddress() const { return getSrc(1); } in getStoreAddress()
120 Operand *getData() const { return getSrc(0); } in getData()
300 Operand *getSizeInBytes() const { return getSrc(0); } in getSizeInBytes()
399 return getSrc(0); in getCondition()
445 Operand *getCallTarget() const { return getSrc(0); } in getCallTarget()
446 Operand *getArg(SizeT I) const { return getSrc(I + 1); } in getArg()
631 Operand *getArg(SizeT I) const { return getSrc(I); } in getArg()
720 return getSrc(0); in getRetValue()
[all …]
DIcePhiLoweringImpl.h46 Operand *Src = Phi->getSrc(I); in prelowerPhis32Bit()
62 Operand *Src = Phi->getSrc(I); in prelowerPhis32Bit()
DIceTargetLoweringX86BaseImpl.h182 if (Traits::Is64Bit || Instr->getSrc(0)->getType() != IceType_i64)
189 if (Traits::Is64Bit || Arith->getSrc(0)->getType() != IceType_i64) {
387 if (llvm::isa<typename Traits::X86OperandMem>(PInst->getSrc(I))) {
753 Operand *ArithSrcFromLoad = Arith->getSrc(0);
754 Operand *ArithSrcOther = Arith->getSrc(1);
857 Operand *Src0 = Arith->getSrc(0);
858 Operand *Src1 = Arith->getSrc(1);
864 Operand *Src0 = Icmp->getSrc(0);
865 Operand *Src1 = Icmp->getSrc(1);
871 Operand *Src0 = Fcmp->getSrc(0);
[all …]
/external/mesa3d/src/gallium/drivers/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 (!def(0).rep()->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.cpp96 Value* getSrc(nir_alu_src *, uint8_t component = 0);
97 Value* getSrc(nir_register *, uint8_t);
98 Value* getSrc(nir_src *, uint8_t, bool indirect = false);
99 Value* getSrc(nir_ssa_def *, uint8_t);
769 Converter::getSrc(nir_alu_src *src, uint8_t component) in getSrc() function in __anon334feee80111::Converter
775 return getSrc(&src->src, src->swizzle[component]); in getSrc()
779 Converter::getSrc(nir_register *reg, uint8_t idx) in getSrc() function in __anon334feee80111::Converter
788 Converter::getSrc(nir_src *src, uint8_t idx, bool indirect) in getSrc() function in __anon334feee80111::Converter
791 return getSrc(src->ssa, idx); in getSrc()
795 return getSrc(src->reg.indirect, idx); in getSrc()
[all …]
Dnv50_ir_lowering_nv50.cpp80 bld->mkOp1(OP_ABS, mul->sType, s[0], mul->getSrc(0)); in expandIntegerMUL()
81 bld->mkOp1(OP_ABS, mul->sType, s[1], mul->getSrc(1)); in expandIntegerMUL()
84 s[0] = mul->getSrc(0); in expandIntegerMUL()
85 s[1] = mul->getSrc(1); in expandIntegerMUL()
153 bld->mkOp2(OP_XOR, fTy, NULL, mul->getSrc(0), mul->getSrc(1)) in expandIntegerMUL()
237 (*it)->getSrc(1)->defs.front()->getInsn()->setDef(0, (*it)->getSrc(0)); in visit()
249 ImmediateValue *imm = i->getSrc(s)->asImm(); in replaceZero()
364 if (st->src(0).isIndirect(0) || st->getSrc(1)->refCount() != 1) in propagateWriteToOutput()
368 Instruction *di = st->getSrc(1)->defs.front()->getInsn(); in propagateWriteToOutput()
430 Value *a = i->getSrc(s); in handleAddrDef()
[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()
127 bld.mkOp3(OP_SHFL, TYPE_F32, arr, i->getSrc(0), lane, quad); in handleManualTXD()
129 bld.mkOp3(OP_SHFL, TYPE_F32, shadow, i->getSrc(array + dim + indirect), lane, quad); in handleManualTXD()
134 bld.mkOp3(OP_SHFL, TYPE_F32, crd[c], i->getSrc(c + array), lane, quad); in handleManualTXD()
224 shfl = bld.mkOp3(OP_SHFL, TYPE_F32, bld.getScratch(), insn->getSrc(0), in handleDFDX()
230 insn->setSrc(1, insn->getSrc(0)); in handleDFDX()
244 if (i->getSrc(1)) in handlePFETCH()
245 bld.mkOp2(OP_ADD , TYPE_U32, tmp2, i->getSrc(0), i->getSrc(1)); in handlePFETCH()
247 bld.mkOp1(OP_MOV , TYPE_U32, tmp2, i->getSrc(0)); in handlePFETCH()
[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
1457 insn.getSrc(0).getFile() == TGSI_FILE_INPUT; in isEdgeFlagPassthrough()
1557 info_out->io.edgeFlagIn = insn.getSrc(0).getIndex(0); in scanInstruction()
1572 insn.getSrc(0).getFile() != TGSI_FILE_MEMORY || in scanInstruction()
1573 memoryFiles[insn.getSrc(0).getIndex(0)].mem_type == in scanInstruction()
1598 scanInstructionSrc(insn, insn.getSrc(s), insn.srcMask(s)); in scanInstruction()
1612 switch (getSrc(s).getFile()) { in getTexture()
1619 r = getSrc(s).getIndex(0); in getTexture()
1836 Modifier m = tgsi.getSrc(s).getMod(c); in applySrcMod()
1853 const int index = tgsi.getSrc(s).getIndex(1); in getVertexBase()
[all …]
Dnv50_ir_ra.cpp456 phis.insert(std::make_pair(std::make_pair(phi, pb), phi->getSrc(j))); in splitEdges()
519 mov->setSrc(0, phi->getSrc(j)); in visit()
548 LValue *tmp = new_LValue(func, cal->getSrc(s)->asLValue()); in visit()
554 mov->setSrc(0, cal->getSrc(s)); in visit()
648 if (i->getSrc(s)->asLValue()) in buildLiveSets()
649 bb->liveSet.set(i->getSrc(s)->id); in buildLiveSets()
703 if (i->getSrc(s)->getUniqueInsn()->bb == bb) // XXX: reachableBy ? in visit()
704 bb->liveSet.set(i->getSrc(s)->id); in visit()
706 bb->liveSet.clr(i->getSrc(s)->id); in visit()
726 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.cpp202 insn->getSrc(0)->reg.data.id = id; in mkMovFromReg()
604 if (lo->getSrc(s)->reg.size < 8) { in split64BitOpPostRA()
606 hi->setSrc(s, lo->getSrc(s)); in split64BitOpPostRA()
610 if (lo->getSrc(s)->refCount() > 1) in split64BitOpPostRA()
611 lo->setSrc(s, cloneShallow(fn, lo->getSrc(s))); in split64BitOpPostRA()
612 lo->getSrc(s)->reg.size /= 2; in split64BitOpPostRA()
613 hi->setSrc(s, cloneShallow(fn, lo->getSrc(s))); in split64BitOpPostRA()
617 hi->getSrc(s)->reg.data.u64 >>= 32; in split64BitOpPostRA()
623 hi->getSrc(s)->reg.data.offset += 4; in split64BitOpPostRA()
627 hi->getSrc(s)->reg.data.id++; in split64BitOpPostRA()
Dnv50_ir_emit_nv50.cpp255 assert(i->getSrc(s)->reg.file == FILE_FLAGS); in emitFlagsRd()
415 code[1] |= (i->getSrc(1)->reg.fileIndex << 22); in setSrcFileBits()
424 code[1] |= (i->getSrc(1)->reg.fileIndex << 22); in setSrcFileBits()
428 code[1] |= (i->getSrc(2)->reg.fileIndex << 22); in setSrcFileBits()
432 code[1] |= 0x00200000 | (i->getSrc(2)->reg.fileIndex << 22); in setSrcFileBits()
457 assert(i->getSrc(0)->reg.size == 4); in setSrcFileBits()
624 ASSERTED int32_t offset = i->getSrc(0)->reg.data.offset; in emitLOAD()
656 code[1] = 0x20000000 | (i->getSrc(0)->reg.fileIndex << 22); in emitLOAD()
666 code[0] = 0xd0000001 | (i->getSrc(0)->reg.fileIndex << 16); in emitLOAD()
693 DataFile f = i->getSrc(0)->reg.file; in emitSTORE()
[all …]
Dnv50_ir_ssa.cpp247 if (i->getSrc(s)->asLValue() && !assigned.test(i->getSrc(s)->id)) in buildLiveSetsPreSSA()
248 usedBeforeAssigned.set(i->getSrc(s)->id); in buildLiveSetsPreSSA()
480 lval = stmt->getSrc(s)->asLValue(); in search()
487 lval = mkUndefined(stmt->getSrc(s)); in search()
517 lval = getStackTop(phi->getSrc(p)); in search()
519 lval = mkUndefined(phi->getSrc(p)); in search()
Dnv50_ir_emit_gk110.cpp334 const uint32_t u32 = i->getSrc(s)->asImm()->reg.data.u32; in setShortImmediate()
335 const uint64_t u64 = i->getSrc(s)->asImm()->reg.data.u64; in setShortImmediate()
360 uint32_t u32 = i->getSrc(s)->asImm()->reg.data.u32; in setImmediate32()
363 ImmediateValue imm(i->getSrc(s)->asImm(), i->sType); in setImmediate32()
499 assert(i->getDef(0)->reg.data.id == i->getSrc(2)->reg.data.id); in emitFMAD()
1262 if (i->getDef(0)->interfers(i->next->getSrc(0))) in isNextIndependentTex()
1264 return !i->next->srcExists(1) || !i->getDef(0)->interfers(i->next->getSrc(1)); in isNextIndependentTex()
1459 ImmediateValue *imm = i->getSrc(0)->asImm(); in emitBAR()
1469 ImmediateValue *imm = i->getSrc(0)->asImm(); in emitBAR()
1592 imm = i->getSrc(1)->asImm(); in emitSHFL()
[all …]
/external/swiftshader/src/Reactor/
DOptimizer.cpp270 auto *rhs = arithmetic->getSrc(1); in performScalarReplacementOfAggregates()
364 if(use->getSrc(i) == loadData) in eliminateUnitializedLoads()
484 if(instruction.getSrc(i) == instruction.getSrc(unique)) in analyzeUses()
492 Ice::Operand *src = instruction.getSrc(i); in analyzeUses()
517 if(use->getSrc(i) == oldValue) in replace()
544 Ice::Operand *src = instruction->getSrc(i); in deleteInstruction()
628 auto *rhs = arithmetic->getSrc(1); in isStaticallyIndexedArray()
718 return llvm::cast<Ice::ConstantInteger32>(storeSubVector->getSrc(2))->getValue() == in loadTypeMatchesStore()
719 llvm::cast<Ice::ConstantInteger32>(loadSubVector->getSrc(1))->getValue(); in loadTypeMatchesStore()
741 return llvm::cast<Ice::ConstantInteger32>(storeSubVector1->getSrc(2))->getValue() == in storeTypeMatchesStore()
[all …]
/external/llvm-project/clang/lib/Analysis/
DProgramPoint.cpp136 const Stmt *T = E.getSrc()->getTerminatorStmt(); in printJson()
137 Out << "Edge\", \"src_id\": " << E.getSrc()->getBlockID() in printJson()
145 E.getSrc()->printTerminatorJson(Out, Context.getLangOpts(), in printJson()
181 << (*E.getSrc()->succ_begin() == E.getDst() ? "true" : "false"); in printJson()

1234