/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | CallPromotionUtilsTest.cpp | 56 auto *F = dyn_cast<Function>(GV); in TEST() 59 auto *AI = dyn_cast<AllocaInst>(Inst); in TEST() 62 auto *CI = dyn_cast<CallInst>(Inst); in TEST() 69 auto *F1 = dyn_cast<Function>(GV); in TEST() 89 auto *F = dyn_cast<Function>(GV); in TEST() 92 auto *CI = dyn_cast<CallInst>(Inst); in TEST() 116 auto *F = dyn_cast<Function>(GV); in TEST() 119 auto *CI = dyn_cast<CallInst>(Inst); in TEST() 151 auto *F = dyn_cast<Function>(GV); in TEST() 154 auto *CI = dyn_cast<CallInst>(Inst); in TEST() [all …]
|
/external/llvm-project/clang/include/clang/AST/ |
D | IgnoreExpr.h | 48 if (auto *ICE = dyn_cast<ImplicitCastExpr>(E)) in IgnoreImplicitCastsSingleStep() 51 if (auto *FE = dyn_cast<FullExpr>(E)) in IgnoreImplicitCastsSingleStep() 65 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E)) in IgnoreImplicitCastsExtraSingleStep() 68 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreImplicitCastsExtraSingleStep() 75 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreCastsSingleStep() 78 if (auto *FE = dyn_cast<FullExpr>(E)) in IgnoreCastsSingleStep() 81 if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E)) in IgnoreCastsSingleStep() 84 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreCastsSingleStep() 93 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreLValueCastsSingleStep() 101 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreBaseCastsSingleStep() [all …]
|
/external/llvm/lib/IR/ |
D | DebugInfo.cpp | 65 if (auto *T = dyn_cast<DIType>(RT)) in processModule() 71 if (auto *T = dyn_cast<DIType>(Entity)) in processModule() 73 else if (auto *SP = dyn_cast<DISubprogram>(Entity)) in processModule() 75 else if (auto *NS = dyn_cast<DINamespace>(Entity)) in processModule() 77 else if (auto *M = dyn_cast<DIModule>(Entity)) in processModule() 97 if (auto *ST = dyn_cast<DISubroutineType>(DT)) { in processType() 102 if (auto *DCT = dyn_cast<DICompositeType>(DT)) { in processType() 105 if (auto *T = dyn_cast<DIType>(D)) in processType() 107 else if (auto *SP = dyn_cast<DISubprogram>(D)) in processType() 112 if (auto *DDT = dyn_cast<DIDerivedType>(DT)) { in processType() [all …]
|
D | ProfileSummary.cpp | 93 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getVal() 94 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getVal() 107 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in isKeyValuePair() 108 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair() 120 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getSummaryFromMD() 123 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1)); in getSummaryFromMD() 127 MDTuple *EntryMD = dyn_cast<MDTuple>(MDOp); in getSummaryFromMD() 131 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0)); in getSummaryFromMD() 133 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1)); in getSummaryFromMD() 135 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(2)); in getSummaryFromMD() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 51 if (auto *GV = dyn_cast<GlobalValue>(C)) in isSimpleEnoughValueToCommitHelper() 122 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) in isSimpleEnoughPointerToCommit() 126 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in isSimpleEnoughPointerToCommit() 138 ConstantInt *CI = dyn_cast<ConstantInt>(*std::next(CE->op_begin())); in isSimpleEnoughPointerToCommit() 171 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(P)) { in ComputeLoadResult() 178 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(P)) in ComputeLoadResult() 200 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateBlock() 206 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ptr)) { in EvaluateBlock() 227 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ptr)) { in EvaluateBlock() 244 if (StructType *STy = dyn_cast<StructType>(NewTy)) { in EvaluateBlock() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | NonConstParameterCheck.cpp | 44 if (const auto *M = dyn_cast<CXXMethodDecl>(D)) { in check() 59 if (const auto *B = dyn_cast<BinaryOperator>(S)) { in check() 62 } else if (const auto *CE = dyn_cast<CallExpr>(S)) { in check() 84 } else if (const auto *CE = dyn_cast<CXXConstructExpr>(S)) { in check() 88 } else if (const auto *R = dyn_cast<ReturnStmt>(S)) { in check() 90 } else if (const auto *U = dyn_cast<UnaryOperator>(S)) { in check() 119 auto It = Parameters.find(dyn_cast<ParmVarDecl>(Ref->getDecl())); in setReferenced() 161 if (const auto *Cast = dyn_cast<ImplicitCastExpr>(E)) { in markCanNotBeConst() 170 if (const auto *B = dyn_cast<BinaryOperator>(E)) { in markCanNotBeConst() 183 } else if (const auto *C = dyn_cast<ConditionalOperator>(E)) { in markCanNotBeConst() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ProfileSummary.cpp | 89 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getVal() 90 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getVal() 103 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in isKeyValuePair() 104 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair() 116 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getSummaryFromMD() 119 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1)); in getSummaryFromMD() 123 MDTuple *EntryMD = dyn_cast<MDTuple>(MDOp); in getSummaryFromMD() 127 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0)); in getSummaryFromMD() 129 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1)); in getSummaryFromMD() 131 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(2)); in getSummaryFromMD() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 65 if (auto *GV = dyn_cast<GlobalValue>(C)) in isSimpleEnoughValueToCommitHelper() 136 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) in isSimpleEnoughPointerToCommit() 140 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in isSimpleEnoughPointerToCommit() 152 ConstantInt *CI = dyn_cast<ConstantInt>(*std::next(CE->op_begin())); in isSimpleEnoughPointerToCommit() 204 auto *GV = dyn_cast<GlobalVariable>(C); in getInitializer() 223 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(P)) { in ComputeLoadResult() 229 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(P)) { in ComputeLoadResult() 257 if (auto *Fn = dyn_cast<Function>(C)) in getFunction() 260 if (auto *Alias = dyn_cast<GlobalAlias>(C)) in getFunction() 261 if (auto *Fn = dyn_cast<Function>(Alias->getAliasee())) in getFunction() [all …]
|
D | GlobalStatus.cpp | 52 if (const Constant *CU = dyn_cast<Constant>(U)) { in isSafeToDestroyConstant() 62 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) in analyzeGlobalAux() 68 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(UR)) { in analyzeGlobalAux() 79 } else if (const Instruction *I = dyn_cast<Instruction>(UR)) { in analyzeGlobalAux() 87 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in analyzeGlobalAux() 93 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) { in analyzeGlobalAux() 109 dyn_cast<GlobalVariable>(SI->getOperand(1))) { in analyzeGlobalAux() 112 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux() 155 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in analyzeGlobalAux() 162 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I)) { in analyzeGlobalAux() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 66 if (auto *GV = dyn_cast<GlobalValue>(C)) in isSimpleEnoughValueToCommitHelper() 137 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) in isSimpleEnoughPointerToCommit() 141 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in isSimpleEnoughPointerToCommit() 153 ConstantInt *CI = dyn_cast<ConstantInt>(*std::next(CE->op_begin())); in isSimpleEnoughPointerToCommit() 206 auto *GV = dyn_cast<GlobalVariable>(C); in getInitializer() 225 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(P)) { in ComputeLoadResult() 231 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(P)) { in ComputeLoadResult() 259 if (auto *Fn = dyn_cast<Function>(C)) in getFunction() 262 if (auto *Alias = dyn_cast<GlobalAlias>(C)) in getFunction() 263 if (auto *Fn = dyn_cast<Function>(Alias->getAliasee())) in getFunction() [all …]
|
/external/llvm-project/llvm/lib/Target/BPF/ |
D | BPFAdjustOpt.cpp | 120 auto *Icmp1 = dyn_cast<ICmpInst>(I.getOperand(0)); in serializeICMPInBB() 123 auto *Icmp2 = dyn_cast<ICmpInst>(I.getOperand(1)); in serializeICMPInBB() 175 auto *BI = dyn_cast<BranchInst>(TI); in serializeICMPCrossBB() 178 auto *Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB() 185 BI = dyn_cast<BranchInst>(TI); in serializeICMPCrossBB() 188 Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB() 216 if (auto *LdInst = dyn_cast<LoadInst>(&I)) { in avoidSpeculation() 217 if (auto *GV = dyn_cast<GlobalVariable>(LdInst->getOperand(0))) { in avoidSpeculation() 224 if (!dyn_cast<LoadInst>(&I) && !dyn_cast<CallInst>(&I)) in avoidSpeculation() 249 Instruction *Inst = dyn_cast<Instruction>(U); in avoidSpeculation() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 59 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() 68 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 102 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef() 120 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef() 126 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) { in handlePhiDef() 132 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V); in handlePhiDef() 136 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() 171 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() 177 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() 189 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DeadStoresChecker.cpp | 56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() 106 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts()); in LookThroughTransitiveAssignmentsAndCommaOperators() 231 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() 240 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS); in isIncrement() 247 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement() 251 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement() 269 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) { in observeStmt() 272 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt() 273 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() 290 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 66 ConstantFP *Confidence = dyn_cast<ConstantFP>(CI->getArgOperand(2)); in getBranchWeight() 78 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() 88 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 120 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef() 138 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef() 144 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) { in handlePhiDef() 150 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V); in handlePhiDef() 154 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() 189 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() 195 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() [all …]
|
/external/llvm-project/mlir/lib/Dialect/Tosa/Utils/ |
D | QuantUtils.cpp | 93 ((input_type).getElementType().dyn_cast<quant::UniformQuantizedType>()) 95 ((input_type).getElementType().dyn_cast<quant::QuantizedType>()) 105 auto inputType = input.getType().dyn_cast<RankedTensorType>(); in buildConvOpQuantizationAttr() 106 auto weightType = weight.getType().dyn_cast<RankedTensorType>(); in buildConvOpQuantizationAttr() 114 .dyn_cast<quant::UniformQuantizedPerAxisType>(); in buildConvOpQuantizationAttr() 154 auto aType = a.getType().dyn_cast<RankedTensorType>(); in buildMatMulOpQuantizationAttr() 155 auto bType = b.getType().dyn_cast<RankedTensorType>(); in buildMatMulOpQuantizationAttr() 190 auto inputType = input.getType().dyn_cast<RankedTensorType>(); in buildUnaryOpQuantizationAttr() 191 auto outputType = outputRawType.dyn_cast<RankedTensorType>(); in buildUnaryOpQuantizationAttr() 223 auto inputType = input.getType().dyn_cast<RankedTensorType>(); in buildPadOpQuantizationAttr() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | ProfileSummary.cpp | 110 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getValMD() 111 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getValMD() 140 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in isKeyValuePair() 141 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair() 153 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getSummaryFromMD() 156 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1)); in getSummaryFromMD() 160 MDTuple *EntryMD = dyn_cast<MDTuple>(MDOp); in getSummaryFromMD() 164 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0)); in getSummaryFromMD() 166 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1)); in getSummaryFromMD() 168 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(2)); in getSummaryFromMD() [all …]
|
/external/clang/lib/Sema/ |
D | ScopeInfo.cpp | 85 dyn_cast<ObjCPropertyRefExpr>(POE->getSyntacticForm()); in getBaseInfo() 91 if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(DoubleBase)) in getBaseInfo() 108 if (auto *LSI = dyn_cast<LambdaScopeInfo>(this)) in isVLATypeCaptured() 110 else if (auto CRSI = dyn_cast<CapturedRegionScopeInfo>(this)) in isVLATypeCaptured() 166 if (const PseudoObjectExpr *POE = dyn_cast<PseudoObjectExpr>(E)) { in markSafeWeakUse() 171 if (const ConditionalOperator *Cond = dyn_cast<ConditionalOperator>(E)) { in markSafeWeakUse() 178 dyn_cast<BinaryConditionalOperator>(E)) { in markSafeWeakUse() 186 if (const ObjCPropertyRefExpr *RefExpr = dyn_cast<ObjCPropertyRefExpr>(E)) { in markSafeWeakUse() 196 else if (const ObjCIvarRefExpr *IvarE = dyn_cast<ObjCIvarRefExpr>(E)) in markSafeWeakUse() 198 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in markSafeWeakUse() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | CStringSyntaxChecker.cpp | 39 if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts())) in sameDecl() 40 if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts())) in sameDecl() 47 if (const auto *UE = dyn_cast<UnaryExprOrTypeTraitExpr>(E)) in isSizeof() 55 if (const auto *CE = dyn_cast<CallExpr>(E)) { in isStrlen() 67 if (const auto *IL = dyn_cast<IntegerLiteral>(E)) in isOne() 73 if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in getPrintableName() 130 if (const auto *BE = dyn_cast<BinaryOperator>(LenArg->IgnoreParenCasts())) { in containsBadStrncatPattern() 159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern() 161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts()); in containsBadStrlcpyStrlcatPattern() 168 const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl()); in containsBadStrlcpyStrlcatPattern() [all …]
|
D | DeadStoresChecker.cpp | 56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() 106 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts()); in LookThroughTransitiveAssignmentsAndCommaOperators() 290 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() 299 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS); in isIncrement() 306 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement() 310 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement() 328 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) { in observeStmt() 331 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt() 332 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() 349 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt() [all …]
|
/external/llvm-project/lld/wasm/ |
D | Symbols.cpp | 102 if (auto* f = dyn_cast<FunctionSymbol>(this)) in getSignature() 104 if (auto *l = dyn_cast<LazySymbol>(this)) in getSignature() 110 if (auto *f = dyn_cast<DefinedFunction>(this)) in getChunk() 112 if (auto *f = dyn_cast<UndefinedFunction>(this)) in getChunk() 115 if (auto *d = dyn_cast<DefinedData>(this)) in getChunk() 127 if (auto *g = dyn_cast<DefinedGlobal>(this)) in isLive() 129 if (auto *e = dyn_cast<DefinedEvent>(this)) in isLive() 140 if (auto *g = dyn_cast<DefinedGlobal>(this)) in markLive() 142 if (auto *e = dyn_cast<DefinedEvent>(this)) in markLive() 211 if (auto *f = dyn_cast<DefinedFunction>(this)) in getFunctionIndex() [all …]
|
/external/llvm-project/llvm/unittests/Transforms/Vectorize/ |
D | VPlanHCFGTest.cpp | 57 VPInstruction *Phi = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() 60 VPInstruction *Idx = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() 65 VPInstruction *Load = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() 70 VPInstruction *Add = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() 75 VPInstruction *Store = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() 81 VPInstruction *IndvarAdd = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() 86 VPInstruction *ICmp = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() 177 EXPECT_NE(nullptr, dyn_cast<VPWidenPHIRecipe>(&*Iter++)); in TEST_F() 178 EXPECT_NE(nullptr, dyn_cast<VPWidenGEPRecipe>(&*Iter++)); in TEST_F() 179 EXPECT_NE(nullptr, dyn_cast<VPWidenMemoryInstructionRecipe>(&*Iter++)); in TEST_F() [all …]
|
/external/llvm-project/llvm/unittests/IR/ |
D | VectorTypesTest.cpp | 47 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, 8, false)); in TEST() 53 dyn_cast<FixedVectorType>(VectorType::get(Int8Ty, V8Int32Ty)); in TEST() 59 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, V8Int32Ty)); in TEST() 62 auto *V8Int16Ty = dyn_cast<FixedVectorType>( in TEST() 69 auto *V4Int64Ty = dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt)); in TEST() 74 auto *V2Int64Ty = dyn_cast<FixedVectorType>( in TEST() 81 dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt * 2)); in TEST() 87 dyn_cast<FixedVectorType>(VectorType::get(Float64Ty, EltCnt)); in TEST() 92 auto *ExtTy = dyn_cast<FixedVectorType>( in TEST() 98 auto *TruncTy = dyn_cast<FixedVectorType>( in TEST() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPrintfRuntimeBinding.cpp | 139 const PointerType *PT = dyn_cast<PointerType>(OpType); in shouldPrintAsStr() 164 if (auto LI = dyn_cast<LoadInst>(Op)) { in lowerPrintfForGpu() 167 if (auto SI = dyn_cast<StoreInst>(Use)) { in lowerPrintfForGpu() 174 if (auto I = dyn_cast<Instruction>(Op)) { in lowerPrintfForGpu() 180 ConstantExpr *ConstExpr = dyn_cast<ConstantExpr>(Op); in lowerPrintfForGpu() 183 GlobalVariable *GVar = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in lowerPrintfForGpu() 188 if (auto CA = dyn_cast<ConstantDataArray>(Init)) { in lowerPrintfForGpu() 221 VectorType *LLVMVecType = llvm::dyn_cast<llvm::VectorType>(ArgType); in lowerPrintfForGpu() 240 ConstantFP *FpCons = dyn_cast<ConstantFP>(Arg); in lowerPrintfForGpu() 244 FPExtInst *FpExt = dyn_cast<FPExtInst>(Arg); in lowerPrintfForGpu() [all …]
|
/external/llvm-project/clang/lib/Index/ |
D | IndexingContext.cpp | 153 SD = dyn_cast<ClassTemplateSpecializationDecl>(D)) { in isTemplateImplicitInstantiation() 155 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in isTemplateImplicitInstantiation() 157 } else if (auto *VD = dyn_cast<VarDecl>(D)) { in isTemplateImplicitInstantiation() 159 } else if (const auto *RD = dyn_cast<CXXRecordDecl>(D)) { in isTemplateImplicitInstantiation() 162 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { in isTemplateImplicitInstantiation() 167 if (const auto *Parent = dyn_cast<Decl>(D->getDeclContext())) in isTemplateImplicitInstantiation() 203 dyn_cast<ClassTemplateSpecializationDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 205 else if (const auto *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 212 SD = dyn_cast<ClassTemplateSpecializationDecl>(D)) { in adjustTemplateImplicitInstantiation() 219 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in adjustTemplateImplicitInstantiation() [all …]
|
/external/clang/lib/Tooling/Core/ |
D | QualTypeNames.cpp | 141 if (const auto *TST = dyn_cast<const TemplateSpecializationType>(TypePtr)) { in getFullyQualifiedTemplateType() 165 } else if (const auto *TSTRecord = dyn_cast<const RecordType>(TypePtr)) { in getFullyQualifiedTemplateType() 171 dyn_cast<ClassTemplateSpecializationDecl>(TSTRecord->getDecl())) { in getFullyQualifiedTemplateType() 206 if (const auto *NS = dyn_cast<NamespaceDecl>(DC)) { in createOuterNNS() 209 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS() 215 } else if (const auto *TD = dyn_cast<TagDecl>(DC)) { in createOuterNNS() 217 } else if (const auto *TDD = dyn_cast<TypedefNameDecl>(DC)) { in createOuterNNS() 267 } else if (const auto *TDD = dyn_cast<TypedefType>(Type)) { in getFullyQualifiedNestedNameSpecifier() 289 if (const auto *CxxDecl = dyn_cast<CXXRecordDecl>(DC)) { in createNestedNameSpecifierForScopeOf() 304 Outer = dyn_cast<NamedDecl>(Decl); in createNestedNameSpecifierForScopeOf() [all …]
|