Home
last modified time | relevance | path

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

12345678910>>...52

/llvm-project/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.h23 #include "llvm/IR/Use.h"
77 /// DO NOT USE DIRECTLY. Use one of the `AllocMarker` structs instead, they in User()
140 ~User() = default; // Use deleteValue() to delete a generic Instruction.
145 /// Free memory allocated for User and Use objects. in getHungOffOperands()
186 template <int Idx, typename U> static Use &OpFrom(const U *that) { in getOperandUse()
192 template <int Idx> Use &Op() {
195 template <int Idx> const Use &Op() const {
200 const Use *getHungOffOperands() const {
201 return *(reinterpret_cast<const Use *const *>(this) - 1);
204 Use *
73 User(Type * ty,unsigned vty,Use *,unsigned NumOps) User() argument
[all...]
H A DOperandTraits.h25 /// FixedNumOperandTraits - determine the allocation regime of the Use array
26 /// when it is a prefix to the User object, and the number of Use objects is
31 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()
63 /// VariadicOperandTraits - determine the allocation regime of the Use array
64 /// when it is a prefix to the User object, and the number of Use objects is
68 static Use *op_begin(SubClass* U) {
72 return reinterpret_cast<Use*>( in op_begin()
[all...]
H A DValue.h20 #include "llvm/IR/Use.h"
106 /// User uses this value to find the Use list.
110 // Use the same type as the bitfield above so that MSVC will pack them.
119 Use *UseList;
124 template <typename UseT> // UseT == 'Use' or 'const Use'
170 use_iterator_impl<Use> UI;
171 explicit user_iterator_impl(Use *U) : UI(U) {} in user_iterator_impl()
211 Use &getUse() const { return *UI; } in getUse()
222 ~Value(); // Use deleteValu
[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/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) * U in allocateFixedOperandUser()
[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()
/llvm-project/clang/test/Modules/
H A Dmerge-using-decls.cpp26 template<typename T> int Use() { in Use()
36 return Use<C<T> >() + Use<D<T> >() + Use<E<T> >() + Use<F<T> >(); // expected-note 0-2{{instantiation of}} in UseAll()
38 return Use<C<T> >() + Use<D<T> >() + Use<F<T> >(); // expected-note 0-2{{instantiation of}} in UseAll()
24 template<typename T> int Use() { Use() function
/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZRegisterInfo.cpp88 for (auto &Use : MRI->reg_nodbg_instructions(VirtReg)) in getRegAllocationHints() local
89 if (SystemZ::getTwoOperandOpcode(Use.getOpcode()) != -1) { in getRegAllocationHints()
93 if (VirtReg == Use.getOperand(0).getReg()) { in getRegAllocationHints()
94 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()
98 } else if (VirtReg == Use.getOperand(1).getReg()) { in getRegAllocationHints()
99 VRRegMO = &Use.getOperand(1); in getRegAllocationHints()
100 OtherMO = &Use in getRegAllocationHints()
140 for (auto &Use : MRI->reg_instructions(Reg)) { getRegAllocationHints() local
[all...]
/llvm-project/flang/test/Semantics/
H A Dcuf-device-procedures01.cuf21 ! CHECK: syncthreads (Subroutine): Use from syncthreads in cudadevice
22 ! CHECK: syncthreads_and (Function): Use from syncthreads_and in cudadevice
23 ! CHECK: syncthreads_count (Function): Use from syncthreads_count in cudadevice
24 ! CHECK: syncthreads_or (Function): Use from syncthreads_or in cudadevice
25 ! CHECK: syncwarp (Subroutine): Use from syncwarp in cudadevice
26 ! CHECK: threadfence (Subroutine): Use from threadfence in cudadevice
27 ! CHECK: threadfence_block (Subroutine): Use from threadfence_block in cudadevice
28 ! CHECK: threadfence_system (Subroutine): Use from threadfence_system in cudadevice
H A Dcuf05.cuf13 !CHECK: blockdim: Use from blockdim in __cuda_builtins
14 !CHECK: blockidx: Use from blockidx in __cuda_builtins
15 !CHECK: griddim: Use from griddim in __cuda_builtins
16 !CHECK: threadidx: Use from threadidx in __cuda_builtins
17 !CHECK: warpsize: Use from warpsize in __cuda_builtins
/llvm-project/clang/test/Analysis/
H A DDeallocUseAfterFreeErrors.m38 …[_ivar release]; // expected-warning {{Use of instance variable '_ivar' after 'self' has been deal…
39 // expected-note@-1 {{Use of instance variable '_ivar' after 'self' has been deallocated}}
58 …_delegate = nil; // expected-warning {{Use of instance variable '_delegate' after 'self' has been …
59 // expected-note@-1 {{Use of instance variable '_delegate' after 'self' has been deallocated}}
76 _s.f = 7; // expected-warning {{Use of instance variable '_s' after 'self' has been deallocated}}
77 // expected-note@-1 {{Use of instance variable '_s' after 'self' has been deallocated}}
95 …_ivar->_otherIvar = 7; // expected-warning {{Use of instance variable '_ivar' after 'self' has bee…
96 // expected-note@-1 {{Use of instance variable '_ivar' after 'self' has been deallocated}}
108 …self->_ivar = nil; // expected-warning {{Use of instance variable '_ivar' after 'self' has been de…
109 // expected-note@-1 {{Use of instance variable '_ivar' after 'self' has been deallocated}}
[all …]
/llvm-project/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/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp22 function_ref<Value *(Use &)> ReduceValue) { in extractOperandsFromModule()
48 static bool isOne(Use &Op) { in isOne()
53 static bool isZero(Use &Op) { in isZero()
64 static bool shouldReduceOperand(Use &Op) { in shouldReduceOperand()
79 static bool switchCaseExists(Use &Op, ConstantInt *CI) { in switchCaseExists()
87 auto ReduceValue = [](Use &Op) -> Value * { in reduceOperandsOneDeltaPass()
130 auto ReduceValue = [](Use &Op) -> Value * { in reduceOperandsZeroDeltaPass()
149 auto ReduceValue = [](Use &Op) -> Value * { in reduceOperandsNaNDeltaPass()
H A DReduceOperandsSkip.cpp38 for (Use &Op : O->operands()) in collectReferencedValues()
46 static bool shouldReduceOperand(Use &Op) { in shouldReduceOperand()
93 function_ref<void(Use &, ArrayRef<Value *>)> Callback) { in opportunities() argument
143 for (Use &Op : I.operands()) { in opportunities()
201 SmallVector<std::pair<Use *, Value *>> Replacements; in extractOperandsFromModule()
202 opportunities(F, [&](Use &Op, ArrayRef<Value *> Candidates) { in extractOperandsFromModule()
224 for (std::pair<Use *, Value *> P : Replacements) { in extractOperandsFromModule()
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()
186 SmallVector<Use *> OperandsToReduce; in reduceOperandsToArgs()
192 for (Use &Op : I.operands()) { in reduceOperandsToArgs()
/llvm-project/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/llvm/test/Transforms/JumpThreading/
H A Dlvi-load.ll6 %"struct.llvm::PointerIntPair<llvm::Use**,2u,llvm::Use::PrevPtrTag,llvm::PointerLikeTypeTraits<llvm…
8 …truct.llvm::Use" = type { ptr, ptr, %"struct.llvm::PointerIntPair<llvm::Use**,2u,llvm::Use::PrevPt…
/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()
/llvm-project/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/clang-tools-extra/clang-tidy/bugprone/
H A DUseAfterMoveCheck.cpp179 for (const DeclRefExpr *Use : Uses) { in findInternal()
180 if (!MovingCall || Sequence->potentiallyAfter(Use, MovingCall)) { in findInternal() local
186 if (!Sequence->potentiallyAfter(Reinit, Use)) in findInternal()
192 TheUseAfterMove.DeclRef = Use; in findInternal()
200 Sequence->potentiallyAfter(MovingCall, Use); in findInternal()
406 const UseAfterMove &Use, ClangTidyCheck *Check, in emitDiagnostic()
408 const SourceLocation UseLoc = Use.DeclRef->getExprLoc(); in emitDiagnostic()
418 if (Use.EvaluationOrderUndefined) { in emitDiagnostic()
425 } else if (Use.UseHappensInLaterLoopIteration) { in emitDiagnostic()
525 if (auto Use in check()
402 emitDiagnostic(const Expr * MovingCall,const DeclRefExpr * MoveArg,const UseAfterMove & Use,ClangTidyCheck * Check,ASTContext * Context,MoveType Type) emitDiagnostic() argument
521 UseAfterMove Use; check() local
[all...]
/llvm-project/llvm/lib/CodeGen/
H A DLiveRangeCalc.cpp86 void LiveRangeCalc::extend(LiveRange &LR, SlotIndex Use, unsigned PhysReg,
88 assert(Use.isValid() && "Invalid SlotIndex"); in extend()
92 MachineBasicBlock *UseMBB = Indexes->getMBBFromIndex(Use.getPrevSlot()); in extend()
93 assert(UseMBB && "No MBB at Use"); in extend()
96 auto EP = LR.extendInBlock(Undefs, Indexes->getMBBStartIdx(UseMBB), Use); in extend()
100 // Find the single reaching def, or determine if Use is jointly dominated by in extend()
104 if (findReachingDefs(LR, *UseMBB, Use, PhysReg, Undefs)) in extend()
191 SlotIndex Use, unsigned PhysReg, in findReachingDefs()
211 errs() << "Use of " << printReg(PhysReg, MRI->getTargetRegisterInfo()) in findReachingDefs()
213 const MachineInstr *MI = Indexes->getInstructionFromIndex(Use); in findReachingDefs()
87 extend(LiveRange & LR,SlotIndex Use,unsigned PhysReg,ArrayRef<SlotIndex> Undefs) extend() argument
192 findReachingDefs(LiveRange & LR,MachineBasicBlock & UseMBB,SlotIndex Use,unsigned PhysReg,ArrayRef<SlotIndex> Undefs) findReachingDefs() argument
[all...]
/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()
/llvm-project/llvm/lib/Analysis/
H A DCaptureTracking.cpp57 bool CaptureTracker::shouldExplore(const Use *U) { return true; } in shouldExplore()
84 bool captured(const Use *U) override { in captured()
125 bool captured(const Use *U) override { in captured()
169 bool captured(const Use *U) override { in captured()
278 const Use &U, in DetermineUseCaptureKind()
413 SmallVector<const Use *, 20> Worklist; in PointerMayBeCaptured()
415 SmallSet<const Use *, 20> Visited; in PointerMayBeCaptured()
418 for (const Use &U : V->uses()) { in PointerMayBeCaptured()
440 const Use *U = Worklist.pop_back_val(); in PointerMayBeCaptured()
/llvm-project/llvm/include/llvm/Analysis/
H A DCaptureTracking.h21 class Use;
95 virtual bool shouldExplore(const Use *U);
100 virtual bool captured(const Use *U) = 0;
122 DetermineUseCaptureKind(const Use &U,
22 class Use; global() variable

12345678910>>...52