Home
last modified time | relevance | path

Searched refs:SrcVar (Results 1 – 13 of 13) sorted by relevance

/external/swiftshader/third_party/subzero/src/
DIceVariableSplitting.cpp84 if (auto *SrcVar = llvm::dyn_cast<Variable>(Instr.getSrc(i))) { in reset() local
85 const SizeT VarNum = getVarNum(SrcVar); in reset()
282 auto *SrcVar = llvm::cast<Variable>(Instr->getSrc(0)); in handleSimpleVarAssign() local
283 const bool SrcIsInf = isInf(SrcVar); in handleSimpleVarAssign()
284 const bool SrcIsAllocable = isAllocable(SrcVar); in handleSimpleVarAssign()
291 if (DestIsInf && SrcIsAllocable && Dest->getType() == SrcVar->getType()) { in handleSimpleVarAssign()
309 Variable *OldMapped = VarMap.get(SrcVar); in handleSimpleVarAssign()
314 if (!VarMap.isInstLastUseOfVar(SrcVar, Instr)) { in handleSimpleVarAssign()
315 Variable *NewMapped = VarMap.makeLinked(SrcVar); in handleSimpleVarAssign()
341 Inst *Mov = Target->createLoweredMove(NewMapped, SrcVar); in handleSimpleVarAssign()
[all …]
DIceInstX86BaseImpl.h739 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASRegOpTyGPR() local
740 if (SrcVar->hasReg()) { in emitIASRegOpTyGPR()
742 ? Traits::getEncodedGPR(SrcVar->getRegNum()) in emitIASRegOpTyGPR()
743 : Traits::getEncodedGPR(SrcVar->getRegNum()); in emitIASRegOpTyGPR()
746 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIASRegOpTyGPR()
780 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASAddrOpTyGPR() local
781 assert(SrcVar->hasReg()); in emitIASAddrOpTyGPR()
782 GPRRegister SrcReg = Traits::getEncodedGPR(SrcVar->getRegNum()); in emitIASAddrOpTyGPR()
835 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASGPRShift() local
836 assert(SrcVar->hasReg()); in emitIASGPRShift()
[all …]
DIceInst.cpp1095 const auto *SrcVar = llvm::dyn_cast<const Variable>(Source); in checkForRedundantAssign() local
1096 if (SrcVar == nullptr) in checkForRedundantAssign()
1098 if (Dest->hasReg() && Dest->getRegNum() == SrcVar->getRegNum()) { in checkForRedundantAssign()
1103 if (!Dest->hasReg() && !SrcVar->hasReg()) { in checkForRedundantAssign()
1104 if (!Dest->hasStackOffset() || !SrcVar->hasStackOffset()) { in checkForRedundantAssign()
1109 if (Dest->getStackOffset() != SrcVar->getStackOffset()) { in checkForRedundantAssign()
1118 if (SrcVar->hasReg() && Dest->hasStackOffset() && in checkForRedundantAssign()
1120 Dest->getLinkedToRoot() == SrcVar->getLinkedToRoot()) { in checkForRedundantAssign()
DIceRegAlloc.cpp526 FOREACH_VAR_IN_INST(SrcVar, *DefInst) { in findRegisterPreference()
529 if (!SrcVar->hasRegTmp()) in findRegisterPreference()
534 const auto &Aliases = *RegAliases[SrcVar->getRegNumTmp()]; in findRegisterPreference()
542 Iter.AllowOverlap = !overlapsDefs(Func, Iter.Cur, SrcVar); in findRegisterPreference()
545 Iter.Prefer = SrcVar; in findRegisterPreference()
DIceTargetLowering.h342 virtual Inst *createLoweredMove(Variable *Dest, Variable *SrcVar) { in createLoweredMove() argument
345 (void)SrcVar; in createLoweredMove()
DIceTargetLoweringX86Base.h98 Inst *createLoweredMove(Variable *Dest, Variable *SrcVar) override { in createLoweredMove() argument
100 return Traits::Insts::Movp::create(Func, Dest, SrcVar); in createLoweredMove()
102 return Traits::Insts::Mov::create(Func, Dest, SrcVar); in createLoweredMove()
104 (void)SrcVar; in createLoweredMove()
DIceTargetLoweringMIPS32.cpp5252 if (auto *SrcVar = llvm::dyn_cast<Variable>(SrcOp)) { in matchAssign() local
5253 if (!VMetadata->isMultiDef(SrcVar) || in matchAssign()
5257 *Var = SrcVar; in matchAssign()
5664 Variable *SrcVar = legalizeToReg(Src); in lowerSwitch() local
5665 assert(SrcVar->mustHaveReg()); in lowerSwitch()
5671 _br(NoTargetFalse, TargetTrue, SrcVar, Value, CondMIPS32::Cond::EQ); in lowerSwitch()
DIceInstX86Base.h1090 if (const auto *SrcVar = in isRedundantAssign() local
1092 if (SrcVar->hasReg() && this->Dest->hasReg()) { in isRedundantAssign()
1100 const auto SrcReg = SrcVar->getRegNum(); in isRedundantAssign()
DIceTargetLoweringARM32.cpp5527 if (auto *SrcVar = llvm::dyn_cast<Variable>(SrcOp)) { in matchAssign() local
5528 if (!VMetadata->isMultiDef(SrcVar) || in matchAssign()
5532 *Var = SrcVar; in matchAssign()
DIceTargetLoweringX86BaseImpl.h5437 if (auto *SrcVar = llvm::dyn_cast<Variable>(SrcOp)) {
5438 if (!VMetadata->isMultiDef(SrcVar) &&
5441 *Var = SrcVar;
/external/llvm/lib/IR/
DGlobals.cpp297 if (const GlobalVariable *SrcVar = dyn_cast<GlobalVariable>(Src)) { in copyAttributesFrom() local
298 setThreadLocalMode(SrcVar->getThreadLocalMode()); in copyAttributesFrom()
299 setExternallyInitialized(SrcVar->isExternallyInitialized()); in copyAttributesFrom()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DGlobals.cpp180 const GlobalVariable *SrcVar = cast<GlobalVariable>(Src); in copyAttributesFrom() local
181 setThreadLocal(SrcVar->isThreadLocal()); in copyAttributesFrom()
/external/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp2201 auto SrcVar = cast<VarDecl>(cast<DeclRefExpr>(SrcExprs[I])->getDecl()); in emitCopyprivateCopyFunction() local
2202 Address SrcAddr = emitAddrOfVarFromArray(CGF, RHS, I, SrcVar); in emitCopyprivateCopyFunction()
2206 CGF.EmitOMPCopy(Type, DestAddr, SrcAddr, DestVar, SrcVar, AssignmentOps[I]); in emitCopyprivateCopyFunction()