Home
last modified time | relevance | path

Searched refs:dyn_cast (Results 1 – 25 of 1159) sorted by relevance

12345678910>>...47

/external/llvm/lib/IR/
DDebugInfo.cpp65 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 …]
DProfileSummary.cpp93 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 …]
DInstruction.cpp219 if (auto *OB = dyn_cast<OverflowingBinaryOperator>(V)) { in copyIRFlags()
227 if (auto *PE = dyn_cast<PossiblyExactOperator>(V)) in copyIRFlags()
232 if (auto *FP = dyn_cast<FPMathOperator>(V)) in copyIRFlags()
238 if (auto *OB = dyn_cast<OverflowingBinaryOperator>(V)) { in andIRFlags()
245 if (auto *PE = dyn_cast<PossiblyExactOperator>(V)) in andIRFlags()
249 if (auto *FP = dyn_cast<FPMathOperator>(V)) { in andIRFlags()
346 if (const AllocaInst *AI = dyn_cast<AllocaInst>(I1)) in haveSameSpecialState()
350 if (const LoadInst *LI = dyn_cast<LoadInst>(I1)) in haveSameSpecialState()
356 if (const StoreInst *SI = dyn_cast<StoreInst>(I1)) in haveSameSpecialState()
362 if (const CmpInst *CI = dyn_cast<CmpInst>(I1)) in haveSameSpecialState()
[all …]
/external/llvm/lib/Transforms/Utils/
DEvaluator.cpp51 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 …]
DGlobalStatus.cpp42 if (const Constant *CU = dyn_cast<Constant>(U)) { in isSafeToDestroyConstant()
52 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) in analyzeGlobalAux()
58 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(UR)) { in analyzeGlobalAux()
68 } else if (const Instruction *I = dyn_cast<Instruction>(UR)) { in analyzeGlobalAux()
76 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in analyzeGlobalAux()
82 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) { in analyzeGlobalAux()
98 dyn_cast<GlobalVariable>(SI->getOperand(1))) { in analyzeGlobalAux()
101 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux()
137 } else if (const PHINode *PN = dyn_cast<PHINode>(I)) { in analyzeGlobalAux()
145 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in analyzeGlobalAux()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstruction.cpp197 if (const LoadInst *LI = dyn_cast<LoadInst>(this)) in isIdenticalToWhenDefined()
202 if (const StoreInst *SI = dyn_cast<StoreInst>(this)) in isIdenticalToWhenDefined()
207 if (const CmpInst *CI = dyn_cast<CmpInst>(this)) in isIdenticalToWhenDefined()
209 if (const CallInst *CI = dyn_cast<CallInst>(this)) in isIdenticalToWhenDefined()
213 if (const InvokeInst *CI = dyn_cast<InvokeInst>(this)) in isIdenticalToWhenDefined()
216 if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(this)) in isIdenticalToWhenDefined()
218 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(this)) in isIdenticalToWhenDefined()
220 if (const FenceInst *FI = dyn_cast<FenceInst>(this)) in isIdenticalToWhenDefined()
223 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(this)) in isIdenticalToWhenDefined()
227 if (const AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(this)) in isIdenticalToWhenDefined()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp56 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/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DGlobalOpt.cpp163 if (const Constant *CU = dyn_cast<Constant>(*UI)) { in SafeToDestroyConstant()
180 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in AnalyzeGlobal()
188 } else if (const Instruction *I = dyn_cast<Instruction>(U)) { in AnalyzeGlobal()
196 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in AnalyzeGlobal()
200 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) { in AnalyzeGlobal()
211 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>( in AnalyzeGlobal()
238 } else if (const PHINode *PN = dyn_cast<PHINode>(I)) { in AnalyzeGlobal()
246 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in AnalyzeGlobal()
252 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I)) { in AnalyzeGlobal()
259 } else if (const Constant *C = dyn_cast<Constant>(U)) { in AnalyzeGlobal()
[all …]
/external/clang/lib/Sema/
DScopeInfo.cpp85 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/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp26 SelectInst *SI = dyn_cast<SelectInst>(V); in MatchSelectPattern()
29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); in MatchSelectPattern()
180 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) { in FoldSelectOpOp()
191 ConstantInt *C1I = dyn_cast<ConstantInt>(C1); in isSelect01()
194 ConstantInt *C2I = dyn_cast<ConstantInt>(C2); in isSelect01()
209 if (Instruction *TVI = dyn_cast<Instruction>(TrueVal)) { in FoldSelectIntoOp()
244 if (Instruction *FVI = dyn_cast<Instruction>(FalseVal)) { in FoldSelectIntoOp()
290 Instruction *I = dyn_cast<Instruction>(V); in SimplifyWithOpReplaced()
295 if (BinaryOperator *B = dyn_cast<BinaryOperator>(I)) { in SimplifyWithOpReplaced()
303 if (CmpInst *C = dyn_cast<CmpInst>(I)) { in SimplifyWithOpReplaced()
[all …]
DInstCombineMulDivRem.cpp47 if (BinaryOperator *I = dyn_cast<BinaryOperator>(V)) in simplifyValueKnownNonZero()
112 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) { in visitMul()
115 if (BinaryOperator *SI = dyn_cast<BinaryOperator>(Op0)) in visitMul()
117 if (Constant *ShOp = dyn_cast<Constant>(SI->getOperand(1))) in visitMul()
166 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitMul()
183 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); in visitMul()
188 BO = dyn_cast<BinaryOperator>(Op1); in visitMul()
198 if (PossiblyExactOperator *SDiv = dyn_cast<PossiblyExactOperator>(BO)) in visitMul()
260 if (Constant *Op1C = dyn_cast<Constant>(Op1)) { in visitFMul()
261 if (ConstantFP *Op1F = dyn_cast<ConstantFP>(Op1C)) { in visitFMul()
[all …]
DInstCombineLoadStoreAlloca.cpp40 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in visitAllocaInst()
96 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { in InstCombineLoadCast()
109 if (ArrayType *ASrcTy = dyn_cast<ArrayType>(SrcPTy)) in InstCombineLoadCast()
110 if (Constant *CSrc = dyn_cast<Constant>(CastOp)) in InstCombineLoadCast()
178 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Op)) { in visitLoadInst()
205 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Op)) in visitLoadInst()
221 if (SelectInst *SI = dyn_cast<SelectInst>(Op)) { in visitLoadInst()
236 if (Constant *C = dyn_cast<Constant>(SI->getOperand(1))) in visitLoadInst()
243 if (Constant *C = dyn_cast<Constant>(SI->getOperand(2))) in visitLoadInst()
261 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); in InstCombineStoreToCast()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp55 VectorType *DestVTy = dyn_cast<VectorType>(DestTy); in FoldBitCast()
67 ConstantVector *CV = dyn_cast<ConstantVector>(C); in FoldBitCast()
111 CV = dyn_cast<ConstantVector>(C); in FoldBitCast()
134 Constant *Src = dyn_cast<ConstantInt>(CV->getOperand(SrcElt++)); in FoldBitCast()
158 Constant *Src = dyn_cast<ConstantInt>(CV->getOperand(i)); in FoldBitCast()
186 if ((GV = dyn_cast<GlobalValue>(C))) { in IsConstantOffsetFromGlobal()
192 ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in IsConstantOffsetFromGlobal()
216 ConstantInt *CI = dyn_cast<ConstantInt>(*i); in IsConstantOffsetFromGlobal()
220 if (StructType *ST = dyn_cast<StructType>(*GTI)) { in IsConstantOffsetFromGlobal()
249 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ReadDataFromGlobal()
[all …]
DValueTracking.cpp76 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ComputeMaskedBits()
91 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) { in ComputeMaskedBits()
103 if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { in ComputeMaskedBits()
125 if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) { in ComputeMaskedBits()
135 if (Argument *A = dyn_cast<Argument>(V)) { in ComputeMaskedBits()
150 Operator *I = dyn_cast<Operator>(V); in ComputeMaskedBits()
328 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
342 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
360 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
381 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(I->getOperand(0))) { in ComputeMaskedBits()
[all …]
DPHITransAddr.cpp57 Instruction *I = dyn_cast<Instruction>(Expr); in VerifySubExpr()
117 Instruction *Inst = dyn_cast<Instruction>(Addr); in IsPotentiallyPHITranslatable()
124 Instruction *I = dyn_cast<Instruction>(V); in RemoveInstInputs()
139 if (Instruction *Op = dyn_cast<Instruction>(I->getOperand(i))) in RemoveInstInputs()
148 Instruction *Inst = dyn_cast<Instruction>(V); in PHITranslateSubExpr()
169 if (PHINode *PN = dyn_cast<PHINode>(Inst)) in PHITranslateSubExpr()
180 if (Instruction *Op = dyn_cast<Instruction>(Inst->getOperand(i))) in PHITranslateSubExpr()
188 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr()
198 if (Constant *C = dyn_cast<Constant>(PHIIn)) in PHITranslateSubExpr()
206 if (CastInst *CastI = dyn_cast<CastInst>(*UI)) in PHITranslateSubExpr()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DIRBuilder.h97 if (PHINode *Phi = dyn_cast<PHINode>(UseInst)) { in SetInsertPoint()
502 if (Constant *LC = dyn_cast<Constant>(LHS))
503 if (Constant *RC = dyn_cast<Constant>(RHS))
515 if (Constant *LC = dyn_cast<Constant>(LHS))
516 if (Constant *RC = dyn_cast<Constant>(RHS))
522 if (Constant *LC = dyn_cast<Constant>(LHS))
523 if (Constant *RC = dyn_cast<Constant>(RHS))
535 if (Constant *LC = dyn_cast<Constant>(LHS))
536 if (Constant *RC = dyn_cast<Constant>(RHS))
542 if (Constant *LC = dyn_cast<Constant>(LHS))
[all …]
/external/clang/lib/Tooling/Core/
DQualTypeNames.cpp141 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 …]
/external/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp198 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Imm.Value); in isBrImm()
215 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) { in isHiImm16()
221 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value)) in isHiImm16()
225 if (const MCBinaryExpr *BinaryExpr = dyn_cast<MCBinaryExpr>(Imm.Value)) in isHiImm16()
227 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isHiImm16()
237 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value); in isHiImm16And()
251 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) { in isLoImm16()
258 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value)) in isLoImm16()
262 if (const MCBinaryExpr *BinaryExpr = dyn_cast<MCBinaryExpr>(Imm.Value)) in isLoImm16()
264 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16()
[all …]
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp133 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) { in IsSafeComputationToRemove()
168 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupPointerRootUsers()
173 } else if (Instruction *I = dyn_cast<Instruction>(V)) { in CleanupPointerRootUsers()
177 } else if (MemSetInst *MSI = dyn_cast<MemSetInst>(U)) { in CleanupPointerRootUsers()
181 } else if (Instruction *I = dyn_cast<Instruction>(MSI->getValue())) { in CleanupPointerRootUsers()
185 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(U)) { in CleanupPointerRootUsers()
186 GlobalVariable *MemSrc = dyn_cast<GlobalVariable>(MTI->getSource()); in CleanupPointerRootUsers()
190 } else if (Instruction *I = dyn_cast<Instruction>(MemSrc)) { in CleanupPointerRootUsers()
194 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in CleanupPointerRootUsers()
199 } else if (Constant *C = dyn_cast<Constant>(U)) { in CleanupPointerRootUsers()
[all …]
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp34 if (auto *SC = dyn_cast<SCEVConstant>(S)) { in simplifyInstWithSCEV()
39 auto *AR = dyn_cast<SCEVAddRecExpr>(S); in simplifyInstWithSCEV()
45 if (auto *SC = dyn_cast<SCEVConstant>(ValueAtIteration)) { in simplifyInstWithSCEV()
51 auto *Base = dyn_cast<SCEVUnknown>(SE.getPointerBase(S)); in simplifyInstWithSCEV()
55 dyn_cast<SCEVConstant>(SE.getMinusSCEV(ValueAtIteration, Base)); in simplifyInstWithSCEV()
81 if (auto FI = dyn_cast<FPMathOperator>(&I)) in visitBinaryOperator()
104 auto *GV = dyn_cast<GlobalVariable>(AddressIt->second.Base); in visitLoad()
111 dyn_cast<ConstantDataSequential>(GV->getInitializer()); in visitLoad()
141 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst()
188 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst()
[all …]
/external/llvm/lib/TableGen/
DRecord.cpp106 if (const BitsRecTy *BitsTy = dyn_cast<BitsRecTy>(RHS)) in typeIsConvertibleTo()
146 if (const auto *ListTy = dyn_cast<ListRecTy>(RHS)) in typeIsConvertibleTo()
156 return dyn_cast<RecordRecTy>(R->getDefInit()->getType()); in get()
164 const RecordRecTy *RTy = dyn_cast<RecordRecTy>(RHS); in typeIsConvertibleTo()
185 if (RecordRecTy *RecTy1 = dyn_cast<RecordRecTy>(T1)) { in resolveTypes()
194 if (RecordRecTy *RecTy2 = dyn_cast<RecordRecTy>(T2)) { in resolveTypes()
220 if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) { in convertInitializerTo()
247 if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) { in convertInitializerTo()
294 if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) { in convertInitializerTo()
304 if (auto *Bit = dyn_cast<BitInit>(getBit(i))) in convertInitializerTo()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp355 if (VectorType *VInTy = dyn_cast<VectorType>(In)) { in MergeInTypeForLoadOrStore()
418 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in CanConvertToScalar()
430 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in CanConvertToScalar()
441 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in CanConvertToScalar()
449 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(User)) { in CanConvertToScalar()
468 if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) { in CanConvertToScalar()
474 ConstantInt *Len = dyn_cast<ConstantInt>(MSI->getLength()); in CanConvertToScalar()
492 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) { in CanConvertToScalar()
493 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength()); in CanConvertToScalar()
502 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(User)) { in CanConvertToScalar()
[all …]
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp148 dyn_cast<AllocaInst>(CPI->getArgOperand(2)->stripPointerCasts())) in addTryBlockMapEntry()
159 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest()
169 auto *II = dyn_cast<InvokeInst>(BB.getTerminator()); in calculateStateNumbersForInvokes()
179 dyn_cast<FuncletPadInst>(FuncletEntryBB->getFirstNonPHI()); in calculateStateNumbersForInvokes()
183 else if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in calculateStateNumbersForInvokes()
185 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes()
215 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor()
233 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers()
257 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers()
262 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp57 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
66 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
101 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI.getCondition()); in handleBranchExpect()
103 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect()
107 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBranchExpect()
118 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBranchExpect()
146 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
149 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
156 CallInst *CI = dyn_cast<CallInst>(BI++); in lowerExpectIntrinsic()
/external/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp69 if (User *CurrUser = dyn_cast<User>(Curr)) in findAllDefs()
80 if (Constant *C = dyn_cast<Constant>(V)) in translate()
82 if (PHINode *P = dyn_cast<PHINode>(V)) { in translate()
93 Argument *A = dyn_cast<Argument>(V); in translate()
94 Instruction *I = dyn_cast<Instruction>(V); in translate()
117 if (const PHINode *P = dyn_cast<PHINode>(&I)) in getPromotablePHINodes()
141 const PHINode *Phi = dyn_cast<PHINode>(V); in getPromotablePHINodes()
179 if (ReturnInst *R = dyn_cast<ReturnInst>(&I)) in runOnFunction()
184 if (CallInst *CI = dyn_cast<CallInst>(&I)) in runOnFunction()
210 if (const PHINode *P = dyn_cast<PHINode>(V)) in runOnUse()
[all …]

12345678910>>...47