/external/swiftshader/third_party/subzero/src/ |
D | IceVariableSplitting.cpp | 84 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 …]
|
D | IceInstX86BaseImpl.h | 741 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASRegOpTyGPR() local 742 if (SrcVar->hasReg()) { in emitIASRegOpTyGPR() 744 ? Traits::getEncodedGPR(SrcVar->getRegNum()) in emitIASRegOpTyGPR() 745 : Traits::getEncodedGPR(SrcVar->getRegNum()); in emitIASRegOpTyGPR() 748 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIASRegOpTyGPR() 782 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASAddrOpTyGPR() local 783 assert(SrcVar->hasReg()); in emitIASAddrOpTyGPR() 784 GPRRegister SrcReg = Traits::getEncodedGPR(SrcVar->getRegNum()); in emitIASAddrOpTyGPR() 837 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASGPRShift() local 838 assert(SrcVar->hasReg()); in emitIASGPRShift() [all …]
|
D | IceInst.cpp | 1087 const auto *SrcVar = llvm::dyn_cast<const Variable>(Source); in checkForRedundantAssign() local 1088 if (SrcVar == nullptr) in checkForRedundantAssign() 1090 if (Dest->hasReg() && Dest->getRegNum() == SrcVar->getRegNum()) { in checkForRedundantAssign() 1095 if (!Dest->hasReg() && !SrcVar->hasReg()) { in checkForRedundantAssign() 1096 if (!Dest->hasStackOffset() || !SrcVar->hasStackOffset()) { in checkForRedundantAssign() 1101 if (Dest->getStackOffset() != SrcVar->getStackOffset()) { in checkForRedundantAssign() 1110 if (SrcVar->hasReg() && Dest->hasStackOffset() && in checkForRedundantAssign() 1112 Dest->getLinkedToRoot() == SrcVar->getLinkedToRoot()) { in checkForRedundantAssign()
|
D | IceRegAlloc.cpp | 526 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()
|
D | IceTargetLowering.h | 335 virtual Inst *createLoweredMove(Variable *Dest, Variable *SrcVar) { in createLoweredMove() argument 338 (void)SrcVar; in createLoweredMove()
|
D | IceTargetLoweringX86Base.h | 98 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()
|
D | IceTargetLoweringMIPS32.cpp | 5237 if (auto *SrcVar = llvm::dyn_cast<Variable>(SrcOp)) { in matchAssign() local 5238 if (!VMetadata->isMultiDef(SrcVar) || in matchAssign() 5242 *Var = SrcVar; in matchAssign() 5641 Variable *SrcVar = legalizeToReg(Src); in lowerSwitch() local 5642 assert(SrcVar->mustHaveReg()); in lowerSwitch() 5648 _br(NoTargetFalse, TargetTrue, SrcVar, Value, CondMIPS32::Cond::EQ); in lowerSwitch()
|
D | IceInstX86Base.h | 1090 if (const auto *SrcVar = in isRedundantAssign() local 1092 if (SrcVar->hasReg() && this->Dest->hasReg()) { in isRedundantAssign() 1100 const auto SrcReg = SrcVar->getRegNum(); in isRedundantAssign()
|
D | IceTargetLoweringARM32.cpp | 5524 if (auto *SrcVar = llvm::dyn_cast<Variable>(SrcOp)) { in matchAssign() local 5525 if (!VMetadata->isMultiDef(SrcVar) || in matchAssign() 5529 *Var = SrcVar; in matchAssign()
|
D | IceTargetLoweringX86BaseImpl.h | 5516 if (auto *SrcVar = llvm::dyn_cast<Variable>(SrcOp)) { 5517 if (!VMetadata->isMultiDef(SrcVar) && 5520 *Var = SrcVar;
|
/external/llvm/lib/IR/ |
D | Globals.cpp | 297 if (const GlobalVariable *SrcVar = dyn_cast<GlobalVariable>(Src)) { in copyAttributesFrom() local 298 setThreadLocalMode(SrcVar->getThreadLocalMode()); in copyAttributesFrom() 299 setExternallyInitialized(SrcVar->isExternallyInitialized()); in copyAttributesFrom()
|
/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 2201 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()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 2354 const auto *SrcVar = in emitCopyprivateCopyFunction() local 2356 Address SrcAddr = emitAddrOfVarFromArray(CGF, RHS, I, SrcVar); in emitCopyprivateCopyFunction() 2360 CGF.EmitOMPCopy(Type, DestAddr, SrcAddr, DestVar, SrcVar, AssignmentOps[I]); in emitCopyprivateCopyFunction()
|