/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | SSAUpdaterBulkTest.cpp | 75 unsigned VarNum = Updater.AddVariable("a", I32Ty); in TEST() local 76 Updater.AddAvailableValue(VarNum, TrueBB, AddOp1); in TEST() 77 Updater.AddAvailableValue(VarNum, FalseBB, AddOp2); in TEST() 78 Updater.AddUse(VarNum, &I1->getOperandUse(0)); in TEST() 79 Updater.AddUse(VarNum, &I2->getOperandUse(0)); in TEST() 81 VarNum = Updater.AddVariable("b", I32Ty); in TEST() 82 Updater.AddAvailableValue(VarNum, TrueBB, SubOp1); in TEST() 83 Updater.AddAvailableValue(VarNum, FalseBB, SubOp2); in TEST() 84 Updater.AddUse(VarNum, &I3->getOperandUse(0)); in TEST() 85 Updater.AddUse(VarNum, &I3->getOperandUse(1)); in TEST() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceOperand.cpp | 405 SizeT VarNum = Var->getIndex(); in addNode() local 406 assert(VarNum < Metadata.size()); in addNode() 408 Metadata[VarNum].markUse(Kind, &I, Node, IsImplicit); in addNode() 424 SizeT VarNum = Var->getIndex(); in addNode() local 425 assert(VarNum < Metadata.size()); in addNode() 427 Metadata[VarNum].markUse(Kind, &I, Node, IsImplicit); in addNode() 438 SizeT VarNum = Var->getIndex(); in isMultiDef() local 440 return Metadata[VarNum].getMultiDef() != VariableTracking::MDS_SingleDef; in isMultiDef() 450 SizeT VarNum = Var->getIndex(); in isMultiBlock() local 451 switch (Metadata[VarNum].getMultiBlock()) { in isMultiBlock() [all …]
|
D | IceVariableSplitting.cpp | 85 const SizeT VarNum = getVarNum(SrcVar); in reset() local 86 Map[VarNum].LastUseInst = &Instr; in reset() 87 Map[VarNum].LastUseNode = Node; in reset() 94 const SizeT VarNum = getVarNum(Var); in get() local 95 Variable *MappedVar = Map[VarNum].MappedVar; in get() 98 if (Map[VarNum].MappedVarNode != Node) in get() 108 const SizeT VarNum = getVarNum(Var); in makeLinked() local 109 Map[VarNum].MappedVar = NewVar; in makeLinked() 110 Map[VarNum].MappedVarNode = Node; in makeLinked() 119 const SizeT VarNum = getVarNum(LinkedTo); in spliceBlockLocalLinkedToChain() local [all …]
|
D | IceRegAlloc.cpp | 172 for (SizeT VarNum : DefsWithoutUses) { in livenessValidateIntervals() local 173 Variable *Var = Vars[VarNum]; in livenessValidateIntervals() 174 Str << "LR def without use, instruction " << LRBegin[VarNum] in livenessValidateIntervals() 177 for (SizeT VarNum : UsesBeforeDefs) { in livenessValidateIntervals() local 178 Variable *Var = Vars[VarNum]; in livenessValidateIntervals() 179 Str << "LR use before def, instruction " << LREnd[VarNum] << ", variable " in livenessValidateIntervals() 227 SizeT VarNum = Var->getIndex(); in initForInfOnly() local 228 LREnd[VarNum] = Instr.getNumber(); in initForInfOnly() 229 if (!Var->getIsArg() && LRBegin[VarNum] == Inst::NumberSentinel) in initForInfOnly() 230 UsesBeforeDefs.push_back(VarNum); in initForInfOnly() [all …]
|
D | IceInst.cpp | 213 SizeT VarNum = Liveness->getLiveIndex(Dest->getIndex()); in liveness() local 214 if (Live[VarNum]) { in liveness() 216 Live[VarNum] = false; in liveness() 218 LiveBegin->push_back(std::make_pair(VarNum, InstNumber)); in liveness() 235 SizeT VarNum = Liveness->getLiveIndex(Var->getIndex()); in liveness() local 236 if (!Live[VarNum]) { in liveness() 239 Live[VarNum] = true; in liveness() 257 LiveEnd->push_back(std::make_pair(VarNum, InstNumber)); in liveness()
|
D | IceCfgNode.cpp | 461 SizeT VarNum = Func->getLiveness()->getLiveIndex(Dest->getIndex()); in advancedPhiLowering() local 463 if (VarNum < LiveIn.size()) { in advancedPhiLowering() 464 assert(!LiveIn[VarNum]); in advancedPhiLowering() 465 LiveIn[VarNum] = true; in advancedPhiLowering() 564 SizeT VarNum = Func->getNumVariables(); in advancedPhiLowering() local 567 Tmp->setName(Func, "__split_" + std::to_string(VarNum)); in advancedPhiLowering()
|
D | IceTargetLoweringX86BaseImpl.h | 164 bool containsValid(SizeT VarNum) const { 165 auto Element = Producers.find(VarNum); 168 void setInvalid(SizeT VarNum) { Producers[VarNum].Instr = nullptr; } 285 SizeT VarNum = Var->getIndex(); 286 if (!containsValid(VarNum)) 290 setInvalid(VarNum); 297 setInvalid(VarNum); 301 getProducerKind(Producers[VarNum].Instr); 303 setInvalid(VarNum); 307 if (Producers[VarNum].IsComplex && Producers[VarNum].NumUses > 0) { [all …]
|
D | IceTargetLoweringARM32.cpp | 7009 SizeT VarNum = Var->getIndex(); in recordProducers() local 7010 auto ComputationIter = KnownComputations.find(VarNum); in recordProducers() 7018 KnownComputations.erase(VarNum); in recordProducers() 7022 KnownComputations.erase(VarNum); in recordProducers() 7028 KnownComputations.erase(VarNum); in recordProducers() 7035 KnownComputations.erase(VarNum); in recordProducers()
|
D | IceTargetLoweringMIPS32.cpp | 6018 SizeT VarNum = Var->getIndex(); in recordProducers() local 6019 auto ComputationIter = KnownComputations.find(VarNum); in recordProducers() 6027 KnownComputations.erase(VarNum); in recordProducers() 6031 KnownComputations.erase(VarNum); in recordProducers()
|
/external/llvm-project/llvm/utils/TableGen/ |
D | InstrDocsEmitter.cpp | 82 for (unsigned VarNum = 0; VarNum < VariantCount; ++VarNum) { in EmitInstrDocs() local 83 Record *AsmVariant = Target.getAsmParserVariant(VarNum); in EmitInstrDocs() 88 CodeGenInstruction::FlattenAsmStringVariants(II->AsmString, VarNum); in EmitInstrDocs()
|