/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCInstrAltivec.td | 523 [(set v4f32:$VD, 527 [(set v4f32:$VD, 531 [(set v4i32:$VD, 535 [(set v4i32:$VD, 556 [(set v4i32:$VD, 706 [(set v16i8:$VD, 710 [(set v16i8:$VD, 714 [(set v16i8:$VD, 837 "vxor $VD, $VD, $VD", IIC_VecFP, 840 "vxor $VD, $VD, $VD", IIC_VecFP, [all …]
|
H A D | PPCInstrP10.td | 1448 [(set v4i32:$VD, 1454 [(set v2i64:$VD, 1459 [(set v16i8:$VD, 1464 [(set v16i8:$VD, 1469 [(set v8i16:$VD, 1474 [(set v8i16:$VD, 1479 [(set v4i32:$VD, 1484 [(set v4i32:$VD, 1489 [(set v16i8:$VD, 1520 [(set v2i64:$VD, [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCUDA.cpp | 122 if (VD && VD->hasGlobalStorage() && !VD->isStaticLocal()) { in CUDATargetContextRAII() 613 assert(!VD->isInvalidDecl() && VD->hasGlobalStorage()); in HasAllowedCUDADeviceStaticInitializer() 653 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedCUDAInitializer() 654 IsDependentVar(VD)) in checkAllowedCUDAInitializer() 660 (VD->hasAttr<CUDADeviceAttr>() || VD->hasAttr<CUDAConstantAttr>()); in checkAllowedCUDAInitializer() 665 Diag(VD->getLocation(), in checkAllowedCUDAInitializer() 668 VD->setInvalidDecl(); in checkAllowedCUDAInitializer() 684 VD->setInvalidDecl(); in checkAllowedCUDAInitializer() 792 (VD->isFileVarDecl() || VD->isStaticDataMember()) && in MaybeAddCUDAConstantAttr() 793 !IsDependentVar(VD) && in MaybeAddCUDAConstantAttr() [all …]
|
H A D | Sema.cpp | 768 if (VD->isReferenced() && in ShouldRemoveFromUnused() 788 if (DeclToCheck != VD) in ShouldRemoveFromUnused() 890 S.Diag(VD->getLocation(), isExternallyVisible(VD->getType()->getLinkage()) in checkUndefinedButUsed() 893 << isa<VarDecl>(VD) << VD; in checkUndefinedButUsed() 912 << isa<VarDecl>(VD) << VD; in checkUndefinedButUsed() 918 S.Diag(VD->getLocation(), diag::warn_undefined_inline) << VD; in checkUndefinedButUsed() 922 S.Diag(VD->getLocation(), diag::err_undefined_inline_var) << VD; in checkUndefinedButUsed() 1327 if (!VD || VD->isInvalidDecl() || !Seen.insert(VD).second) in ActOnEndOfTranslationUnit() 1337 VD->setType(T); in ActOnEndOfTranslationUnit() 1338 } else if (RequireCompleteType(VD->getLocation(), VD->getType(), in ActOnEndOfTranslationUnit() [all …]
|
H A D | SemaOpenMP.cpp | 1220 if (IFD.VD == VD) in isImplicitDefaultFirstprivateFD() 1277 VD = VD->getCanonicalDecl(); in getCanonicalDecl() 1304 if (VD && !VD->isFunctionOrMethodVarDecl() && !isa<ParmVarDecl>(VD)) in getDSA() 1311 if (VD && VD->hasGlobalStorage()) in getDSA() 1325 if (VD && isOpenMPLocal(VD, Iter) && VD->isLocalVarDecl() && in getDSA() 1835 if (VD && VD->isStaticDataMember()) { in getTopDSA() 2357 if (VD && VD->isConstexpr()) in isOpenMPCapturedDecl() 2370 if (VD && !VD->hasLocalStorage() && in isOpenMPCapturedDecl() 2435 return VD ? VD : Info.second; in isOpenMPCapturedDecl() 3623 else if (VD && VD->isFileVarDecl()) in reportOriginalDsa() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | PredicateInfo.cpp | 146 if (!VD.Def && VD.U) { in getBlockEdge() 189 if (VD.Def) in getMiddleDef() 190 return VD.Def; in getMiddleDef() 197 if (!VD.U) { in getMiddleDef() 198 assert(VD.PInfo && in getMiddleDef() 331 ValueDFS VD; in convertUsesToDFSOrdered() local 338 VD.LocalNum = LN_Last; in convertUsesToDFSOrdered() 351 VD.U = &U; in convertUsesToDFSOrdered() 623 ValueDFS VD; in renameUses() local 723 << *VD.U->get() << " in " << *(VD.U->getUser()) in renameUses() [all …]
|
H A D | InjectTLIMappings.cpp | 42 const VecDesc *VD) { in addVariantDeclaration() argument 49 VD->getVectorFunctionABIVariantString(), ScalarFTy); in addVariantDeclaration() 54 const StringRef VFName = VD->getVectorFnName(); in addVariantDeclaration() 95 const VecDesc *VD = TLI.getVectorMappingInfo(ScalarName, VF, Predicate); in addMappingsFromTLI() local 96 if (VD && !VD->getVectorFnName().empty()) { in addMappingsFromTLI() 97 std::string MangledName = VD->getVectorFunctionABIVariantString(); in addMappingsFromTLI() 102 Function *VariantF = M->getFunction(VD->getVectorFnName()); in addMappingsFromTLI() 104 addVariantDeclaration(CI, VF, VD); in addMappingsFromTLI()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DeadStoresChecker.cpp | 269 if (!VD->hasLocalStorage()) in CheckVarDecl() 276 if (!isLive(Live, VD) && in CheckVarDecl() 277 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() || in CheckVarDecl() 289 CheckVarDecl(VD, DR, Val, dsk, Live); in CheckDeclRef() 305 if (DR->getDecl() == VD) in isIncrement() 309 if (DR->getDecl() == VD) in isIncrement() 336 QualType T = VD->getType(); in observeStmt() 433 if (isa<ParmVarDecl>(VD) && VD->getType()->isScalarType()) in observeStmt() 500 Escaped.insert(VD); in operator ()() 514 ValueDecl *VD = C.getCapturedVar(); in findLambdaReferenceCaptures() local [all …]
|
H A D | UndefCapturedBlockVarChecker.cpp | 38 const VarDecl *VD) { in FindBlockDeclRefExpr() argument 40 if (BR->getDecl() == VD) in FindBlockDeclRefExpr() 45 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD)) in FindBlockDeclRefExpr() 64 const VarDecl *VD = VR->getDecl(); in checkPostStmt() local 66 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) in checkPostStmt() 77 os << "Variable '" << VD->getName() in checkPostStmt() 81 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD)) in checkPostStmt()
|
H A D | CastToStructChecker.cpp | 78 const ValueDecl *VD = nullptr; in VisitCastExpr() local 80 VD = SE->getDecl(); in VisitCastExpr() 82 VD = SE->getMemberDecl(); in VisitCastExpr() 83 if (!VD || VD->getType()->isReferenceType()) in VisitCastExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | UninitializedValues.cpp | 270 if (isTrackedVar(VD, DC)) in findVar() 295 return ::isTrackedVar(VD, DC); in isTrackedVar() 319 if (!VD || !isTrackedVar(VD)) in get() 389 if (VD && isTrackedVar(VD)) in VisitDeclStmt() 686 if (isTrackedVar(VD)) in VisitObjCForCollectionStmt() 687 vals[VD] = Initialized; in VisitObjCForCollectionStmt() 761 vals[VD] = Initialized; in VisitBinaryOperator() 768 if (VD && isTrackedVar(VD)) { in VisitDeclStmt() 769 if (getSelfInitExpr(VD)) { in VisitDeclStmt() 780 vals[VD] = Uninitialized; in VisitDeclStmt() [all …]
|
H A D | UnsafeBufferUsage.cpp | 969 Defs[VD] = DS; in discoverDecl() 1007 void set(const VarDecl *VD, Kind K) { Map[VD] = K; } in set() argument 1010 auto I = Map.find(VD); in lookup() 1429 switch (S.lookup(VD)) { in getFixits() 1555 return VD->isInlineSpecified() || VD->isConstexpr() || in hasUnsupportedSpecifiers() 1556 VD->hasConstantInitialization() || !VD->hasLocalStorage() || in hasUnsupportedSpecifiers() 1689 if (VD && s.lookup(VD) == Strategy::Kind::Span) { in getFixits() 1751 switch (S.lookup(VD)) { in getFixits() 1783 switch (S.lookup(VD)) { in getFixits() 2523 fixVariable(VD, S.lookup(VD), D, Tracker, Ctx, Handler); in getFixIts() [all …]
|
H A D | ThreadSafetyCommon.cpp | 334 VD = isa<FunctionDecl>(D) in translateDeclRefExpr() 370 if (VD && VD->getType()->isAnyPointerType()) in hasAnyPointerType() 398 D = getFirstVirtualDecl(VD); in translateMemberExpr() 547 VD = DRE->getDecl(); in translateBinAssign() 548 CV = lookupVarDecl(VD); in translateBinAssign() 556 if (VD && CV) in translateBinAssign() 662 Expr *E = VD->getInit(); in translateDeclStmt() 685 if (VD) in addStatement() 709 V->setClangDecl(VD); in maybeUpdateVD() 715 maybeUpdateVD(E, VD); in addVarDecl() [all …]
|
H A D | LiveVariables.cpp | 329 return VD && !VD->getType()->isReferenceType() && in writeShouldKill() 330 !isAlwaysAlive(VD); in writeShouldKill() 359 Killed = writeShouldKill(VD); in VisitBinaryOperator() 372 for (const VarDecl *VD : in VisitBlockExpr() local 374 if (isAlwaysAlive(VD)) in VisitBlockExpr() 391 if (!InAssignment && !isAlwaysAlive(VD)) in VisitDeclRefExpr() 410 if (!isAlwaysAlive(VD)) in VisitDeclStmt() 419 const VarDecl *VD = nullptr; in VisitObjCForCollectionStmt() local 423 VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt() 426 VD = cast<VarDecl>(DR->getDecl()); in VisitObjCForCollectionStmt() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Program.cpp | 106 auto It = GlobalIndices.find(VD); in getGlobal() 122 GlobalIndices[VD] = *Index; in getGlobal() 131 if (auto Idx = getGlobal(VD)) in getOrCreateGlobal() 134 if (auto Idx = createGlobal(VD, Init)) { in getOrCreateGlobal() 135 GlobalIndices[VD] = *Idx; in getOrCreateGlobal() 156 DummyParams[VD] = I; in getOrCreateDummy() 162 assert(!getGlobal(VD)); in createGlobal() 164 if (const auto *Var = dyn_cast<VarDecl>(VD)) { in createGlobal() 165 IsStatic = Context::shouldBeGloballyIndexed(VD); in createGlobal() 167 } else if (isa<UnnamedGlobalConstantDecl>(VD)) { in createGlobal() [all …]
|
H A D | Interp.cpp | 71 << VD << VD->getType(); in diagnoseNonConstVariable() 193 diagnoseNonConstVariable(S, OpPC, VD); in CheckExtern() 240 if (VD->isConstexpr()) in CheckConstant() 246 QualType T = VD->getType(); in CheckConstant() 260 if (const auto *VD = dyn_cast<VarDecl>(D); in CheckConstant() local 261 VD && VD->hasGlobalStorage() && !IsConstType(VD)) { in CheckConstant() 262 diagnoseNonConstVariable(S, OpPC, VD); in CheckConstant() 573 if (!VD->getType().isConstQualified()) { in CheckDeclRef() 574 diagnoseNonConstVariable(S, OpPC, VD); in CheckDeclRef() 579 if (!VD->getAnyInitializer()) { in CheckDeclRef() [all …]
|
H A D | ByteCodeExprGen.cpp | 2116 auto It = Locals.find(VD); in dereferenceVar() 2170 if (VD->hasLocalStorage() && VD->hasInit() && !VD->isConstexpr()) { in dereferenceVar() 2241 if (const auto *VD = in allocateLocalPrimitive() local 2243 assert(!P.getGlobal(VD)); in allocateLocalPrimitive() 2265 assert(!P.getGlobal(VD)); in allocateLocal() 2274 Key = VD; in allocateLocal() 2275 Ty = VD->getType(); in allocateLocal() 2400 if (VD->getType().isNull()) in visitVarDecl() 2408 if (P.getGlobal(VD)) in visitVarDecl() 2431 VD, *VarT, VD->getType().isConstQualified()); in visitVarDecl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | StmtIterator.cpp | 48 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) in NextVA() local 49 if (VD->hasInit()) in NextVA() 75 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { in HandleDecl() local 76 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) { in HandleDecl() 81 if (VD->getInit()) in HandleDecl() 116 VarDecl* VD = cast<VarDecl>(*DGI); in GetDeclExpr() local 117 return *VD->getInitAddress(); in GetDeclExpr()
|
H A D | AttrImpl.cpp | 153 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) { in getActiveAttr() argument 154 if (llvm::all_of(VD->redecls(), [](const Decl *D) { return !D->hasAttrs(); })) in getActiveAttr() 158 for (const Decl *D : VD->redecls()) { in getActiveAttr() 172 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) { in isDeclareTargetDeclaration() argument 173 std::optional<OMPDeclareTargetDeclAttr *> ActiveAttr = getActiveAttr(VD); in isDeclareTargetDeclaration() 180 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) { in getDeviceType() argument 181 std::optional<OMPDeclareTargetDeclAttr *> ActiveAttr = getActiveAttr(VD); in getDeviceType() 188 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) { in getLocation() argument 189 std::optional<OMPDeclareTargetDeclAttr *> ActiveAttr = getActiveAttr(VD); in getLocation()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGOpenMPRuntimeGPU.cpp | 200 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped() 202 if (VD->hasAttrs() && VD->hasAttr<OMPAllocateDeclAttr>()) in markAsEscaped() 250 markAsEscaped(VD); in VisitValueDecl() 388 if (isa<OMPCapturedExprDecl>(VD) || VD->isInitCapture()) in VisitBlockExpr() 415 markAsEscaped(VD); in VisitDeclRefExpr() 417 VisitValueDecl(VD); in VisitDeclRefExpr() 1080 CGF.MakeAddrLValue(CGF.GetAddrOfLocalVar(VD), VD->getType()); in emitGenericVarsProlog() 3253 if (VD && VD->hasAttr<OMPAllocateDeclAttr>()) { in getAddressOfLocalVariable() 3283 VD->getName(), in getAddressOfLocalVariable() 3298 VD = VD->getCanonicalDecl(); in getAddressOfLocalVariable() [all …]
|
H A D | CGCXXABI.cpp | 153 bool CGCXXABI::mayNeedDestruction(const VarDecl *VD) const { in mayNeedDestruction() 154 if (VD->needsDestruction(getContext())) in mayNeedDestruction() 159 const Type *T = VD->getType()->getBaseElementTypeUnsafe(); in mayNeedDestruction() 167 const VarDecl *VD, bool InspectInitForWeakDef) const { in isEmittedWithConstantInitializer() argument 168 VD = VD->getMostRecentDecl(); in isEmittedWithConstantInitializer() 169 if (VD->hasAttr<ConstInitAttr>()) in isEmittedWithConstantInitializer() 174 if (!InspectInitForWeakDef && (VD->isWeak() || VD->hasAttr<SelectAnyAttr>())) in isEmittedWithConstantInitializer() 177 const VarDecl *InitDecl = VD->getInitializingDeclaration(); in isEmittedWithConstantInitializer() 187 if (isUniqueGVALinkage(getContext().GetGVALinkageForVariable(VD))) in isEmittedWithConstantInitializer() 188 return !mayNeedDestruction(VD) && InitDecl->evaluateValue(); in isEmittedWithConstantInitializer()
|
H A D | VarBypassDetector.cpp | 36 const VarDecl *VD = dyn_cast<VarDecl>(D); in BuildScopeInformation() local 37 if (VD && VD->hasLocalStorage()) { in BuildScopeInformation() 38 Scopes.push_back({ParentScope, VD}); in BuildScopeInformation() 42 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) in BuildScopeInformation() local 43 if (const Expr *Init = VD->getInit()) in BuildScopeInformation()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InterfaceStubFunctionsConsumer.cpp | 56 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { in WriteNamedDecl() local 57 if (const auto *Parent = VD->getParentFunctionOrMethod()) in WriteNamedDecl() 61 if ((VD->getStorageClass() == StorageClass::SC_Extern) || in WriteNamedDecl() 62 (VD->getStorageClass() == StorageClass::SC_Static && in WriteNamedDecl() 63 VD->getParentFunctionOrMethod() == nullptr)) in WriteNamedDecl() 85 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) in WriteNamedDecl() local 213 const auto *VD = cast<VarDecl>(ND); in HandleNamedDecl() local 215 if (VD->isTemplated() || VD->getType()->isDependentType()) in HandleNamedDecl() 252 if (const auto *VD = dyn_cast<ValueDecl>(ND)) { in HandleTranslationUnit() local 253 ValueDecls.insert(VD); in HandleTranslationUnit() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerHelpers.cpp | 57 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsStaticLocal() local 58 if (VD->isStaticLocal()) in containsStaticLocal() 83 const VarDecl *VD = nullptr; in parseAssignment() local 91 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); in parseAssignment() 96 VD = cast<VarDecl>(PD->getSingleDecl()); in parseAssignment() 97 RHS = VD->getAnyInitializer(); in parseAssignment() 100 return std::make_pair(VD, RHS); in parseAssignment()
|
H A D | LoopUnrolling.cpp | 186 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isCapturedByReference() local 187 assert(VD); in isCapturedByReference() 188 const FieldDecl *FD = LambdaCaptureFields[VD]; in isCapturedByReference() 199 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isPossiblyEscaped() local 200 assert(VD); in isPossiblyEscaped() 202 if (VD->hasGlobalStorage()) in isPossiblyEscaped() 206 isa<ParmVarDecl>(VD) || DR->refersToEnclosingVariableOrCapture(); in isPossiblyEscaped() 210 (IsRefParamOrCapture && VD->getType()->isReferenceType())) in isPossiblyEscaped() 225 if (D->getCanonicalDecl() == VD) in isPossiblyEscaped() 235 match(stmt(anyOf(callByRef(equalsNode(VD)), getAddrTo(equalsNode(VD)), in isPossiblyEscaped() [all …]
|