/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() 288 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt() [all …]
|
/external/clang/lib/Sema/ |
D | ScopeInfo.cpp | 81 dyn_cast<ObjCPropertyRefExpr>(POE->getSyntacticForm()); in getBaseInfo() 86 if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(DoubleBase)) in getBaseInfo() 102 if (auto *LSI = dyn_cast<LambdaScopeInfo>(this)) in isVLATypeCaptured() 104 else if (auto CRSI = dyn_cast<CapturedRegionScopeInfo>(this)) in isVLATypeCaptured() 160 if (const PseudoObjectExpr *POE = dyn_cast<PseudoObjectExpr>(E)) { in markSafeWeakUse() 165 if (const ConditionalOperator *Cond = dyn_cast<ConditionalOperator>(E)) { in markSafeWeakUse() 172 dyn_cast<BinaryConditionalOperator>(E)) { in markSafeWeakUse() 180 if (const ObjCPropertyRefExpr *RefExpr = dyn_cast<ObjCPropertyRefExpr>(E)) { in markSafeWeakUse() 190 else if (const ObjCIvarRefExpr *IvarE = dyn_cast<ObjCIvarRefExpr>(E)) in markSafeWeakUse() 192 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in markSafeWeakUse() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 168 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) { in IsSafeComputationToRemove() 204 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupPointerRootUsers() 209 } else if (Instruction *I = dyn_cast<Instruction>(V)) { in CleanupPointerRootUsers() 213 } else if (MemSetInst *MSI = dyn_cast<MemSetInst>(U)) { in CleanupPointerRootUsers() 217 } else if (Instruction *I = dyn_cast<Instruction>(MSI->getValue())) { in CleanupPointerRootUsers() 221 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(U)) { in CleanupPointerRootUsers() 222 GlobalVariable *MemSrc = dyn_cast<GlobalVariable>(MTI->getSource()); in CleanupPointerRootUsers() 226 } else if (Instruction *I = dyn_cast<Instruction>(MemSrc)) { in CleanupPointerRootUsers() 230 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in CleanupPointerRootUsers() 235 } else if (Constant *C = dyn_cast<Constant>(U)) { in CleanupPointerRootUsers() [all …]
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILPeepholeOptimizer.cpp | 190 const StructType *ST = dyn_cast<StructType>(Ty); in containsPointerType() 202 return containsPointerType(dyn_cast<SequentialType>(Ty)->getElementType()); in containsPointerType() 216 const PointerType *PT = dyn_cast<PointerType>(arg->getType()); in dumpAllIntoArena() 221 if (!dyn_cast<StructType>(DereferencedType) in dumpAllIntoArena() 243 Constant *CV = dyn_cast<Constant>(CI->getOperand(0)); in doIsConstCallConversionIfNeeded() 301 CallInst *CI = dyn_cast<CallInst>(inst); in optimizeCallInst() 337 Constant *CV = dyn_cast<Constant>(CI->getOperand(0)); in optimizeCallInst() 349 ConstantInt *CV = dyn_cast<ConstantInt>(CI->getOperand(0)); in optimizeCallInst() 363 Function *F = dyn_cast<Function>(CI->getOperand(CI->getNumOperands()-1)); in optimizeCallInst() 370 F = dyn_cast<Function>( in optimizeCallInst() [all …]
|
D | AMDILISelDAGToDAG.cpp | 104 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(Addr)) { in SelectADDRParam() 137 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(Addr)) { in SelectADDR64() 163 if (FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(N)) { in Select() 181 return dyn_cast<PointerType>(ptrType)->getAddressSpace() == addrspace; in checkType() 197 if (dyn_cast<Argument>(V) && dyn_cast<PointerType>(V->getType())) { in getBasePointerValue() 200 } else if (dyn_cast<GlobalVariable>(V)) { in getBasePointerValue() 203 } else if (dyn_cast<Constant>(V)) { in getBasePointerValue() 204 const ConstantExpr *CE = dyn_cast<ConstantExpr>(V); in getBasePointerValue() 208 } else if (const AllocaInst *AI = dyn_cast<AllocaInst>(V)) { in getBasePointerValue() 211 } else if (const Instruction *I = dyn_cast<Instruction>(V)) { in getBasePointerValue() [all …]
|
D | R600KernelParameters.cpp | 159 getElementPtrInst* GEP = dyn_cast<getElementPtrInst>(Val); in IsIndirect() 170 Value* V2 = dyn_cast<Value>(*I); in IsIndirect() 186 P.Val = dyn_cast<Value>(Arg); in AddParam() 201 if (Arg->hasByValAttr() && dyn_cast<PointerType>(T)) { in CalculateArgumentSize() 202 T = dyn_cast<PointerType>(T)->getElementType(); in CalculateArgumentSize() 246 LoadInst* Load = dyn_cast<LoadInst>(V); in Propagate() 247 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V); in Propagate() 260 if (dyn_cast<PointerType>(Op->getType())->getAddressSpace() != Addrspace) { in Propagate() 261 Op = new BitCastInst(Op, PointerType::get(dyn_cast<PointerType>( in Propagate() 263 Name, dyn_cast<Instruction>(V)); in Propagate() [all …]
|
/external/llvm/lib/IR/ |
D | DebugInfo.cpp | 142 if (auto *T = dyn_cast<MDType>(Entity)) in processModule() 144 else if (auto *SP = dyn_cast<MDSubprogram>(Entity)) in processModule() 146 else if (auto *NS = dyn_cast<MDNamespace>(Entity)) in processModule() 165 if (auto *DCT = dyn_cast<MDCompositeTypeBase>(DT)) { in processType() 167 if (auto *ST = dyn_cast<MDSubroutineType>(DCT)) { in processType() 173 if (auto *T = dyn_cast<MDType>(D)) in processType() 175 else if (DISubprogram SP = dyn_cast<MDSubprogram>(D)) in processType() 178 } else if (auto *DDT = dyn_cast<MDDerivedTypeBase>(DT)) { in processType() 186 if (DIType Ty = dyn_cast<MDType>(Scope)) { in processScope() 190 if (DICompileUnit CU = dyn_cast<MDCompileUnit>(Scope)) { in processScope() [all …]
|
D | Value.cpp | 127 const Instruction *User = dyn_cast<Instruction>(*UI); in isUsedInBasicBlock() 140 if (Instruction *I = dyn_cast<Instruction>(V)) { in getSymTab() 144 } else if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) { in getSymTab() 147 } else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { in getSymTab() 150 } else if (Argument *A = dyn_cast<Argument>(V)) { in getSymTab() 190 if (Function *F = dyn_cast<Function>(this)) in setName() 294 auto *CE = dyn_cast<ConstantExpr>(O); in contains() 307 auto *C = dyn_cast<Constant>(V); in contains() 311 auto *CE = dyn_cast<ConstantExpr>(Expr); in contains() 337 if (auto *C = dyn_cast<Constant>(U.getUser())) { in replaceAllUsesWith() [all …]
|
D | ConstantFold.cpp | 109 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() 110 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) in FoldBitCast() 119 if (StructType *STy = dyn_cast<StructType>(ElTy)) { in FoldBitCast() 124 dyn_cast<SequentialType>(ElTy)) { in FoldBitCast() 141 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast() 142 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast() 167 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast() 184 if (ConstantFP *FP = dyn_cast<ConstantFP>(V)) { in FoldBitCast() 222 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes() 232 ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in ExtractConstantBytes() [all …]
|
D | BasicBlock.cpp | 122 return dyn_cast<TerminatorInst>(&InstList.back()); in getTerminator() 127 return dyn_cast<TerminatorInst>(&InstList.back()); in getTerminator() 133 ReturnInst *RI = dyn_cast<ReturnInst>(&InstList.back()); in getTerminatingMustTailCall() 146 if (auto *BI = dyn_cast<BitCastInst>(Prev)) { in getTerminatingMustTailCall() 154 if (auto *CI = dyn_cast<CallInst>(Prev)) { in getTerminatingMustTailCall() 191 const IntrinsicInst *II = dyn_cast<IntrinsicInst>(i); in getFirstNonPHIOrDbgOrLifetime() 268 PHINode *APN = dyn_cast<PHINode>(&front()); in removePredecessor() 295 while (PHINode *PN = dyn_cast<PHINode>(&front())) { in removePredecessor() 316 for (iterator II = begin(); (PN = dyn_cast<PHINode>(II)); ) { in removePredecessor() 371 (PN = dyn_cast<PHINode>(II)); ++II) { in splitBasicBlock() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | GlobalStatus.cpp | 42 if (const Constant *CU = dyn_cast<Constant>(U)) { in isSafeToDestroyConstant() 54 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(UR)) { in analyzeGlobalAux() 64 } else if (const Instruction *I = dyn_cast<Instruction>(UR)) { in analyzeGlobalAux() 72 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in analyzeGlobalAux() 78 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) { in analyzeGlobalAux() 94 dyn_cast<GlobalVariable>(SI->getOperand(1))) { in analyzeGlobalAux() 97 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux() 133 } else if (const PHINode *PN = dyn_cast<PHINode>(I)) { in analyzeGlobalAux() 141 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in analyzeGlobalAux() 148 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I)) { in analyzeGlobalAux() [all …]
|
D | Local.cpp | 68 if (BranchInst *BI = dyn_cast<BranchInst>(T)) { in ConstantFoldTerminator() 73 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) { in ConstantFoldTerminator() 113 if (SwitchInst *SI = dyn_cast<SwitchInst>(T)) { in ConstantFoldTerminator() 116 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition()); in ConstantFoldTerminator() 238 if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(T)) { in ConstantFoldTerminator() 241 dyn_cast<BlockAddress>(IBI->getAddress()->stripPointerCasts())) { in ConstantFoldTerminator() 290 if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) { in isInstructionTriviallyDead() 295 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) { in isInstructionTriviallyDead() 305 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) { in isInstructionTriviallyDead() 317 if (ConstantInt *Cond = dyn_cast<ConstantInt>(II->getArgOperand(0))) in isInstructionTriviallyDead() [all …]
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 109 if (PHINode *Phi = dyn_cast<PHINode>(UseInst)) { in SetInsertPoint() 696 if (Constant *LC = dyn_cast<Constant>(LHS)) 697 if (Constant *RC = dyn_cast<Constant>(RHS)) 710 if (Constant *LC = dyn_cast<Constant>(LHS)) 711 if (Constant *RC = dyn_cast<Constant>(RHS)) 718 if (Constant *LC = dyn_cast<Constant>(LHS)) 719 if (Constant *RC = dyn_cast<Constant>(RHS)) 732 if (Constant *LC = dyn_cast<Constant>(LHS)) 733 if (Constant *RC = dyn_cast<Constant>(RHS)) 740 if (Constant *LC = dyn_cast<Constant>(LHS)) [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 45 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() 54 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 89 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI.getCondition()); in handleBranchExpect() 91 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect() 95 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBranchExpect() 106 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBranchExpect() 134 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic() 137 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) { in lowerExpectIntrinsic() 144 CallInst *CI = dyn_cast<CallInst>(BI++); in lowerExpectIntrinsic()
|
D | ScalarReplAggregates.cpp | 415 if (VectorType *VInTy = dyn_cast<VectorType>(In)) { in MergeInTypeForLoadOrStore() 479 if (LoadInst *LI = dyn_cast<LoadInst>(UI)) { in CanConvertToScalar() 491 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in CanConvertToScalar() 502 if (BitCastInst *BCI = dyn_cast<BitCastInst>(UI)) { in CanConvertToScalar() 510 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UI)) { in CanConvertToScalar() 512 PointerType* PtrTy = dyn_cast<PointerType>(GEP->getPointerOperandType()); in CanConvertToScalar() 542 if (MemSetInst *MSI = dyn_cast<MemSetInst>(UI)) { in CanConvertToScalar() 551 ConstantInt *Len = dyn_cast<ConstantInt>(MSI->getLength()); in CanConvertToScalar() 569 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(UI)) { in CanConvertToScalar() 573 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength()); in CanConvertToScalar() [all …]
|
D | MemCpyOptimizer.cpp | 54 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in GetOffsetFromIndex() 60 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in GetOffsetFromIndex() 88 GEPOperator *GEP1 = dyn_cast<GEPOperator>(Ptr1); in IsPointerOffset() 89 GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in IsPointerOffset() 217 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in addInst() 397 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) { in INITIALIZE_PASS_DEPENDENCY() 500 if (LoadInst *LI = dyn_cast<LoadInst>(SI->getOperand(0))) { in processStore() 506 C = dyn_cast<CallInst>(ldep.getInst()); in processStore() 602 AllocaInst *srcAlloca = dyn_cast<AllocaInst>(cpySrc); in performCallSlotOptzn() 606 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXUtilities.cpp | 51 const MDString *prop = dyn_cast<MDString>(md->getOperand(i)); in cacheAnnotationFromMD() 131 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isTexture() 144 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSurface() 157 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSampler() 166 if (const Argument *arg = dyn_cast<Argument>(&val)) { in isSampler() 180 if (const Argument *arg = dyn_cast<Argument>(&val)) { in isImageReadOnly() 195 if (const Argument *arg = dyn_cast<Argument>(&val)) { in isImageWriteOnly() 210 if (const Argument *arg = dyn_cast<Argument>(&val)) { in isImageReadWrite() 230 if(const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isManaged() 372 if (const IntrinsicInst *IS = dyn_cast<IntrinsicInst>(V)) { in skipPointerTransfer() [all …]
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 60 Instruction *I = dyn_cast<Instruction>(Expr); in VerifySubExpr() 118 Instruction *Inst = dyn_cast<Instruction>(Addr); in IsPotentiallyPHITranslatable() 125 Instruction *I = dyn_cast<Instruction>(V); in RemoveInstInputs() 140 if (Instruction *Op = dyn_cast<Instruction>(I->getOperand(i))) in RemoveInstInputs() 149 Instruction *Inst = dyn_cast<Instruction>(V); in PHITranslateSubExpr() 170 if (PHINode *PN = dyn_cast<PHINode>(Inst)) in PHITranslateSubExpr() 181 if (Instruction *Op = dyn_cast<Instruction>(Inst->getOperand(i))) in PHITranslateSubExpr() 189 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() 199 if (Constant *C = dyn_cast<Constant>(PHIIn)) in PHITranslateSubExpr() 206 if (CastInst *CastI = dyn_cast<CastInst>(U)) in PHITranslateSubExpr() [all …]
|
D | ConstantFolding.cpp | 62 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) { in FoldBitCast() 63 VectorType *VTy = dyn_cast<VectorType>(C->getType()); in FoldBitCast() 80 ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(C); in FoldBitCast() 100 VectorType *DestVTy = dyn_cast<VectorType>(DestTy); in FoldBitCast() 178 Constant *Src =dyn_cast<ConstantInt>(C->getAggregateElement(SrcElt++)); in FoldBitCast() 204 Constant *Src = dyn_cast<ConstantInt>(C->getAggregateElement(i)); in FoldBitCast() 239 if ((GV = dyn_cast<GlobalValue>(C))) { in IsConstantOffsetFromGlobal() 246 ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in IsConstantOffsetFromGlobal() 256 GEPOperator *GEP = dyn_cast<GEPOperator>(CE); in IsConstantOffsetFromGlobal() 290 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ReadDataFromGlobal() [all …]
|
D | ScalarEvolution.cpp | 278 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isZero() 284 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isOne() 290 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isAllOnesValue() 298 const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(this); in isNonConstantNegative() 302 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative() 390 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue())) in isSizeOf() 392 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(VCE->getOperand(0))) in isSizeOf() 396 if (ConstantInt *CI = dyn_cast<ConstantInt>(CE->getOperand(1))) in isSizeOf() 407 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue())) in isAlignOf() 409 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(VCE->getOperand(0))) in isAlignOf() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 28 SelectInst *SI = dyn_cast<SelectInst>(V); in MatchSelectPattern() 31 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); in MatchSelectPattern() 73 if (ConstantInt *C1 = dyn_cast<ConstantInt>(CmpRHS)) { in MatchSelectPattern() 211 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) { in FoldSelectOpOp() 221 ConstantInt *C1I = dyn_cast<ConstantInt>(C1); in isSelect01() 224 ConstantInt *C2I = dyn_cast<ConstantInt>(C2); in isSelect01() 239 if (Instruction *TVI = dyn_cast<Instruction>(TrueVal)) { in FoldSelectIntoOp() 274 if (Instruction *FVI = dyn_cast<Instruction>(FalseVal)) { in FoldSelectIntoOp() 322 Instruction *I = dyn_cast<Instruction>(V); in SimplifyWithOpReplaced() 327 if (BinaryOperator *B = dyn_cast<BinaryOperator>(I)) { in SimplifyWithOpReplaced() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 34 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) in pointsToConstantGlobal() 37 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) { in pointsToConstantGlobal() 68 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantGlobal() 79 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) { in isOnlyCopiedFromConstantGlobal() 112 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) { in isOnlyCopiedFromConstantGlobal() 123 MemTransferInst *MI = dyn_cast<MemTransferInst>(I); in isOnlyCopiedFromConstantGlobal() 181 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize() 251 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() 465 auto *SI = dyn_cast<StoreInst>(U); in combineLoadToOperationType() 486 if (auto *BC = dyn_cast<BitCastInst>(LI.user_back())) { in combineLoadToOperationType() [all …]
|
/external/llvm/lib/TableGen/ |
D | Record.cpp | 119 if (auto *BitsTy = dyn_cast<BitsRecTy>(Ty)) in convertValue() 124 if (TernOpInit *TOI = dyn_cast<TernOpInit>(VI)) { in convertValue() 138 if(const BitsRecTy *BitsTy = dyn_cast<BitsRecTy>(RHS)) in baseClassOf() 232 if (BitInit *Bit = dyn_cast<BitInit>(BI->getBit(i))) { in convertValue() 306 if (ListRecTy *LRT = dyn_cast<ListRecTy>(TI->getType())) in convertValue() 313 if(const ListRecTy* ListTy = dyn_cast<ListRecTy>(RHS)) in baseClassOf() 348 return dyn_cast<RecordRecTy>(R->getDefInit()->getType()); in get() 364 if (RecordRecTy *RRT = dyn_cast<RecordRecTy>(TI->getType())) in convertValue() 372 const RecordRecTy *RTy = dyn_cast<RecordRecTy>(RHS); in baseClassOf() 397 if (RecordRecTy *RecTy1 = dyn_cast<RecordRecTy>(T1)) { in resolveTypes() [all …]
|
/external/clang/lib/AST/ |
D | Mangle.cpp | 60 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in isExternC() 78 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND); in getCallingConvMangling() 143 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() 158 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() 165 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FT); in mangleName() 175 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) in mangleName() 229 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock() 239 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC)) in mangleBlock() 241 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock() 243 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 38 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 43 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 88 if (VecTy *V = Val.template dyn_cast<VecTy*>()) { 132 if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) in empty() 172 if (EltTy V = Val.template dyn_cast<EltTy>()) { 184 if (EltTy V = Val.template dyn_cast<EltTy>()) in front() 191 if (EltTy V = Val.template dyn_cast<EltTy>()) in back() 206 if (EltTy V = Val.template dyn_cast<EltTy>()) { in push_back() 227 } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) { in clear() 242 } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) { in erase() [all …]
|