Home
last modified time | relevance | path

Searched refs:Usr (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DUse.h31 User *Usr; variable
35 Use(llvm::Use *LLVMUse, User *Usr, Context &Ctx) in Use() argument
36 : LLVMUse(LLVMUse), Usr(Usr), Ctx(&Ctx) {} in Use()
48 class User *getUser() const { return Usr; } in getUser()
53 return LLVMUse == Other.LLVMUse && Usr == Other.Usr;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DUser.cpp179 LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void User::operator delete(void *Usr) { in operator delete() argument
182 User *Obj = static_cast<User *>(Usr); in operator delete()
186 Use **HungOffOperandList = static_cast<Use **>(Usr) - 1; in operator delete()
192 Use *UseBegin = static_cast<Use *>(Usr) - Obj->NumUserOperands; in operator delete()
199 Use *Storage = static_cast<Use *>(Usr) - Obj->NumUserOperands; in operator delete()
H A DValue.cpp209 void Value::dropDroppableUsesIn(User &Usr) { in dropDroppableUsesIn() argument
210 assert(Usr.isDroppable() && "Expected a droppable user!"); in dropDroppableUsesIn()
211 for (Use &UsrOp : Usr.operands()) { in dropDroppableUsesIn()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DUser.h100 void operator delete(void *Usr);
102 void operator delete(void *Usr, unsigned) { in delete() argument
107 User::operator delete(Usr); in delete()
114 void operator delete(void *Usr, unsigned, unsigned) { in delete() argument
119 User::operator delete(Usr); in delete()
H A DValue.h490 void dropDroppableUsesIn(User &Usr);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1318 static bool usesOperand(User *Usr, Value *Op) { in usesOperand() argument
1319 return is_contained(Usr->operands(), Op); in usesOperand()
1326 static bool isOperationFoldable(User *Usr) { in isOperationFoldable() argument
1327 return isa<CastInst>(Usr) || isa<BinaryOperator>(Usr) || isa<FreezeInst>(Usr); in isOperationFoldable()
1334 static ValueLatticeElement constantFoldUser(User *Usr, Value *Op, in constantFoldUser() argument
1337 assert(isOperationFoldable(Usr) && "Precondition"); in constantFoldUser()
1340 if (auto *CI = dyn_cast<CastInst>(Usr)) { in constantFoldUser()
1347 } else if (auto *BO = dyn_cast<BinaryOperator>(Usr)) { in constantFoldUser()
1358 } else if (isa<FreezeInst>(Usr)) { in constantFoldUser()
1359 assert(cast<FreezeInst>(Usr)->getOperand(0) == Op && "Operand 0 isn't Op"); in constantFoldUser()
[all …]
H A DMemorySSAUpdater.cpp333 User *Usr = U.getUser(); in insertDef() local
334 return !isa<MemoryUse>(Usr) && Usr != MD; in insertDef()
1114 MemoryAccess *Usr = cast<MemoryAccess>(U.getUser()); in applyInsertUpdates() local
1115 if (MemoryPhi *UsrPhi = dyn_cast<MemoryPhi>(Usr)) { in applyInsertUpdates()
1120 BasicBlock *DominatedBlock = Usr->getBlock(); in applyInsertUpdates()
1129 cast<MemoryUseOrDef>(Usr)->resetOptimized(); in applyInsertUpdates()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DStripSymbols.cpp45 /// OnlyUsedBy - Return true if V is only used by Usr. in OnlyUsedBy()
46 static bool OnlyUsedBy(Value *V, Value *Usr) { in OnlyUsedBy()
48 if (U != Usr) in RemoveDeadConstant()
40 OnlyUsedBy(Value * V,Value * Usr) OnlyUsedBy() argument
H A DAttributorAttributes.cpp1602 auto HandlePassthroughUser = [&](Value *Usr, Value *CurPtr, bool &Follow) { in updateImpl() argument
1615 auto &UsrOI = OffsetInfoMap[Usr]; in updateImpl()
1626 User *Usr = U.getUser(); in updateImpl() local
1627 LLVM_DEBUG(dbgs() << "[AAPointerInfo] Analyze " << *CurPtr << " in " << *Usr in updateImpl()
1632 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Usr)) { in updateImpl()
1634 return HandlePassthroughUser(Usr, CurPtr, Follow); in updateImpl()
1641 if (auto *GEP = dyn_cast<GEPOperator>(Usr)) { in updateImpl()
1644 auto &UsrOI = OffsetInfoMap[Usr]; in updateImpl()
1659 if (isa<PtrToIntInst>(Usr)) in updateImpl()
1661 if (isa<CastInst>(Usr) || isa<SelectInst>(Usr) || isa<ReturnInst>(Usr)) in updateImpl()
[all …]
H A DAttributor.cpp1752 bool canMarkAsVisited(const User *Usr) { in canMarkAsVisited() argument
1753 return isa<PHINode>(Usr) || !isa<Instruction>(Usr); in canMarkAsVisited()
1853 User &Usr = *U->getUser(); in checkForAllUses() local
1854 AddUsers(Usr, /* OldUse */ nullptr); in checkForAllUses()
1856 auto *RI = dyn_cast<ReturnInst>(&Usr); in checkForAllUses()
H A DLowerTypeTests.cpp1903 auto *Usr = dyn_cast<CallInst>(U.getUser()); in isDirectCall() local
1904 if (Usr) { in isDirectCall()
1905 auto *CB = dyn_cast<CallBase>(Usr); in isDirectCall()
H A DOpenMPOpt.cpp1130 for (User *Usr : I.users()) { in mergeParallelRegions()
1131 Instruction &UsrI = *cast<Instruction>(Usr); in mergeParallelRegions()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DSandboxIR.cpp21 unsigned Use::getOperandNo() const { return Usr->getUseOperandNo(*this); } in getOperandNo()
38 if (Usr == nullptr) in dump()
41 OS << *Usr; in dump()
45 if (Usr == nullptr) in dump()
71 Use.Usr = nullptr; in operator ++()
76 Use.Usr = cast_or_null<sandboxir::User>(Ctx->getValue(LLVMUser)); in operator ++()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp208 for (const User *Usr : Ld->users()) { in isGlobalLoadUsedInBB() local
209 if (const Instruction *UsrInst = dyn_cast<Instruction>(Usr)) { in isGlobalLoadUsedInBB()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp8152 if (llvm::none_of(GEPI->users(), [&](User *Usr) { in tryUnmergingGEPsAcrossIndirectBr() argument
8153 if (auto *I = dyn_cast<Instruction>(Usr)) { in tryUnmergingGEPsAcrossIndirectBr()
8165 for (User *Usr : GEPIOp->users()) { in tryUnmergingGEPsAcrossIndirectBr()
8166 if (Usr == GEPI) in tryUnmergingGEPsAcrossIndirectBr()
8169 if (!isa<Instruction>(Usr)) in tryUnmergingGEPsAcrossIndirectBr()
8171 auto *UI = cast<Instruction>(Usr); in tryUnmergingGEPsAcrossIndirectBr()
8176 if (!isa<GetElementPtrInst>(Usr)) in tryUnmergingGEPsAcrossIndirectBr()
8178 auto *UGEPI = cast<GetElementPtrInst>(Usr); in tryUnmergingGEPsAcrossIndirectBr()
8225 [&](User *Usr) { in tryUnmergingGEPsAcrossIndirectBr() argument
8226 return cast<Instruction>(Usr)->getParent() != SrcBlock; in tryUnmergingGEPsAcrossIndirectBr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp623 if (auto *Usr = dyn_cast<Instruction>(U.getUser())) in deleteDeadLoop() local
624 if (L->contains(Usr->getParent())) in deleteDeadLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp1648 User *Usr = U.getUser(); in runImpl() local
1649 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Usr)) { in runImpl()
1655 if (Instruction *I = dyn_cast<Instruction>(Usr)) { in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp6345 auto *Usr = cast<Instruction>(U); in dominatesAllUses() local
6346 if (Usr != UI && !DT.dominates(DB, Usr->getParent())) in dominatesAllUses()
/freebsd/contrib/byacc/
H A DCHANGES4385 "BSD 4.4 Lite Usr.bin Sources". See