Home
last modified time | relevance | path

Searched refs:Def (Results 1 – 25 of 207) sorted by relevance

123456789

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DDirectiveEmitter.h16 Def = DirectiveLanguages[0]; in DirectiveLanguage()
22 return Def->getValueAsString("cppNamespace"); in getCppNamespace()
30 return Def->getValueAsString("clausePrefix"); in getClausePrefix()
60 const llvm::Record *Def;
72 explicit BaseRecord(const llvm::Record *Def) : Def(Def) {} in BaseRecord() argument
95 const llvm::Record *Def;
102 explicit Directive(const llvm::Record *Def) : BaseRecord(Def) {} in Directive() argument
125 explicit Clause(const llvm::Record *Def) : BaseRecord(Def) {} in Clause() argument
183 explicit VersionedClause(const llvm::Record *Def) : Def(Def) {} in VersionedClause() argument
193 const llvm::Record *Def;
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerBrUnless.cpp78 switch (Def->getOpcode()) { in runOnMachineFunction()
81 Def->setDesc(TII.get(NE_I32)); in runOnMachineFunction()
85 Def->setDesc(TII.get(EQ_I32)); in runOnMachineFunction()
89 Def->setDesc(TII.get(LE_S_I32)); in runOnMachineFunction()
121 Def->setDesc(TII.get(NE_I64)); in runOnMachineFunction()
125 Def->setDesc(TII.get(EQ_I64)); in runOnMachineFunction()
161 Def->setDesc(TII.get(NE_F32)); in runOnMachineFunction()
165 Def->setDesc(TII.get(EQ_F32)); in runOnMachineFunction()
169 Def->setDesc(TII.get(NE_F64)); in runOnMachineFunction()
173 Def->setDesc(TII.get(EQ_F64)); in runOnMachineFunction()
[all …]
H A DWebAssemblyRegStackify.cpp260 return Def.isAsCheapAsAMove() && TII->isTriviallyReMaterializable(Def, &AA); in shouldRematerialize()
271 return Def; in getVRegDef()
521 MBB.splice(Insert, &MBB, Def); in moveForSingleUse()
523 LIS.handleMove(*Def); in moveForSingleUse()
552 imposeStackOrdering(Def); in moveForSingleUse()
553 return Def; in moveForSingleUse()
595 Def.eraseFromParent(); in rematerializeCheapDef()
636 LIS.handleMove(*Def); in moveAndTeeForMultiUse()
667 imposeStackOrdering(Def); in moveAndTeeForMultiUse()
675 return Def; in moveAndTeeForMultiUse()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/
H A DExegesisEmitter.cpp52 void emitPfmCountersInfo(const Record &Def,
78 Def->getValueAsListOfDefs("IssueCounters")) { in collectPfmCounters()
88 AddPfmCounterName(Def->getValueAsDef("CycleCounter")); in collectPfmCounters()
89 AddPfmCounterName(Def->getValueAsDef("UopsCounter")); in collectPfmCounters()
107 void ExegesisEmitter::emitPfmCountersInfo(const Record &Def, in emitPfmCountersInfo() argument
115 Def.getValueAsListOfDefs("IssueCounters").size(); in emitPfmCountersInfo()
158 llvm::any_of(PfmCounterDefs, [](const Record *Def) { in emitPfmCounters() argument
159 return !Def->getValueAsListOfDefs("IssueCounters").empty(); in emitPfmCounters()
164 for (const Record *Def : PfmCounterDefs) { in emitPfmCounters() local
175 for (const Record *Def : PfmCounterDefs) in emitPfmCounters() local
[all …]
H A DCodeGenSchedule.h61 CodeGenSchedRW(unsigned Idx, Record *Def) in CodeGenSchedRW()
63 Name = std::string(Def->getName()); in CodeGenSchedRW()
64 IsRead = Def->isSubClassOf("SchedRead"); in CodeGenSchedRW()
65 HasVariants = Def->isSubClassOf("SchedVariant"); in CodeGenSchedRW()
67 IsVariadic = Def->getValueAsBit("Variadic"); in CodeGenSchedRW()
72 IsSequence = Def->isSubClassOf("WriteSequence"); in CodeGenSchedRW()
393 void addDefinition(const Record *Def) { Definitions.push_back(Def); } in addDefinition() argument
525 CodeGenSchedRW &getSchedRW(Record *Def) { in getSchedRW() argument
526 bool IsRead = Def->isSubClassOf("SchedRead"); in getSchedRW()
527 unsigned Idx = getSchedRWIdx(Def, IsRead); in getSchedRW()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUGlobalISelUtils.cpp18 MachineInstr *Def = getDefIgnoringCopies(Reg, MRI); in getBaseWithConstantOffset() local
19 if (!Def) in getBaseWithConstantOffset()
22 if (Def->getOpcode() == TargetOpcode::G_CONSTANT) { in getBaseWithConstantOffset()
24 const MachineOperand &Op = Def->getOperand(1); in getBaseWithConstantOffset()
34 if (Def->getOpcode() == TargetOpcode::G_ADD) { in getBaseWithConstantOffset()
36 if (mi_match(Def->getOperand(2).getReg(), MRI, m_ICst(Offset))) in getBaseWithConstantOffset()
37 return std::make_pair(Def->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset()
40 if (mi_match(Def->getOperand(2).getReg(), MRI, m_Copy(m_ICst(Offset)))) in getBaseWithConstantOffset()
41 return std::make_pair(Def->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset()
45 if (Def->getOpcode() == TargetOpcode::G_PTRTOINT) { in getBaseWithConstantOffset()
[all …]
H A DSIFoldOperands.cpp502 if (!Def || !Def->isRegSequence()) in getRegSeqInit()
568 if (!UseOp.getSubReg() && Def && TII->isFoldableCopy(*Def)) { in tryToFoldACImm()
772 if (Def->isImm() && in foldOperand()
780 } else if (Def->isReg() && TRI->isAGPR(*MRI, Def->getReg())) { in foldOperand()
793 assert(Def->isReg()); in foldOperand()
1037 if (Def && Def->isMoveImmediate()) { in getImmOrMaterializedImm()
1546 for (auto &Def : Defs) { in tryFoldRegSequence() local
1547 const auto *Op = Def.first; in tryFoldRegSequence()
1594 Def->setIsKill(false); in tryFoldRegSequence()
1596 RS.add(*Def); in tryFoldRegSequence()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DPeepholeOptimizer.cpp1136 RegSubRegPair LookupSrc(Def.Reg, Def.SubReg); in getNewSource()
1260 if (Def.SubReg) { in rewriteSource()
1848 if (Def->mayRaiseFPException() || Def->hasUnmodeledSideEffects()) in getNextSourceFromBitcast()
1895 assert((Def->isRegSequence() || Def->isRegSequenceLike()) && in getNextSourceFromRegSequence()
1939 assert((Def->isInsertSubreg() || Def->isInsertSubregLike()) && in getNextSourceFromInsertSubreg()
2080 if (Def->isRegSequence() || Def->isRegSequenceLike()) in getNextSourceImpl()
2082 if (Def->isInsertSubreg() || Def->isInsertSubregLike()) in getNextSourceImpl()
2084 if (Def->isExtractSubreg() || Def->isExtractSubregLike()) in getNextSourceImpl()
2088 if (Def->isPHI()) in getNextSourceImpl()
2096 if (!Def) in getNextSource()
[all …]
H A DReachingDefAnalysis.cpp163 int Def = Incoming[Unit]; in reprocessBasicBlock() local
169 if (*Start >= Def) in reprocessBasicBlock()
173 *Start = Def; in reprocessBasicBlock()
248 for (int Def : RegUnitDefs) { in traverse() local
250 LastDef = Def; in traverse()
268 if (Def >= InstId) in getReachingDef()
270 DefRes = Def; in getReachingDef()
399 Defs.insert(Def); in getGlobalReachingDefs()
426 Defs.insert(Def); in getLiveOuts()
538 return Def < 0 ? nullptr : getInstFromId(MBB, Def); in getLocalLiveOutMIDef()
[all …]
H A DMachineCopyPropagation.cpp169 if (!is_contained(Copy.DefRegs, Def)) in trackCopy()
170 Copy.DefRegs.push_back(Def); in trackCopy()
366 if (!isNopCopy(*PrevCopy, Src, Def, TRI)) in eraseIfRedundant()
375 assert(CopyDef == Src || CopyDef == Def); in eraseIfRedundant()
392 return URC->contains(Def); in isBackwardPropagatableRegClassCopy()
603 if (eraseIfRedundant(*MI, Def, Src) || eraseIfRedundant(*MI, Src, Def)) in ForwardCopyPropagateBlock()
626 if (!MRI->isReserved(Def)) in ForwardCopyPropagateBlock()
636 Tracker.clobberRegister(Def, *TRI); in ForwardCopyPropagateBlock()
757 Register Def = MI.getOperand(0).getReg(); in isBackwardPropagatableCopy() local
760 if (!Def || !Src) in isBackwardPropagatableCopy()
[all …]
H A DDetectDeadLanes.cpp250 Register DefReg = Def.getReg(); in transferUsedLanes()
285 Register DefReg = Def.getReg(); in transferDefinedLanesStep()
309 const MachineInstr &MI = *Def.getParent(); in transferDefinedLanes()
343 assert(Def.getSubReg() == 0 && in transferDefinedLanes()
356 const MachineInstr &DefMI = *Def.getParent(); in determineInitialDefinedLanes()
364 if (Def.isDead()) in determineInitialDefinedLanes()
406 if (DefMI.isImplicitDef() || Def.isDead()) in determineInitialDefinedLanes()
409 assert(Def.getSubReg() == 0 && in determineInitialDefinedLanes()
428 Register DefReg = Def.getReg(); in determineInitialUsedLanes()
470 Register DefReg = Def.getReg(); in isUndefInput()
[all …]
H A DModuloSchedule.cpp631 Register Def = MO.getReg(); in generatePhis() local
637 hasUseAfterLoop(Def, BB, MRI)) in generatePhis()
808 if (BBJ.readsRegister(Def)) { in splitLifetimes()
814 .addReg(Def); in splitLifetimes()
823 if (I.readsRegister(Def)) in splitLifetimes()
1066 while (Def->isPHI()) { in findDefInLoop()
1067 if (!Visited.insert(Def).second) in findDefInLoop()
1071 Def = MRI.getVRegDef(Def->getOperand(i).getReg()); in findDefInLoop()
1075 return Def; in findDefInLoop()
1347 phi(Def.getReg()); in rewrite()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/WindowsManifest/
H A DWindowsManifestMerger.cpp127 for (xmlNsPtr Def = Node->nsDef; Def; Def = Def->next) { in search() local
128 if (Def->prefix && xmlStringsEqual(Def->href, HRef)) { in search()
129 return Def; in search()
156 return Def; in searchOrDefine()
158 return Def; in searchOrDefine()
182 for (xmlNsPtr Def = Node->nsDef; Def; Def = Def->next) { in getNamespaceWithPrefix() local
184 return Def; in getNamespaceWithPrefix()
345 for (xmlNsPtr Def = AdditionalNode->nsDef; Def; Def = Def->next) { in mergeNamespaces() local
601 for (xmlNsPtr Def = Node->nsDef; Def; Def = Def->next) { in checkAndStripPrefixes() local
603 Prev = Def; in checkAndStripPrefixes()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DMacroExpander.cpp61 Def.Name = Current->TokenText; in parse()
64 Def.ObjectLike = false; in parse()
71 return Def; in parse()
79 Def.Params.push_back(Current); in parseParams()
80 Def.ArgMap[Def.Params.back()->TokenText] = Def.Params.size() - 1; in parseParams()
103 Def.Body.push_back(Current); in parseTail()
106 Def.Body.push_back(Current); in parseTail()
118 Definition Def; member in clang::format::MacroExpander::DefinitionParser
181 auto I = Def.ArgMap.find(Tok->TokenText); in expand()
182 if (I == Def.ArgMap.end()) in expand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DDominators.cpp131 if (!Def) { in dominates()
138 const BasicBlock *DefBB = Def->getParent(); in dominates()
149 if (Def == User) in dominates()
156 if (isa<InvokeInst>(Def) || isa<CallBrInst>(Def) || isa<PHINode>(User)) in dominates()
157 return dominates(Def, UseBB); in dominates()
162 return Def->comesBefore(User); in dominates()
169 const BasicBlock *DefBB = Def->getParent(); in dominates()
184 if (const auto *II = dyn_cast<InvokeInst>(Def)) { in dominates()
270 if (!Def) { in dominates()
277 const BasicBlock *DefBB = Def->getParent(); in dominates()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64AdvSIMDScalarPass.cpp209 MachineRegisterInfo::def_instr_iterator Def = in isProfitableToTransform() local
211 assert(std::next(Def) == MRI->def_instr_end() && "Multiple def in SSA!"); in isProfitableToTransform()
212 MachineOperand *MOSrc0 = getSrcFromCopy(&*Def, MRI, SubReg0); in isProfitableToTransform()
222 MachineRegisterInfo::def_instr_iterator Def = in isProfitableToTransform() local
225 MachineOperand *MOSrc1 = getSrcFromCopy(&*Def, MRI, SubReg1); in isProfitableToTransform()
302 MachineRegisterInfo::def_instr_iterator Def = in transformInstruction() local
305 MachineOperand *MOSrc0 = getSrcFromCopy(&*Def, MRI, SubReg0); in transformInstruction()
315 Def->eraseFromParent(); in transformInstruction()
321 MachineRegisterInfo::def_instr_iterator Def = in transformInstruction() local
324 MachineOperand *MOSrc1 = getSrcFromCopy(&*Def, MRI, SubReg1); in transformInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp164 Expected<COFFModuleDefinition> Def = in dlltoolDriverMain() local
167 if (!Def) { in dlltoolDriverMain()
169 << errorToErrorCode(Def.takeError()).message(); in dlltoolDriverMain()
175 Def->OutputFile = Arg->getValue(); in dlltoolDriverMain()
177 if (Def->OutputFile.empty()) { in dlltoolDriverMain()
189 for (COFFShortExport& E : Def->Exports) { in dlltoolDriverMain()
197 for (COFFShortExport& E : Def->Exports) { in dlltoolDriverMain()
214 writeImportLibrary(Def->OutputFile, Path, Def->Exports, Machine, true)) in dlltoolDriverMain()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DUnifyLoopExits.cpp113 auto Def = II.first; in INITIALIZE_PASS_DEPENDENCY() local
114 LLVM_DEBUG(dbgs() << "externally used: " << Def->getName() << "\n"); in INITIALIZE_PASS_DEPENDENCY()
115 auto NewPhi = PHINode::Create(Def->getType(), Incoming.size(), in INITIALIZE_PASS_DEPENDENCY()
116 Def->getName() + ".moved", in INITIALIZE_PASS_DEPENDENCY()
120 if (Def->getParent() == In || DT.dominates(Def, In)) { in INITIALIZE_PASS_DEPENDENCY()
122 NewPhi->addIncoming(Def, In); in INITIALIZE_PASS_DEPENDENCY()
125 NewPhi->addIncoming(UndefValue::get(Def->getType()), In); in INITIALIZE_PASS_DEPENDENCY()
132 U->replaceUsesOfWith(Def, NewPhi); in INITIALIZE_PASS_DEPENDENCY()
H A DPredicateInfo.cpp106 Value *Def = nullptr; member
151 bool isADef = A.Def; in operator ()()
152 bool isBDef = B.Def; in operator ()()
194 bool isADef = A.Def; in comparePHIRelated()
195 bool isBDef = B.Def; in comparePHIRelated()
196 assert((!A.Def || !A.U) && (!B.Def || !B.U) && in comparePHIRelated()
204 if (VD.Def) in getMiddleDef()
205 return VD.Def; in getMiddleDef()
225 if (Def) in getDefOrUser()
550 if (RevIter->Def) in materializeStack()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MCA/
H A DInstruction.cpp189 if (!all_of(getDefs(), [](const WriteState &Def) { return Def.isReady(); })) in updatePending() argument
206 [](const WriteState &Def) { return !Def.getDependentWrite(); })) in updateDispatched() argument
228 for (WriteState &Def : getDefs()) in cycleEvent()
229 Def.cycleEvent(); in cycleEvent()
237 for (WriteState &Def : getDefs()) in cycleEvent()
238 Def.cycleEvent(); in cycleEvent()
/freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/
H A DJSONBackend.cpp76 if (auto *Def = dyn_cast<DefInit>(&I)) { in translateInit() local
78 obj["def"] = Def->getDef()->getName(); in translateInit()
139 auto &Def = *D.second; in run() local
144 for (const RecordVal &RV : Def.getValues()) { in run()
145 if (!Def.isTemplateArg(RV.getNameInit())) { in run()
156 for (const auto &SuperPair : Def.getSuperClasses()) in run()
161 obj["!anonymous"] = Def.isAnonymous(); in run()
166 for (const auto &SuperPair : Def.getSuperClasses()) { in run()
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DMacroInfo.cpp205 for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) { in findDirectiveAtLoc() local
206 if (Def.getLocation().isInvalid() || // For macros defined on the command line. in findDirectiveAtLoc()
207 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) in findDirectiveAtLoc()
208 return (!Def.isUndefined() || in findDirectiveAtLoc()
209 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation())) in findDirectiveAtLoc()
210 ? Def : DefInfo(); in findDirectiveAtLoc()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DMinimalSymbolDumper.cpp579 P.format(" offset = {0}", Def.Offset); in visitKnownRecord()
586 P.formatLine("offset = {0}, range = {1}", Def.Hdr.Offset, in visitKnownRecord()
587 formatRange(Def.Range)); in visitKnownRecord()
588 P.formatLine("gaps = {2}", Def.Hdr.Offset, in visitKnownRecord()
599 int32_t(Def.Hdr.BasePointerOffset), Def.offsetInParent(), in visitKnownRecord()
600 Def.hasSpilledUDTMember()); in visitKnownRecord()
624 bool NoName = !!(Def.Hdr.MayHaveNoName == 0); in visitKnownRecord()
627 uint32_t(Def.Hdr.OffsetInParent)); in visitKnownRecord()
637 Def.Program, Def.OffsetInParent, formatRange(Def.Range)); in visitKnownRecord()
644 P.formatLine("program = {0}, range = {1}", Def.Program, in visitKnownRecord()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DA15SDOptimizer.cpp201 MachineInstr *Def = Op->getParent(); in eraseInstrWithNoUses() local
205 if (DeadInstr.find(Def) != DeadInstr.end()) in eraseInstrWithNoUses()
222 if (&Use == Def) in eraseInstrWithNoUses()
234 DeadInstr.insert(Def); in eraseInstrWithNoUses()
304 if (!Def) in optimizeSDPattern()
306 if (Def->isImplicitDef()) in optimizeSDPattern()
347 if (!Def) in elideCopies()
349 return elideCopies(Def); in elideCopies()
605 MachineInstr *Def = MRI->getVRegDef(*I); in runOnInstruction() local
606 if (!Def) in runOnInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanValue.h65 VPDef *Def; variable
67 VPValue(const unsigned char SC, Value *UV = nullptr, VPDef *Def = nullptr);
112 VPValue(Value *UV = nullptr, VPDef *Def = nullptr)
113 : VPValue(VPValueSC, UV, Def) {} in VPValue() argument
179 VPDef *getDef() { return Def; } in getDef()
313 V->Def = nullptr; in removeDefinedValue()
349 assert(D->Def == this && in ~VPDef()
353 D->Def = nullptr; in ~VPDef()

123456789