Home
last modified time | relevance | path

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

12345678910>>...45

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DUse.h43 class Use {
45 Use(const Use &U) = delete;
49 void swap(Use &RHS);
53 ~Use() { in ~Use()
59 Use(User *Parent) : Parent(Parent) {} in Use() function
77 inline const Use &operator=(const Use &RHS);
82 Use *getNext() const { return Next; } in getNext()
89 static void zap(Use *Start, const Use *Stop, bool del = false);
94 Use *Next = nullptr;
95 Use **Prev = nullptr;
[all …]
H A DUser.h133 template <int Idx> Use &Op() { in Op()
141 const Use *getHungOffOperands() const { in getHungOffOperands()
145 Use *&getHungOffOperands() { return *(reinterpret_cast<Use **>(this) - 1); } in getHungOffOperands()
151 Use *getIntrusiveOperands() { in getIntrusiveOperands()
155 void setOperandList(Use *NewList) { in setOperandList()
162 const Use *getOperandList() const { in getOperandList()
165 Use *getOperandList() { in getOperandList()
186 Use &getOperandUse(unsigned i) { in getOperandUse()
229 using op_iterator = Use*;
230 using const_op_iterator = const Use*;
[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()
69 static Use *op_begin(SubClass* U) { in op_begin()
75 static Use *op_end(SubClass* U) { in op_end()
76 return reinterpret_cast<Use*>(U); in op_end()
96 static Use *op_begin(User* U) { in op_begin()
99 static Use *op_end(User* U) { in op_end()
119 template <int> inline Use &Op(); \
[all …]
H A DValue.h76 Use *UseList;
170 use_iterator_impl<Use> UI;
456 Use *getSingleUndroppableUse();
824 static Use *mergeUseLists(Use *L, Use *R, Compare Cmp) { in mergeUseLists()
825 Use *Merged; in mergeUseLists()
826 Use **Next = &Merged; in mergeUseLists()
868 void Use::set(Value *V) { in set()
879 const Use &Use::operator=(const Use &RHS) {
895 Use *Slots[MaxSlots]; in sortUseList()
898 Use *Next = UseList->Next; in sortUseList()
[all …]
H A DAbstractCallSite.h26 class Use; variable
98 AbstractCallSite(const Use *U);
106 SmallVectorImpl<const Use *> &CallbackUses);
137 bool isCallee(const Use *U) const { in isCallee()
202 const Use &getCalleeUseForCallback() const { in getCalleeUseForCallback()
227 SmallVector<const Use *, 4u> CallbackUses; in forEachCallbackCallSite()
229 for (const Use *U : CallbackUses) { in forEachCallbackCallSite()
/llvm-project-15.0.7/llvm/lib/IR/
H A DUser.cpp57 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()
136 Use *Start = reinterpret_cast<Use *>(Storage + DescBytesToAllocate); in allocateFixedOperandUser()
137 Use *End = Start + Us; in allocateFixedOperandUser()
143 new (Start) Use(Obj); in allocateFixedOperandUser()
164 Use **HungOffOperandList = static_cast<Use **>(Storage); in operator new()
186 Use **HungOffOperandList = static_cast<Use **>(Usr) - 1; in operator delete()
192 Use *UseBegin = static_cast<Use *>(Usr) - Obj->NumUserOperands; in operator delete()
[all …]
H A DUse.cpp14 void Use::swap(Use &RHS) { in swap()
31 unsigned Use::getOperandNo() const { in getOperandNo()
35 void Use::zap(Use *Start, const Use *Stop, bool del) { in zap()
37 (--Stop)->~Use(); in zap()
H A DReplaceConstant.cpp25 std::map<Use *, std::vector<std::vector<ConstantExpr *>>> CEPaths; in convertConstantExprsToInstructions()
35 std::map<Use *, std::vector<std::vector<ConstantExpr *>>> &CEPaths, in convertConstantExprsToInstructions() argument
39 for (Use &U : I->operands()) { in convertConstantExprsToInstructions()
98 std::map<Use *, std::vector<std::vector<ConstantExpr *>>> &CEPaths) { in collectConstantExprPaths() argument
99 for (Use &U : I->operands()) { in collectConstantExprPaths()
/llvm-project-15.0.7/clang/test/Modules/
H A Dmerge-using-decls.cpp24 template<typename T> int Use() { in Use() function
34 …return Use<C<T> >() + Use<D<T> >() + Use<E<T> >() + Use<F<T> >(); // expected-note 0-2{{instantiat… in UseAll()
36 return Use<C<T> >() + Use<D<T> >() + Use<F<T> >(); // expected-note 0-2{{instantiation of}} in UseAll()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTX.td65 "Use PTX version 3.2">;
67 "Use PTX version 4.0">;
69 "Use PTX version 4.1">;
71 "Use PTX version 4.2">;
73 "Use PTX version 4.3">;
75 "Use PTX version 5.0">;
77 "Use PTX version 6.0">;
79 "Use PTX version 6.1">;
81 "Use PTX version 6.3">;
83 "Use PTX version 6.4">;
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZRegisterInfo.cpp94 VRRegMO = &Use.getOperand(0); in getRegAllocationHints()
95 OtherMO = &Use.getOperand(1); in getRegAllocationHints()
96 if (Use.isCommutable()) in getRegAllocationHints()
97 CommuMO = &Use.getOperand(2); in getRegAllocationHints()
99 VRRegMO = &Use.getOperand(1); in getRegAllocationHints()
100 OtherMO = &Use.getOperand(0); in getRegAllocationHints()
102 Use.isCommutable()) { in getRegAllocationHints()
103 VRRegMO = &Use.getOperand(2); in getRegAllocationHints()
104 OtherMO = &Use.getOperand(0); in getRegAllocationHints()
146 if (Use.getOpcode() == SystemZ::LOCRMux || in getRegAllocationHints()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A DDeallocUseAfterFreeErrors.m40 // expected-note@-1 {{Use of instance variable '_ivar' after 'self' has been deallocated}}
128 self.ivar = nil; // expected-warning {{Use of 'self' after it has been deallocated}}
129 // expected-note@-1 {{Use of 'self' after it has been deallocated}}
148 // expected-note@-1 {{Use of 'self' after it has been deallocated}}
161 [self _invalidate]; // expected-warning {{Use of 'self' after it has been deallocated}}
162 // expected-note@-1 {{Use of 'self' after it has been deallocated}}
176 _invalidate(self); // expected-warning {{Use of 'self' after it has been deallocated}}
177 // expected-note@-1 {{Use of 'self' after it has been deallocated}}
191 // expected-note@-1 {{Use of 'self' after it has been deallocated}}
212 // expected-note@-1 {{Use of 'self' after it has been deallocated}}
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp77 for (Use &U : llvm::make_early_inc_range(Arg.uses())) { in runOnFunction()
79 Instruction* Use = cast<Instruction>(U); in runOnFunction() local
80 SExtInst* SI = new SExtInst(&Arg, Use->getType()); in runOnFunction()
82 (EVT::getEVT(Use->getType()))); in runOnFunction()
83 Use->replaceAllUsesWith(SI); in runOnFunction()
86 Use->eraseFromParent(); in runOnFunction()
130 const Use &TheUse = UI.getUse(); in runOnFunction()
/llvm-project-15.0.7/llvm/test/Transforms/JumpThreading/
H A Dlvi-load.ll6 %"struct.llvm::PointerIntPair<llvm::Use**,2u,llvm::Use::PrevPtrTag,llvm::PointerLikeTypeTraits<llvm…
8Use" = type { %"struct.llvm::Value"*, %"struct.llvm::Use"*, %"struct.llvm::PointerIntPair<llvm::Us…
9 …e { i32 (...)**, i8, i8, i16, %"struct.llvm::PATypeHolder", %"struct.llvm::Use"*, %"struct.llvm::V…
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRV.td23 "Use SPIR-V version 1.0">;
25 "Use SPIR-V version 1.1">;
27 "Use SPIR-V version 1.2">;
29 "Use SPIR-V version 1.3">;
31 "Use SPIR-V version 1.4">;
33 "Use SPIR-V version 1.5">;
/llvm-project-15.0.7/llvm/unittests/IR/
H A DUseTest.cpp46 X.sortUseList([](const Use &L, const Use &R) { in TEST()
56 X.sortUseList([](const Use &L, const Use &R) { in TEST()
91 X.sortUseList([](const Use &L, const Use &R) { in TEST()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperandsSkip.cpp37 for (Use &Op : O->operands()) in collectReferencedValues()
45 static bool shouldReduceOperand(Use &Op) { in shouldReduceOperand()
92 function_ref<void(Use &, ArrayRef<Value *>)> Callback) { in opportunities() argument
142 for (Use &Op : I.operands()) { in opportunities()
192 SmallVector<std::pair<Use *, Value *>> Replacements; in extractOperandsFromModule()
193 opportunities(F, [&](Use &Op, ArrayRef<Value *> Candidates) { in extractOperandsFromModule()
215 for (std::pair<Use *, Value *> P : Replacements) in extractOperandsFromModule()
H A DReduceOperands.cpp22 function_ref<Value *(Use &)> ReduceValue) { in extractOperandsFromModule()
35 static bool isOne(Use &Op) { in isOne()
40 static bool isZero(Use &Op) { in isZero()
51 static bool shouldReduceOperand(Use &Op) { in shouldReduceOperand()
68 auto ReduceValue = [](Use &Op) -> Value * { in reduceOperandsOneDeltaPass()
102 auto ReduceValue = [](Use &Op) -> Value * { in reduceOperandsZeroDeltaPass()
115 auto ReduceValue = [](Use &Op) -> Value * { in reduceOperandsNaNDeltaPass()
H A DReduceOperandsToArgs.cpp23 return all_of(F->uses(), [](Use &Op) { in canReplaceFunction()
30 static bool canReduceUse(Use &Op) { in canReduceUse()
61 for (Use &U : OldF->uses()) { in replaceFunctionCalls()
108 ArrayRef<Use *> OpsToReplace) { in substituteOperandWithArgument()
113 for (Use *Op : OpsToReplace) in substituteOperandWithArgument()
160 for (Use *Op : OpsToReplace) { in substituteOperandWithArgument()
177 SmallVector<Use *> OperandsToReduce; in reduceOperandsToArgs()
183 for (Use &Op : I.operands()) { in reduceOperandsToArgs()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/test/Transforms/LoopStrengthReduce/ARM/
H A D2012-06-15-lsr-noaddrmode.ll13 ; LSR Use: Kind=Special, Offsets={0}, all-fixups-outside-loop, widest fixup type: i32
15 ; LSR Use: Kind=ICmpZero, Offsets={0}, widest fixup type: i32
17 ; LSR Use: Kind=Address of i32, Offsets={0}, widest fixup type: i32*
19 ; LSR Use: Kind=Address of i32, Offsets={0}, widest fixup type: i32*
21 ; LSR Use: Kind=Special, Offsets={0}, all-fixups-outside-loop, widest fixup type: i32
26 ; LSR Use: Kind=Special, Offsets={0}, all-fixups-outside-loop, widest fixup type: i32
28 ; LSR Use: Kind=ICmpZero, Offsets={0}, widest fixup type: i32
30 ; LSR Use: Kind=Address of i32, Offsets={0}, widest fixup type: i32*
32 ; LSR Use: Kind=Address of i32, Offsets={0}, widest fixup type: i32*
34 ; LSR Use: Kind=Special, Offsets={0}, all-fixups-outside-loop, widest fixup type: i32
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DLegacyDivergenceAnalysis.h28 class Use; variable
48 bool isDivergentUse(const Use *U) const;
55 bool isUniformUse(const Use *U) const { return !isDivergentUse(U); } in isUniformUse()
72 DenseSet<const Use *> DivergentUses;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUseAfterMoveCheck.cpp175 for (const DeclRefExpr *Use : Uses) { in findInternal() local
176 if (!MovingCall || Sequence->potentiallyAfter(Use, MovingCall)) { in findInternal()
182 if (!Sequence->potentiallyAfter(Reinit, Use)) in findInternal()
187 TheUseAfterMove->DeclRef = Use; in findInternal()
195 Sequence->potentiallyAfter(MovingCall, Use); in findInternal()
384 SourceLocation UseLoc = Use.DeclRef->getExprLoc(); in emitDiagnostic()
390 if (Use.EvaluationOrderUndefined) { in emitDiagnostic()
395 } else if (UseLoc < MoveLoc || Use.DeclRef == MoveArg) { in emitDiagnostic()
464 UseAfterMove Use; in check() local
465 if (Finder.find(FunctionBody, MovingCall, Arg->getDecl(), &Use)) in check()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLiveRangeCalc.cpp87 void LiveRangeCalc::extend(LiveRange &LR, SlotIndex Use, unsigned PhysReg, in extend() argument
89 assert(Use.isValid() && "Invalid SlotIndex"); in extend()
93 MachineBasicBlock *UseMBB = Indexes->getMBBFromIndex(Use.getPrevSlot()); in extend()
105 if (findReachingDefs(LR, *UseMBB, Use, PhysReg, Undefs)) in extend()
192 SlotIndex Use, unsigned PhysReg, in findReachingDefs() argument
214 const MachineInstr *MI = Indexes->getInstructionFromIndex(Use); in findReachingDefs()
216 errs() << Use << " " << *MI; in findReachingDefs()
264 Use = SlotIndex(); in findReachingDefs()
286 if (BN == UseMBBNum && Use.isValid()) in findReachingDefs()
287 End = Use; in findReachingDefs()
[all …]
/llvm-project-15.0.7/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()

12345678910>>...45