Searched refs:dyn_cast_if_present (Results 1 - 25 of 61) sorted by relevance

123

/freebsd-current/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTinyPtrVector.h46 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val))
51 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val))
98 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) {
166 if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val))
273 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) {
288 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) {
304 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) {
H A DPointerUnion.h163 return llvm::dyn_cast_if_present<T>(*this);
/freebsd-current/contrib/llvm-project/clang/lib/AST/Interp/
H A DDescriptor.h155 return dyn_cast_if_present<ValueDecl>(asDecl());
159 return dyn_cast_if_present<FieldDecl>(asDecl());
163 return dyn_cast_if_present<RecordDecl>(asDecl());
H A DState.cpp147 dyn_cast_if_present<CXXConstructorDecl>(F->getCallee());
H A DInterp.cpp481 if (const auto *E = dyn_cast_if_present<CXXThisExpr>(Loc.asExpr()))
H A DByteCodeExprGen.cpp2242 dyn_cast_if_present<ValueDecl>(Src.dyn_cast<const Decl *>())) {
2253 if (auto *VD = dyn_cast_if_present<ValueDecl>(Src.dyn_cast<const Decl *>()))
2264 dyn_cast_if_present<ValueDecl>(Src.dyn_cast<const Decl *>())) {
2273 if (auto *VD = dyn_cast_if_present<ValueDecl>(Src.dyn_cast<const Decl *>())) {
/freebsd-current/contrib/llvm-project/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h103 if (auto *T = dyn_cast_if_present<Type *>(CurTy))
105 if (auto *VT = dyn_cast_if_present<VectorType *>(CurTy))
167 return dyn_cast_if_present<StructType *>(CurTy);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h58 if (auto *C = dyn_cast_if_present<Constant *>(Val))
64 if (auto *C = dyn_cast_if_present<Constant *>(Val))
/freebsd-current/contrib/llvm-project/clang/include/clang/Basic/
H A DLLVM.h61 using llvm::dyn_cast_if_present;
/freebsd-current/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineMemOperand.h73 if (const auto *ValPtr = dyn_cast_if_present<const Value *>(V))
212 return dyn_cast_if_present<const Value *>(PtrInfo.V);
216 return dyn_cast_if_present<const PseudoSourceValue *>(PtrInfo.V);
H A DMachineRegisterInfo.h682 return dyn_cast_if_present<const TargetRegisterClass *>(Val);
691 return dyn_cast_if_present<const RegisterBank *>(Val);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DCasting.h10 // cast_if_present<X>(), and dyn_cast_if_present<X>() templates.
643 /// passed in must be present, if not, use dyn_cast_if_present. This should be
736 /// dyn_cast_if_present<X> - Functionally identical to dyn_cast, except that a
738 template <class X, class Y> auto dyn_cast_if_present(const Y &Val) { function in namespace:llvm
744 template <class X, class Y> auto dyn_cast_if_present(Y &Val) { function in namespace:llvm
750 template <class X, class Y> auto dyn_cast_if_present(Y *Val) { function in namespace:llvm
756 // Forwards to dyn_cast_if_present to avoid breaking current users. This is
760 return dyn_cast_if_present<X>(Val);
764 return dyn_cast_if_present<X>(Val);
768 return dyn_cast_if_present<
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCompileUnit.cpp988 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(Count))
991 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(LB))
994 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(UB))
997 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(ST))
1001 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(Count))
1004 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(LB))
1007 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(UB))
1010 if (auto *Dependency = dyn_cast_if_present<DIVariable *>(ST))
H A DDIE.cpp176 DIE *DIE::getParent() const { return dyn_cast_if_present<DIE *>(Owner); }
210 return dyn_cast_if_present<DIEUnit *>(UnitDie->Owner);
H A DDwarfUnit.cpp1366 if (auto *BV = dyn_cast_if_present<DIVariable *>(Bound)) {
1369 } else if (auto *BE = dyn_cast_if_present<DIExpression *>(Bound)) {
1375 } else if (auto *BI = dyn_cast_if_present<ConstantInt *>(Bound)) {
1405 if (auto *BV = dyn_cast_if_present<DIVariable *>(Bound)) {
1408 } else if (auto *BE = dyn_cast_if_present<DIExpression *>(Bound)) {
H A DWinException.cpp779 Asm, dyn_cast_if_present<MachineBasicBlock *>(UME.Cleanup));
867 Asm, dyn_cast_if_present<MachineBasicBlock *>(HT.Handler));
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEInfo.cpp397 if (const auto *RB = dyn_cast_if_present<const RegisterBank *>(RCOrRB))
400 dyn_cast_if_present<const TargetRegisterClass *>(RCOrRB))
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp124 if (auto *Agg = dyn_cast_if_present<MutableAggregate *>(Val))
133 while (const auto *Agg = dyn_cast_if_present<MutableAggregate *>(V->Val)) {
/freebsd-current/contrib/llvm-project/llvm/lib/LTO/
H A DLTOModule.cpp559 const GlobalValue *decl = dyn_cast_if_present<GlobalValue *>(Sym);
572 auto *GV = dyn_cast_if_present<GlobalValue *>(Sym);
694 if (auto *GV = dyn_cast_if_present<GlobalValue *>(Sym)) {
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp94 if (auto *RB = dyn_cast_if_present<const RegisterBank *>(RegClassOrBank))
97 dyn_cast_if_present<const TargetRegisterClass *>(RegClassOrBank))
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributor.cpp1043 auto *Callee = dyn_cast_if_present<Function>(CB.getCalledOperand());
1286 if (auto *Callee = dyn_cast_if_present<Function>(CB->getCalledOperand()))
1295 dyn_cast_if_present<Function>(CB->getCalledOperand())) {
1315 auto *Callee = dyn_cast_if_present<Function>(CB->getCalledOperand());
2472 auto *Callee = dyn_cast_if_present<Function>(CB->getCalledOperand());
3258 if (auto *Callee = dyn_cast_if_present<Function>(
3531 Function *Callee = dyn_cast_if_present<Function>(CB.getCalledOperand());
H A DMemProfContextDisambiguation.cpp627 if (auto *AI = llvm::dyn_cast_if_present<AllocInfo *>(getBase())) {
630 auto *CI = llvm::dyn_cast_if_present<CallsiteInfo *>(getBase());
1452 CallsiteContext(dyn_cast_if_present<CallsiteInfo *>(Call.getBase()));
1483 auto *Callsite = dyn_cast_if_present<CallsiteInfo *>(Call.getBase());
1504 CallsiteContext(dyn_cast_if_present<CallsiteInfo *>(Call.getBase()));
2014 dyn_cast_if_present<CallsiteInfo *>(Call.getBase())->Callee;
/freebsd-current/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp440 if (const auto *OID = dyn_cast_if_present<ObjCIvarDecl>(D))
443 const auto *FD = dyn_cast_if_present<FieldDecl>(D);
471 dyn_cast_if_present<IntegerLiteral>(CTL.getSizeExpr());
/freebsd-current/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp267 auto *GV = dyn_cast_if_present<GlobalValue *>(Msym);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVOptWInstrs.cpp460 dyn_cast_if_present<Function>(CallMI.getOperand(0).getGlobal());

Completed in 333 milliseconds

123