Home
last modified time | relevance | path

Searched refs:Use (Results 1 – 25 of 1599) sorted by relevance

12345678910>>...64

/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DUser.cpp14 Use OperandUseIterator::operator*() const { return Use; } in operator *()
17 assert(Use.LLVMUse != nullptr && "Already at end!"); in operator ++()
18 User *User = Use.getUser(); in operator ++()
19 Use = User->getOperandUseInternal(Use.getOperandNo() + 1, /*Verify=*/false); in operator ++()
26 llvm::Use *&LLVMUse = Use.LLVMUse; in operator ++()
30 Use.Usr = nullptr; in operator ++()
33 auto *Ctx = Use.Ctx; in operator ++()
35 Use.Usr = cast_or_null<sandboxir::User>(Ctx->getValue(LLVMUser)); in operator ++()
40 sandboxir::Use U = Use.getUser()->getOperandUseInternal( in operator +()
41 Use.getOperandNo() + Num, /*Verify=*/true); in operator +()
[all …]
H A DUse.cpp15 Value *Use::get() const { return Ctx->getValue(LLVMUse->get()); } in get()
17 void Use::set(Value *V) { in set()
22 unsigned Use::getOperandNo() const { return Usr->getUseOperandNo(*this); } in getOperandNo()
24 void Use::swap(Use &OtherUse) { in swap()
30 void Use::dumpOS(raw_ostream &OS) const { in dumpOS()
58 void Use::dump() const { dumpOS(dbgs()); } in dump()
H A DValue.cpp24 llvm::Use *LLVMUse = nullptr; in use_begin()
30 return use_iterator(Use(LLVMUse, User, Ctx)); in use_begin()
37 llvm::Use *LLVMUse = AtEnd ? nullptr : &*UseBegin; in user_begin()
41 return user_iterator(Use(LLVMUse, User, Ctx), UseToUser()); in user_begin()
49 Value *OtherV, llvm::function_ref<bool(const Use &)> ShouldReplace) { in replaceUsesWithIf()
54 OtherVal, [&ShouldReplace, this, OtherV](llvm::Use &LLVMUse) -> bool { in replaceUsesWithIf()
58 Use UseToReplace(&LLVMUse, DstU, Ctx); in replaceUsesWithIf()
71 for (auto Use : uses()) { in replaceAllUsesWith() local
72 Ctx.runSetUseCallbacks(Use, Other); in replaceAllUsesWith()
74 Tracker.track(std::make_unique<UseSet>(Use)); in replaceAllUsesWith()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DUse.h35 class Use {
37 Use(const Use &U) = delete;
41 LLVM_ABI void swap(Use &RHS);
45 ~Use() { removeFromList(); } in ~Use()
48 Use(User *Parent) : Parent(Parent) {} in Use() function
66 LLVM_ABI inline const Use &operator=(const Use &RHS);
71 Use *getNext() const { return Next; } in getNext()
78 LLVM_ABI static void zap(Use *Start, const Use *Stop, bool del = false);
83 Use *Next = nullptr;
84 Use **Prev = nullptr;
[all …]
H A DUser.h190 template <int Idx, typename U> static Use &OpFrom(const U *that) { in OpFrom()
196 template <int Idx> Use &Op() { in Op()
199 template <int Idx> const Use &Op() const { in Op()
204 const Use *getHungOffOperands() const { in getHungOffOperands()
205 return *(reinterpret_cast<const Use *const *>(this) - 1); in getHungOffOperands()
208 Use *&getHungOffOperands() { return *(reinterpret_cast<Use **>(this) - 1); } in getHungOffOperands()
210 const Use *getIntrusiveOperands() const { in getIntrusiveOperands()
211 return reinterpret_cast<const Use *>(this) - NumUserOperands; in getIntrusiveOperands()
214 Use *getIntrusiveOperands() { in getIntrusiveOperands()
215 return reinterpret_cast<Use *>(this) - NumUserOperands; in getIntrusiveOperands()
[all …]
H A DOperandTraits.h31 static Use *op_begin(SubClass* U) { in op_begin()
35 return reinterpret_cast<Use*>(U) - ARITY; in op_begin()
37 static Use *op_end(SubClass* U) { in op_end()
38 return reinterpret_cast<Use*>(U); in op_end()
68 static Use *op_begin(SubClass* U) { in op_begin()
72 return reinterpret_cast<Use*>(U) - static_cast<User*>(U)->getNumOperands(); in op_begin()
74 static Use *op_end(SubClass* U) { in op_end()
75 return reinterpret_cast<Use*>(U); in op_end()
94 static Use *op_begin(User* U) { in op_begin()
97 static Use *op_end(User* U) { in op_end()
[all …]
H A DValue.h120 Use *UseList = nullptr;
171 use_iterator_impl<Use> UI;
172 explicit user_iterator_impl(Use *U) : UI(U) {} in user_iterator_impl()
212 Use &getUse() const { return *UI; } in getUse()
314 replaceUsesWithIf(Value *New, llvm::function_ref<bool(Use &U)> ShouldReplace);
353 using use_iterator = use_iterator_impl<Use>;
354 using const_use_iterator = use_iterator_impl<const Use>;
461 LLVM_ABI Use *getSingleUndroppableUse();
462 const Use *getSingleUndroppableUse() const { in getSingleUndroppableUse()
492 dropDroppableUses(llvm::function_ref<bool(const Use *)> ShouldDrop =
[all …]
H A DAbstractCallSite.h27 class Use; variable
99 LLVM_ABI AbstractCallSite(const Use *U);
108 SmallVectorImpl<const Use *> &CallbackUses);
139 bool isCallee(const Use *U) const { in isCallee()
204 const Use &getCalleeUseForCallback() const { in getCalleeUseForCallback()
229 SmallVector<const Use *, 4u> CallbackUses; in forEachCallbackCallSite()
231 for (const Use *U : CallbackUses) { in forEachCallbackCallSite()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DUser.cpp53 static_assert(alignof(Use) >= alignof(BasicBlock *), in allocHungoffUses()
57 size_t size = N * sizeof(Use); in allocHungoffUses()
60 Use *Begin = static_cast<Use*>(::operator new(size)); in allocHungoffUses()
61 Use *End = Begin + N; in allocHungoffUses()
64 new (Begin) Use(this); in allocHungoffUses()
76 Use *OldOps = getOperandList(); in growHungoffUses()
78 Use *NewOps = getOperandList(); in growHungoffUses()
89 Use::zap(OldOps, OldOps + OldNumUses, true); in growHungoffUses()
145 ::operator new(Size + sizeof(Use) * Us + DescBytesToAllocate)); in allocateFixedOperandUser()
146 Use *Start = reinterpret_cast<Use *>(Storage + DescBytesToAllocate); in allocateFixedOperandUser()
[all …]
H A DUse.cpp14 void Use::swap(Use &RHS) { in swap()
35 unsigned Use::getOperandNo() const { in getOperandNo()
39 void Use::zap(Use *Start, const Use *Stop, bool del) { in zap()
41 (--Stop)->~Use(); in zap()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DUser.h25 sandboxir::Use Use; variable
27 OperandUseIterator(const class Use &Use) : Use(Use) {} in OperandUseIterator() argument
34 using value_type = sandboxir::Use;
48 return Use == Other.Use;
67 Use getOperandUseDefault(unsigned OpIdx, bool Verify) const;
71 virtual Use getOperandUseInternal(unsigned OpIdx, bool Verify) const = 0;
76 unsigned getUseOperandNoDefault(const Use &Use) const { in getUseOperandNoDefault() argument
77 return Use.LLVMUse->getOperandNo(); in getUseOperandNoDefault()
80 virtual unsigned getUseOperandNo(const Use &Use) const = 0;
81 friend unsigned Use::getOperandNo() const; // For getUseOperandNo()
[all …]
H A DValue.h41 sandboxir::Use Use; variable
43 UserUseIterator(const class Use &Use) : Use(Use) {} in UserUseIterator() argument
48 using value_type = sandboxir::Use;
54 value_type operator*() const { return Use; }
57 return Use == Other.Use;
62 const sandboxir::Use &getUse() const { return Use; } in getUse()
110 friend class Use; // For getting `Val`. variable
200 use_iterator use_end() { return use_iterator(Use(nullptr, nullptr, Ctx)); } in use_end()
214 User *operator()(const Use &Use) const { return &*Use.getUser(); } in operator()
222 return user_iterator(Use(nullptr, nullptr, Ctx), UseToUser()); in user_end()
[all …]
H A DUse.h33 class Use {
34 llvm::Use *LLVMUse;
39 Use(llvm::Use *LLVMUse, User *Usr, Context &Ctx) in Use() function
41 Use() : LLVMUse(nullptr), Ctx(nullptr) {} in Use() function
57 LLVM_ABI void swap(Use &OtherUse);
59 bool operator==(const Use &Other) const {
63 bool operator!=(const Use &Other) const { return !(*this == Other); }
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dmacb.txt5 Use "cdns,at91rm9200-emac" Atmel at91rm9200 SoC.
6 Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs.
7 Use "cdns,sam9x60-macb" for Microchip sam9x60 SoC.
8 Use "cdns,np4-macb" for NP4 SoC devices.
9 Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb".
10 Use "atmel,sama5d2-gem" for the GEM IP (10/100) available on Atmel sama5d2 SoCs.
11 Use "atmel,sama5d29-gem" for GEM XL IP (10/100) available on Atmel sama5d29 SoCs.
12 Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs.
13 Use "atmel,sama5d3-gem" for the Gigabit IP available on Atmel sama5d3 SoCs.
14 Use "atmel,sama5d4-gem" for the GEM IP (10/100) available on Atmel sama5d4 SoCs.
[all …]
/freebsd/sys/contrib/openzfs/.github/codeql/custom-queries/cpp/
H A DdeprecatedFunctionUsage.ql30 result = "Use strtok_r(3) instead!"
32 result = "basename(3) is underspecified. Use zfs_basename() instead!"
34 result = "basename(3) is underspecified. Use zfs_basename() instead!"
36 result = "dirname(3) is underspecified. Use zfs_dirnamelen() instead!"
38 result = "bcopy(3) is deprecated. Use memcpy(3)/memmove(3) instead!"
40 result = "bcmp(3) is deprecated. Use memcmp(3) instead!"
42 result = "bzero(3) is deprecated. Use memset(3) instead!"
44 result = "Use strftime(3) instead!"
46 result = "Use strftime(3) instead!"
48 result = "gmtime(3) isn't thread-safe. Use gmtime_r(3) instead!"
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZRegisterInfo.cpp87 for (auto &Use : MRI->reg_nodbg_instructions(VirtReg)) in getRegAllocationHints() local
88 if (SystemZ::getTwoOperandOpcode(Use.getOpcode()) != -1) { in getRegAllocationHints()
92 if (VirtReg == Use.getOperand(0).getReg()) { in getRegAllocationHints()
93 VRRegMO = &Use.getOperand(0); in getRegAllocationHints()
94 OtherMO = &Use.getOperand(1); in getRegAllocationHints()
95 if (Use.isCommutable()) in getRegAllocationHints()
96 CommuMO = &Use.getOperand(2); in getRegAllocationHints()
97 } else if (VirtReg == Use.getOperand(1).getReg()) { in getRegAllocationHints()
98 VRRegMO = &Use.getOperand(1); in getRegAllocationHints()
99 OtherMO = &Use.getOperand(0); in getRegAllocationHints()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp70 for (Use &U : llvm::make_early_inc_range(Arg.uses())) { in runOnFunction()
72 Instruction* Use = cast<Instruction>(U); in runOnFunction() local
73 SExtInst* SI = new SExtInst(&Arg, Use->getType()); in runOnFunction()
75 (EVT::getEVT(Use->getType()))); in runOnFunction()
76 Use->replaceAllUsesWith(SI); in runOnFunction()
79 Use->eraseFromParent(); in runOnFunction()
123 const Use &TheUse = UI.getUse(); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DMaterializationUtils.cpp166 Instruction *Use; in rewriteMaterializableInstructions() member
174 Instruction *Use = E.first; in rewriteMaterializableInstructions() local
184 BasicBlock::iterator InsertPoint = Use->getParent()->getFirstInsertionPt(); in rewriteMaterializableInstructions()
185 if (isa<AnyCoroSuspendInst>(Use)) { in rewriteMaterializableInstructions()
187 Use->getParent()->getSinglePredecessor(); in rewriteMaterializableInstructions()
211 for (unsigned i = 0, E = Use->getNumOperands(); i != E; ++i) in rewriteMaterializableInstructions()
212 if (Use->getOperand(i) == D) // Is this operand pointing to oldval? in rewriteMaterializableInstructions()
214 {Use, D, CurrentMaterialization}); in rewriteMaterializableInstructions()
222 if (auto *PN = dyn_cast<PHINode>(R.Use)) { in rewriteMaterializableInstructions()
229 R.Use->replaceUsesOfWith(R.Def, R.Remat); in rewriteMaterializableInstructions()
/freebsd/contrib/llvm-project/llvm/lib/MCA/
H A DInstruction.cpp197 if (!all_of(getUses(), [](const ReadState &Use) { return Use.isReady(); })) in updatePending() argument
211 if (!all_of(getUses(), [](const ReadState &Use) { in updateDispatched() argument
212 return Use.isPending() || Use.isReady(); in updateDispatched()
237 for (ReadState &Use : getUses()) in cycleEvent()
238 Use.cycleEvent(); in cycleEvent()
/freebsd/contrib/llvm-project/llvm/lib/MCA/Stages/
H A DExecuteStage.cpp256 for (const ResourceUse &Use : Used) { in notifyInstructionIssued()
257 assert(Use.second.getDenominator() == 1 && "Invalid cycles!"); in notifyInstructionIssued()
258 dbgs() << "[E] Resource Used: [" << Use.first.first << '.' in notifyInstructionIssued()
259 << Use.first.second << "], "; in notifyInstructionIssued()
260 dbgs() << "cycles: " << Use.second.getNumerator() << '\n'; in notifyInstructionIssued()
265 for (ResourceUse &Use : Used) in notifyInstructionIssued()
266 Use.first.first = HWS.getResourceID(Use.first.first); in notifyInstructionIssued()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveRangeCalc.cpp86 void LiveRangeCalc::extend(LiveRange &LR, SlotIndex Use, Register PhysReg, in extend() argument
88 assert(Use.isValid() && "Invalid SlotIndex"); in extend()
92 MachineBasicBlock *UseMBB = Indexes->getMBBFromIndex(Use.getPrevSlot()); in extend()
96 auto EP = LR.extendInBlock(Undefs, Indexes->getMBBStartIdx(UseMBB), Use); in extend()
104 if (findReachingDefs(LR, *UseMBB, Use, PhysReg, Undefs)) in extend()
191 SlotIndex Use, Register PhysReg, in findReachingDefs() argument
213 const MachineInstr *MI = Indexes->getInstructionFromIndex(Use); in findReachingDefs()
215 errs() << Use << " " << *MI; in findReachingDefs()
268 Use = SlotIndex(); in findReachingDefs()
290 if (BN == UseMBBNum && Use.isValid()) in findReachingDefs()
[all …]
H A DMachineLoopUtils.cpp62 for (auto &Use : MRI.use_operands(OrigR)) in PeelSingleBlockLoop() local
63 if (Use.getParent()->getParent() != Loop) in PeelSingleBlockLoop()
64 Uses.push_back(&Use); in PeelSingleBlockLoop()
65 for (auto *Use : Uses) { in PeelSingleBlockLoop() local
67 MRI.constrainRegClass(R, MRI.getRegClass(Use->getReg())); in PeelSingleBlockLoop()
71 Use->setReg(R); in PeelSingleBlockLoop()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombiner.cpp167 Register Use = LostUses.pop_back_val(); in appliedCombine() local
168 MachineInstr *UseMI = MRI.getVRegDef(Use); in appliedCombine()
180 if (MRI.hasOneNonDBGUser(Use)) in appliedCombine()
181 WorkList.insert(&*MRI.use_instr_nodbg_begin(Use)); in appliedCombine()
189 for (auto &Use : MI.explicit_uses()) { in noteLostUses() local
190 if (!Use.isReg() || !Use.getReg().isVirtual()) in noteLostUses()
192 LostUses.insert(Use.getReg()); in noteLostUses()
/freebsd/sys/contrib/device-tree/Bindings/sound/
H A Drt5640.txt41 1: Use GPIO1 for jack-detect
42 2: Use JD1_IN4P for jack-detect
43 3: Use JD2_IN4N for jack-detect
44 4: Use GPIO2 for jack-detect
45 5: Use GPIO3 for jack-detect
46 6: Use GPIO4 for jack-detect
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBranchCoalescing.cpp430 for (auto &Use : MRI->use_instructions(Def.getReg())) { in canMoveToBeginning() local
431 if (Use.isPHI() && Use.getParent() == &TargetMBB) { in canMoveToBeginning()
460 for (auto &Use : MI.uses()) { in canMoveToEnd() local
461 if (Use.isReg() && Use.getReg().isVirtual()) { in canMoveToEnd()
462 MachineInstr *DefInst = MRI->getVRegDef(Use.getReg()); in canMoveToEnd()
541 for (auto &Use : MRI->use_instructions(Def.getReg())) { in canMerge() local
542 if (Use.isPHI() && Use.getParent() == SourceRegion.BranchTargetBlock) { in canMerge()
550 if (Use.getParent() == SourceRegion.BranchBlock) { in canMerge()

12345678910>>...64