|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Analysis/SparsePropagation.h 280 visitPHINode(*cast<PHINode>(I));
338 SwitchInst &SI = cast<SwitchInst>(TI);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h 506 auto *NewA = cast<GlobalAlias>(VMap[&A]);
include/llvm/IR/GetElementPtrTypeIterator.h 139 auto &GEPOp = cast<GEPOperator>(GEP);
include/llvm/Support/Casting.h 301 return cast<X>(Val);
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
362 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
378 -> decltype(cast<X>(Val)) {
386 -> decltype(cast<X>(Val)) {
394 -> decltype(cast<X>(Val)) {
402 -> decltype(cast<X>(Val)) {
include/llvm/Transforms/IPO/Attributor.h 206 return IRPosition::callsite_function(cast<CallBase>(*ICS.getInstruction()));
211 return IRPosition::callsite_returned(cast<CallBase>(*ICS.getInstruction()));
217 return IRPosition::callsite_argument(cast<CallBase>(*ICS.getInstruction()),
227 cast<CallBase>(*ACS.getInstruction()), CSArgNo);
238 cast<CallBase>(IRP.getAnchorValue()));
277 return &cast<Function>(V);
279 return cast<Argument>(V).getParent();
281 return cast<Instruction>(V).getFunction();
327 return &cast<Function>(V);
329 return cast<Argument>(V).getParent();
331 return cast<Instruction>(V).getFunction();
include/llvm/Transforms/Scalar/GVNExpression.h 217 const auto &OE = cast<BasicExpression>(Other);
287 const MemoryExpression &OtherMCE = cast<MemoryExpression>(Other);
358 cast<LoadExpression>(Other).getLoadInst() == getLoadInst();
398 cast<StoreExpression>(Other).getStoreInst() == getStoreInst();
459 const AggregateValueExpression &OE = cast<AggregateValueExpression>(Other);
521 const PHIExpression &OE = cast<PHIExpression>(Other);
567 const VariableExpression &OC = cast<VariableExpression>(Other);
604 const ConstantExpression &OC = cast<ConstantExpression>(Other);
640 const auto &OU = cast<UnknownExpression>(Other);
lib/Analysis/AliasSetTracker.cpp 285 return cast<Instruction>(UnknownInsts[0]);
lib/Analysis/AssumptionCache.cpp 186 updateAffectedValues(cast<CallInst>(A));
214 assert(&F == cast<Instruction>(VH)->getParent()->getParent() &&
216 assert(match(cast<CallInst>(VH), m_Intrinsic<Intrinsic::assume>()) &&
235 OS << " " << *cast<CallInst>(VH)->getArgOperand(0) << "\n";
283 AssumptionSet.insert(cast<CallInst>(VH));
285 for (const BasicBlock &B : cast<Function>(*I.first))
lib/Analysis/CodeMetrics.cpp 79 Instruction *I = cast<Instruction>(AssumeVH);
103 Instruction *I = cast<Instruction>(AssumeVH);
lib/Analysis/DDG.cpp 64 for (auto *I : cast<const SimpleDDGNode>(N).getInstructions())
lib/Analysis/InlineCost.cpp 573 if (!accumulateGEPOffset(cast<GEPOperator>(I), BaseAndOffset.second))
1110 cast<FPMathOperator>(I).getFastMathFlags(),
1238 if (isa<CallInst>(Call) && cast<CallInst>(Call).cannotDuplicate())
lib/Analysis/LazyValueInfo.cpp 831 auto *I = cast<CallInst>(AssumeVH);
lib/Analysis/LegacyDivergenceAnalysis.cpp 173 if (!cast<PHINode>(I)->hasConstantOrUndefValue() && DV.insert(&*I).second)
lib/Analysis/LoopInfo.cpp 155 PHINode *PN = cast<PHINode>(I);
lib/Analysis/MemoryBuiltins.cpp 607 return visitGEPOperator(cast<GEPOperator>(*CE));
lib/Analysis/MemorySSAUpdater.cpp 469 cast<MemoryDef>(DefIter)->setDefiningAccess(NewDef);
1229 MA = cast<MemoryAccess>(Arg);
lib/Analysis/OptimizationRemarkEmitter.cpp 74 auto &OptDiag = cast<DiagnosticInfoIROptimization>(OptDiagBase);
lib/Analysis/OrderedBasicBlock.cpp 50 Inst = cast<Instruction>(II);
lib/Analysis/ScalarEvolution.cpp 9506 auto *CI = cast<CallInst>(AssumeVH);
9661 auto *CI = cast<CallInst>(AssumeVH);
lib/Analysis/ScalarEvolutionExpander.cpp 153 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) &&
154 cast<BitCastInst>(IP)->getOperand(0) != A) ||
lib/Analysis/ValueTracking.cpp 593 CallInst *I = cast<CallInst>(AssumeVH);
lib/Bitcode/Reader/ValueList.cpp 195 std::pair<Constant *, unsigned>(cast<Constant>(*I), 0));
lib/Bitcode/Writer/BitcodeWriter.cpp 2645 auto &GEPInst = cast<GetElementPtrInst>(I);
2700 Vals.push_back(cast<CmpInst>(I).getPredicate());
2725 const BranchInst &II = cast<BranchInst>(I);
2736 const SwitchInst &SI = cast<SwitchInst>(I);
2790 const auto &CRI = cast<CleanupReturnInst>(I);
2798 const auto &CRI = cast<CatchReturnInst>(I);
2805 const auto &FuncletPad = cast<FuncletPadInst>(I);
2818 const auto &CatchSwitch = cast<CatchSwitchInst>(I);
2872 const PHINode &PN = cast<PHINode>(I);
2895 const LandingPadInst &LP = cast<LandingPadInst>(I);
2912 const AllocaInst &AI = cast<AllocaInst>(I);
2928 if (cast<LoadInst>(I).isAtomic()) {
2937 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1);
2938 Vals.push_back(cast<LoadInst>(I).isVolatile());
2939 if (cast<LoadInst>(I).isAtomic()) {
2940 Vals.push_back(getEncodedOrdering(cast<LoadInst>(I).getOrdering()));
2941 Vals.push_back(getEncodedSyncScopeID(cast<LoadInst>(I).getSyncScopeID()));
2945 if (cast<StoreInst>(I).isAtomic())
2951 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1);
2952 Vals.push_back(cast<StoreInst>(I).isVolatile());
2953 if (cast<StoreInst>(I).isAtomic()) {
2954 Vals.push_back(getEncodedOrdering(cast<StoreInst>(I).getOrdering()));
2956 getEncodedSyncScopeID(cast<StoreInst>(I).getSyncScopeID()));
2964 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile());
2966 getEncodedOrdering(cast<AtomicCmpXchgInst>(I).getSuccessOrdering()));
2968 getEncodedSyncScopeID(cast<AtomicCmpXchgInst>(I).getSyncScopeID()));
2970 getEncodedOrdering(cast<AtomicCmpXchgInst>(I).getFailureOrdering()));
2971 Vals.push_back(cast<AtomicCmpXchgInst>(I).isWeak());
2978 getEncodedRMWOperation(cast<AtomicRMWInst>(I).getOperation()));
2979 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile());
2980 Vals.push_back(getEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering()));
2982 getEncodedSyncScopeID(cast<AtomicRMWInst>(I).getSyncScopeID()));
2986 Vals.push_back(getEncodedOrdering(cast<FenceInst>(I).getOrdering()));
2987 Vals.push_back(getEncodedSyncScopeID(cast<FenceInst>(I).getSyncScopeID()));
2990 const CallInst &CI = cast<CallInst>(I);
lib/CodeGen/GlobalISel/IRTranslator.cpp 200 auto &C = cast<Constant>(Val);
209 bool Success = translate(cast<Constant>(Val), VRegs->front());
298 const Instruction &I = cast<Instruction>(U);
314 const Instruction &I = cast<Instruction>(U);
329 const Instruction &I = cast<Instruction>(U);
344 cast<ConstantExpr>(U).getPredicate());
363 const ReturnInst &RI = cast<ReturnInst>(U);
385 const BranchInst &BrInst = cast<BranchInst>(U);
438 const SwitchInst &SI = cast<SwitchInst>(U);
838 const IndirectBrInst &BrInst = cast<IndirectBrInst>(U);
860 const LoadInst &LI = cast<LoadInst>(U);
903 const StoreInst &SI = cast<StoreInst>(U);
1008 const SelectInst &SI = cast<SelectInst>(U);
1318 const DbgDeclareInst &DI = cast<DbgDeclareInst>(CI);
1345 const DbgLabelInst &DI = cast<DbgLabelInst>(CI);
1373 const DbgValueInst &DI = cast<DbgValueInst>(CI);
1527 const InlineAsm &IA = cast<InlineAsm>(*CI.getCalledValue());
1585 const CallInst &CI = cast<CallInst>(U);
1671 const InvokeInst &I = cast<InvokeInst>(U);
1728 const LandingPadInst &LP = cast<LandingPadInst>(U);
1786 auto &AI = cast<AllocaInst>(U);
1928 const PHINode &PI = cast<PHINode>(U);
1942 const AtomicCmpXchgInst &I = cast<AtomicCmpXchgInst>(U);
1973 const AtomicRMWInst &I = cast<AtomicRMWInst>(U);
2041 const FenceInst &Fence = cast<FenceInst>(U);
lib/CodeGen/InterleavedLoadCombinePass.cpp 1112 return cast<LoadInst>(FLI);
lib/CodeGen/MachineOptimizationRemarkEmitter.cpp 50 auto &OptDiag = cast<DiagnosticInfoMIROptimization>(OptDiagCommon);
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 1104 LoadSDNode *LD = cast<LoadSDNode>(Op);
3347 ConstValue0 = cast<ConstantSDNode>(N0)->getAPIntValue();
3348 N0IsOpaqueConst = cast<ConstantSDNode>(N0)->isOpaque();
3352 ConstValue1 = cast<ConstantSDNode>(N1)->getAPIntValue();
3353 N1IsOpaqueConst = cast<ConstantSDNode>(N1)->isOpaque();
4368 auto *SVN0 = cast<ShuffleVectorSDNode>(N0);
4369 auto *SVN1 = cast<ShuffleVectorSDNode>(N1);
4436 ISD::CondCode CC0 = cast<CondCodeSDNode>(N0CC)->get();
4437 ISD::CondCode CC1 = cast<CondCodeSDNode>(N1CC)->get();
4794 auto *Load = cast<LoadSDNode>(Op);
5234 ? cast<LoadSDNode>(N0.getOperand(0)) : cast<LoadSDNode>(N0);
5288 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
5714 const ShuffleVectorSDNode *SV0 = cast<ShuffleVectorSDNode>(N0);
5715 const ShuffleVectorSDNode *SV1 = cast<ShuffleVectorSDNode>(N1);
6906 ISD::CondCode NotCC = ISD::getSetCCInverse(cast<CondCodeSDNode>(CC)->get(),
8640 const APInt &C1 = cast<ConstantSDNode>(N1Elt)->getAPIntValue();
8641 const APInt &C2 = cast<ConstantSDNode>(N2Elt)->getAPIntValue();
8799 ISD::CondCode CC = cast<CondCodeSDNode>(N4)->get();
8959 APInt C = cast<ConstantSDNode>(Op)->getAPIntValue().zextOrTrunc(EVTBits);
9084 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
9290 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
9318 !cast<LoadSDNode>(N0)->isSimple()) &&
9331 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
9931 if (cast<ConstantSDNode>(ShAmt)->getAPIntValue().ugt(KnownZeroBits))
10017 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
10043 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
10108 EVT AssertVT = cast<VTSDNode>(N1)->getVT();
10241 auto *LN0 = cast<LoadSDNode>(N0);
10289 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
10375 EVT EVT = cast<VTSDNode>(N1)->getVT();
10464 EVT == cast<LoadSDNode>(N0)->getMemoryVT() &&
10465 ((!LegalOperations && cast<LoadSDNode>(N0)->isSimple() &&
10468 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
10481 EVT == cast<LoadSDNode>(N0)->getMemoryVT() &&
10482 ((!LegalOperations && cast<LoadSDNode>(N0)->isSimple()) &&
10484 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
10601 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue();
10708 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
10968 cast<BuildVectorSDNode>(N0)->isConstant())
11003 ((!LegalOperations && cast<LoadSDNode>(N0)->isSimple()) ||
11005 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
11160 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(N0);
11274 NewBits |= cast<ConstantSDNode>(Op)->getAPIntValue().
13091 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
13358 const APInt &AndConst = cast<ConstantSDNode>(AndOp1)->getAPIntValue();
13361 cast<ConstantSDNode>(Op1)->getAPIntValue() == AndConst.logBase2()) {
13693 APInt Offset1 = cast<ConstantSDNode>(Offset)->getAPIntValue();
13864 !cast<ConstantSDNode>(Inc)->isOpaque()) &&
13867 ConstantSDNode *ConstInc = cast<ConstantSDNode>(Inc);
14881 LoadSDNode *LD = cast<LoadSDNode>(N0);
14890 APInt Imm = cast<ConstantSDNode>(N1)->getAPIntValue();
14968 LoadSDNode *LD = cast<LoadSDNode>(Value);
15243 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal);
15287 auto *Ld = cast<LoadSDNode>(Val);
15331 if (cast<LoadSDNode>(Val)->isNonTemporal() != OtherLd->isNonTemporal())
15516 IsLoadSrc && cast<LoadSDNode>(StoredVal)->isNonTemporal();
15781 LoadSDNode *Ld = cast<LoadSDNode>(Val);
16054 const ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Value);
16193 !cast<ConstantSDNode>(Value)->isOpaque())) {
16894 auto *Shuf = cast<ShuffleVectorSDNode>(VecOp);
16999 LN0 = cast<LoadSDNode>(VecOp);
17035 LN0 = cast<LoadSDNode>(VecOp);
19032 ShuffleVectorSDNode *InnerSVN = cast<ShuffleVectorSDNode>(BC0);
19093 ShuffleVectorSDNode *OtherSV = cast<ShuffleVectorSDNode>(N0);
19310 uint64_t InsIdx = cast<ConstantSDNode>(N2)->getZExtValue();
19374 Ops[cast<ConstantSDNode>(N2)->getZExtValue() / Factor] = N1;
19483 Bits = cast<ConstantSDNode>(Elt)->getAPIntValue();
19485 Bits = cast<ConstantFPSDNode>(Elt)->getValueAPF().bitcastToAPInt();
19764 LoadSDNode *LLD = cast<LoadSDNode>(LHS);
19765 LoadSDNode *RLD = cast<LoadSDNode>(RHS);
20008 unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
lib/CodeGen/SelectionDAG/InstrEmitter.cpp 553 unsigned SubIdx = cast<ConstantSDNode>(N2)->getZExtValue();
584 const ConstantSDNode *SD = cast<ConstantSDNode>(N0);
652 unsigned SubIdx = cast<ConstantSDNode>(Op)->getZExtValue();
1059 const char *AsmStr = cast<ExternalSymbolSDNode>(AsmStrV)->getSymbol();
1147 const MDNode *MD = cast<MDNodeSDNode>(MDV)->getMD();
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 331 unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
351 unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
1598 unsigned Align = cast<ConstantSDNode>(Tmp3)->getZExtValue();
1637 ISD::CondCode CCCode = cast<CondCodeSDNode>(CC)->get();
1751 FrameIndexSDNode *StackPtrFI = cast<FrameIndexSDNode>(FIPtr);
1790 FrameIndexSDNode *StackPtrFI = cast<FrameIndexSDNode>(StackPtr);
1964 unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
2432 unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
3557 ISD::CondCode CCOp = cast<CondCodeSDNode>(CC)->get();
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp 2153 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp 4034 unsigned Alignment = cast<ConstantPoolSDNode>(FudgePtr)->getAlignment();
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp 538 unsigned Op = !cast<ConstantSDNode>(Arg)->isNullValue();
1158 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
2207 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
2226 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
3675 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 2275 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(V)->getMask();
2360 auto *SVN = cast<ShuffleVectorSDNode>(V);
2496 const ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op);
2920 LoadSDNode *LD = cast<LoadSDNode>(Op);
3464 const ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op);
5175 EVT EVT = cast<VTSDNode>(N2)->getVT();
5187 EVT EVT = cast<VTSDNode>(N2)->getVT();
5220 ConstantSDNode *C = cast<ConstantSDNode>(Op);
5489 if (SDValue V = FoldSetCC(VT, N1, N2, cast<CondCodeSDNode>(N3)->get(), DL))
5538 cast<ConstantSDNode>(Index)->getZExtValue()
5722 G = cast<GlobalAddressSDNode>(Src);
6085 isa<ConstantSDNode>(Src) && cast<ConstantSDNode>(Src)->isNullValue();
6806 LoadSDNode *LD = cast<LoadSDNode>(OrigLoad);
6939 StoreSDNode *ST = cast<StoreSDNode>(OrigStore);
8644 auto *Symbol = cast<ExternalSymbolSDNode>(Op)->getSymbol();
9164 EVT ExtVT = cast<VTSDNode>(Operands[1])->getVT().getVectorElementType();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 3342 hasOnlySelectUsers(cast<SelectInst>(I).getCondition())) {
3868 if (int64_t(Offset) >= 0 && cast<GEPOperator>(I).isInBounds())
3897 if (Offs.isNonNegative() && cast<GEPOperator>(I).isInBounds())
3939 if (PtrMemTy != PtrTy && !cast<GEPOperator>(I).isInBounds())
5397 Regs.emplace_back(cast<RegisterSDNode>(Op)->getReg(),
5701 const auto &MCI = cast<MemCpyInst>(I);
5721 const auto &MSI = cast<MemSetInst>(I);
5735 const auto &MMI = cast<MemMoveInst>(I);
5754 const AtomicMemCpyInst &MI = cast<AtomicMemCpyInst>(I);
5772 auto &MI = cast<AtomicMemMoveInst>(I);
5790 auto &MI = cast<AtomicMemSetInst>(I);
5807 const auto &DI = cast<DbgVariableIntrinsic>(I);
5886 const DbgLabelInst &DI = cast<DbgLabelInst>(I);
5896 const DbgValueInst &DI = cast<DbgValueInst>(I);
6141 visitConstrainedFPIntrinsic(cast<ConstrainedFPIntrinsic>(I));
6630 visitGCResult(cast<GCResultInst>(I));
6633 visitGCRelocate(cast<GCRelocateInst>(I));
8252 cast<ConstantSDNode>(AsmNodeOperands[CurOp])->getZExtValue();
8715 cast<ConstantSDNode>(IDVal)->getZExtValue(), DL, MVT::i64));
8718 cast<ConstantSDNode>(NBytesVal)->getZExtValue(), DL,
8775 unsigned NumArgs = cast<ConstantSDNode>(NArgVal)->getZExtValue();
8810 cast<ConstantSDNode>(IDVal)->getZExtValue(), dl, MVT::i64));
8813 cast<ConstantSDNode>(NBytesVal)->getZExtValue(), dl,
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 2045 unsigned Flags = cast<ConstantSDNode>(InOps[i])->getZExtValue();
2059 Flags = cast<ConstantSDNode>(InOps[CurOp])->getZExtValue();
2062 Flags = cast<ConstantSDNode>(InOps[CurOp])->getZExtValue();
2528 return cast<CondCodeSDNode>(N)->get() ==
2544 if (cast<VTSDNode>(N)->getVT() == VT)
2548 return VT == MVT::iPTR && cast<VTSDNode>(N)->getVT() == TLI->getPointerTy(DL);
3238 const ConstantInt *Val=cast<ConstantSDNode>(Imm)->getConstantIntValue();
3242 const ConstantFP *Val=cast<ConstantFPSDNode>(Imm)->getConstantFPValue();
lib/CodeGen/SelectionDAG/StatepointLowering.cpp 126 const unsigned FI = cast<FrameIndexSDNode>(SpillSlot)->getIndex();
377 int Index = cast<FrameIndexSDNode>(Loc)->getIndex();
402 MMO = getMachineMemOperand(MF, *cast<FrameIndexSDNode>(Loc));
612 SpillMap.SlotMap[V] = cast<FrameIndexSDNode>(Loc)->getIndex();
lib/CodeGen/SelectionDAG/TargetLowering.cpp 714 ArrayRef<int> ShuffleMask = cast<ShuffleVectorSDNode>(Op)->getMask();
780 Known.One = cast<ConstantSDNode>(Op)->getAPIntValue();
829 LoadSDNode *LD = cast<LoadSDNode>(Op);
949 ArrayRef<int> ShuffleMask = cast<ShuffleVectorSDNode>(Op)->getMask();
2374 ArrayRef<int> ShuffleMask = cast<ShuffleVectorSDNode>(Op)->getMask();
3697 auto *CFP = cast<ConstantFPSDNode>(N1);
5369 isFPImmLegal(neg(cast<ConstantFPSDNode>(Op)->getValueAPF()), VT,
5385 isFPImmLegal(neg(cast<ConstantFPSDNode>(N)->getValueAPF()), VT,
5472 APFloat V = cast<ConstantFPSDNode>(Op)->getValueAPF();
5483 APFloat V = cast<ConstantFPSDNode>(C)->getValueAPF();
lib/CodeGen/SjLjEHPrepare.cpp 231 cast<AllocaInst>(AfterAllocaInsPt)->isStaticAlloca())
337 PHIsToDemote.insert(cast<PHINode>(PN));
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 1196 const MCSectionMachO &SMO = cast<MCSectionMachO>(Section);
lib/CodeGen/WinEHPrepare.cpp 899 auto *NewI = cast<Instruction>(VT.second);
lib/ExecutionEngine/Interpreter/Execution.cpp 1006 PHINode *PN = cast<PHINode>(SF.CurInst);
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp 26 auto &F = cast<Function>(GV);
30 cast<GlobalVariable>(GV).setInitializer(nullptr);
34 auto &A = cast<GlobalAlias>(GV);
lib/ExecutionEngine/Orc/IndirectionUtils.cpp 309 NewF = cast<Function>(VMap[&OrigF]);
341 NewGV = cast<GlobalVariable>(VMap[&OrigGV]);
lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp 33 isa<Function>(cast<GlobalAlias>(GV).getAliasee()))
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp 1112 const auto &Obj = cast<ELFObjectFileBase>(O);
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h 41 return cast<object::COFFObjectFile>(Obj)
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h 298 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj),
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h 137 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID);
139 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj),
lib/IR/AsmWriter.cpp 3690 if ((isa<LoadInst>(I) && cast<LoadInst>(I).isAtomic()) ||
3691 (isa<StoreInst>(I) && cast<StoreInst>(I).isAtomic()))
3694 if (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isWeak())
3698 if ((isa<LoadInst>(I) && cast<LoadInst>(I).isVolatile()) ||
3699 (isa<StoreInst>(I) && cast<StoreInst>(I).isVolatile()) ||
3700 (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isVolatile()) ||
3701 (isa<AtomicRMWInst>(I) && cast<AtomicRMWInst>(I).isVolatile()))
3719 if (isa<BranchInst>(I) && cast<BranchInst>(I).isConditional()) {
3720 const BranchInst &BI(cast<BranchInst>(I));
3729 const SwitchInst& SI(cast<SwitchInst>(I));
lib/IR/Verifier.cpp 4332 visitConstrainedFPIntrinsic(cast<ConstrainedFPIntrinsic>(Call));
4337 visitDbgIntrinsic("declare", cast<DbgVariableIntrinsic>(Call));
4340 visitDbgIntrinsic("addr", cast<DbgVariableIntrinsic>(Call));
4343 visitDbgIntrinsic("value", cast<DbgVariableIntrinsic>(Call));
4346 visitDbgLabelIntrinsic("label", cast<DbgLabelInst>(Call));
4530 *cast<CallBase>(cast<GCRelocateInst>(Call).getStatepoint());
4587 GCRelocateInst &Relocate = cast<GCRelocateInst>(Call);
lib/Linker/IRMover.cpp 972 return cast<Constant>(I->second);
976 return cast<Constant>(I->second);
1091 return linkFunctionBody(cast<Function>(Dst), *F);
1093 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar);
1096 linkIndirectSymbolBody(cast<GlobalIndirectSymbol>(Dst), cast<GlobalIndirectSymbol>(Src));
1096 linkIndirectSymbolBody(cast<GlobalIndirectSymbol>(Dst), cast<GlobalIndirectSymbol>(Src));
lib/Linker/LinkModules.cpp 439 auto &Alias = cast<GlobalAlias>(GV);
lib/MC/ELFObjectWriter.cpp 523 Symbol = &cast<MCSymbolELF>(Value->getSymbol());
530 const auto &Symbol = cast<MCSymbolELF>(*MSD.Symbol);
656 const auto &Symbol = cast<MCSymbolELF>(S);
1206 cast<MCSectionELF>(*RelSection->getAssociatedSection()));
1282 const auto &Symbol = cast<MCSymbolELF>(*P.second);
1410 auto &Sec = cast<MCSectionELF>(Sym->getSection());
1450 const MCSectionELF &FixupSection = cast<MCSectionELF>(*Fragment->getParent());
1456 const auto &SymB = cast<MCSymbolELF>(RefB->getSymbol());
1537 const auto &SymA = cast<MCSymbolELF>(SA);
lib/MC/MCAssembler.cpp 292 return cast<MCDataFragment>(F).getContents().size();
294 return cast<MCRelaxableFragment>(F).getContents().size();
296 return cast<MCCompactEncodedInstFragment>(F).getContents().size();
298 auto &FF = cast<MCFillFragment>(F);
314 return cast<MCLEBFragment>(F).getContents().size();
317 return cast<MCPaddingFragment>(F).getSize();
323 const MCAlignFragment &AF = cast<MCAlignFragment>(F);
345 const MCOrgFragment &OF = cast<MCOrgFragment>(F);
374 return cast<MCDwarfLineAddrFragment>(F).getContents().size();
376 return cast<MCDwarfCallFrameFragment>(F).getContents().size();
378 return cast<MCCVInlineLineTableFragment>(F).getContents().size();
380 return cast<MCCVDefRangeFragment>(F).getContents().size();
517 const MCAlignFragment &AF = cast<MCAlignFragment>(F);
563 OS << cast<MCDataFragment>(F).getContents();
568 OS << cast<MCRelaxableFragment>(F).getContents();
573 OS << cast<MCCompactEncodedInstFragment>(F).getContents();
578 const MCFillFragment &FF = cast<MCFillFragment>(F);
610 const MCLEBFragment &LF = cast<MCLEBFragment>(F);
623 const MCSymbolIdFragment &SF = cast<MCSymbolIdFragment>(F);
630 const MCOrgFragment &OF = cast<MCOrgFragment>(F);
639 const MCDwarfLineAddrFragment &OF = cast<MCDwarfLineAddrFragment>(F);
644 const MCDwarfCallFrameFragment &CF = cast<MCDwarfCallFrameFragment>(F);
649 const auto &OF = cast<MCCVInlineLineTableFragment>(F);
654 const auto &DRF = cast<MCCVDefRangeFragment>(F);
682 const MCDataFragment &DF = cast<MCDataFragment>(F);
698 assert((cast<MCAlignFragment>(F).getValueSize() == 0 ||
699 cast<MCAlignFragment>(F).getValue() == 0) &&
703 assert((cast<MCFillFragment>(F).getValue() == 0) &&
1074 RelaxedFrag = relaxInstruction(Layout, *cast<MCRelaxableFragment>(I));
1078 *cast<MCDwarfLineAddrFragment>(I));
1083 *cast<MCDwarfCallFrameFragment>(I));
1086 RelaxedFrag = relaxLEB(Layout, *cast<MCLEBFragment>(I));
1089 RelaxedFrag = relaxPaddingFragment(Layout, *cast<MCPaddingFragment>(I));
1093 relaxCVInlineLineTable(Layout, *cast<MCCVInlineLineTableFragment>(I));
1096 RelaxedFrag = relaxCVDefRange(Layout, *cast<MCCVDefRangeFragment>(I));
lib/MC/MCELFStreamer.cpp 456 cast<MCSymbolELF>(symRef.getSymbol()).setType(ELF::STT_TLS);
lib/MC/MCExpr.cpp 47 auto Value = cast<MCConstantExpr>(*this).getValue();
48 auto PrintInHex = cast<MCConstantExpr>(*this).useHexFormat();
56 const MCSymbolRefExpr &SRE = cast<MCSymbolRefExpr>(*this);
76 const MCUnaryExpr &UE = cast<MCUnaryExpr>(*this);
91 const MCBinaryExpr &BE = cast<MCBinaryExpr>(*this);
lib/MC/MCObjectStreamer.cpp 654 const MCSymbolRefExpr &SRE = cast<MCSymbolRefExpr>(Offset);
lib/MC/MCStreamer.cpp 991 cast<MCTargetExpr>(Expr).visitUsedExpr(*this);
998 const MCBinaryExpr &BE = cast<MCBinaryExpr>(Expr);
1005 visitUsedSymbol(cast<MCSymbolRefExpr>(Expr).getSymbol());
1009 visitUsedExpr(*cast<MCUnaryExpr>(Expr).getSubExpr());
lib/MC/MachObjectWriter.cpp 62 if (cast<MCSymbolMachO>(S).isWeakDefinition())
220 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec);
399 IsAlias && cast<MCSymbolMachO>(OrigSymbol).isAltEntry();
489 const MCSectionMachO &Section = cast<MCSectionMachO>(*it->Section);
505 const MCSectionMachO &Section = cast<MCSectionMachO>(*it->Section);
521 const MCSectionMachO &Section = cast<MCSectionMachO>(*it->Section);
852 const auto &Sec = cast<MCSectionMachO>(Section);
lib/MC/WasmObjectWriter.cpp 434 const auto &FixupSection = cast<MCSectionWasm>(*Fragment->getParent());
447 const auto &SymB = cast<MCSymbolWasm>(RefB->getSymbol());
615 const auto &DataFrag = cast<MCDataFragment>(Frag);
1522 if (cast<MCAlignFragment>(AlignFrag).getAlignment() != (is64Bit() ? 8 : 4))
1540 const auto &DataFrag = cast<MCDataFragment>(Frag);
1556 const auto &TargetSym = cast<const MCSymbolWasm>(SymRef->getSymbol());
lib/MC/WinCOFFObjectWriter.cpp 368 if (cast<MCSymbolCOFF>(MCSym).isWeakExternal()) {
402 const MCSymbolCOFF &SymbolCOFF = cast<MCSymbolCOFF>(MCSym);
689 uint16_t Type = cast<MCSymbolCOFF>(SymA).getType();
lib/Object/SymbolSize.cpp 30 return cast<COFFObjectFile>(O).getSectionID(Sec);
36 return cast<COFFObjectFile>(O).getSymbolSectionID(Sym);
lib/ObjectYAML/MinidumpEmitter.cpp 179 DataEnd = layout(File, cast<MinidumpYAML::ExceptionStream>(S));
182 MemoryInfoListStream &InfoList = cast<MemoryInfoListStream>(S);
190 DataEnd = layout(File, cast<MemoryListStream>(S));
193 DataEnd = layout(File, cast<ModuleListStream>(S));
196 RawContentStream &Raw = cast<RawContentStream>(S);
205 SystemInfoStream &SystemInfo = cast<SystemInfoStream>(S);
213 File.allocateArray(arrayRefFromStringRef(cast<TextContentStream>(S).Text));
216 DataEnd = layout(File, cast<ThreadListStream>(S));
lib/ObjectYAML/MinidumpYAML.cpp 410 streamMapping(IO, llvm::cast<MinidumpYAML::ExceptionStream>(*S));
413 streamMapping(IO, llvm::cast<MemoryInfoListStream>(*S));
416 streamMapping(IO, llvm::cast<MemoryListStream>(*S));
419 streamMapping(IO, llvm::cast<ModuleListStream>(*S));
422 streamMapping(IO, llvm::cast<RawContentStream>(*S));
425 streamMapping(IO, llvm::cast<SystemInfoStream>(*S));
428 streamMapping(IO, llvm::cast<TextContentStream>(*S));
431 streamMapping(IO, llvm::cast<ThreadListStream>(*S));
440 return streamValidate(cast<RawContentStream>(*S));
lib/Target/AArch64/AArch64FastISel.cpp 3461 const auto *EVI = cast<ExtractValueInst>(Itr);
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 724 int FI = cast<FrameIndexSDNode>(N)->getIndex();
743 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
758 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
785 int FI = cast<FrameIndexSDNode>(N)->getIndex();
818 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
860 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
1036 int64_t ImmOff = (int64_t)cast<ConstantSDNode>(RHS)->getZExtValue();
lib/Target/AArch64/AArch64ISelLowering.cpp 2039 !isLegalArithImmed(cast<ConstantSDNode>(RHS)->getZExtValue())) {
2051 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS);
2070 cast<LoadSDNode>(LHS)->getExtensionType() == ISD::ZEXTLOAD &&
2071 cast<LoadSDNode>(LHS)->getMemoryVT() == MVT::i16 &&
2073 int16_t ValueofRHS = cast<ConstantSDNode>(RHS)->getZExtValue();
2934 StoreSDNode *StoreNode = cast<StoreSDNode>(Op);
4360 GlobalAddressSDNode *GN = cast<GlobalAddressSDNode>(Op);
4365 assert(cast<GlobalAddressSDNode>(Op)->getOffset() == 0 &&
4427 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
4514 const GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
4643 const GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
4662 const GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
5257 JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
5286 ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
5303 BlockAddressSDNode *BA = cast<BlockAddressSDNode>(Op);
6722 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(Op)->getMask();
9542 !cast<LoadSDNode>(N0)->isVolatile()) {
9543 LoadSDNode *LN0 = cast<LoadSDNode>(N0);
9595 BuildVectorSDNode *BV = cast<BuildVectorSDNode>(ConstVec);
9669 BuildVectorSDNode *BV = cast<BuildVectorSDNode>(ConstVec);
11413 unsigned CC = cast<ConstantSDNode>(CCVal)->getZExtValue();
lib/Target/AArch64/AArch64SelectionDAGInfo.cpp 71 int FI = cast<FrameIndexSDNode>(Ptr)->getIndex();
115 uint64_t ObjSize = cast<ConstantSDNode>(Size)->getZExtValue();
lib/Target/AArch64/AArch64StackTagging.cpp 371 MemSetInst *MSI = cast<MemSetInst>(BI);
lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp 132 cast<MCSymbolELF>(SymRef.getSymbol()).setType(ELF::STT_TLS);
lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp 137 const MCSectionMachO &RefSec = cast<MCSectionMachO>(Symbol.getSection());
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 312 if (promotedOpIsNSW(cast<Instruction>(I)))
315 if (promotedOpIsNUW(cast<Instruction>(I)))
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp 582 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue();
1173 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1248 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1430 ConstantSDNode *C = cast<ConstantSDNode>(Addr64);
1530 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1586 if (!cast<ConstantSDNode>(Offen)->getSExtValue() &&
1587 !cast<ConstantSDNode>(Idxen)->getSExtValue() &&
1588 !cast<ConstantSDNode>(Addr64)->getSExtValue()) {
1645 uint64_t COffsetVal = cast<ConstantSDNode>(N1)->getSExtValue();
1878 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
2212 const APInt &OffsetVal = cast<ConstantSDNode>(PtrOffset)->getAPIntValue();
lib/Target/AMDGPU/AMDGPUISelLowering.cpp 1196 GlobalAddressSDNode *G = cast<GlobalAddressSDNode>(Op);
1268 ISD::CondCode CCOpcode = cast<CondCodeSDNode>(CC)->get();
1459 LoadSDNode *Load = cast<LoadSDNode>(Op);
1484 StoreSDNode *Store = cast<StoreSDNode>(Op);
2962 EVT ExtVT = cast<VTSDNode>(N1)->getVT();
3568 ISD::CondCode NewCC = getSetCCInverse(cast<CondCodeSDNode>(CC)->get(),
lib/Target/AMDGPU/AMDGPUInline.cpp 217 auto IC = llvm::getInlineCost(cast<CallBase>(*CS.getInstruction()), Callee,
lib/Target/AMDGPU/AMDGPULibCalls.cpp 1329 if (cast<Instruction>(BBI) == XI) {
lib/Target/AMDGPU/R600ISelLowering.cpp 743 GlobalAddressSDNode *GSD = cast<GlobalAddressSDNode>(Op);
973 ISD::CondCode CCOpcode = cast<CondCodeSDNode>(CC)->get();
1008 ISD::CondCode CCOpcode = cast<CondCodeSDNode>(CC)->get();
1028 ISD::CondCode CCOpcode = cast<CondCodeSDNode>(CC)->get();
1230 StoreSDNode *StoreNode = cast<StoreSDNode>(Op);
1257 StoreNode = cast<StoreSDNode>(NewStore);
1387 LoadSDNode *Load = cast<LoadSDNode>(Op);
1442 LoadSDNode *LoadNode = cast<LoadSDNode>(Op);
1543 FrameIndexSDNode *FIN = cast<FrameIndexSDNode>(Op);
1785 unsigned Idx = cast<ConstantSDNode>(Swz[i])->getZExtValue();
1793 unsigned Idx = cast<ConstantSDNode>(Swz[i])->getZExtValue();
1916 unsigned Elt = cast<ConstantSDNode>(EltNo)->getZExtValue();
2146 ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset);
2158 if (cast<ConstantSDNode>(Imm)->getZExtValue())
lib/Target/AMDGPU/SIISelLowering.cpp 2924 GlobalAddressSDNode *GSD = cast<GlobalAddressSDNode>(Callee);
4703 const AddrSpaceCastSDNode *ASC = cast<AddrSpaceCastSDNode>(Op);
4773 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
4911 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op);
5067 GlobalAddressSDNode *GSD = cast<GlobalAddressSDNode>(Op);
5675 unsigned CachePolicy = cast<ConstantSDNode>(GLC)->getZExtValue();
5691 uint64_t InstOffset = cast<ConstantSDNode>(Ops[5])->getZExtValue();
6104 if (!isa<ConstantSDNode>(VIndex) || !cast<ConstantSDNode>(VIndex)->isNullValue())
6108 return cast<ConstantSDNode>(VOffset)->getSExtValue() +
6109 cast<ConstantSDNode>(SOffset)->getSExtValue() +
6110 cast<ConstantSDNode>(Offset)->getSExtValue();
6121 MemSDNode *M = cast<MemSDNode>(Op);
6198 MemSDNode *M = cast<MemSDNode>(Op);
6214 MemSDNode *M = cast<MemSDNode>(Op);
6269 auto *M = cast<MemSDNode>(Op);
6301 auto *M = cast<MemSDNode>(Op);
6321 auto *M = cast<MemSDNode>(Op);
6324 return lowerIntrinsicLoad(cast<MemSDNode>(Op), IsFormat, DAG, Ops);
6327 MemSDNode *M = cast<MemSDNode>(Op);
6357 MemSDNode *M = cast<MemSDNode>(Op);
6381 MemSDNode *M = cast<MemSDNode>(Op);
6435 auto *M = cast<MemSDNode>(Op);
6503 auto *M = cast<MemSDNode>(Op);
6577 auto *M = cast<MemSDNode>(Op);
6648 auto *M = cast<MemSDNode>(Op);
6669 auto *M = cast<MemSDNode>(Op);
6690 auto *M = cast<MemSDNode>(Op);
6857 MemSDNode *M = cast<MemSDNode>(Op);
6882 MemSDNode *M = cast<MemSDNode>(Op);
6907 MemSDNode *M = cast<MemSDNode>(Op);
6941 MemSDNode *M = cast<MemSDNode>(Op);
6986 MemSDNode *M = cast<MemSDNode>(Op);
7031 MemSDNode *M = cast<MemSDNode>(Op);
7066 auto *M = cast<MemSDNode>(Op);
7083 auto *M = cast<MemSDNode>(Op);
7179 int Offset = cast<ConstantSDNode>(N1)->getSExtValue();
7322 LoadSDNode *Load = cast<LoadSDNode>(Op);
7863 StoreSDNode *Store = cast<StoreSDNode>(Op);
7973 AtomicSDNode *AtomicNode = cast<AtomicSDNode>(Op);
8653 auto *M = cast<MemSDNode>(Src);
lib/Target/AMDGPU/SIInstrInfo.cpp 239 Offset0 = cast<ConstantSDNode>(Off0)->getZExtValue();
240 Offset1 = cast<ConstantSDNode>(Off1)->getZExtValue();
lib/Target/ARC/ARCISelDAGToDAG.cpp 52 const ConstantSDNode *CN = cast<ConstantSDNode>(N);
95 int FI = cast<FrameIndexSDNode>(Addr)->getIndex();
115 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
lib/Target/ARC/ARCISelLowering.cpp 211 auto *N = cast<JumpTableSDNode>(Op);
725 const GlobalAddressSDNode *GN = cast<GlobalAddressSDNode>(Op);
lib/Target/ARM/ARMCodeGenPrepare.cpp 1029 auto &CI = cast<ICmpInst>(I);
lib/Target/ARM/ARMFastISel.cpp 2521 const MemTransferInst &MTI = cast<MemTransferInst>(I);
2555 const MemSetInst &MSI = cast<MemSetInst>(I);
lib/Target/ARM/ARMISelDAGToDAG.cpp 105 const ConstantSDNode *CN = cast<ConstantSDNode>(N);
610 int FI = cast<FrameIndexSDNode>(N)->getIndex();
636 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
857 int FI = cast<FrameIndexSDNode>(N)->getIndex();
873 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
923 int FI = cast<FrameIndexSDNode>(N)->getIndex();
944 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
1035 Label = CurDAG->getTargetConstant(cast<ConstantSDNode>(N1)->getZExtValue(),
1144 int FI = cast<FrameIndexSDNode>(N)->getIndex();
1164 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
1224 int FI = cast<FrameIndexSDNode>(N)->getIndex();
1256 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
1286 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
1324 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
1448 int FI = cast<FrameIndexSDNode>(Base)->getIndex();
1786 unsigned Alignment = cast<ConstantSDNode>(Align)->getZExtValue();
2236 Alignment = cast<ConstantSDNode>(Align)->getZExtValue();
2520 Alignment = cast<ConstantSDNode>(Align)->getZExtValue();
2860 if (!isa<ConstantSDNode>(Zero) || !cast<ConstantSDNode>(Zero)->isNullValue() ||
3333 unsigned CC = (unsigned) cast<ConstantSDNode>(N2)->getZExtValue();
3446 (ARMCC::CondCodes)cast<ConstantSDNode>(ARMcc)->getZExtValue();
4709 unsigned Reg0 = cast<RegisterSDNode>(V0)->getReg();
4710 unsigned Reg1 = cast<RegisterSDNode>(V1)->getReg();
lib/Target/ARM/ARMISelLowering.cpp 2079 auto *GV = cast<GlobalAddressSDNode>(Callee)->getGlobal();
2984 ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
3028 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
3165 const auto *GA = cast<GlobalAddressSDNode>(Op);
3271 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
3440 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
3508 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
3536 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
4274 cast<ConstantSDNode>(RHS)->getZExtValue() == 0x80000000U &&
4801 int64_t Val1 = cast<ConstantSDNode>(*K1)->getSExtValue();
4802 int64_t Val2 = cast<ConstantSDNode>(*K2)->getSExtValue();
5012 if (cast<ConstantSDNode>(ARMcc)->getZExtValue() == ARMCC::PL)
5197 (ARMCC::CondCodes)cast<const ConstantSDNode>(ARMcc)->getZExtValue();
5250 (ARMCC::CondCodes)cast<const ConstantSDNode>(ARMcc)->getZExtValue();
5299 JumpTableSDNode *JT = cast<JumpTableSDNode>(Table);
6166 ISD::CondCode SetCCOpcode = cast<CondCodeSDNode>(CC)->get();
6358 IntCCToARMCC(cast<CondCodeSDNode>(Cond)->get()), DL, MVT::i32);
6513 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Op);
7019 Val = cast<ConstantSDNode>(N)->getZExtValue();
7072 bool BitSet = V.isUndef() ? false : cast<ConstantSDNode>(V)->getZExtValue();
8182 unsigned Index = cast<ConstantSDNode>(V2)->getZExtValue();
9019 if (isStrongerThanMonotonic(cast<AtomicSDNode>(Op)->getOrdering()))
12227 unsigned ShAmtC = cast<ConstantSDNode>(ShAmt)->getZExtValue();
13502 BuildVectorSDNode *BV = cast<BuildVectorSDNode>(ConstVec);
13560 BuildVectorSDNode *BV = cast<BuildVectorSDNode>(ConstVec);
14214 (ARMCC::CondCodes)cast<ConstantSDNode>(ARMcc)->getZExtValue();
14254 (ARMCC::CondCodes)cast<ConstantSDNode>(ARMcc)->getZExtValue();
lib/Target/AVR/AVRISelLowering.cpp 402 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
403 int64_t Offset = cast<GlobalAddressSDNode>(Op)->getOffset();
414 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
lib/Target/BPF/BPFISelLowering.cpp 553 auto N = cast<GlobalAddressSDNode>(Op);
lib/Target/Hexagon/HexagonCommonGEP.cpp 423 GetElementPtrInst *GepI = cast<GetElementPtrInst>(J);
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp 579 int32_t ShlConst = cast<ConstantSDNode>(Shl_1)->getSExtValue();
1284 int FX = cast<FrameIndexSDNode>(N)->getIndex();
1334 int32_t V = cast<const ConstantSDNode>(N)->getZExtValue();
1355 if (LogAlign > 2 || !IsAligned(cast<BlockAddressSDNode>(N)->getOffset()))
1457 LoadSDNode *L = cast<LoadSDNode>(N);
1693 cast<ConstantSDNode>(L.Value)->getSExtValue() == 1)
1696 cast<ConstantSDNode>(L.Value)->getSExtValue() == 0)
lib/Target/Hexagon/HexagonISelLowering.cpp 919 ConstantPoolSDNode *CPN = cast<ConstantPoolSDNode>(Op);
944 assert(cast<ConstantPoolSDNode>(T)->getTargetFlags() == TF &&
955 int Idx = cast<JumpTableSDNode>(Op)->getIndex();
1017 auto *GAN = cast<GlobalAddressSDNode>(Op);
1050 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
1214 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
1912 const auto *SVN = cast<ShuffleVectorSDNode>(Op);
2966 int Idx = cast<JumpTableSDNode>(Table)->getIndex();
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp 1508 VectorPair Vals = opSplit(cast<StoreSDNode>(Op)->getValue(), dl, DAG);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 630 auto *PN = cast<PHINode>(I);
1452 auto *PN = cast<PHINode>(P);
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp 78 Instruction* Use = cast<Instruction>(*UI);
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp 730 auto *PN = cast<PHINode>(I);
lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp 729 auto &RF = cast<MCRelaxableFragment>(*K);
lib/Target/Hexagon/MCTargetDesc/HexagonMCExpr.cpp 68 cast<MCSymbolELF>(symRef.getSymbol()).setType(ELF::STT_TLS);
lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp 279 const auto &HExpr = cast<HexagonMCExpr>(Expr);
777 HexagonMCExpr &HExpr = const_cast<HexagonMCExpr &>(cast<HexagonMCExpr>(Expr));
782 HexagonMCExpr const &HExpr = cast<HexagonMCExpr>(Expr);
786 HexagonMCExpr &HExpr = const_cast<HexagonMCExpr &>(cast<HexagonMCExpr>(Expr));
790 HexagonMCExpr const &HExpr = cast<HexagonMCExpr>(Expr);
lib/Target/Lanai/LanaiISelLowering.cpp 803 ISD::CondCode SetCCOpcode = cast<CondCodeSDNode>(CC)->get();
1128 ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
1161 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
1162 int64_t Offset = cast<GlobalAddressSDNode>(Op)->getOffset();
1195 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
1211 JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
lib/Target/MSP430/MSP430ISelDAGToDAG.cpp 162 AM.BlockAddr = cast<BlockAddressSDNode>(N0)->getBlockAddress();
189 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
203 AM.Base.FrameIndex = cast<FrameIndexSDNode>(N)->getIndex();
358 LoadSDNode *LD = cast<LoadSDNode>(N1);
364 MachineMemOperand *MemRef = cast<MemSDNode>(N1)->getMemOperand();
lib/Target/MSP430/MSP430ISelLowering.cpp 998 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
999 int64_t Offset = cast<GlobalAddressSDNode>(Op)->getOffset();
1010 const char *Sym = cast<ExternalSymbolSDNode>(Op)->getSymbol();
1021 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
1158 switch (cast<ConstantSDNode>(TargetCC)->getZExtValue()) {
1314 JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
lib/Target/Mips/AsmParser/MipsAsmParser.cpp 2853 cast<MCSymbolELF>(Res.getSymA()->getSymbol()).getBinding() ==
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp 571 if (cast<MCSymbolELF>(Sym).getOther() & ELF::STO_MIPS_MICROMIPS)
582 if (cast<MCSymbolELF>(Sym).getOther() & ELF::STO_MIPS_MICROMIPS)
lib/Target/Mips/MCTargetDesc/MipsMCExpr.cpp 240 cast<MCSymbolELF>(SymRef.getSymbol()).setType(ELF::STT_TLS);
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp 971 const auto &RhsSym = cast<MCSymbolELF>(
lib/Target/Mips/Mips16ISelLowering.cpp 495 ExternalSymbolSDNode *S = cast<ExternalSymbolSDNode>(JumpTarget);
lib/Target/Mips/MipsISelLowering.cpp 1917 (Mips::CondCode)cast<ConstantSDNode>(CCNode)->getZExtValue();
1956 GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
2002 BlockAddressSDNode *N = cast<BlockAddressSDNode>(Op);
2019 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
2097 JumpTableSDNode *N = cast<JumpTableSDNode>(Op);
2110 ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
2553 LoadSDNode *LD = cast<LoadSDNode>(Op);
2679 StoreSDNode *SD = cast<StoreSDNode>(Op);
lib/Target/Mips/MipsSEISelLowering.cpp 508 EVT ExtendTy = cast<VTSDNode>(Op0Op2)->getVT();
1174 LoadSDNode &Nd = *cast<LoadSDNode>(Op);
1203 StoreSDNode &Nd = *cast<StoreSDNode>(Op);
2461 BuildVectorSDNode *Node = cast<BuildVectorSDNode>(Op);
2986 ShuffleVectorSDNode *Node = cast<ShuffleVectorSDNode>(Op);
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 2107 OS << cast<MCConstantExpr>(Expr).getValue();
2111 const MCSymbolRefExpr &SRE = cast<MCSymbolRefExpr>(Expr);
2118 const MCUnaryExpr &UE = cast<MCUnaryExpr>(Expr);
2130 const MCBinaryExpr &BE = cast<MCBinaryExpr>(Expr);
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp 2160 unsigned OffsetVal = cast<ConstantSDNode>(Offset)->getZExtValue();
2175 unsigned OffsetVal = cast<ConstantSDNode>(Offset)->getZExtValue();
2245 unsigned ParamVal = cast<ConstantSDNode>(Param)->getZExtValue();
2247 unsigned OffsetVal = cast<ConstantSDNode>(Offset)->getZExtValue();
lib/Target/NVPTX/NVPTXISelLowering.cpp 1252 const GlobalAddressSDNode *GAN = cast<GlobalAddressSDNode>(Op);
2231 LoadSDNode *Load = cast<LoadSDNode>(Op);
2267 StoreSDNode *Store = cast<StoreSDNode>(Op);
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp 439 unsigned Other = cast<MCSymbolELF>(Sym).getOther() << 2;
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp 210 const auto &RhsSym = cast<MCSymbolELF>(Ref->getSymbol());
lib/Target/PowerPC/PPCISelDAGToDAG.cpp 1411 LoadSDNode *LD = cast<LoadSDNode>(V);
5510 uint64_t True = cast<ConstantSDNode>(TrueRes)->getZExtValue(),
5511 False = cast<ConstantSDNode>(FalseRes)->getZExtValue();
lib/Target/PowerPC/PPCISelLowering.cpp 2147 int Val = cast<ConstantSDNode>(UniquedVals[Multiple-1])->getZExtValue();
2154 int Val =cast<ConstantSDNode>(UniquedVals[Multiple-1])->getSExtValue();
2708 ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
2785 JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
2813 BlockAddressSDNode *BASDN = cast<BlockAddressSDNode>(Op);
2844 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
2938 GlobalAddressSDNode *GSDN = cast<GlobalAddressSDNode>(Op);
4987 GlobalAddressSDNode *G = cast<GlobalAddressSDNode>(Callee);
5254 cast<RegisterSDNode>(Callee)->getReg() == PPC::CTR) ||
5313 GlobalAddressSDNode *G = cast<GlobalAddressSDNode>(Callee);
5370 cast<GlobalAddressSDNode>(Callee)->getGlobal();
7116 LoadSDNode *LD = cast<LoadSDNode>(Op);
7141 StoreSDNode *ST = cast<StoreSDNode>(Op);
7376 int FI = cast<FrameIndexSDNode>(FIPtr)->getIndex();
7853 assert(cast<StoreSDNode>(Store)->getMemoryVT() == MVT::i32 &&
7905 assert(cast<StoreSDNode>(Store)->getMemoryVT() == MVT::i32 &&
8885 ShuffleVectorSDNode *SVOp = cast<ShuffleVectorSDNode>(Op);
10085 LoadSDNode *LD = cast<LoadSDNode>(LdOp);
10098 LoadSDNode *LD = cast<LoadSDNode>(Op0);
11732 int FI = cast<FrameIndexSDNode>(Loc)->getIndex();
11733 int BFI = cast<FrameIndexSDNode>(BaseLoc)->getIndex();
13889 LoadSDNode *LD = cast<LoadSDNode>(Load);
14013 unsigned Val = cast<ConstantSDNode>(RHS)->getZExtValue();
14037 unsigned Val = cast<ConstantSDNode>(RHS)->getZExtValue();
lib/Target/PowerPC/PPCTargetTransformInfo.cpp 438 CastInst *CI = cast<CastInst>(J);
lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp 245 cast<MCSymbolELF>(SymRef.getSymbol()).setType(ELF::STT_TLS);
lib/Target/RISCV/RISCVISelLowering.cpp 471 GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
491 BlockAddressSDNode *N = cast<BlockAddressSDNode>(Op);
498 ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
580 GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
2198 int FI = cast<FrameIndexSDNode>(SpillSlot)->getIndex();
lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp 186 cast<MCSymbolELF>(SymRef.getSymbol()).setType(ELF::STT_TLS);
lib/Target/Sparc/SparcISelDAGToDAG.cpp 224 unsigned Reg0 = cast<RegisterSDNode>(V0)->getReg();
225 unsigned Reg1 = cast<RegisterSDNode>(V1)->getReg();
lib/Target/Sparc/SparcISelLowering.cpp 2018 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
2981 if (isStrongerThanMonotonic(cast<AtomicSDNode>(Op)->getOrdering()))
3082 return bitcastConstantFPToInt(cast<ConstantFPSDNode>(Src), dl, DCI.DAG);
lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.cpp 162 const MCSymbolRefExpr &refExp = cast<MCSymbolRefExpr>(*MO.getExpr());
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp 473 cast<ConstantSDNode>(Op0)->getSExtValue());
476 cast<ConstantSDNode>(Op1)->getSExtValue());
485 uint64_t Offset = (cast<GlobalAddressSDNode>(Full)->getOffset() -
486 cast<GlobalAddressSDNode>(Anchor)->getOffset());
575 cast<ConstantSDNode>(Addr)->getSExtValue()))
632 int64_t FrameIndex = cast<FrameIndexSDNode>(Base)->getIndex();
1262 LoadNode = cast<LoadSDNode>(Load);
1548 isInt<16>(cast<ConstantSDNode>(Op1)->getSExtValue()) &&
1550 isInt<16>(cast<ConstantSDNode>(Op0)->getSExtValue())))) {
lib/Target/SystemZ/SystemZISelLowering.cpp 1508 int FI = cast<FrameIndexSDNode>(SpillSlot)->getIndex();
1988 auto *Load = cast<LoadSDNode>(C.Op0);
1995 auto *ConstOp1 = cast<ConstantSDNode>(C.Op1);
2188 cast<ConstantSDNode>(C.Op1)->getZExtValue() == 0) {
2213 cast<ConstantSDNode>(C.Op1)->getZExtValue() == 0) {
2484 uint64_t Constant = cast<ConstantSDNode>(CmpOp1)->getZExtValue();
2806 cast<ConstantSDNode>(C.Op1)->getZExtValue() == 0) {
3410 int64_t Value = int32_t(cast<ConstantSDNode>(LowOp)->getZExtValue());
4570 if (Op.getOpcode() == ISD::LOAD && cast<LoadSDNode>(Op)->isUnindexed())
4810 uint64_t Index = cast<ConstantSDNode>(Op2)->getZExtValue();
4939 return lowerGlobalAddress(cast<GlobalAddressSDNode>(Op), DAG);
4941 return lowerGlobalTLSAddress(cast<GlobalAddressSDNode>(Op), DAG);
4943 return lowerBlockAddress(cast<BlockAddressSDNode>(Op), DAG);
4945 return lowerJumpTable(cast<JumpTableSDNode>(Op), DAG);
4947 return lowerConstantPool(cast<ConstantPoolSDNode>(Op), DAG);
5656 LoadSDNode *LD = cast<LoadSDNode>(Load);
5845 LoadSDNode *LD = cast<LoadSDNode>(Load);
lib/Target/SystemZ/SystemZTDC.cpp 319 convertFCmp(cast<CmpInst>(I));
321 convertICmp(cast<CmpInst>(I));
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp 69 auto& SymA = cast<MCSymbolWasm>(RefA->getSymbol());
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp 793 GlobalAddressSDNode* GA = cast<GlobalAddressSDNode>(Callee);
1049 int FI = cast<FrameIndexSDNode>(Op)->getIndex();
1092 const auto *GA = cast<GlobalAddressSDNode>(Op);
1138 const auto *ES = cast<ExternalSymbolSDNode>(Op);
1151 const JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
lib/Target/X86/X86FastISel.cpp 282 const auto *EVI = cast<ExtractValueInst>(Itr);
lib/Target/X86/X86ISelDAGToDAG.cpp 582 if (useNonTemporalLoad(cast<LoadSDNode>(N)))
1884 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
1897 if (!matchLoadInAddress(cast<LoadSDNode>(N), AM))
1906 AM.Base_FrameIndex = cast<FrameIndexSDNode>(N)->getIndex();
2204 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
2321 LoadSDNode *LD = cast<LoadSDNode>(N);
2336 auto *MI = cast<MemIntrinsicSDNode>(PatternNodeWithChain);
2350 LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain);
2387 cast<GlobalAddressSDNode>(N)->getGlobal()->getAbsoluteSymbolRange();
2525 const GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(N);
2827 LoadNode = cast<LoadSDNode>(Load);
3554 CurDAG->setNodeMemRefs(NewNode, {cast<LoadSDNode>(Input)->getMemOperand()});
3577 const ConstantInt *Val = cast<ConstantSDNode>(Imm)->getConstantIntValue();
3590 CurDAG->setNodeMemRefs(CNode, {cast<LoadSDNode>(N1)->getMemOperand()});
3610 const ConstantInt *Val = cast<ConstantSDNode>(Imm)->getConstantIntValue();
3624 CurDAG->setNodeMemRefs(CNode, {cast<LoadSDNode>(N2)->getMemOperand()});
3663 cast<ConstantSDNode>(Add1)->getZExtValue() % Size == 0) {
3669 cast<ConstantSDNode>(Add0)->getZExtValue() != 0 &&
3670 cast<ConstantSDNode>(Add0)->getZExtValue() % Size == 0) {
4185 auto *MemIntr = cast<MemIntrinsicSDNode>(Src);
4279 CurDAG->setNodeMemRefs(CNode, {cast<MemSDNode>(Load)->getMemOperand()});
4610 CurDAG->setNodeMemRefs(CNode, {cast<LoadSDNode>(N0)->getMemOperand()});
4684 CurDAG->setNodeMemRefs(CNode, {cast<LoadSDNode>(N1)->getMemOperand()});
4761 CurDAG->setNodeMemRefs(CNode, {cast<LoadSDNode>(N1)->getMemOperand()});
4860 CurDAG->setNodeMemRefs(Move, {cast<LoadSDNode>(N0)->getMemOperand()});
4919 CurDAG->setNodeMemRefs(CNode, {cast<LoadSDNode>(N1)->getMemOperand()});
5104 {cast<LoadSDNode>(Reg)->getMemOperand()});
lib/Target/X86/X86ISelLowering.cpp 3809 int FI = cast<FrameIndexSDNode>(SpillSlot)->getIndex();
4267 FrameIndexSDNode *FINode = cast<FrameIndexSDNode>(Arg);
5665 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
6141 auto *MemIntr = cast<MemIntrinsicSDNode>(Op);
6433 DecodeBLENDMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6441 cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6448 DecodeINSERTPSMask(cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6501 DecodePALIGNRMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6511 DecodePSLLDQMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6519 DecodePSRLDQMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6528 cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6534 DecodePSHUFHWMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6541 DecodePSHUFLWMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6595 DecodeVPERMMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6608 DecodeVPERM2X128Mask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6617 cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6872 ArrayRef<int> ShuffleMask = cast<ShuffleVectorSDNode>(N)->getMask();
7078 cast<ConstantSDNode>(InIndex)->getAPIntValue().uge(NumElts))
7100 cast<ConstantSDNode>(ExIndex)->getAPIntValue().uge(NumElts))
7745 auto *BaseLd = cast<LoadSDNode>(Elt);
8231 unsigned Alignment = cast<ConstantPoolSDNode>(CP)->getAlignment();
8255 unsigned Alignment = cast<ConstantPoolSDNode>(CP)->getAlignment();
8270 unsigned Alignment = cast<ConstantPoolSDNode>(VCP)->getAlignment();
8338 unsigned Alignment = cast<ConstantPoolSDNode>(CP)->getAlignment();
8381 int Idx = cast<ConstantSDNode>(ExtIdx)->getZExtValue();
8395 ShuffleVectorSDNode *SVOp = cast<ShuffleVectorSDNode>(ExtractedFromVec);
8489 Immediate |= (cast<ConstantSDNode>(In)->getZExtValue() & 0x1) << idx;
8520 Immediate |= (cast<ConstantSDNode>(In)->getZExtValue() & 0x1) << idx;
9680 unsigned InsertC = cast<ConstantSDNode>(InsIndex)->getZExtValue();
12589 } else if (MayFoldLoad(V) && cast<LoadSDNode>(V)->isSimple()) {
12600 LoadSDNode *Ld = cast<LoadSDNode>(V);
15046 cast<ShuffleVectorSDNode>(NewV1)->getMask() == Mask)
15063 cast<ShuffleVectorSDNode>(NewV2)->getMask() == Mask)
17044 ShuffleVectorSDNode *SVOp = cast<ShuffleVectorSDNode>(Op);
17349 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
17416 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
17737 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
17788 ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
17810 JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
17840 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
17841 int64_t Offset = cast<BlockAddressSDNode>(Op)->getOffset();
17869 const auto *ES = cast<ExternalSymbolSDNode>(Op);
18084 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
18494 LoadMMO = cast<LoadSDNode>(StackSlot)->getMemOperand();
18857 int SSFI = cast<FrameIndexSDNode>(StackSlot)->getIndex();
19941 unsigned CIdx = cast<ConstantSDNode>(Idx)->getZExtValue();
20392 ConstantSDNode *AndRHS = cast<ConstantSDNode>(Op1);
20528 ISD::CondCode SetCCOpcode = cast<CondCodeSDNode>(CC)->get();
20632 ISD::CondCode Cond = cast<CondCodeSDNode>(CC)->get();
21098 X86::CondCode CC = TranslateIntegerX86CC(cast<CondCodeSDNode>(Cond)->get());
21420 IllegalFPCMov = !hasFPCMov(cast<ConstantSDNode>(CC)->getSExtValue());
21467 unsigned CondCode = cast<ConstantSDNode>(CC)->getZExtValue();
22021 switch (cast<ConstantSDNode>(CC)->getZExtValue()) {
22475 auto *ND = cast<ConstantSDNode>(CurrentOp);
22487 auto *ND = cast<ConstantSDNode>(CurrentOp);
22499 auto *ND = cast<ConstantSDNode>(CurrentOp);
23553 auto *Fn = cast<Function>(cast<GlobalAddressSDNode>(Op1)->getGlobal());
23691 MemIntrinsicSDNode *MemIntr = cast<MemIntrinsicSDNode>(Op);
23728 MemIntrinsicSDNode *MemIntr = cast<MemIntrinsicSDNode>(Op);
23757 MemIntrinsicSDNode *MemIntr = cast<MemIntrinsicSDNode>(Op);
25721 ConstantSDNode *ND = cast<ConstantSDNode>(Op);
26713 MachineMemOperand *MMO = cast<AtomicSDNode>(Op)->getMemOperand();
27126 MachineMemOperand *MMO = cast<MemSDNode>(N)->getMemOperand();
32423 (cast<MemIntrinsicSDNode>(V1)->getMemoryVT().getScalarSizeInBits() %
32426 cast<MemIntrinsicSDNode>(V1)->getMemoryVT().getScalarSizeInBits() /
33516 LoadSDNode *LN = cast<LoadSDNode>(Src);
33616 unsigned InsertPSMask = cast<ConstantSDNode>(Op2)->getZExtValue();
33701 auto *MemIntr = cast<MemIntrinsicSDNode>(Op1);
35113 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue();
35147 LoadSDNode *LN0 = cast<LoadSDNode>(LdNode);
35324 if (!In.isUndef() && (cast<ConstantSDNode>(In)->getZExtValue() & 0x1))
35553 auto *BCast = cast<MemIntrinsicSDNode>(N0);
35608 return createMMXBuildVector(cast<BuildVectorSDNode>(N0), DAG, Subtarget);
35641 auto *C = cast<ConstantSDNode>(N0);
36066 auto *MemIntr = cast<MemIntrinsicSDNode>(SrcBC);
36579 ISD::getSetCCInverse(cast<CondCodeSDNode>(CC)->get(),
38335 APInt ShlConst = (cast<ConstantSDNode>(N01))->getAPIntValue();
38336 APInt SarConst = (cast<ConstantSDNode>(N1))->getAPIntValue();
38564 unsigned ShiftVal = cast<ConstantSDNode>(N1)->getZExtValue();
40791 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(Op)->getMask();
42105 EVT ExtraVT = cast<VTSDNode>(N1)->getVT();
42169 EVT ExtraVT = cast<VTSDNode>(N1)->getVT();
44506 auto *MemIntr = cast<MemIntrinsicSDNode>(SubVec);
44689 auto *MemIntr = cast<MemIntrinsicSDNode>(InVec);
44848 auto *Ld = cast<LoadSDNode>(In);
45119 auto *Ld = cast<LoadSDNode>(Load);
45132 auto *Ld = cast<AtomicSDNode>(Load);
lib/Target/XCore/XCoreISelLowering.cpp 280 const GlobalAddressSDNode *GN = cast<GlobalAddressSDNode>(Op);
314 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
323 ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
349 JumpTableSDNode *JT = cast<JumpTableSDNode>(Table);
412 LoadSDNode *LD = cast<LoadSDNode>(Op);
487 StoreSDNode *ST = cast<StoreSDNode>(Op);
938 AtomicSDNode *N = cast<AtomicSDNode>(Op);
969 AtomicSDNode *N = cast<AtomicSDNode>(Op);
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp 106 PHINode &Phi = cast<PHINode>(I);
lib/Transforms/Coroutines/CoroFrame.cpp 814 PHINode *PN = cast<PHINode>(I);
lib/Transforms/Coroutines/CoroSplit.cpp 374 auto *Switch = cast<SwitchInst>(VMap[Shape.SwitchLowering.ResumeSwitch]);
482 auto *MappedCS = cast<AnyCoroSuspendInst>(VMap[CS]);
492 auto NewCE = cast<CoroEndInst>(VMap[CE]);
527 auto MappedOp = VMap ? cast<CallInst>((*VMap)[Op]) : Op;
565 auto *Entry = cast<BasicBlock>(VMap[Shape.AllocaSpillBlock]);
590 cast<BasicBlock>(VMap[Shape.SwitchLowering.ResumeEntryBlock]);
600 auto MappedCS = cast<CoroSuspendRetconInst>(VMap[ActiveSuspend]);
735 Value *OldVFrame = cast<Value>(VMap[Shape.CoroBegin]);
769 coro::replaceCoroFree(cast<CoroIdInst>(VMap[Shape.CoroBegin->getId()]),
lib/Transforms/IPO/ArgumentPromotion.cpp 181 Indices.push_back(cast<ConstantInt>(*II)->getSExtValue());
443 Operands.push_back(cast<ConstantInt>(*II)->getSExtValue());
lib/Transforms/IPO/Attributor.cpp 424 IRPosition::callsite_function(cast<CallBase>(*ICS.getInstruction())));
481 assert(cast<CallBase>(*AnchorVal).arg_size() > unsigned(getArgNo()) &&
483 assert(cast<CallBase>(*AnchorVal).getArgOperand(getArgNo()) ==
1008 Changed = ReplaceCallSiteUsersWith(cast<CallBase>(AnchorValue), *RVCCast);
1115 ReturnInst &Ret = cast<ReturnInst>(I);
3984 Function &F = cast<Function>(getAnchorValue());
4846 IRPosition::value(*cast<LoadInst>(I).getPointerOperand()));
4849 IRPosition::value(*cast<StoreInst>(I).getPointerOperand()));
lib/Transforms/IPO/InlineSimple.cpp 72 cast<CallBase>(*CS.getInstruction()), Params, TTI, GetAssumptionCache,
lib/Transforms/IPO/Inliner.cpp 1016 return getInlineCost(cast<CallBase>(*CS.getInstruction()), Params,
lib/Transforms/IPO/MergeFunctions.cpp 325 Function *F1 = cast<Function>(*I);
326 Function *F2 = cast<Function>(*J);
347 Function *F3 = cast<Function>(*K);
429 Function *F = cast<Function>(I);
lib/Transforms/IPO/PartialInlining.cpp 779 InlineCost IC = getInlineCost(cast<CallBase>(*Call), getInlineParams(),
815 int NonWeightedSavings = getCallsiteCost(cast<CallBase>(*Call), DL);
975 ClonedOI->ReturnBlock = cast<BasicBlock>(VMap[OI->ReturnBlock]);
976 ClonedOI->NonReturnBlock = cast<BasicBlock>(VMap[OI->NonReturnBlock]);
978 ClonedOI->Entries.push_back(cast<BasicBlock>(VMap[BB]));
981 BasicBlock *NewE = cast<BasicBlock>(VMap[E]);
1006 Region.push_back(cast<BasicBlock>(VMap[BB]));
1008 BasicBlock *NewEntryBlock = cast<BasicBlock>(VMap[RegionInfo.EntryBlock]);
1009 BasicBlock *NewExitBlock = cast<BasicBlock>(VMap[RegionInfo.ExitBlock]);
1012 NewReturnBlock = cast<BasicBlock>(VMap[RegionInfo.ReturnBlock]);
lib/Transforms/IPO/SampleProfile.cpp 869 getInlineCost(cast<CallBase>(*I), Params, GetTTI(*CalledFunction), GetAC,
lib/Transforms/InstCombine/InstCombineCalls.cpp 4822 cast<CallInst>(Call).getTailCallKind());
4824 cast<CallInst>(Call).getCallingConv());
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 1195 if (mayIndexStructType(cast<GetElementPtrInst>(*I)))
lib/Transforms/InstCombine/InstructionCombining.cpp 1780 NewPN->addIncoming(cast<GEPOperator>(I)->getOperand(DI),
1896 cast<Constant>(*GEP.idx_begin())->isNullValue() &&
3421 auto *C = cast<Constant>(U);
lib/Transforms/Instrumentation/AddressSanitizer.cpp 1788 ConstantStruct *CS = cast<ConstantStruct>(OP);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp 1808 PN.addIncoming(V, cast<BasicBlock>(VMap[Pred]));
1831 cast<BasicBlock>(VMap[NewEntryBlock]),
lib/Transforms/Scalar/ADCE.cpp 427 collectLiveScopes(cast<DILocalScope>(*LS.getScope()));
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp 393 Changed |= processAssumption(cast<CallInst>(AssumeVH));
lib/Transforms/Scalar/CallSiteSplitting.cpp 406 cast<Instruction>(Mapping[CurrentI])->getParent());
lib/Transforms/Scalar/IndVarSimplify.cpp 1974 LoopPhis.push_back(cast<PHINode>(I));
2262 PHINode *Phi = cast<PHINode>(I);
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 1377 New.addBasicBlockToLoop(cast<BasicBlock>(VM[BB]), LI);
lib/Transforms/Scalar/InferAddressSpaces.cpp 224 const Operator &Op = cast<Operator>(V);
244 const Operator &Op = cast<Operator>(V);
247 auto IncomingValues = cast<PHINode>(Op).incoming_values();
702 const Operator &Op = cast<Operator>(V);
lib/Transforms/Scalar/JumpThreading.cpp 1879 cast<PHINode>(BB->front()).getNumIncomingValues()) {
lib/Transforms/Scalar/LoopDistribute.cpp 223 NewInst = cast<Instruction>(VMap[NewInst]);
lib/Transforms/Scalar/LoopInterchange.cpp 302 PHINode *PhiVar = cast<PHINode>(I);
lib/Transforms/Scalar/LoopStrengthReduce.cpp 3072 Instruction *IVOpInst = cast<Instruction>(*IVOpIter);
5407 PHINode *NewPN = cast<PHINode>(I);
lib/Transforms/Scalar/LoopUnswitch.cpp 920 New.addBasicBlockToLoop(cast<BasicBlock>(VM[*I]), *LI);
1309 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]);
lib/Transforms/Scalar/MemCpyOptimizer.cpp 345 MemSetInst *MSI = cast<MemSetInst>(BI);
lib/Transforms/Scalar/SROA.cpp 640 return foldSelectInst(cast<SelectInst>(I));
952 Uses.push_back(std::make_pair(cast<Instruction>(*U), Root));
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp 2687 auto &BI = cast<BranchInst>(TI);
lib/Transforms/Utils/BasicBlockUtils.cpp 647 cast<PHINode>(I)->addIncoming(UndefValue::get(I->getType()), NewBB);
lib/Transforms/Utils/BreakCriticalEdges.cpp 183 PHINode *PN = cast<PHINode>(I);
442 PHINode *DirPHI = cast<PHINode>(Direct);
443 PHINode *IndPHI = cast<PHINode>(Indirect);
lib/Transforms/Utils/CanonicalizeAliases.cpp 58 Ops.push_back(canonicalizeAlias(cast<Constant>(U), Changed));
lib/Transforms/Utils/CloneFunction.cpp 205 cast<BasicBlock>(VMap[&OldFunc->front()])->getIterator(),
525 BasicBlock *NewBB = cast<BasicBlock>(VMap[OldBB]);
532 PHINode *PN = cast<PHINode>(VMap[OPN]);
651 Function::iterator Begin = cast<BasicBlock>(VMap[StartingBB])->getIterator();
711 for (Function::iterator I = cast<BasicBlock>(VMap[StartingBB])->getIterator(),
820 DT->changeImmediateDominator(cast<BasicBlock>(VMap[BB]),
821 cast<BasicBlock>(VMap[IDomBB]));
lib/Transforms/Utils/CloneModule.cpp 123 GlobalVariable *GV = cast<GlobalVariable>(VMap[&*I]);
147 Function *F = cast<Function>(VMap[&I]);
178 GlobalAlias *GA = cast<GlobalAlias>(VMap[&*I]);
lib/Transforms/Utils/CodeExtractor.cpp 673 PHINode *PN = cast<PHINode>(AfterPHIs);
1546 PHINode *PN = cast<PHINode>(I);
1615 CallInst *I = cast<CallInst>(AssumeVH);
lib/Transforms/Utils/CtorUtils.cpp 72 ConstantStruct *CS = cast<ConstantStruct>(V);
97 ConstantStruct *CS = cast<ConstantStruct>(V);
lib/Transforms/Utils/DemoteRegToStack.cpp 99 InvokeInst &II = cast<InvokeInst>(I);
lib/Transforms/Utils/InlineFunction.cpp 121 PHINode *PHI = cast<PHINode>(I);
125 CallerLPad = cast<LandingPadInst>(I);
155 PHINode *phi = cast<PHINode>(I);
180 PHINode *OuterPHI = cast<PHINode>(I);
666 PHINode *PHI = cast<PHINode>(I);
867 MDTuple *TempM = cast<MDTuple>(MDMap[I]);
1845 !cast<AllocaInst>(I)->use_empty() &&
1846 allocaWouldBeStaticInEntry(cast<AllocaInst>(I))) {
1847 IFI.StaticAllocas.push_back(cast<AllocaInst>(I));
lib/Transforms/Utils/Local.cpp 655 PhiIt = &*++BasicBlock::iterator(cast<Instruction>(PhiIt));
774 PHINode *PN = cast<PHINode>(I);
1023 PHINode *PN = cast<PHINode>(I);
1478 auto *DbgII = cast<DbgVariableIntrinsic>(V->second);
lib/Transforms/Utils/LoopRotationUtils.cpp 543 if (!cast<GEPOperator>(I)->hasAllConstantIndices())
lib/Transforms/Utils/LoopSimplify.cpp 186 PHINode *PN = cast<PHINode>(I);
392 PHINode *PN = cast<PHINode>(I);
lib/Transforms/Utils/LoopUnroll.cpp 93 PN->setIncomingBlock(i, cast<BasicBlock>(It->second));
547 OrigPHINode.push_back(cast<PHINode>(I));
622 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHI]);
678 New, cast<BasicBlock>(LastValueMap[cast<Value>(OriginalBBIDom)]));
lib/Transforms/Utils/LoopUnrollAndJam.cpp 376 New, cast<BasicBlock>(LastValueMap[cast<Value>(OriginalBBIDom)]));
lib/Transforms/Utils/LoopUnrollPeel.cpp 501 DT->addNewBlock(NewBB, cast<BasicBlock>(VMap[IDom->getBlock()]));
510 InsertTop->getTerminator()->setSuccessor(0, cast<BasicBlock>(VMap[Header]));
517 BasicBlock *NewLatch = cast<BasicBlock>(VMap[Latch]);
536 PHINode *NewPHI = cast<PHINode>(VMap[&*I]);
547 cast<BasicBlock>(VMap[Header])->getInstList().erase(NewPHI);
560 PHI.addIncoming(LatchVal, cast<BasicBlock>(VMap[Edge.first]));
709 cast<BasicBlock>(LVMap[Exit.second]));
715 auto *LatchBRCopy = cast<BranchInst>(VMap[LatchBR]);
733 PHINode *PHI = cast<PHINode>(I);
lib/Transforms/Utils/LoopUnrollRuntime.cpp 85 BasicBlock *PrologLatch = cast<BasicBlock>(VMap[Latch]);
189 BasicBlock *EpilogLatch = cast<BasicBlock>(VMap[Latch]);
265 PHINode *VPN = cast<PHINode>(VMap[&PN]);
343 DT->addNewBlock(NewBB, cast<BasicBlock>(VMap[IDomBB]));
351 BasicBlock *FirstLoopBB = cast<BasicBlock>(VMap[Header]);
376 PHINode *NewPHI = cast<PHINode>(VMap[&*I]);
384 cast<BasicBlock>(VMap[Header])->getInstList().erase(NewPHI);
389 BasicBlock *NewLatch = cast<BasicBlock>(VMap[Latch]);
824 cast<BasicBlock>(VMap[Phi->getIncomingBlock(i)]));
lib/Transforms/Utils/LowerSwitch.cpp 215 PHINode *PN = cast<PHINode>(I);
380 PHINode* PN = cast<PHINode>(I);
lib/Transforms/Utils/SimplifyCFG.cpp 245 PHINode *PN = cast<PHINode>(BBI);
288 PHINode *PN = cast<PHINode>(BBI);
2916 if (cast<PHINode>(I)->getIncomingValueForBlock(BB) == V) {
2917 PHI = cast<PHINode>(I);
3326 PHINode *PN = cast<PHINode>(II);
3794 PHINode *PN = cast<PHINode>(BBI);
3978 PHINode *DestPN = cast<PHINode>(I);
4433 cast<PHINode>(BBI)->removeIncomingValue(SI->getParent());
4440 cast<PHINode>(BBI)->removeIncomingValue(SI->getParent());
lib/Transforms/Utils/SimplifyIndVar.cpp 952 Changed |= simplifyUsersOfIV(cast<PHINode>(I), SE, DT, LI, Dead, Rewriter);
lib/Transforms/Vectorize/SLPVectorizer.cpp 6390 IRBuilder<> Builder(cast<Instruction>(ReductionRoot));
6459 Builder.SetInsertPoint(cast<Instruction>(ReductionRoot));
tools/bugpoint/CrashDebugger.cpp 154 GlobalVariable *CMGV = cast<GlobalVariable>(VMap[GVs[i]]);
247 Function *CMF = cast<Function>(VMap[Funcs[i]]);
450 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]]));
569 Blocks.insert(cast<BasicBlock>(VMap[BB]));
673 Blocks.insert(cast<BasicBlock>(VMap[BB]));
766 Instructions.insert(cast<Instruction>(VMap[Insts[i]]));
tools/bugpoint/ExtractFunction.cpp 279 F = cast<Function>(VMap[F]);
325 Function *TNOF = cast<Function>(VMap[F[i]]);
329 TestFunctions.insert(cast<Function>(NewVMap[TNOF]));
340 GlobalVariable *GV = cast<GlobalVariable>(NewVMap[&I]);
tools/bugpoint/Miscompilation.cpp 272 Function *F = cast<Function>(VMap[Funcs[i]]);
345 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]);
375 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]);
507 Function *F = cast<Function>(VMap[FunctionsBeingTested[i]]);
511 BasicBlock *BB = cast<BasicBlock>(VMap[BBs[i]]);
tools/clang/examples/clang-interpreter/main.cpp 167 const driver::Command &Cmd = cast<driver::Command>(*Jobs.begin());
tools/clang/include/clang/AST/FormatString.h 561 return cast<PrintfConversionSpecifier>(CS);
666 return cast<ScanfConversionSpecifier>(CS);
tools/clang/include/clang/AST/Type.h 6951 return cast<PointerType>(Decayed)->getPointeeType();
tools/clang/lib/AST/ASTContext.cpp 4104 Canon = getSubstTemplateTypeParmPackType(cast<TemplateTypeParmType>(Canon),
6813 S += ObjCEncodingForEnumType(this, cast<EnumType>(CT));
6909 const auto *AT = cast<ArrayType>(CT);
6945 RecordDecl *RDecl = cast<RecordType>(CT)->getDecl();
tools/clang/lib/AST/ASTImporterLookupTable.cpp 38 Ty = cast<ElaboratedType>(Ty)->getNamedType();
tools/clang/lib/AST/ASTStructuralEquivalence.cpp 471 if (cast<BuiltinType>(T1)->getKind() != cast<BuiltinType>(T2)->getKind())
471 if (cast<BuiltinType>(T1)->getKind() != cast<BuiltinType>(T2)->getKind())
477 cast<ComplexType>(T1)->getElementType(),
478 cast<ComplexType>(T2)->getElementType()))
485 cast<AdjustedType>(T1)->getOriginalType(),
486 cast<AdjustedType>(T2)->getOriginalType()))
492 cast<PointerType>(T1)->getPointeeType(),
493 cast<PointerType>(T2)->getPointeeType()))
499 cast<BlockPointerType>(T1)->getPointeeType(),
500 cast<BlockPointerType>(T2)->getPointeeType()))
506 const auto *Ref1 = cast<ReferenceType>(T1);
507 const auto *Ref2 = cast<ReferenceType>(T2);
519 const auto *MemPtr1 = cast<MemberPointerType>(T1);
520 const auto *MemPtr2 = cast<MemberPointerType>(T2);
531 const auto *Array1 = cast<ConstantArrayType>(T1);
532 const auto *Array2 = cast<ConstantArrayType>(T2);
542 if (!IsArrayStructurallyEquivalent(Context, cast<ArrayType>(T1),
543 cast<ArrayType>(T2)))
548 const auto *Array1 = cast<VariableArrayType>(T1);
549 const auto *Array2 = cast<VariableArrayType>(T2);
561 const auto *Array1 = cast<DependentSizedArrayType>(T1);
562 const auto *Array2 = cast<DependentSizedArrayType>(T2);
574 const auto *DepAddressSpace1 = cast<DependentAddressSpaceType>(T1);
575 const auto *DepAddressSpace2 = cast<DependentAddressSpaceType>(T2);
587 const auto *Vec1 = cast<DependentSizedExtVectorType>(T1);
588 const auto *Vec2 = cast<DependentSizedExtVectorType>(T2);
599 const auto *Vec1 = cast<DependentVectorType>(T1);
600 const auto *Vec2 = cast<DependentVectorType>(T2);
614 const auto *Vec1 = cast<VectorType>(T1);
615 const auto *Vec2 = cast<VectorType>(T2);
627 const auto *Proto1 = cast<FunctionProtoType>(T1);
628 const auto *Proto2 = cast<FunctionProtoType>(T2);
656 const auto *Function1 = cast<FunctionType>(T1);
657 const auto *Function2 = cast<FunctionType>(T2);
669 cast<UnresolvedUsingType>(T1)->getDecl(),
670 cast<UnresolvedUsingType>(T2)->getDecl()))
676 cast<AttributedType>(T1)->getModifiedType(),
677 cast<AttributedType>(T2)->getModifiedType()))
680 Context, cast<AttributedType>(T1)->getEquivalentType(),
681 cast<AttributedType>(T2)->getEquivalentType()))
686 if (!IsStructurallyEquivalent(Context, cast<ParenType>(T1)->getInnerType(),
687 cast<ParenType>(T2)->getInnerType()))
693 Context, cast<MacroQualifiedType>(T1)->getUnderlyingType(),
694 cast<MacroQualifiedType>(T2)->getUnderlyingType()))
699 if (!IsStructurallyEquivalent(Context, cast<TypedefType>(T1)->getDecl(),
700 cast<TypedefType>(T2)->getDecl()))
706 Context, cast<TypeOfExprType>(T1)->getUnderlyingExpr(),
707 cast<TypeOfExprType>(T2)->getUnderlyingExpr()))
713 cast<TypeOfType>(T1)->getUnderlyingType(),
714 cast<TypeOfType>(T2)->getUnderlyingType()))
720 Context, cast<UnaryTransformType>(T1)->getUnderlyingType(),
721 cast<UnaryTransformType>(T2)->getUnderlyingType()))
727 cast<DecltypeType>(T1)->getUnderlyingExpr(),
728 cast<DecltypeType>(T2)->getUnderlyingExpr()))
733 if (!IsStructurallyEquivalent(Context, cast<AutoType>(T1)->getDeducedType(),
734 cast<AutoType>(T2)->getDeducedType()))
739 const auto *DT1 = cast<DeducedTemplateSpecializationType>(T1);
740 const auto *DT2 = cast<DeducedTemplateSpecializationType>(T2);
752 if (!IsStructurallyEquivalent(Context, cast<TagType>(T1)->getDecl(),
753 cast<TagType>(T2)->getDecl()))
758 const auto *Parm1 = cast<TemplateTypeParmType>(T1);
759 const auto *Parm2 = cast<TemplateTypeParmType>(T2);
772 const auto *Subst1 = cast<SubstTemplateTypeParmType>(T1);
773 const auto *Subst2 = cast<SubstTemplateTypeParmType>(T2);
785 const auto *Subst1 = cast<SubstTemplateTypeParmPackType>(T1);
786 const auto *Subst2 = cast<SubstTemplateTypeParmPackType>(T2);
798 const auto *Spec1 = cast<TemplateSpecializationType>(T1);
799 const auto *Spec2 = cast<TemplateSpecializationType>(T2);
814 const auto *Elab1 = cast<ElaboratedType>(T1);
815 const auto *Elab2 = cast<ElaboratedType>(T2);
829 const auto *Inj1 = cast<InjectedClassNameType>(T1);
830 const auto *Inj2 = cast<InjectedClassNameType>(T2);
839 const auto *Typename1 = cast<DependentNameType>(T1);
840 const auto *Typename2 = cast<DependentNameType>(T2);
852 const auto *Spec1 = cast<DependentTemplateSpecializationType>(T1);
853 const auto *Spec2 = cast<DependentTemplateSpecializationType>(T2);
872 cast<PackExpansionType>(T1)->getPattern(),
873 cast<PackExpansionType>(T2)->getPattern()))
878 const auto *Iface1 = cast<ObjCInterfaceType>(T1);
879 const auto *Iface2 = cast<ObjCInterfaceType>(T2);
887 const auto *Obj1 = cast<ObjCTypeParamType>(T1);
888 const auto *Obj2 = cast<ObjCTypeParamType>(T2);
903 const auto *Obj1 = cast<ObjCObjectType>(T1);
904 const auto *Obj2 = cast<ObjCObjectType>(T2);
919 const auto *Ptr1 = cast<ObjCObjectPointerType>(T1);
920 const auto *Ptr2 = cast<ObjCObjectPointerType>(T2);
928 if (!IsStructurallyEquivalent(Context, cast<AtomicType>(T1)->getValueType(),
929 cast<AtomicType>(T2)->getValueType()))
934 if (!IsStructurallyEquivalent(Context, cast<PipeType>(T1)->getElementType(),
935 cast<PipeType>(T2)->getElementType()))
tools/clang/lib/AST/DeclPrinter.cpp 410 cast<ElaboratedType>(BaseType)->getOwnedTagDecl() == Decls[0]) {
tools/clang/lib/AST/ExprConstant.cpp 6018 Result.addArray(Info, E, cast<ConstantArrayType>(AllocType));
tools/clang/lib/AST/FormatString.cpp 981 const TypedefNameDecl *Typedef = cast<TypedefType>(QT)->getDecl();
1007 Typedef = cast<TypedefType>(T)->getDecl();
tools/clang/lib/AST/ItaniumMangle.cpp 2037 mangleSourceNameWithAbiTags(cast<TypedefType>(Ty)->getDecl());
2042 cast<UnresolvedUsingType>(Ty)->getDecl());
2047 mangleSourceNameWithAbiTags(cast<TagType>(Ty)->getDecl());
2052 cast<TemplateSpecializationType>(Ty);
2097 cast<InjectedClassNameType>(Ty)->getDecl());
2101 mangleSourceName(cast<DependentNameType>(Ty)->getIdentifier());
2106 cast<DependentTemplateSpecializationType>(Ty);
2114 cast<ElaboratedType>(Ty)->getNamedType(), Prefix);
3050 switch (cast<BuiltinType>(EltType)->getKind()) {
3065 switch (cast<BuiltinType>(EltType)->getKind()) {
3148 switch (cast<BuiltinType>(EltType)->getKind()) {
3163 EltName = mangleAArch64VectorBase(cast<BuiltinType>(EltType));
tools/clang/lib/AST/Type.cpp 2232 dyn_cast<CXXRecordDecl>(cast<RecordType>(CanonicalType)->getDecl()))
tools/clang/lib/AST/VTableBuilder.cpp 315 cast<CXXRecordDecl>(cast<RecordType>(CanDerivedReturnType)->getDecl());
318 cast<CXXRecordDecl>(cast<RecordType>(CanBaseReturnType)->getDecl());
tools/clang/lib/Analysis/PathDiagnostic.cpp 86 auto &Call = cast<PathDiagnosticCallPiece>(*Piece);
95 auto &Macro = cast<PathDiagnosticMacroPiece>(*Piece);
296 return compareControlFlow(cast<PathDiagnosticControlFlowPiece>(X),
297 cast<PathDiagnosticControlFlowPiece>(Y));
299 return compareMacro(cast<PathDiagnosticMacroPiece>(X),
300 cast<PathDiagnosticMacroPiece>(Y));
302 return compareCall(cast<PathDiagnosticCallPiece>(X),
303 cast<PathDiagnosticCallPiece>(Y));
972 Out << Prefix << '\'' << cast<NamedDecl>(*D);
tools/clang/lib/CodeGen/CGCleanup.cpp 170 EHCleanupScope &cleanup = cast<EHCleanupScope>(*find(si));
206 EHCleanupScope &Cleanup = cast<EHCleanupScope>(*begin());
238 EHFilterScope &filter = cast<EHFilterScope>(*begin());
269 unsigned MinSize = cast<EHCleanupScope>(*it).getFixupDepth();
294 EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());
424 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
647 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
710 prebranchDest = CreateNormalEntry(*this, cast<EHCleanupScope>(enclosing));
823 BranchThroughDest = CreateNormalEntry(*this, cast<EHCleanupScope>(S));
1089 cast<EHCleanupScope>(*EHStack.find(TopCleanup));
1098 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I));
1123 if (cast<EHCleanupScope>(*EHStack.find(C)).getNormalBlock())
1131 EHCleanupScope &S = cast<EHCleanupScope>(*EHStack.find(I));
1174 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C));
1231 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1243 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
tools/clang/lib/CodeGen/CGCleanup.h 577 EHCatchScope &scope = cast<EHCatchScope>(*begin());
585 EHTerminateScope &scope = cast<EHTerminateScope>(*begin());
tools/clang/lib/CodeGen/CGDebugInfo.cpp 182 auto *Scope = cast<llvm::DIScope>(LexicalBlockStack.back());
720 return CreateType(cast<const BuiltinType>(CGM.getContext().IntTy));
1491 const PointerType *ThisPtrTy = cast<PointerType>(ThisPtr);
2070 if (I == TypeCache.end() || !cast<llvm::DIType>(I->second)->isForwardDecl())
2145 if (I != TypeCache.end() && !cast<llvm::DIType>(I->second)->isForwardDecl())
2376 return cast<llvm::DIModule>(ModRef->second);
2861 const auto *Spec = cast<TemplateSpecializationType>(T);
2868 T = cast<TypeOfExprType>(T)->getUnderlyingExpr()->getType();
2871 T = cast<TypeOfType>(T)->getUnderlyingType();
2874 T = cast<DecltypeType>(T)->getUnderlyingType();
2877 T = cast<UnaryTransformType>(T)->getUnderlyingType();
2880 T = cast<AttributedType>(T)->getEquivalentType();
2883 T = cast<ElaboratedType>(T)->getNamedType();
2886 T = cast<ParenType>(T)->getInnerType();
2889 T = cast<MacroQualifiedType>(T)->getUnderlyingType();
2892 T = cast<SubstTemplateTypeParmType>(T)->getReplacementType();
2896 QualType DT = cast<DeducedType>(T)->getDeducedType();
2904 T = cast<AdjustedType>(T)->getAdjustedType();
3015 return CreateType(cast<VectorType>(Ty), Unit);
3017 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit);
3019 return CreateType(cast<ObjCObjectType>(Ty), Unit);
3021 return CreateType(cast<ObjCTypeParamType>(Ty), Unit);
3023 return CreateType(cast<ObjCInterfaceType>(Ty), Unit);
3025 return CreateType(cast<BuiltinType>(Ty));
3027 return CreateType(cast<ComplexType>(Ty));
3029 return CreateType(cast<PointerType>(Ty), Unit);
3031 return CreateType(cast<BlockPointerType>(Ty), Unit);
3033 return CreateType(cast<TypedefType>(Ty), Unit);
3035 return CreateType(cast<RecordType>(Ty));
3037 return CreateEnumType(cast<EnumType>(Ty));
3040 return CreateType(cast<FunctionType>(Ty), Unit);
3044 return CreateType(cast<ArrayType>(Ty), Unit);
3047 return CreateType(cast<LValueReferenceType>(Ty), Unit);
3049 return CreateType(cast<RValueReferenceType>(Ty), Unit);
3052 return CreateType(cast<MemberPointerType>(Ty), Unit);
3055 return CreateType(cast<AtomicType>(Ty), Unit);
3058 return CreateType(cast<PipeType>(Ty), Unit);
3061 return CreateType(cast<TemplateSpecializationType>(Ty), Unit);
3640 cast<llvm::DICompositeType>(It->second);
3961 auto *Scope = cast<llvm::DIScope>(LexicalBlockStack.back());
4059 auto *Scope = cast<llvm::DIScope>(LexicalBlockStack.back());
4144 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit,
4326 auto *scope = cast<llvm::DILocalScope>(LexicalBlockStack.back());
4392 cast<llvm::DIGlobalVariableExpression>(Cached->second));
4599 return cast<llvm::DIImportedEntity>(VH);
4625 return cast<llvm::DINamespace>(I->second);
4657 auto *DIParm = cast<llvm::DILocalVariable>(I->second);
4685 cast<llvm::DICompositeType>(It->second);
4707 cast<llvm::DIType>(It->second));
4733 DBuilder.retainType(cast<llvm::DIType>(MD));
tools/clang/lib/CodeGen/CGDecl.cpp 117 DI->EmitNamespaceAlias(cast<NamespaceAliasDecl>(D));
121 DI->EmitUsingDecl(cast<UsingDecl>(D));
124 for (auto *Using : cast<UsingPackDecl>(D).expansions())
129 DI->EmitUsingDirective(cast<UsingDirectiveDecl>(D));
133 const VarDecl &VD = cast<VarDecl>(D);
152 const TypedefNameDecl &TD = cast<TypedefNameDecl>(D);
1247 if (containsUndef(cast<llvm::Constant>(Op)))
tools/clang/lib/CodeGen/CGException.cpp 546 EHFilterScope &filterScope = cast<EHFilterScope>(*EHStack.begin());
609 EHCatchScope &catchScope = cast<EHCatchScope>(scope);
690 return !cast<EHCleanupScope>(S).isEHCleanup();
802 hasCleanup = (hasCleanup || cast<EHCleanupScope>(*I).isEHCleanup());
810 EHFilterScope &filter = cast<EHFilterScope>(*I);
832 EHCatchScope &catchScope = cast<EHCatchScope>(*I);
1128 EHCatchScope &catchScope = cast<EHCatchScope>(*EHStack.begin());
1136 EHCatchScope &CatchScope = cast<EHCatchScope>(*EHStack.begin());
1418 EHCatchScope &catchScope = cast<EHCatchScope>(*CGF.EHStack.begin());
2040 EHCatchScope &CatchScope = cast<EHCatchScope>(*EHStack.begin());
tools/clang/lib/CodeGen/CGExpr.cpp 4785 auto PointeeType = cast<PointerType>(CalleeType)->getPointeeType();
4838 const auto *FnType = cast<FunctionType>(PointeeType);
tools/clang/lib/CodeGen/CGExprComplex.cpp 37 return cast<ComplexType>(cast<AtomicType>(type)->getValueType());
901 QualType ComplexElementTy = cast<ComplexType>(OpInfo.Ty)->getElementType();
tools/clang/lib/CodeGen/CGObjC.cpp 3441 const CompoundStmt &S = cast<CompoundStmt>(*subStmt);
tools/clang/lib/CodeGen/CGObjCMac.cpp 4152 cast<ObjCAtTryStmt>(S).getFinallyStmt()) {
4289 if (cast<llvm::CallBase>(I).doesNotThrow())
4463 CGF.EmitScalarExpr(cast<ObjCAtSynchronizedStmt>(S).getSynchExpr());
4534 CGF.EmitStmt(isTry ? cast<ObjCAtTryStmt>(S).getTryBody()
4535 : cast<ObjCAtSynchronizedStmt>(S).getSynchBody());
4547 if (!isTry || !cast<ObjCAtTryStmt>(S).getNumCatchStmts()) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 6751 CGF.EmitVarDecl(cast<VarDecl>(*I));
6754 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I));
6776 CGF.EmitVarDecl(cast<VarDecl>(*I));
6779 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I));
6849 CGF.EmitVarDecl(cast<VarDecl>(*I));
6852 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I));
9465 cast<OMPTargetDirective>(E));
9469 CGM, ParentName, cast<OMPTargetParallelDirective>(E));
9473 CGM, ParentName, cast<OMPTargetTeamsDirective>(E));
9477 CGM, ParentName, cast<OMPTargetTeamsDistributeDirective>(E));
9481 CGM, ParentName, cast<OMPTargetTeamsDistributeSimdDirective>(E));
9485 CGM, ParentName, cast<OMPTargetParallelForDirective>(E));
9489 CGM, ParentName, cast<OMPTargetParallelForSimdDirective>(E));
9493 CGM, ParentName, cast<OMPTargetSimdDirective>(E));
9498 cast<OMPTargetTeamsDistributeParallelForDirective>(E));
9504 cast<OMPTargetTeamsDistributeParallelForSimdDirective>(E));
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 4617 cast<OMPLoopDirective>(D).getLowerBoundVariable()->getExprLoc());
4627 cast<OMPLoopDirective>(D).getUpperBoundVariable()->getExprLoc());
tools/clang/lib/CodeGen/CGStmt.cpp 137 EmitIndirectGotoStmt(cast<IndirectGotoStmt>(*S)); break;
139 case Stmt::IfStmtClass: EmitIfStmt(cast<IfStmt>(*S)); break;
140 case Stmt::WhileStmtClass: EmitWhileStmt(cast<WhileStmt>(*S), Attrs); break;
141 case Stmt::DoStmtClass: EmitDoStmt(cast<DoStmt>(*S), Attrs); break;
142 case Stmt::ForStmtClass: EmitForStmt(cast<ForStmt>(*S), Attrs); break;
144 case Stmt::ReturnStmtClass: EmitReturnStmt(cast<ReturnStmt>(*S)); break;
146 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break;
148 case Stmt::MSAsmStmtClass: EmitAsmStmt(cast<AsmStmt>(*S)); break;
150 EmitCoroutineBody(cast<CoroutineBodyStmt>(*S));
153 EmitCoreturnStmt(cast<CoreturnStmt>(*S));
161 EmitObjCAtTryStmt(cast<ObjCAtTryStmt>(*S));
170 EmitObjCAtThrowStmt(cast<ObjCAtThrowStmt>(*S));
173 EmitObjCAtSynchronizedStmt(cast<ObjCAtSynchronizedStmt>(*S));
176 EmitObjCForCollectionStmt(cast<ObjCForCollectionStmt>(*S));
179 EmitObjCAutoreleasePoolStmt(cast<ObjCAutoreleasePoolStmt>(*S));
183 EmitCXXTryStmt(cast<CXXTryStmt>(*S));
186 EmitCXXForRangeStmt(cast<CXXForRangeStmt>(*S), Attrs);
189 EmitSEHTryStmt(cast<SEHTryStmt>(*S));
192 EmitOMPParallelDirective(cast<OMPParallelDirective>(*S));
195 EmitOMPSimdDirective(cast<OMPSimdDirective>(*S));
198 EmitOMPForDirective(cast<OMPForDirective>(*S));
201 EmitOMPForSimdDirective(cast<OMPForSimdDirective>(*S));
204 EmitOMPSectionsDirective(cast<OMPSectionsDirective>(*S));
207 EmitOMPSectionDirective(cast<OMPSectionDirective>(*S));
210 EmitOMPSingleDirective(cast<OMPSingleDirective>(*S));
213 EmitOMPMasterDirective(cast<OMPMasterDirective>(*S));
216 EmitOMPCriticalDirective(cast<OMPCriticalDirective>(*S));
219 EmitOMPParallelForDirective(cast<OMPParallelForDirective>(*S));
222 EmitOMPParallelForSimdDirective(cast<OMPParallelForSimdDirective>(*S));
225 EmitOMPParallelSectionsDirective(cast<OMPParallelSectionsDirective>(*S));
228 EmitOMPTaskDirective(cast<OMPTaskDirective>(*S));
231 EmitOMPTaskyieldDirective(cast<OMPTaskyieldDirective>(*S));
234 EmitOMPBarrierDirective(cast<OMPBarrierDirective>(*S));
237 EmitOMPTaskwaitDirective(cast<OMPTaskwaitDirective>(*S));
240 EmitOMPTaskgroupDirective(cast<OMPTaskgroupDirective>(*S));
243 EmitOMPFlushDirective(cast<OMPFlushDirective>(*S));
246 EmitOMPOrderedDirective(cast<OMPOrderedDirective>(*S));
249 EmitOMPAtomicDirective(cast<OMPAtomicDirective>(*S));
252 EmitOMPTargetDirective(cast<OMPTargetDirective>(*S));
255 EmitOMPTeamsDirective(cast<OMPTeamsDirective>(*S));
258 EmitOMPCancellationPointDirective(cast<OMPCancellationPointDirective>(*S));
261 EmitOMPCancelDirective(cast<OMPCancelDirective>(*S));
264 EmitOMPTargetDataDirective(cast<OMPTargetDataDirective>(*S));
267 EmitOMPTargetEnterDataDirective(cast<OMPTargetEnterDataDirective>(*S));
270 EmitOMPTargetExitDataDirective(cast<OMPTargetExitDataDirective>(*S));
273 EmitOMPTargetParallelDirective(cast<OMPTargetParallelDirective>(*S));
276 EmitOMPTargetParallelForDirective(cast<OMPTargetParallelForDirective>(*S));
279 EmitOMPTaskLoopDirective(cast<OMPTaskLoopDirective>(*S));
282 EmitOMPTaskLoopSimdDirective(cast<OMPTaskLoopSimdDirective>(*S));
285 EmitOMPMasterTaskLoopDirective(cast<OMPMasterTaskLoopDirective>(*S));
289 cast<OMPMasterTaskLoopSimdDirective>(*S));
293 cast<OMPParallelMasterTaskLoopDirective>(*S));
296 EmitOMPDistributeDirective(cast<OMPDistributeDirective>(*S));
299 EmitOMPTargetUpdateDirective(cast<OMPTargetUpdateDirective>(*S));
303 cast<OMPDistributeParallelForDirective>(*S));
307 cast<OMPDistributeParallelForSimdDirective>(*S));
310 EmitOMPDistributeSimdDirective(cast<OMPDistributeSimdDirective>(*S));
314 cast<OMPTargetParallelForSimdDirective>(*S));
317 EmitOMPTargetSimdDirective(cast<OMPTargetSimdDirective>(*S));
320 EmitOMPTeamsDistributeDirective(cast<OMPTeamsDistributeDirective>(*S));
324 cast<OMPTeamsDistributeSimdDirective>(*S));
328 cast<OMPTeamsDistributeParallelForSimdDirective>(*S));
332 cast<OMPTeamsDistributeParallelForDirective>(*S));
335 EmitOMPTargetTeamsDirective(cast<OMPTargetTeamsDirective>(*S));
339 cast<OMPTargetTeamsDistributeDirective>(*S));
343 cast<OMPTargetTeamsDistributeParallelForDirective>(*S));
347 cast<OMPTargetTeamsDistributeParallelForSimdDirective>(*S));
351 cast<OMPTargetTeamsDistributeSimdDirective>(*S));
360 case Stmt::CompoundStmtClass: EmitCompoundStmt(cast<CompoundStmt>(*S)); break;
361 case Stmt::DeclStmtClass: EmitDeclStmt(cast<DeclStmt>(*S)); break;
362 case Stmt::LabelStmtClass: EmitLabelStmt(cast<LabelStmt>(*S)); break;
364 EmitAttributedStmt(cast<AttributedStmt>(*S)); break;
365 case Stmt::GotoStmtClass: EmitGotoStmt(cast<GotoStmt>(*S)); break;
366 case Stmt::BreakStmtClass: EmitBreakStmt(cast<BreakStmt>(*S)); break;
367 case Stmt::ContinueStmtClass: EmitContinueStmt(cast<ContinueStmt>(*S)); break;
368 case Stmt::DefaultStmtClass: EmitDefaultStmt(cast<DefaultStmt>(*S)); break;
369 case Stmt::CaseStmtClass: EmitCaseStmt(cast<CaseStmt>(*S)); break;
370 case Stmt::SEHLeaveStmtClass: EmitSEHLeaveStmt(cast<SEHLeaveStmt>(*S)); break;
2283 UpdateAsmCallInst(cast<llvm::CallBase>(*Result), HasSideEffect, ReadOnly,
2289 UpdateAsmCallInst(cast<llvm::CallBase>(*Result), HasSideEffect, ReadOnly,
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 35 CGF.EmitVarDecl(cast<VarDecl>(*I));
38 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I));
165 CGF.EmitVarDecl(cast<VarDecl>(*I));
197 CGF.EmitVarDecl(cast<VarDecl>(*I));
200 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I));
2143 const OMPLoopDirective &LS = cast<OMPLoopDirective>(S);
2187 const OMPLoopDirective &LS = cast<OMPLoopDirective>(S);
2204 const auto &Dir = cast<OMPLoopDirective>(S);
2537 const auto &LS = cast<OMPLoopDirective>(S);
2552 const auto &LS = cast<OMPLoopDirective>(S);
4636 const auto &C = cast<OMPUseDevicePtrClause>(NC);
5178 emitOMPSimdRegion(CGF, cast<OMPLoopDirective>(D), Action);
tools/clang/lib/CodeGen/CGVTT.cpp 110 cast<ItaniumMangleContext>(CGM.getCXXABI().getMangleContext())
tools/clang/lib/CodeGen/CGVTables.cpp 773 cast<ItaniumMangleContext>(CGM.getCXXABI().getMangleContext())
tools/clang/lib/CodeGen/CodeGenAction.cpp 749 if (InlineAsmDiagHandler(cast<DiagnosticInfoInlineAsm>(DI)))
754 if (StackSizeDiagHandler(cast<DiagnosticInfoStackSize>(DI)))
768 OptimizationRemarkHandler(cast<OptimizationRemark>(DI));
773 OptimizationRemarkHandler(cast<OptimizationRemarkMissed>(DI));
778 OptimizationRemarkHandler(cast<OptimizationRemarkAnalysis>(DI));
783 OptimizationRemarkHandler(cast<OptimizationRemarkAnalysisFPCommute>(DI));
788 OptimizationRemarkHandler(cast<OptimizationRemarkAnalysisAliasing>(DI));
793 OptimizationRemarkHandler(cast<MachineOptimizationRemark>(DI));
798 OptimizationRemarkHandler(cast<MachineOptimizationRemarkMissed>(DI));
803 OptimizationRemarkHandler(cast<MachineOptimizationRemarkAnalysis>(DI));
808 OptimizationFailureHandler(cast<DiagnosticInfoOptimizationFailure>(DI));
811 UnsupportedDiagHandler(cast<DiagnosticInfoUnsupported>(DI));
814 MisExpectDiagHandler(cast<DiagnosticInfoMisExpect>(DI));
tools/clang/lib/CodeGen/CodeGenFunction.cpp 235 type = cast<AtomicType>(type)->getValueType();
tools/clang/lib/CodeGen/CodeGenModule.cpp 4712 Fields.add(cast<llvm::ConstantExpr>(CFConstantStringClassRef));
5270 DebugInfo->completeUnusedClass(cast<CXXRecordDecl>(*D));
5291 DI->EmitUsingDecl(cast<UsingDecl>(*D));
5295 DI->EmitNamespaceAlias(cast<NamespaceAliasDecl>(*D));
5299 DI->EmitUsingDirective(cast<UsingDirectiveDecl>(*D));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 56 return cast<ItaniumMangleContext>(CodeGen::CGCXXABI::getMangleContext());
3382 BuildVTablePointer(cast<Type>(Ty));
3456 cast<CXXRecordDecl>(cast<RecordType>(Ty)->getDecl());
3472 BuildObjCObjectTypeInfo(cast<ObjCObjectType>(Ty));
3476 BuildPointerTypeInfo(cast<ObjCObjectPointerType>(Ty)->getPointeeType());
3480 BuildPointerTypeInfo(cast<PointerType>(Ty)->getPointeeType());
3484 BuildPointerToMemberTypeInfo(cast<MemberPointerType>(Ty));
4102 QualType CaughtType = cast<ReferenceType>(CatchType)->getPointeeType();
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 553 return cast<MicrosoftMangleContext>(CodeGen::CGCXXABI::getMangleContext());
tools/clang/lib/CodeGen/SwiftCallingConv.cpp 23 return cast<SwiftABIInfo>(CGM.getTargetCodeGenInfo().getABIInfo());
tools/clang/lib/CodeGen/TargetInfo.cpp 5733 ARMABIInfo::ABIKind ABI = cast<ARMABIInfo>(getABIInfo()).getABIKind();
tools/clang/lib/Driver/ToolChains/Clang.cpp 6363 auto &UA = cast<OffloadUnbundlingJobAction>(JA);
tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp 85 const driver::Command &Cmd = cast<driver::Command>(*Jobs.begin());
tools/clang/lib/Sema/SemaChecking.cpp14352 cast<EnumType>(T1)->getDecl(),
14353 cast<EnumType>(T2)->getDecl());
14359 cast<RecordType>(T1)->getDecl(),
14360 cast<RecordType>(T2)->getDecl());
tools/clang/lib/Sema/SemaCodeComplete.cpp 814 switch (cast<BuiltinType>(T)->getKind()) {
1509 switch (cast<BuiltinType>(T)->getKind()) {
tools/clang/lib/Sema/SemaDecl.cpp 3281 const FunctionType *OldType = cast<FunctionType>(OldQType);
3282 const FunctionType *NewType = cast<FunctionType>(NewQType);
3451 QualType NewReturnType = cast<FunctionType>(NewQType)->getReturnType();
9786 const auto *NewType = cast<FunctionType>(NewQType);
9796 const auto *OldType = cast<FunctionType>(OldQType);
tools/clang/lib/Sema/SemaExpr.cpp 958 QualType fpTy = cast<ComplexType>(ComplexTy)->getElementType();
5462 FT = cast<FunctionProtoType>(OverloadTy);
7905 cast<PointerType>(LHSType)->getPointeeType().split().asPair();
7907 cast<PointerType>(RHSType)->getPointeeType().split().asPair();
8043 lhptee = cast<BlockPointerType>(LHSType)->getPointeeType();
8044 rhptee = cast<BlockPointerType>(RHSType)->getPointeeType();
tools/clang/lib/Sema/SemaFixItUtils.cpp 36 (cast<PointerType>(From))->getPointeeType());
38 (cast<PointerType>(To))->getPointeeType());
tools/clang/lib/Sema/SemaOverload.cpp 1139 const FunctionProtoType *OldType = cast<FunctionProtoType>(OldQType);
1140 const FunctionProtoType *NewType = cast<FunctionProtoType>(NewQType);
1518 const auto *FromFn = cast<FunctionType>(CanFrom);
1521 const auto *ToFn = cast<FunctionType>(CanTo);
tools/clang/lib/Sema/SemaTemplate.cpp 3332 QualType Injected = cast<InjectedClassNameType>(ICNT)
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 625 cast<ArrayType>(T)->getElementType());
1520 cast<ComplexType>(Param)->getElementType(),
1530 cast<AtomicType>(Param)->getValueType(),
1550 cast<PointerType>(Param)->getPointeeType(),
1563 cast<LValueReferenceType>(Param)->getPointeeType(),
1575 cast<RValueReferenceType>(Param)->getPointeeType(),
1671 cast<FunctionProtoType>(Param);
1739 Param = cast<InjectedClassNameType>(Param)
1752 cast<TemplateSpecializationType>(Param);
1861 const MemberPointerType *MemPtrParam = cast<MemberPointerType>(Param);
1896 const BlockPointerType *BlockPtrParam = cast<BlockPointerType>(Param);
1912 const ExtVectorType *VectorParam = cast<ExtVectorType>(Param);
1942 const auto *VectorParam = cast<DependentVectorType>(Param);
1994 = cast<DependentSizedExtVectorType>(Param);
2050 cast<DependentAddressSpaceType>(Param);
5361 cast<PointerType>(T)->getPointeeType(),
5369 cast<BlockPointerType>(T)->getPointeeType(),
5378 cast<ReferenceType>(T)->getPointeeType(),
5395 cast<DependentSizedArrayType>(T)->getSizeExpr(),
5403 cast<ArrayType>(T)->getElementType(),
5410 cast<VectorType>(T)->getElementType(),
5415 const auto *VecType = cast<DependentVectorType>(T);
5424 = cast<DependentSizedExtVectorType>(T);
5434 cast<DependentAddressSpaceType>(T);
5444 const FunctionProtoType *Proto = cast<FunctionProtoType>(T);
5471 const TemplateTypeParmType *TTP = cast<TemplateTypeParmType>(T);
5479 = cast<SubstTemplateTypeParmPackType>(T);
5489 T = cast<InjectedClassNameType>(T)->getInjectedSpecializationType();
5494 = cast<TemplateSpecializationType>(T);
5515 cast<ComplexType>(T)->getElementType(),
5522 cast<AtomicType>(T)->getValueType(),
5529 cast<DependentNameType>(T)->getQualifier(),
5547 = cast<DependentTemplateSpecializationType>(T);
5561 cast<TypeOfType>(T)->getUnderlyingType(),
5568 cast<TypeOfExprType>(T)->getUnderlyingExpr(),
5575 cast<DecltypeType>(T)->getUnderlyingExpr(),
5582 cast<UnaryTransformType>(T)->getUnderlyingType(),
5588 cast<PackExpansionType>(T)->getPattern(),
5595 cast<DeducedType>(T)->getDeducedType(),
tools/clang/lib/Sema/SemaTemplateVariadic.cpp 784 QualType Pattern = cast<PackExpansionType>(T)->getPattern();
tools/clang/lib/Sema/SemaType.cpp 4585 cast<AutoType>(T)->getKeyword() !=
tools/clang/lib/Serialization/ASTReader.cpp 6731 cast<TemplateTypeParmType>(Parm),
6740 cast<TemplateTypeParmType>(Parm),
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 113 const ObjCMethodCall &Msg = cast<ObjCMethodCall>(Call);
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp 278 const ObjCObjectPointerType *PT = cast<ObjCObjectPointerType>(T);
741 PathDiagnosticLocation L = cast<RefLeakReport>(BR).getEndOfPath();
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 382 removeRedundantMsgs(cast<PathDiagnosticCallPiece>(*piece).path);
385 removeRedundantMsgs(cast<PathDiagnosticMacroPiece>(*piece).subPieces);
433 auto &call = cast<PathDiagnosticCallPiece>(*piece);
444 auto ¯o = cast<PathDiagnosticMacroPiece>(*piece);
451 auto &event = cast<PathDiagnosticEventPiece>(*piece);
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 1205 ReceiverT = cast<ObjCObjectPointerType>(SupersType);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp 55 ThisVal = cast<CXXInstanceCall>(Call).getCXXThisVal();
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 439 !cast<BlockCall>(Call).isConversionFromLambda()) {
440 const BlockDataRegion *BR = cast<BlockCall>(Call).getBlockRegion();
701 const CXXConstructorCall &Ctor = cast<CXXConstructorCall>(Call);
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp 111 ReportControlFlow(o, cast<PathDiagnosticControlFlowPiece>(P), indent);
114 ReportCall(o, cast<PathDiagnosticCallPiece>(P), indent,
118 ReportEvent(o, cast<PathDiagnosticEventPiece>(P), indent, depth,
122 ReportMacroSubPieces(o, cast<PathDiagnosticMacroPiece>(P), indent,
126 ReportNote(o, cast<PathDiagnosticNotePiece>(P), indent);
129 ReportPopUp(o, cast<PathDiagnosticPopUpPiece>(P), indent);
tools/clang/lib/Tooling/Tooling.cpp 131 const auto &Cmd = cast<driver::Command>(*Jobs.begin());
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp 112 const auto &L = cast<typename LiteralType::type>(Literal);
tools/clang/tools/extra/clangd/refactor/Rename.cpp 105 cast<NamedDecl>(RenameDecl), ASTCtx, {}, false);
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp 533 auto &Func = llvm::cast<FunctionDecl>(*TestDecl);
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp 588 const auto &Func = cast<FunctionDecl>(findDecl(AST, "test"));
tools/clang/tools/extra/clangd/unittests/TestTU.cpp 134 Scope = &cast<DeclContext>(LookupDecl(*Scope, *NameIt));
tools/clang/tools/extra/unittests/clang-query/QueryParserTest.cpp 37 EXPECT_EQ("unknown command: foo", cast<InvalidQuery>(Q)->ErrStr);
46 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr);
58 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr);
64 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr);
68 EXPECT_EQ("unknown variable: 'foo'", cast<InvalidQuery>(Q)->ErrStr);
73 cast<InvalidQuery>(Q)->ErrStr);
77 EXPECT_EQ("unexpected extra input: ' foo'", cast<InvalidQuery>(Q)->ErrStr);
82 cast<InvalidQuery>(Q)->ErrStr);
86 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<SetExclusiveOutputQuery>(Q)->Var);
90 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<SetExclusiveOutputQuery>(Q)->Var);
94 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<EnableOutputQuery>(Q)->Var);
98 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr);
102 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<DisableOutputQuery>(Q)->Var);
107 cast<InvalidQuery>(Q)->ErrStr);
111 EXPECT_EQ(&QuerySession::BindRoot, cast<SetQuery<bool> >(Q)->Var);
112 EXPECT_EQ(true, cast<SetQuery<bool> >(Q)->Value);
118 EXPECT_TRUE(cast<MatchQuery>(Q)->Matcher.canConvertTo<Decl>());
122 EXPECT_TRUE(cast<MatchQuery>(Q)->Matcher.canConvertTo<Stmt>());
128 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name);
129 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isMatcher());
130 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>());
134 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name);
135 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isMatcher());
136 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>());
140 EXPECT_EQ("bar", cast<LetQuery>(Q)->Name);
141 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isString());
142 EXPECT_EQ("str", cast<LetQuery>(Q)->Value.getString());
146 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr);
150 EXPECT_EQ("x", cast<LetQuery>(Q)->Name);
151 EXPECT_FALSE(cast<LetQuery>(Q)->Value.hasValue());
155 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr);
160 cast<InvalidQuery>(Q)->ErrStr);
tools/clang/unittests/AST/ASTContextParentMapTest.cpp 90 auto &Bar = *cast<DeclContext>(Foo).lookup(&Ctx.Idents.get("bar")).front();
tools/clang/unittests/AST/ASTImporterTest.cpp 3949 auto *Fwd = cast<TagType>(FT)->getDecl();
4480 return cast<RecordType>(Ty)->getDecl();
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/TraversalScope.cpp 39 auto &Bar = *cast<DeclContext>(Foo).lookup(&Ctx.Idents.get("bar")).front();
tools/dsymutil/BinaryHolder.h 87 return cast<ObjectFileType>(*Object);
tools/lld/ELF/InputFiles.cpp 256 return getSrcMsgAux(cast<ObjFile<ELF32LE>>(*this), sym, sec, offset);
258 return getSrcMsgAux(cast<ObjFile<ELF32BE>>(*this), sym, sec, offset);
260 return getSrcMsgAux(cast<ObjFile<ELF64LE>>(*this), sym, sec, offset);
262 return getSrcMsgAux(cast<ObjFile<ELF64BE>>(*this), sym, sec, offset);
tools/lld/ELF/InputSection.cpp 447 uint32_t secIdx = cast<Undefined>(sym).discardedSecIdx;
tools/lld/ELF/Relocations.cpp 783 std::string msg = maybeReportDiscarded<ELFT>(cast<Undefined>(sym));
809 getAlternativeSpelling(cast<Undefined>(sym))) {
862 cast<Undefined>(sym).discardedSecIdx != 0 && sec.name == ".toc")
1342 auto *directSym = make<Defined>(cast<Defined>(sym));
1361 auto &d = cast<Defined>(sym);
tools/lld/ELF/Symbols.cpp 59 auto &d = cast<Defined>(sym);
379 resolveUndefined(cast<Undefined>(other));
382 resolveCommon(cast<CommonSymbol>(other));
385 resolveDefined(cast<Defined>(other));
388 resolveLazy(cast<LazyArchive>(other));
391 resolveLazy(cast<LazyObject>(other));
394 resolveShared(cast<SharedSymbol>(other));
tools/lld/ELF/SyntheticSections.cpp 2943 auto &file = cast<SharedFile>(*ss->file);
tools/lld/ELF/Thunks.cpp 659 auto &dr = cast<Defined>(destination);
683 auto &dr = cast<Defined>(destination);
707 auto &dr = cast<Defined>(destination);
tools/lld/ELF/Writer.cpp 163 copy = make<InputSection>(cast<InputSection>(*s));
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 856 const auto &atomFile = cast<mach_o::MachOFile>(atom->file());
859 auto &dwarf = cast<lld::mach_o::DwarfDebugInfo>(*atomFile.debugInfo());
tools/lldb/include/lldb/Symbol/PostfixExpression.h 179 return Visit(llvm::cast<BinaryOpNode>(*node), node);
181 return Visit(llvm::cast<InitialValueNode>(*node), node);
183 return Visit(llvm::cast<IntegerNode>(*node), node);
185 return Visit(llvm::cast<RegisterNode>(*node), node);
187 return Visit(llvm::cast<SymbolNode>(*node), node);
189 return Visit(llvm::cast<UnaryOpNode>(*node), node);
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 875 auto &tu = llvm::cast<DWARFTypeUnit>(unit);
1495 GetCompUnitForDWARFCompUnit(llvm::cast<DWARFCompileUnit>(*die.GetCU()));
tools/lldb/source/Symbol/ClangASTContext.cpp 2571 return llvm::cast<clang::RecordType>(qual_type)->getDecl();
2573 return llvm::cast<clang::EnumType>(qual_type)->getDecl();
2575 return GetDeclContextForType(llvm::cast<clang::TypedefType>(qual_type)
2580 llvm::cast<clang::AutoType>(qual_type)->getDeducedType());
2583 llvm::cast<clang::ElaboratedType>(qual_type)->getNamedType());
2586 llvm::cast<clang::ParenType>(qual_type)->desugar());
2699 return GetCompleteQualType(ast, llvm::cast<clang::TypedefType>(qual_type)
2706 ast, llvm::cast<clang::AutoType>(qual_type)->getDeducedType(),
2711 ast, llvm::cast<clang::ElaboratedType>(qual_type)->getNamedType(),
2716 ast, llvm::cast<clang::ParenType>(qual_type)->desugar(),
2721 ast, llvm::cast<clang::AttributedType>(qual_type)->getModifiedType(),
2765 return IsAggregateType(llvm::cast<clang::AutoType>(qual_type)
2769 return IsAggregateType(llvm::cast<clang::ElaboratedType>(qual_type)
2773 return IsAggregateType(llvm::cast<clang::TypedefType>(qual_type)
2779 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr());
2803 return IsAnonymousType(llvm::cast<clang::AutoType>(qual_type)
2807 return IsAnonymousType(llvm::cast<clang::ElaboratedType>(qual_type)
2811 return IsAnonymousType(llvm::cast<clang::TypedefType>(qual_type)
2817 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr());
2838 this, llvm::cast<clang::ConstantArrayType>(qual_type)
2842 *size = llvm::cast<clang::ConstantArrayType>(qual_type)
2852 this, llvm::cast<clang::IncompleteArrayType>(qual_type)
2864 this, llvm::cast<clang::VariableArrayType>(qual_type)
2876 this, llvm::cast<clang::DependentSizedArrayType>(qual_type)
2886 return IsArrayType(llvm::cast<clang::TypedefType>(qual_type)
2892 return IsArrayType(llvm::cast<clang::AutoType>(qual_type)
2897 return IsArrayType(llvm::cast<clang::ElaboratedType>(qual_type)
2903 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
3032 return IsFunctionType(llvm::cast<clang::TypedefType>(qual_type)
3038 return IsFunctionType(llvm::cast<clang::AutoType>(qual_type)
3043 return IsFunctionType(llvm::cast<clang::ElaboratedType>(qual_type)
3049 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
3142 return IsHomogeneousAggregate(llvm::cast<clang::TypedefType>(qual_type)
3149 return IsHomogeneousAggregate(llvm::cast<clang::AutoType>(qual_type)
3155 return IsHomogeneousAggregate(llvm::cast<clang::ElaboratedType>(qual_type)
3204 return IsFunctionPointerType(llvm::cast<clang::TypedefType>(qual_type)
3209 return IsFunctionPointerType(llvm::cast<clang::AutoType>(qual_type)
3213 return IsFunctionPointerType(llvm::cast<clang::ElaboratedType>(qual_type)
3218 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr());
3256 return IsBlockPointerType(llvm::cast<clang::TypedefType>(qual_type)
3262 return IsBlockPointerType(llvm::cast<clang::AutoType>(qual_type)
3267 return IsBlockPointerType(llvm::cast<clang::ElaboratedType>(qual_type)
3273 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
3332 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
3343 this, llvm::cast<clang::ObjCObjectPointerType>(qual_type)
3350 this, llvm::cast<clang::BlockPointerType>(qual_type)
3357 llvm::cast<clang::PointerType>(qual_type)
3364 this, llvm::cast<clang::MemberPointerType>(qual_type)
3369 return IsPointerType(llvm::cast<clang::TypedefType>(qual_type)
3375 return IsPointerType(llvm::cast<clang::AutoType>(qual_type)
3380 return IsPointerType(llvm::cast<clang::ElaboratedType>(qual_type)
3386 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
3404 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
3415 this, llvm::cast<clang::ObjCObjectPointerType>(qual_type)
3421 this, llvm::cast<clang::BlockPointerType>(qual_type)
3428 llvm::cast<clang::PointerType>(qual_type)
3435 this, llvm::cast<clang::MemberPointerType>(qual_type)
3442 this, llvm::cast<clang::LValueReferenceType>(qual_type)
3449 this, llvm::cast<clang::RValueReferenceType>(qual_type)
3454 return IsPointerOrReferenceType(llvm::cast<clang::TypedefType>(qual_type)
3460 return IsPointerOrReferenceType(llvm::cast<clang::AutoType>(qual_type)
3466 llvm::cast<clang::ElaboratedType>(qual_type)
3472 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
3494 this, llvm::cast<clang::LValueReferenceType>(qual_type)
3503 this, llvm::cast<clang::RValueReferenceType>(qual_type)
3510 return IsReferenceType(llvm::cast<clang::TypedefType>(qual_type)
3516 return IsReferenceType(llvm::cast<clang::AutoType>(qual_type)
3521 return IsReferenceType(llvm::cast<clang::ElaboratedType>(qual_type)
3527 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
3676 llvm::cast<clang::BuiltinType>(qual_type)->getKind() ==
3697 this, llvm::cast<clang::ObjCObjectPointerType>(qual_type)
3706 llvm::cast<clang::PointerType>(qual_type)->getPointeeType();
3713 llvm::cast<clang::ReferenceType>(qual_type)->getPointeeType();
3718 return IsPossibleDynamicType(llvm::cast<clang::TypedefType>(qual_type)
3726 return IsPossibleDynamicType(llvm::cast<clang::AutoType>(qual_type)
3733 return IsPossibleDynamicType(llvm::cast<clang::ElaboratedType>(qual_type)
3741 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
3755 switch (llvm::cast<clang::BuiltinType>(pointee_qual_type)->getKind()) {
4057 return CompilerType(this, llvm::cast<clang::DecltypeType>(qual_type)
4065 this, llvm::cast<clang::EnumType>(qual_type)
4072 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
4077 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
4082 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
4139 CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
4145 return CompilerType(this, llvm::cast<clang::TypeOfExprType>(qual_type)
4151 return CompilerType(this, llvm::cast<clang::TypeOfType>(qual_type)
4209 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
4252 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
4333 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
4338 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
4343 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
4366 return CompilerType(this, llvm::cast<clang::TypeOfExprType>(qual_type)
4372 return CompilerType(this, llvm::cast<clang::TypeOfType>(qual_type)
4377 return CompilerType(this, llvm::cast<clang::TypeOfType>(qual_type)
4585 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
4592 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
4598 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
4604 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
4724 return GetMemberFunctionAtIndex(llvm::cast<clang::TypedefType>(qual_type)
4731 return GetMemberFunctionAtIndex(llvm::cast<clang::AutoType>(qual_type)
4738 llvm::cast<clang::ElaboratedType>(qual_type)
4745 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
5058 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
5243 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
5250 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
5256 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
5262 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
5267 return CompilerType(this, llvm::cast<clang::TypeOfExprType>(qual_type)
5273 return CompilerType(this, llvm::cast<clang::TypeOfType>(qual_type)
5278 return CompilerType(this, llvm::cast<clang::DecltypeType>(qual_type)
5344 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
5417 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
5423 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
5428 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
5433 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
5438 return CompilerType(this, llvm::cast<clang::TypeOfExprType>(qual_type)
5444 return CompilerType(this, llvm::cast<clang::TypeOfType>(qual_type)
5449 return CompilerType(this, llvm::cast<clang::DecltypeType>(qual_type)
5524 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
5673 num_children = CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
5681 num_children = CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
5689 CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
5699 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr())
5718 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
5840 count = CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
5848 count = CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
5855 count = CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
5865 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr())
6056 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
6064 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
6071 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
6078 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
6137 count = GetNumDirectBaseClasses(llvm::cast<clang::TypedefType>(qual_type)
6144 count = GetNumDirectBaseClasses(llvm::cast<clang::AutoType>(qual_type)
6150 count = GetNumDirectBaseClasses(llvm::cast<clang::ElaboratedType>(qual_type)
6157 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr());
6181 count = GetNumVirtualBaseClasses(llvm::cast<clang::TypedefType>(qual_type)
6188 count = GetNumVirtualBaseClasses(llvm::cast<clang::AutoType>(qual_type)
6195 GetNumVirtualBaseClasses(llvm::cast<clang::ElaboratedType>(qual_type)
6202 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr());
6304 return GetDirectBaseClassAtIndex(llvm::cast<clang::TypedefType>(qual_type)
6311 return GetDirectBaseClassAtIndex(llvm::cast<clang::AutoType>(qual_type)
6318 llvm::cast<clang::ElaboratedType>(qual_type)
6325 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
6372 return GetVirtualBaseClassAtIndex(llvm::cast<clang::TypedefType>(qual_type)
6379 return GetVirtualBaseClassAtIndex(llvm::cast<clang::AutoType>(qual_type)
6386 llvm::cast<clang::ElaboratedType>(qual_type)
6393 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
6415 switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
6514 llvm::cast<clang::ParenType>(qual_type)->desugar());
6516 return GetNumPointeeChildren(llvm::cast<clang::TypedefType>(qual_type)
6521 llvm::cast<clang::AutoType>(qual_type)->getDeducedType());
6524 llvm::cast<clang::ElaboratedType>(qual_type)->getNamedType());
6526 return GetNumPointeeChildren(llvm::cast<clang::TypeOfExprType>(qual_type)
6531 llvm::cast<clang::TypeOfType>(qual_type)->getUnderlyingType());
6534 llvm::cast<clang::DecltypeType>(qual_type)->getUnderlyingType());
6592 switch (llvm::cast<clang::BuiltinType>(parent_qual_type)->getKind()) {
7008 this, llvm::cast<clang::TypedefType>(parent_qual_type)
7021 this, llvm::cast<clang::AutoType>(parent_qual_type)
7033 this, llvm::cast<clang::ElaboratedType>(parent_qual_type)
7045 llvm::cast<clang::ParenType>(parent_qual_type)
7379 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
7387 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
7394 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
7401 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
7611 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
7617 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
7623 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
7629 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
7665 return CompilerType(this, llvm::cast<clang::TypedefType>(qual_type)
7672 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
7678 return CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
7684 return CompilerType(this, llvm::cast<clang::ParenType>(qual_type)
7717 return GetAsTemplateSpecialization(llvm::cast<clang::TypedefType>(qual_type)
7723 return GetAsTemplateSpecialization(llvm::cast<clang::AutoType>(qual_type)
7729 llvm::cast<clang::ElaboratedType>(qual_type)
7735 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr());
8710 llvm::cast<clang::EnumType>(qual_type)->getDecl();
8736 return SetHasExternalStorage(llvm::cast<clang::TypedefType>(qual_type)
8743 return SetHasExternalStorage(llvm::cast<clang::AutoType>(qual_type)
8749 return SetHasExternalStorage(llvm::cast<clang::ElaboratedType>(qual_type)
8756 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr(),
9267 llvm::cast<clang::TypedefType>(qual_type)
9295 llvm::cast<clang::AutoType>(qual_type)->getDeducedType();
9321 llvm::cast<clang::ElaboratedType>(qual_type)->getNamedType();
9347 llvm::cast<clang::ParenType>(qual_type)->desugar();
9478 qual_type = llvm::cast<clang::ElaboratedType>(qual_type)->getNamedType();
9486 llvm::cast<clang::TypedefType>(qual_type)
9683 CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
9690 CompilerType(this, llvm::cast<clang::ElaboratedType>(qual_type)
9699 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr())
9757 llvm::cast<clang::EnumType>(qual_type)->getDecl();
9779 printf("typedef %s", llvm::cast<clang::TypedefType>(qual_type)
9789 llvm::cast<clang::AutoType>(qual_type)
9796 type.GetTypeSystem(), llvm::cast<clang::ElaboratedType>(qual_type)
9804 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr()));
tools/lldb/source/Symbol/ClangASTImporter.cpp 427 llvm::cast<clang::EnumType>(qual_type)->getDecl();
452 llvm::cast<clang::TypedefType>(qual_type)
459 llvm::cast<clang::AutoType>(qual_type)
465 llvm::cast<clang::ElaboratedType>(qual_type)
472 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr()));
503 llvm::cast<clang::EnumType>(qual_type)->getDecl();
528 llvm::cast<clang::TypedefType>(qual_type)
535 llvm::cast<clang::AutoType>(qual_type)
541 llvm::cast<clang::ElaboratedType>(qual_type)
548 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr()));
tools/llvm-diff/DifferenceEngine.cpp 652 CallInst *RCall = cast<CallInst>(I);
tools/llvm-nm/llvm-nm.cpp 341 return cast<ELFObjectFileBase>(Obj).getBytesInAddress() == 8;
1137 Ret = getSymbolNMTypeChar(cast<ELFObjectFileBase>(Obj), I);
tools/obj2yaml/obj2yaml.cpp 22 return errorCodeToError(coff2yaml(outs(), cast<COFFObjectFile>(Obj)));
25 return errorCodeToError(xcoff2yaml(outs(), cast<XCOFFObjectFile>(Obj)));
31 return errorCodeToError(wasm2yaml(outs(), cast<WasmObjectFile>(Obj)));
tools/polly/include/polly/Support/ScopHelper.h 98 return MemAccInst(llvm::cast<llvm::Instruction>(V));
104 return MemAccInst(llvm::cast<llvm::Instruction>(V));
113 return MemAccInst(llvm::cast<llvm::Instruction>(V));
tools/polly/lib/Analysis/ScopBuilder.cpp 3372 PtrToAcc[cast<MemTransferInst>(Acc)->getRawSource()] = MA;
tools/polly/lib/Analysis/ScopDetection.cpp 756 AF = SE.getSCEVAtScope(cast<MemTransferInst>(II).getSource(), L);
765 AF = SE.getSCEVAtScope(cast<MemIntrinsic>(II).getDest(), L);
774 if (!isAffine(SE.getSCEVAtScope(cast<MemIntrinsic>(II).getLength(), L), L,
unittests/Analysis/LoopInfoTest.cpp 1257 PHINode &Instruction_i = cast<PHINode>(*(II));
1259 PHINode &Instruction_aux = cast<PHINode>(*(++II));
1261 PHINode &Instruction_loopvariant = cast<PHINode>(*(++II));
1264 PHINode &Instruction_usedoutside = cast<PHINode>(*(++II));
1267 PHINode &Instruction_mulopcode = cast<PHINode>(*(++II));
unittests/Analysis/ScalarEvolutionTest.cpp 1543 PHINode *PN = cast<PHINode>(i);
1623 PHINode *PN = cast<PHINode>(i);
unittests/IR/InstructionsTest.cpp 1091 CallBrInst &CBI = cast<CallBrInst>(BBs->front());
unittests/IR/UserTest.cpp 71 PHINode &P = cast<PHINode>(ExitBB.front());
unittests/Support/Casting.cpp 128 foo &F1 = cast<foo>(B1);
134 const foo &F5 = cast<foo>(B3);
382 EXPECT_TRUE(cast<pointer_wrappers::Derived>(MD) == &D);
unittests/Transforms/Utils/CodeExtractorTest.cpp 72 EXPECT_TRUE(Exit && cast<PHINode>(Exit->front()).getNumIncomingValues() == 1);
75 cast<PHINode>(ExitSplit->front()).getNumIncomingValues() == 2);
124 cast<PHINode>(Exit1->front()).getNumIncomingValues() == 2);
126 cast<PHINode>(Exit2->front()).getNumIncomingValues() == 2);