|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/BrainF/BrainF.cpp 99 BB->getInstList().push_back(cast<Instruction>(ptr_arr));
gen/lib/Target/AArch64/AArch64GenDAGISel.inc114605 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114610 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114616 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114622 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114629 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
114637 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
114664 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
114672 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
114678 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114687 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114694 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114702 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114710 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114718 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114727 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
114736 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
114763 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
114772 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
114799 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
114808 return cast<StoreSDNode>(N)->isNonTemporal();
114817 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
114823 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114832 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
114838 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114845 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114852 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114860 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114867 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114874 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114882 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114889 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114898 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
114906 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
114915 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
114936 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114941 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114952 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i8;
114963 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i16;
114974 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i32;
114979 const APInt & Imm = cast<ConstantSDNode>(Node)->getAPIntValue();
114986 const APInt & Imm = cast<ConstantSDNode>(Node)->getAPIntValue();
114999 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i64;
115009 if (isAcquireOrStronger(cast<AtomicSDNode>(N)->getOrdering())) return false;
115030 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
115041 if (!isAcquireOrStronger(cast<AtomicSDNode>(N)->getOrdering())) return false;
115052 if (isReleaseOrStronger(cast<AtomicSDNode>(N)->getOrdering())) return false;
115063 if (!isReleaseOrStronger(cast<AtomicSDNode>(N)->getOrdering())) return false;
115069 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115076 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115083 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115090 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115097 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
115161 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::Monotonic) return false;
115216 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::Acquire) return false;
115271 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::Release) return false;
115326 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::AcquireRelease) return false;
115381 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::SequentiallyConsistent) return false;
115387 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115394 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
115401 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
115408 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
115415 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
115426 return cast<MaskedLoadSDNode>(N)->getExtensionType() == ISD::ZEXTLOAD;
115435 return cast<MaskedLoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
115443 return cast<MaskedLoadSDNode>(N)->getExtensionType() == ISD::EXTLOAD ||
115444 cast<MaskedLoadSDNode>(N)->getExtensionType() == ISD::SEXTLOAD;
115453 return cast<MaskedLoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
115462 return cast<MaskedLoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
115470 return cast<MaskedLoadSDNode>(N)->getExtensionType() == ISD::NON_EXTLOAD;
115638 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115644 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115651 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115658 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115666 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115673 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115681 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115688 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115696 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115704 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115712 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115720 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115727 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115734 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
115742 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
115750 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
115757 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
115765 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
115775 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
115782 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115788 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115794 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115800 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc78692 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
78732 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
78741 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
78756 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78759 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
78767 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78770 if (cast<MemSDNode>(N)->getAlignment() < 8)
78772 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
78780 if (cast<MemSDNode>(N)->getAlignment() < 8)
78782 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
78791 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
78802 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78805 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
78814 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
78823 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
78834 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78837 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
78845 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78848 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
78858 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78861 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
78871 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78874 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
78885 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78888 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
78899 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78902 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
78910 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78913 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
78924 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
78939 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78942 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
78953 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
78968 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78971 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
78982 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78985 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
78996 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
78999 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
79007 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79010 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
79018 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79021 if (cast<MemSDNode>(N)->getAlignment() < 16)
79023 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
79031 if (cast<MemSDNode>(N)->getAlignment() < 16)
79033 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
79042 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
79050 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79059 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79062 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79071 if (cast<MemSDNode>(N)->getAlignment() < 8)
79073 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79082 if (cast<MemSDNode>(N)->getAlignment() < 16)
79084 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79092 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79108 return cast<MemSDNode>(N)->getAddressSpace() == AMDGPUAS::PRIVATE_ADDRESS;
79115 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79118 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79126 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79129 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79145 return cast<MemSDNode>(N)->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS;
79155 return cast<MemSDNode>(N)->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS;
79164 const auto AS = cast<MemSDNode>(N)->getAddressSpace();
79173 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79176 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
79185 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
79206 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79209 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
79218 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
79239 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79242 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
79279 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79282 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
79319 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79322 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
79344 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79347 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
79369 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79372 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
79392 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79395 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
79415 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79418 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
79424 auto *N = cast<ConstantSDNode>(Node);
79433 auto *N = cast<ConstantFPSDNode>(Node);
79441 auto *N = cast<ConstantSDNode>(Node);
79449 auto *N = cast<ConstantFPSDNode>(Node);
79469 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79472 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f32) return false;
79480 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79483 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::v2f16) return false;
79497 auto *N = cast<CondCodeSDNode>(Node);
79519 auto *N = cast<ConstantSDNode>(Node);
79527 auto *N = cast<ConstantSDNode>(Node);
79542 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79545 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f32) return false;
79555 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
79558 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f32) return false;
79565 auto *N = cast<ConstantFPSDNode>(Node);
79581 auto AS = cast<MemSDNode>(N)->getAddressSpace();
79595 const auto AS = cast<MemSDNode>(N)->getAddressSpace();
79786 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79798 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79804 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79810 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79816 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79822 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79828 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79834 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79840 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79846 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79853 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
79860 CondCodeSDNode *N = cast<CondCodeSDNode>(V.getNode());
79866 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79872 FrameIndexSDNode *N = cast<FrameIndexSDNode>(V.getNode());
79874 auto FI = cast<FrameIndexSDNode>(N);
79879 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
gen/lib/Target/AMDGPU/R600GenDAGISel.inc12310 auto *N = cast<ConstantSDNode>(Node);
12318 auto *N = cast<ConstantFPSDNode>(Node);
12324 auto *N = cast<ConstantFPSDNode>(Node);
12332 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
12340 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12343 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
12352 LoadSDNode *L = cast<LoadSDNode>(N);
12362 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::i8;
12371 return isConstantLoad(cast<LoadSDNode>(N), 0) ||
12372 (cast<LoadSDNode>(N)->getAddressSpace() == AMDGPUAS::PARAM_I_ADDRESS);
12379 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::i16;
12386 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
12397 const MemSDNode *LD = cast<MemSDNode>(N);
12410 const MemSDNode *LD = cast<MemSDNode>(N);
12421 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12424 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
12432 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
12441 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12444 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
12454 return cast<MemSDNode>(N)->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS;
12462 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12465 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
12473 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
12481 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12484 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
12492 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12495 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
12503 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
12511 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12514 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
12531 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12534 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
12551 unsigned AddrSpace = cast<MemSDNode>(N)->getAddressSpace();
12554 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
12563 return cast<MemSDNode>(N)->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS;
12570 return cast<MemSDNode>(N)->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS && (SDValue(N, 0).use_empty());
12620 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/ARC/ARCGenDAGISel.inc 1096 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1104 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
1112 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
1123 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
1134 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
1142 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1150 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
1158 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
1166 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
1174 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
1183 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
1189 auto *N = cast<ConstantSDNode>(Node);
1196 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
1203 auto *N = cast<ConstantSDNode>(Node);
gen/lib/Target/ARM/ARMGenDAGISel.inc54002 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54009 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54014 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54019 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54026 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54031 auto *N = cast<ConstantSDNode>(Node);
54040 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54047 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54054 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54061 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54074 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54081 auto *N = cast<ConstantSDNode>(Node);
54100 auto *N = cast<ConstantSDNode>(Node);
54108 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54121 auto *N = cast<ConstantSDNode>(Node);
54130 auto *N = cast<ConstantSDNode>(Node);
54139 auto *N = cast<ConstantSDNode>(Node);
54147 auto *N = cast<ConstantSDNode>(Node);
54156 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54163 auto *N = cast<ConstantSDNode>(Node);
54171 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54184 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i8;
54195 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i16;
54200 auto *N = cast<ConstantSDNode>(Node);
54217 auto *N = cast<ConstantSDNode>(Node);
54228 auto *N = cast<ConstantSDNode>(Node);
54236 auto *N = cast<ConstantSDNode>(Node);
54245 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54252 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54259 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54266 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54275 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
54283 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
54298 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
54304 auto *N = cast<ConstantSDNode>(Node);
54315 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
54324 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
54334 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
54349 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
54358 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
54369 return cast<StoreSDNode>(N)->getAlignment() >= 4;
54378 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
54387 return cast<StoreSDNode>(N)->getAlignment() == 2;
54395 return cast<StoreSDNode>(N)->getAlignment() == 1;
54403 return cast<StoreSDNode>(N)->getAlignment() < 4;
54413 return cast<StoreSDNode>(N)->getAlignment() >= 2;
54421 return cast<StoreSDNode>(N)->getAlignment() >= 8;
54429 return cast<StoreSDNode>(N)->getAlignment() == 4;
54438 if (cast<StoreSDNode>(N)->getMemoryVT().getScalarType() != MVT::i8) return false;
54448 if (cast<StoreSDNode>(N)->getMemoryVT().getScalarType() != MVT::i16) return false;
54454 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54461 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54466 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54483 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
54491 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
54499 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
54508 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
54517 return cast<LoadSDNode>(N)->getAlignment() >= 4;
54525 return cast<LoadSDNode>(N)->getAlignment() >= 2;
54533 return cast<LoadSDNode>(N)->getAlignment() == 2;
54541 return cast<LoadSDNode>(N)->getAlignment() == 1;
54549 return cast<LoadSDNode>(N)->getAlignment() < 4;
54558 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i8) return false;
54568 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i16) return false;
54578 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i32) return false;
54587 return cast<LoadSDNode>(N)->getAlignment() >= 8;
54595 return cast<LoadSDNode>(N)->getAlignment() == 4;
54606 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i32;
54616 AtomicOrdering Ordering = cast<AtomicSDNode>(N)->getOrdering();
54625 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
54636 AtomicOrdering Ordering = cast<AtomicSDNode>(N)->getOrdering();
54642 auto *N = cast<ConstantSDNode>(Node);
54662 auto *N = cast<ConstantSDNode>(Node);
54673 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
54681 auto *St = cast<MaskedStoreSDNode>(N);
54692 return cast<MaskedStoreSDNode>(N)->isTruncatingStore();
54700 auto *St = cast<MaskedStoreSDNode>(N);
54707 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54712 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54717 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54722 const APInt & Imm = cast<ConstantSDNode>(Node)->getAPIntValue();
54731 auto *N = cast<ConstantSDNode>(Node);
54739 auto *N = cast<ConstantSDNode>(Node);
54747 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54763 auto *N = cast<ConstantFPSDNode>(Node);
54771 auto *N = cast<ConstantFPSDNode>(Node);
54779 auto *N = cast<ConstantFPSDNode>(Node);
54790 auto *Ld = cast<MaskedLoadSDNode>(N);
54799 auto *Ld = cast<MaskedLoadSDNode>(N);
54810 return cast<MaskedLoadSDNode>(N)->getExtensionType() == ISD::SEXTLOAD;
54819 return cast<MaskedLoadSDNode>(N)->getExtensionType() == ISD::ZEXTLOAD;
54828 auto *Ld = cast<MaskedLoadSDNode>(N);
54838 auto *Ld = cast<MaskedLoadSDNode>(N);
54845 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54850 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54855 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
55023 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55030 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55037 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55049 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55055 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55062 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55070 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55076 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55084 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55090 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55096 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55104 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55111 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55118 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55125 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55133 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55141 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55147 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55155 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55163 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55171 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55178 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55185 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55191 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
55199 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
55207 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
gen/lib/Target/AVR/AVRGenDAGISel.inc 1578 auto *N = cast<ConstantSDNode>(Node);
1589 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1597 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
1603 auto *N = cast<ConstantSDNode>(Node);
1613 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1622 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
1628 auto *N = cast<ConstantSDNode>(Node);
1636 auto *N = cast<ConstantSDNode>(Node);
1648 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
1657 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
1663 auto *N = cast<ConstantSDNode>(Node);
1672 auto *N = cast<ConstantSDNode>(Node);
1678 auto *N = cast<ConstantSDNode>(Node);
1695 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
1709 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
1752 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1758 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1765 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1772 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1778 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/BPF/BPFGenDAGISel.inc 1924 auto *N = cast<ConstantSDNode>(Node);
1932 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1940 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
1951 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
1961 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
1971 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
1979 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
1987 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1995 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
2003 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
2011 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
2019 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
2026 auto *N = cast<ConstantSDNode>(Node);
2033 auto *N = cast<ConstantSDNode>(Node);
2040 auto *N = cast<ConstantSDNode>(Node);
2047 auto *N = cast<ConstantSDNode>(Node);
2054 auto *N = cast<ConstantSDNode>(Node);
2061 auto *N = cast<ConstantSDNode>(Node);
2068 auto *N = cast<ConstantSDNode>(Node);
2075 auto *N = cast<ConstantSDNode>(Node);
2082 auto *N = cast<ConstantSDNode>(Node);
2089 auto *N = cast<ConstantSDNode>(Node);
gen/lib/Target/Hexagon/HexagonGenDAGISel.inc72274 auto *N = cast<ConstantSDNode>(Node);
72290 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
72298 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
72312 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
72319 auto *N = cast<ConstantSDNode>(Node);
72327 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
72336 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
72344 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
72352 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
72358 auto *N = cast<ConstantSDNode>(Node);
72372 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
72379 auto *N = cast<ConstantSDNode>(Node);
72387 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
72396 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
72402 auto *N = cast<ConstantSDNode>(Node);
72411 auto *N = cast<ConstantSDNode>(Node);
72420 auto *N = cast<ConstantSDNode>(Node);
72429 auto *N = cast<ConstantSDNode>(Node);
72438 auto *N = cast<ConstantSDNode>(Node);
72447 auto *N = cast<ConstantSDNode>(Node);
72456 auto *N = cast<ConstantSDNode>(Node);
72465 auto *N = cast<ConstantSDNode>(Node);
72481 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
72488 auto *N = cast<ConstantSDNode>(Node);
72495 auto *N = cast<ConstantSDNode>(Node);
72505 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
72516 return isSmallStackStore(cast<StoreSDNode>(N));
72526 return !isSmallStackStore(cast<StoreSDNode>(N));
72532 auto *N = cast<ConstantSDNode>(Node);
72539 auto *N = cast<ConstantSDNode>(Node);
72546 auto *N = cast<ConstantSDNode>(Node);
72552 auto *N = cast<ConstantSDNode>(Node);
72569 return cast<StoreSDNode>(N)->isNonTemporal();
72577 StoreSDNode *St = cast<StoreSDNode>(N);
72618 auto *N = cast<ConstantSDNode>(Node);
72627 auto *N = cast<ConstantSDNode>(Node);
72638 auto *N = cast<ConstantSDNode>(Node);
72658 auto *N = cast<ConstantSDNode>(Node);
72665 auto *N = cast<ConstantSDNode>(Node);
72672 auto *N = cast<ConstantSDNode>(Node);
72678 auto *N = cast<ConstantSDNode>(Node);
72687 auto *N = cast<ConstantSDNode>(Node);
72696 auto *N = cast<ConstantSDNode>(Node);
72702 auto *N = cast<ConstantSDNode>(Node);
72708 auto *N = cast<ConstantSDNode>(Node);
72714 auto *N = cast<ConstantSDNode>(Node);
72729 auto *N = cast<ConstantSDNode>(Node);
72736 auto *N = cast<ConstantSDNode>(Node);
72742 auto *N = cast<ConstantSDNode>(Node);
72749 auto *N = cast<ConstantSDNode>(Node);
72756 auto *N = cast<ConstantSDNode>(Node);
72762 auto *N = cast<ConstantSDNode>(Node);
72768 auto *N = cast<ConstantSDNode>(Node);
72777 auto *N = cast<ConstantSDNode>(Node);
72786 auto *N = cast<ConstantSDNode>(Node);
72792 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
72803 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
72813 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
72824 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::v2i8;
72834 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::v4i8;
72842 return cast<LoadSDNode>(N)->isNonTemporal();
72850 LoadSDNode *Ld = cast<LoadSDNode>(N);
72856 auto *N = cast<ConstantSDNode>(Node);
72865 auto *N = cast<ConstantSDNode>(Node);
72871 auto *N = cast<ConstantSDNode>(Node);
72880 auto *N = cast<ConstantSDNode>(Node);
72886 auto *N = cast<ConstantSDNode>(Node);
72953 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72957 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72964 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72971 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72978 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72985 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72992 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72999 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73006 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73013 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73020 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73027 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73036 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73045 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73056 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73063 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73071 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73078 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73086 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73093 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73100 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73107 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73114 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73121 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73128 ConstantFPSDNode *N = cast<ConstantFPSDNode>(V.getNode());
73136 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73143 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73147 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73153 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73157 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73163 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73172 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73180 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/Lanai/LanaiGenDAGISel.inc 1347 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1355 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
1363 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
1371 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
1382 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
1394 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
1402 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
1410 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
1418 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
1426 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
1434 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
1440 auto *N = cast<ConstantSDNode>(Node);
1449 auto *N = cast<ConstantSDNode>(Node);
1458 auto *N = cast<ConstantSDNode>(Node);
1467 auto *N = cast<ConstantSDNode>(Node);
1476 auto *N = cast<ConstantSDNode>(Node);
1486 auto *N = cast<ConstantSDNode>(Node);
1494 auto *N = cast<ConstantSDNode>(Node);
1549 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1556 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1563 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1569 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/MSP430/MSP430GenDAGISel.inc 4791 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
4799 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
4807 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
4815 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
4821 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
4827 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
4835 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
4844 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
4860 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
gen/lib/Target/Mips/MipsGenDAGISel.inc29985 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
29993 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
30001 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
30022 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
30043 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
30064 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
30072 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
30080 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
30088 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
30096 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
30104 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
30112 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
30118 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30123 auto *N = cast<ConstantSDNode>(Node);
30136 auto *N = cast<ConstantSDNode>(Node);
30149 auto *N = cast<ConstantSDNode>(Node);
30162 auto *N = cast<ConstantSDNode>(Node);
30168 auto *N = cast<ConstantSDNode>(Node);
30176 auto *N = cast<ConstantSDNode>(Node);
30187 auto *N = cast<ConstantSDNode>(Node);
30193 auto *N = cast<ConstantSDNode>(Node);
30210 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
30217 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30222 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30227 auto *N = cast<ConstantSDNode>(Node);
30235 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30242 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30249 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30255 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30260 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30266 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30272 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30289 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30294 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30299 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30330 auto *N = cast<ConstantSDNode>(Node);
30338 auto *N = cast<ConstantSDNode>(Node);
30346 auto *N = cast<ConstantSDNode>(Node);
30354 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30361 auto *N = cast<ConstantSDNode>(Node);
30367 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30372 auto *N = cast<ConstantSDNode>(Node);
30378 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30385 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30390 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30403 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30408 auto *N = cast<ConstantSDNode>(Node);
30417 auto *N = cast<ConstantSDNode>(Node);
30425 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30430 auto *N = cast<ConstantSDNode>(Node);
30439 auto *N = cast<ConstantSDNode>(Node);
30448 auto *N = cast<ConstantSDNode>(Node);
30454 auto *N = cast<ConstantFPSDNode>(Node);
30462 auto *N = cast<ConstantFPSDNode>(Node);
30621 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30627 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30633 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30637 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30643 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30649 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/NVPTX/NVPTXGenDAGISel.inc71552 auto *N = cast<ConstantFPSDNode>(Node);
71561 auto *N = cast<ConstantFPSDNode>(Node);
71570 auto *N = cast<ConstantFPSDNode>(Node);
71579 auto *N = cast<ConstantFPSDNode>(Node);
72200 auto *N = cast<ConstantSDNode>(Node);
72210 auto *N = cast<ConstantSDNode>(Node);
72220 auto *N = cast<ConstantSDNode>(Node);
72229 auto *N = cast<ConstantSDNode>(Node);
72238 auto *N = cast<ConstantSDNode>(Node);
72247 auto *N = cast<ConstantSDNode>(Node);
72268 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
72286 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
72292 auto *N = cast<ConstantFPSDNode>(Node);
72301 auto *N = cast<ConstantFPSDNode>(Node);
72353 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72359 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72365 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72371 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72379 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/PowerPC/PPCGenDAGISel.inc44098 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
44107 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
44132 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
44158 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
44167 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
44195 ISD::MemIndexedMode AM = cast<StoreSDNode>(N)->getAddressingMode();
44221 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
44231 return cast<StoreSDNode>(N)->getAlignment() >= 4;
44239 return cast<StoreSDNode>(N)->getAlignment() < 4;
44248 return cast<StoreSDNode>(N)->getMemoryVT() == MVT::v4f32;
44253 auto *N = cast<ConstantSDNode>(Node);
44263 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44272 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44281 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44290 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44295 auto *N = cast<ConstantSDNode>(Node);
44316 auto *N = cast<ConstantSDNode>(Node);
44333 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
44341 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
44349 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
44357 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
44366 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
44374 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
44384 return cast<LoadSDNode>(N)->getAlignment() >= 4;
44393 return cast<LoadSDNode>(N)->getAlignment() < 4;
44400 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f32) return false;
44409 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::v4f32;
44429 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
44435 auto *N = cast<ConstantSDNode>(Node);
44464 auto *N = cast<ConstantFPSDNode>(Node);
44470 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44477 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44509 return PPC::isSplatShuffleMask(cast<ShuffleVectorSDNode>(N), 1);
44517 return PPC::isSplatShuffleMask(cast<ShuffleVectorSDNode>(N), 2);
44525 return PPC::isSplatShuffleMask(cast<ShuffleVectorSDNode>(N), 4);
44541 return PPC::isVPKUWUMShuffleMask(cast<ShuffleVectorSDNode>(N), 1, *CurDAG);
44549 return PPC::isVPKUHUMShuffleMask(cast<ShuffleVectorSDNode>(N), 1, *CurDAG);
44557 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 1, 1, *CurDAG);
44565 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 2, 1, *CurDAG);
44573 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 4, 1, *CurDAG);
44581 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 1, 1, *CurDAG);
44589 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 2, 1, *CurDAG);
44597 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 4, 1, *CurDAG);
44605 return PPC::isVMRGEOShuffleMask(cast<ShuffleVectorSDNode>(N), true, 1, *CurDAG);
44613 return PPC::isVMRGEOShuffleMask(cast<ShuffleVectorSDNode>(N), false, 1, *CurDAG);
44621 return PPC::isVPKUDUMShuffleMask(cast<ShuffleVectorSDNode>(N), 1, *CurDAG);
44629 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 1, 0, *CurDAG);
44637 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 2, 0, *CurDAG);
44645 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 4, 0, *CurDAG);
44653 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 1, 0, *CurDAG);
44661 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 2, 0, *CurDAG);
44669 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 4, 0, *CurDAG);
44677 return PPC::isVPKUHUMShuffleMask(cast<ShuffleVectorSDNode>(N), 0, *CurDAG);
44685 return PPC::isVPKUWUMShuffleMask(cast<ShuffleVectorSDNode>(N), 0, *CurDAG);
44709 return PPC::isVPKUWUMShuffleMask(cast<ShuffleVectorSDNode>(N), 2, *CurDAG);
44717 return PPC::isVPKUHUMShuffleMask(cast<ShuffleVectorSDNode>(N), 2, *CurDAG);
44725 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 1, 2, *CurDAG);
44733 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 2, 2, *CurDAG);
44741 return PPC::isVMRGLShuffleMask(cast<ShuffleVectorSDNode>(N), 4, 2, *CurDAG);
44749 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 1, 2, *CurDAG);
44757 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 2, 2, *CurDAG);
44765 return PPC::isVMRGHShuffleMask(cast<ShuffleVectorSDNode>(N), 4, 2, *CurDAG);
44773 return PPC::isVMRGEOShuffleMask(cast<ShuffleVectorSDNode>(N), true, 0, *CurDAG);
44781 return PPC::isVMRGEOShuffleMask(cast<ShuffleVectorSDNode>(N), false, 0, *CurDAG);
44789 return PPC::isVMRGEOShuffleMask(cast<ShuffleVectorSDNode>(N), true, 2, *CurDAG);
44797 return PPC::isVMRGEOShuffleMask(cast<ShuffleVectorSDNode>(N), false, 2, *CurDAG);
44805 return PPC::isVPKUDUMShuffleMask(cast<ShuffleVectorSDNode>(N), 0, *CurDAG);
44813 return PPC::isVPKUDUMShuffleMask(cast<ShuffleVectorSDNode>(N), 2, *CurDAG);
44879 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44886 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44893 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44901 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44910 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44919 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44925 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44932 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44939 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44947 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/RISCV/RISCVGenDAGISel.inc13813 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13828 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
13836 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
13849 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
13857 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
13870 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
13878 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
13886 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
13911 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
13919 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
13927 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
13935 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
13956 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
13962 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13967 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13976 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13985 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13990 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
14020 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::Monotonic) return false;
14051 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::Acquire) return false;
14082 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::Release) return false;
14113 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::AcquireRelease) return false;
14144 if (cast<AtomicSDNode>(N)->getOrdering() != AtomicOrdering::SequentiallyConsistent) return false;
14187 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
14194 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/Sparc/SparcGenDAGISel.inc 3428 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
3436 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
3444 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
3457 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
3470 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
3485 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
3491 auto *N = cast<ConstantSDNode>(Node);
3499 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
3507 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
3515 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
3523 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
3531 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
3540 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
3550 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
3556 auto *N = cast<ConstantSDNode>(Node);
3564 auto *N = cast<ConstantSDNode>(Node);
3570 auto *N = cast<ConstantSDNode>(Node);
3578 auto *N = cast<ConstantSDNode>(Node);
3584 auto *N = cast<ConstantSDNode>(Node);
3633 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3640 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3646 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3654 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3661 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3668 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3675 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3682 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/SystemZ/SystemZGenDAGISel.inc29821 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
29830 return cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD;
29840 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::i8;
29850 auto *Load = cast<LoadSDNode>(N);
29858 auto *N = cast<ConstantSDNode>(Node);
29868 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
29876 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
29884 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
29895 auto *Store = cast<StoreSDNode>(N);
29906 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::i16;
29913 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
29921 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
29930 return cast<LoadSDNode>(N)->isSimple();
29937 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
29946 return cast<StoreSDNode>(N)->isSimple();
29956 return cast<LoadSDNode>(N)->getMemoryVT() == MVT::i32;
29974 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
29997 auto *N = cast<ConstantSDNode>(Node);
30011 auto *N = cast<ConstantSDNode>(Node);
30019 auto *N = cast<ConstantSDNode>(Node);
30027 auto *N = cast<ConstantSDNode>(Node);
30040 auto *Store = cast<StoreSDNode>(N);
30047 auto *N = cast<ConstantSDNode>(Node);
30058 unsigned Type = cast<LoadSDNode>(N)->getExtensionType();
30067 unsigned Type = cast<LoadSDNode>(N)->getExtensionType();
30074 auto *N = cast<ConstantSDNode>(Node);
30083 auto *N = cast<ConstantSDNode>(Node);
30091 auto *N = cast<ConstantSDNode>(Node);
30099 auto *N = cast<ConstantSDNode>(Node);
30107 auto *N = cast<ConstantSDNode>(Node);
30136 auto *N = cast<ConstantSDNode>(Node);
30145 auto *N = cast<ConstantSDNode>(Node);
30153 auto *N = cast<ConstantSDNode>(Node);
30161 auto *N = cast<ConstantSDNode>(Node);
30170 auto *N = cast<ConstantSDNode>(Node);
30178 auto *N = cast<ConstantSDNode>(Node);
30186 auto *N = cast<ConstantSDNode>(Node);
30194 auto *N = cast<ConstantSDNode>(Node);
30202 auto *N = cast<ConstantSDNode>(Node);
30210 auto *N = cast<ConstantSDNode>(Node);
30218 auto *N = cast<ConstantSDNode>(Node);
30226 auto *N = cast<ConstantSDNode>(Node);
30234 auto *N = cast<ConstantSDNode>(Node);
30242 auto *N = cast<ConstantSDNode>(Node);
30255 auto *Load = cast<LoadSDNode>(N);
30281 auto *N = cast<ConstantSDNode>(Node);
30289 auto *N = cast<ConstantSDNode>(Node);
30301 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i16;
30310 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i32;
30319 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i64;
30324 auto *N = cast<ConstantSDNode>(Node);
30332 auto *N = cast<ConstantSDNode>(Node);
30340 auto *N = cast<ConstantSDNode>(Node);
30348 auto *N = cast<ConstantSDNode>(Node);
30356 auto *N = cast<ConstantSDNode>(Node);
30364 auto *N = cast<ConstantFPSDNode>(Node);
30370 auto *N = cast<ConstantFPSDNode>(Node);
30378 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
30386 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f32) return false;
30394 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f64) return false;
30412 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
30418 auto *N = cast<ConstantSDNode>(Node);
30511 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30518 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30525 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30532 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30539 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30546 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30553 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30560 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30567 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30574 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30581 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30588 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30595 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30602 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30609 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30616 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30623 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30630 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30637 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/WebAssembly/WebAssemblyGenDAGISel.inc21174 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
21194 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
21213 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21218 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21237 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
21253 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
21261 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
21269 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
21277 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
21285 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
21293 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
21303 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i8) return false;
21313 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i16) return false;
21323 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i32) return false;
21331 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
21339 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
21347 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
21353 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21358 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21363 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21368 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21373 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
gen/lib/Target/X86/X86GenDAGISel.inc253573 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
253581 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
253590 return cast<StoreSDNode>(N)->isNonTemporal();
253598 StoreSDNode *St = cast<StoreSDNode>(N);
253606 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
253615 LoadSDNode *LD = cast<LoadSDNode>(N);
253634 LoadSDNode *LD = cast<LoadSDNode>(N);
253648 LoadSDNode *LD = cast<LoadSDNode>(N);
253661 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
253693 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253700 auto *N = cast<ConstantSDNode>(Node);
253759 return cast<StoreSDNode>(N)->isSimple();
253766 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
253775 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f32) return false;
253784 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::f64) return false;
253793 auto *St = cast<StoreSDNode>(N);
253801 if (cast<StoreSDNode>(N)->getMemoryVT().getScalarType() != MVT::i8) return false;
253809 if (cast<StoreSDNode>(N)->getMemoryVT().getScalarType() != MVT::i16) return false;
253817 if (cast<StoreSDNode>(N)->getMemoryVT().getScalarType() != MVT::i32) return false;
253826 return (!cast<MaskedStoreSDNode>(N)->isTruncatingStore()) &&
253827 (!cast<MaskedStoreSDNode>(N)->isCompressingStore());
253838 auto *St = cast<MaskedStoreSDNode>(N);
253847 return cast<MaskedStoreSDNode>(N)->isCompressingStore();
253855 return cast<MaskedStoreSDNode>(N)->isTruncatingStore();
253863 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
253871 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
253879 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
253892 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
253906 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
253919 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i32) return false;
253930 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i64) return false;
253936 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253944 auto *Ld = cast<LoadSDNode>(N);
253951 auto *N = cast<ConstantSDNode>(Node);
253959 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253966 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253986 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254005 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254012 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254019 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254029 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getStoreSize() == 8;
254038 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getStoreSize() == 4;
254065 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
254111 return cast<LoadSDNode>(N)->isSimple();
254145 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254156 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i16;
254165 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i32;
254176 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i64;
254185 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::f32;
254194 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::f64;
254203 return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::f80;
254210 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
254219 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i1) return false;
254227 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
254236 LoadSDNode *LD = cast<LoadSDNode>(N);
254252 LoadSDNode *Ld = cast<LoadSDNode>(N);
254261 return cast<LoadSDNode>(N)->isNonTemporal();
254269 auto *Ld = cast<LoadSDNode>(N);
254278 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i8) return false;
254287 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i16) return false;
254296 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::i32) return false;
254304 if (cast<LoadSDNode>(N)->getMemoryVT().getScalarType() != MVT::f32) return false;
254313 return cast<TruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
254321 return cast<TruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
254329 return cast<TruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
254337 return cast<MaskedTruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
254345 return cast<MaskedTruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
254353 return cast<MaskedTruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
254361 return cast<TruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
254369 return cast<TruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
254377 return cast<TruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
254385 return cast<MaskedTruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
254393 return cast<MaskedTruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
254401 return cast<MaskedTruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
254415 auto *N = cast<ConstantSDNode>(Node);
254426 auto *N = cast<ConstantFPSDNode>(Node);
254437 LoadSDNode *Ld = cast<LoadSDNode>(N);
254444 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
254451 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
254458 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
254465 const APFloat & Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
254475 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getStoreSize() == 1;
254483 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getStoreSize() == 2;
254504 return !cast<MaskedLoadSDNode>(N)->isExpandingLoad() &&
254505 cast<MaskedLoadSDNode>(N)->getExtensionType() == ISD::NON_EXTLOAD;
254516 auto *Ld = cast<MaskedLoadSDNode>(N);
254525 return cast<MaskedLoadSDNode>(N)->isExpandingLoad();
254553 X86MaskedGatherSDNode *Mgt = cast<X86MaskedGatherSDNode>(N);
254562 X86MaskedGatherSDNode *Mgt = cast<X86MaskedGatherSDNode>(N);
254571 X86MaskedGatherSDNode *Mgt = cast<X86MaskedGatherSDNode>(N);
254580 X86MaskedGatherSDNode *Mgt = cast<X86MaskedGatherSDNode>(N);
254589 X86MaskedGatherSDNode *Mgt = cast<X86MaskedGatherSDNode>(N);
254598 X86MaskedGatherSDNode *Mgt = cast<X86MaskedGatherSDNode>(N);
254607 X86MaskedScatterSDNode *Sc = cast<X86MaskedScatterSDNode>(N);
254616 X86MaskedScatterSDNode *Sc = cast<X86MaskedScatterSDNode>(N);
254625 X86MaskedScatterSDNode *Sc = cast<X86MaskedScatterSDNode>(N);
254634 X86MaskedScatterSDNode *Sc = cast<X86MaskedScatterSDNode>(N);
254643 X86MaskedScatterSDNode *Sc = cast<X86MaskedScatterSDNode>(N);
254652 X86MaskedScatterSDNode *Sc = cast<X86MaskedScatterSDNode>(N);
254743 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254750 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254757 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254764 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254771 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254778 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254802 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254810 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254817 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254824 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254831 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254849 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254855 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254861 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254875 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254889 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254903 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254919 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254935 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254943 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254950 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254957 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254969 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254981 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254993 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255005 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255017 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255029 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255036 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/XCore/XCoreGenDAGISel.inc 2273 auto *N = cast<ConstantSDNode>(Node);
2281 auto *N = cast<ConstantSDNode>(Node);
2290 auto *N = cast<ConstantSDNode>(Node);
2298 auto *N = cast<ConstantSDNode>(Node);
2309 if (cast<LoadSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
2317 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::SEXTLOAD) return false;
2327 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i16) return false;
2335 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::EXTLOAD) return false;
2343 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::NON_EXTLOAD) return false;
2351 if (cast<LoadSDNode>(N)->getExtensionType() != ISD::ZEXTLOAD) return false;
2361 if (cast<MemSDNode>(N)->getMemoryVT() != MVT::i8) return false;
2369 if (cast<StoreSDNode>(N)->getAddressingMode() != ISD::UNINDEXED) return false;
2377 if (!cast<StoreSDNode>(N)->isTruncatingStore()) return false;
2385 if (cast<StoreSDNode>(N)->isTruncatingStore()) return false;
2391 auto *N = cast<ConstantSDNode>(Node);
2403 auto *N = cast<ConstantSDNode>(Node);
2415 auto *N = cast<ConstantSDNode>(Node);
2423 auto *N = cast<ConstantSDNode>(Node);
2431 auto *N = cast<ConstantSDNode>(Node);
2474 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2482 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2490 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2499 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2507 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/tools/clang/include/clang/AST/AttrImpl.inc11496 return cast<AArch64VectorPcsAttr>(this)->getSpelling();
11498 return cast<AMDGPUFlatWorkGroupSizeAttr>(this)->getSpelling();
11500 return cast<AMDGPUNumSGPRAttr>(this)->getSpelling();
11502 return cast<AMDGPUNumVGPRAttr>(this)->getSpelling();
11504 return cast<AMDGPUWavesPerEUAttr>(this)->getSpelling();
11506 return cast<ARMInterruptAttr>(this)->getSpelling();
11508 return cast<AVRInterruptAttr>(this)->getSpelling();
11510 return cast<AVRSignalAttr>(this)->getSpelling();
11512 return cast<AbiTagAttr>(this)->getSpelling();
11514 return cast<AcquireCapabilityAttr>(this)->getSpelling();
11516 return cast<AcquiredAfterAttr>(this)->getSpelling();
11518 return cast<AcquiredBeforeAttr>(this)->getSpelling();
11520 return cast<AddressSpaceAttr>(this)->getSpelling();
11522 return cast<AliasAttr>(this)->getSpelling();
11524 return cast<AlignMac68kAttr>(this)->getSpelling();
11526 return cast<AlignValueAttr>(this)->getSpelling();
11528 return cast<AlignedAttr>(this)->getSpelling();
11530 return cast<AllocAlignAttr>(this)->getSpelling();
11532 return cast<AllocSizeAttr>(this)->getSpelling();
11534 return cast<AlwaysDestroyAttr>(this)->getSpelling();
11536 return cast<AlwaysInlineAttr>(this)->getSpelling();
11538 return cast<AnalyzerNoReturnAttr>(this)->getSpelling();
11540 return cast<AnnotateAttr>(this)->getSpelling();
11542 return cast<AnyX86InterruptAttr>(this)->getSpelling();
11544 return cast<AnyX86NoCallerSavedRegistersAttr>(this)->getSpelling();
11546 return cast<AnyX86NoCfCheckAttr>(this)->getSpelling();
11548 return cast<ArcWeakrefUnavailableAttr>(this)->getSpelling();
11550 return cast<ArgumentWithTypeTagAttr>(this)->getSpelling();
11552 return cast<ArmMveAliasAttr>(this)->getSpelling();
11554 return cast<ArtificialAttr>(this)->getSpelling();
11556 return cast<AsmLabelAttr>(this)->getSpelling();
11558 return cast<AssertCapabilityAttr>(this)->getSpelling();
11560 return cast<AssertExclusiveLockAttr>(this)->getSpelling();
11562 return cast<AssertSharedLockAttr>(this)->getSpelling();
11564 return cast<AssumeAlignedAttr>(this)->getSpelling();
11566 return cast<AvailabilityAttr>(this)->getSpelling();
11568 return cast<BlocksAttr>(this)->getSpelling();
11570 return cast<C11NoReturnAttr>(this)->getSpelling();
11572 return cast<CDeclAttr>(this)->getSpelling();
11574 return cast<CFAuditedTransferAttr>(this)->getSpelling();
11576 return cast<CFConsumedAttr>(this)->getSpelling();
11578 return cast<CFICanonicalJumpTableAttr>(this)->getSpelling();
11580 return cast<CFReturnsNotRetainedAttr>(this)->getSpelling();
11582 return cast<CFReturnsRetainedAttr>(this)->getSpelling();
11584 return cast<CFUnknownTransferAttr>(this)->getSpelling();
11586 return cast<CPUDispatchAttr>(this)->getSpelling();
11588 return cast<CPUSpecificAttr>(this)->getSpelling();
11590 return cast<CUDAConstantAttr>(this)->getSpelling();
11592 return cast<CUDADeviceAttr>(this)->getSpelling();
11594 return cast<CUDAGlobalAttr>(this)->getSpelling();
11596 return cast<CUDAHostAttr>(this)->getSpelling();
11598 return cast<CUDAInvalidTargetAttr>(this)->getSpelling();
11600 return cast<CUDALaunchBoundsAttr>(this)->getSpelling();
11602 return cast<CUDASharedAttr>(this)->getSpelling();
11604 return cast<CXX11NoReturnAttr>(this)->getSpelling();
11606 return cast<CallableWhenAttr>(this)->getSpelling();
11608 return cast<CallbackAttr>(this)->getSpelling();
11610 return cast<CapabilityAttr>(this)->getSpelling();
11612 return cast<CapturedRecordAttr>(this)->getSpelling();
11614 return cast<CarriesDependencyAttr>(this)->getSpelling();
11616 return cast<CleanupAttr>(this)->getSpelling();
11618 return cast<CodeSegAttr>(this)->getSpelling();
11620 return cast<ColdAttr>(this)->getSpelling();
11622 return cast<CommonAttr>(this)->getSpelling();
11624 return cast<ConstAttr>(this)->getSpelling();
11626 return cast<ConstInitAttr>(this)->getSpelling();
11628 return cast<ConstructorAttr>(this)->getSpelling();
11630 return cast<ConsumableAttr>(this)->getSpelling();
11632 return cast<ConsumableAutoCastAttr>(this)->getSpelling();
11634 return cast<ConsumableSetOnReadAttr>(this)->getSpelling();
11636 return cast<ConvergentAttr>(this)->getSpelling();
11638 return cast<DLLExportAttr>(this)->getSpelling();
11640 return cast<DLLExportStaticLocalAttr>(this)->getSpelling();
11642 return cast<DLLImportAttr>(this)->getSpelling();
11644 return cast<DLLImportStaticLocalAttr>(this)->getSpelling();
11646 return cast<DeprecatedAttr>(this)->getSpelling();
11648 return cast<DestructorAttr>(this)->getSpelling();
11650 return cast<DiagnoseIfAttr>(this)->getSpelling();
11652 return cast<DisableTailCallsAttr>(this)->getSpelling();
11654 return cast<EmptyBasesAttr>(this)->getSpelling();
11656 return cast<EnableIfAttr>(this)->getSpelling();
11658 return cast<EnumExtensibilityAttr>(this)->getSpelling();
11660 return cast<ExcludeFromExplicitInstantiationAttr>(this)->getSpelling();
11662 return cast<ExclusiveTrylockFunctionAttr>(this)->getSpelling();
11664 return cast<ExternalSourceSymbolAttr>(this)->getSpelling();
11666 return cast<FallThroughAttr>(this)->getSpelling();
11668 return cast<FastCallAttr>(this)->getSpelling();
11670 return cast<FinalAttr>(this)->getSpelling();
11672 return cast<FlagEnumAttr>(this)->getSpelling();
11674 return cast<FlattenAttr>(this)->getSpelling();
11676 return cast<FormatAttr>(this)->getSpelling();
11678 return cast<FormatArgAttr>(this)->getSpelling();
11680 return cast<GNUInlineAttr>(this)->getSpelling();
11682 return cast<GuardedByAttr>(this)->getSpelling();
11684 return cast<GuardedVarAttr>(this)->getSpelling();
11686 return cast<HIPPinnedShadowAttr>(this)->getSpelling();
11688 return cast<HotAttr>(this)->getSpelling();
11690 return cast<IBActionAttr>(this)->getSpelling();
11692 return cast<IBOutletAttr>(this)->getSpelling();
11694 return cast<IBOutletCollectionAttr>(this)->getSpelling();
11696 return cast<IFuncAttr>(this)->getSpelling();
11698 return cast<InitPriorityAttr>(this)->getSpelling();
11700 return cast<InitSegAttr>(this)->getSpelling();
11702 return cast<IntelOclBiccAttr>(this)->getSpelling();
11704 return cast<InternalLinkageAttr>(this)->getSpelling();
11706 return cast<LTOVisibilityPublicAttr>(this)->getSpelling();
11708 return cast<LayoutVersionAttr>(this)->getSpelling();
11710 return cast<LifetimeBoundAttr>(this)->getSpelling();
11712 return cast<LockReturnedAttr>(this)->getSpelling();
11714 return cast<LocksExcludedAttr>(this)->getSpelling();
11716 return cast<LoopHintAttr>(this)->getSpelling();
11718 return cast<MIGServerRoutineAttr>(this)->getSpelling();
11720 return cast<MSABIAttr>(this)->getSpelling();
11722 return cast<MSAllocatorAttr>(this)->getSpelling();
11724 return cast<MSInheritanceAttr>(this)->getSpelling();
11726 return cast<MSNoVTableAttr>(this)->getSpelling();
11728 return cast<MSP430InterruptAttr>(this)->getSpelling();
11730 return cast<MSStructAttr>(this)->getSpelling();
11732 return cast<MSVtorDispAttr>(this)->getSpelling();
11734 return cast<MaxFieldAlignmentAttr>(this)->getSpelling();
11736 return cast<MayAliasAttr>(this)->getSpelling();
11738 return cast<MicroMipsAttr>(this)->getSpelling();
11740 return cast<MinSizeAttr>(this)->getSpelling();
11742 return cast<MinVectorWidthAttr>(this)->getSpelling();
11744 return cast<Mips16Attr>(this)->getSpelling();
11746 return cast<MipsInterruptAttr>(this)->getSpelling();
11748 return cast<MipsLongCallAttr>(this)->getSpelling();
11750 return cast<MipsShortCallAttr>(this)->getSpelling();
11752 return cast<ModeAttr>(this)->getSpelling();
11754 return cast<NSConsumedAttr>(this)->getSpelling();
11756 return cast<NSConsumesSelfAttr>(this)->getSpelling();
11758 return cast<NSReturnsAutoreleasedAttr>(this)->getSpelling();
11760 return cast<NSReturnsNotRetainedAttr>(this)->getSpelling();
11762 return cast<NSReturnsRetainedAttr>(this)->getSpelling();
11764 return cast<NakedAttr>(this)->getSpelling();
11766 return cast<NoAliasAttr>(this)->getSpelling();
11768 return cast<NoCommonAttr>(this)->getSpelling();
11770 return cast<NoDebugAttr>(this)->getSpelling();
11772 return cast<NoDerefAttr>(this)->getSpelling();
11774 return cast<NoDestroyAttr>(this)->getSpelling();
11776 return cast<NoDuplicateAttr>(this)->getSpelling();
11778 return cast<NoEscapeAttr>(this)->getSpelling();
11780 return cast<NoInlineAttr>(this)->getSpelling();
11782 return cast<NoInstrumentFunctionAttr>(this)->getSpelling();
11784 return cast<NoMicroMipsAttr>(this)->getSpelling();
11786 return cast<NoMips16Attr>(this)->getSpelling();
11788 return cast<NoReturnAttr>(this)->getSpelling();
11790 return cast<NoSanitizeAttr>(this)->getSpelling();
11792 return cast<NoSpeculativeLoadHardeningAttr>(this)->getSpelling();
11794 return cast<NoSplitStackAttr>(this)->getSpelling();
11796 return cast<NoStackProtectorAttr>(this)->getSpelling();
11798 return cast<NoThreadSafetyAnalysisAttr>(this)->getSpelling();
11800 return cast<NoThrowAttr>(this)->getSpelling();
11802 return cast<NoUniqueAddressAttr>(this)->getSpelling();
11804 return cast<NonNullAttr>(this)->getSpelling();
11806 return cast<NotTailCalledAttr>(this)->getSpelling();
11808 return cast<OMPAllocateDeclAttr>(this)->getSpelling();
11810 return cast<OMPCaptureKindAttr>(this)->getSpelling();
11812 return cast<OMPCaptureNoInitAttr>(this)->getSpelling();
11814 return cast<OMPDeclareSimdDeclAttr>(this)->getSpelling();
11816 return cast<OMPDeclareTargetDeclAttr>(this)->getSpelling();
11818 return cast<OMPDeclareVariantAttr>(this)->getSpelling();
11820 return cast<OMPReferencedVarAttr>(this)->getSpelling();
11822 return cast<OMPThreadPrivateDeclAttr>(this)->getSpelling();
11824 return cast<OSConsumedAttr>(this)->getSpelling();
11826 return cast<OSConsumesThisAttr>(this)->getSpelling();
11828 return cast<OSReturnsNotRetainedAttr>(this)->getSpelling();
11830 return cast<OSReturnsRetainedAttr>(this)->getSpelling();
11832 return cast<OSReturnsRetainedOnNonZeroAttr>(this)->getSpelling();
11834 return cast<OSReturnsRetainedOnZeroAttr>(this)->getSpelling();
11836 return cast<ObjCBoxableAttr>(this)->getSpelling();
11838 return cast<ObjCBridgeAttr>(this)->getSpelling();
11840 return cast<ObjCBridgeMutableAttr>(this)->getSpelling();
11842 return cast<ObjCBridgeRelatedAttr>(this)->getSpelling();
11844 return cast<ObjCClassStubAttr>(this)->getSpelling();
11846 return cast<ObjCDesignatedInitializerAttr>(this)->getSpelling();
11848 return cast<ObjCExceptionAttr>(this)->getSpelling();
11850 return cast<ObjCExplicitProtocolImplAttr>(this)->getSpelling();
11852 return cast<ObjCExternallyRetainedAttr>(this)->getSpelling();
11854 return cast<ObjCGCAttr>(this)->getSpelling();
11856 return cast<ObjCIndependentClassAttr>(this)->getSpelling();
11858 return cast<ObjCInertUnsafeUnretainedAttr>(this)->getSpelling();
11860 return cast<ObjCKindOfAttr>(this)->getSpelling();
11862 return cast<ObjCMethodFamilyAttr>(this)->getSpelling();
11864 return cast<ObjCNSObjectAttr>(this)->getSpelling();
11866 return cast<ObjCNonLazyClassAttr>(this)->getSpelling();
11868 return cast<ObjCOwnershipAttr>(this)->getSpelling();
11870 return cast<ObjCPreciseLifetimeAttr>(this)->getSpelling();
11872 return cast<ObjCRequiresPropertyDefsAttr>(this)->getSpelling();
11874 return cast<ObjCRequiresSuperAttr>(this)->getSpelling();
11876 return cast<ObjCReturnsInnerPointerAttr>(this)->getSpelling();
11878 return cast<ObjCRootClassAttr>(this)->getSpelling();
11880 return cast<ObjCRuntimeNameAttr>(this)->getSpelling();
11882 return cast<ObjCRuntimeVisibleAttr>(this)->getSpelling();
11884 return cast<ObjCSubclassingRestrictedAttr>(this)->getSpelling();
11886 return cast<OpenCLAccessAttr>(this)->getSpelling();
11888 return cast<OpenCLConstantAddressSpaceAttr>(this)->getSpelling();
11890 return cast<OpenCLGenericAddressSpaceAttr>(this)->getSpelling();
11892 return cast<OpenCLGlobalAddressSpaceAttr>(this)->getSpelling();
11894 return cast<OpenCLIntelReqdSubGroupSizeAttr>(this)->getSpelling();
11896 return cast<OpenCLKernelAttr>(this)->getSpelling();
11898 return cast<OpenCLLocalAddressSpaceAttr>(this)->getSpelling();
11900 return cast<OpenCLPrivateAddressSpaceAttr>(this)->getSpelling();
11902 return cast<OpenCLUnrollHintAttr>(this)->getSpelling();
11904 return cast<OptimizeNoneAttr>(this)->getSpelling();
11906 return cast<OverloadableAttr>(this)->getSpelling();
11908 return cast<OverrideAttr>(this)->getSpelling();
11910 return cast<OwnerAttr>(this)->getSpelling();
11912 return cast<OwnershipAttr>(this)->getSpelling();
11914 return cast<PackedAttr>(this)->getSpelling();
11916 return cast<ParamTypestateAttr>(this)->getSpelling();
11918 return cast<PascalAttr>(this)->getSpelling();
11920 return cast<PassObjectSizeAttr>(this)->getSpelling();
11922 return cast<PcsAttr>(this)->getSpelling();
11924 return cast<PointerAttr>(this)->getSpelling();
11926 return cast<PragmaClangBSSSectionAttr>(this)->getSpelling();
11928 return cast<PragmaClangDataSectionAttr>(this)->getSpelling();
11930 return cast<PragmaClangRelroSectionAttr>(this)->getSpelling();
11932 return cast<PragmaClangRodataSectionAttr>(this)->getSpelling();
11934 return cast<PragmaClangTextSectionAttr>(this)->getSpelling();
11936 return cast<PreserveAllAttr>(this)->getSpelling();
11938 return cast<PreserveMostAttr>(this)->getSpelling();
11940 return cast<PtGuardedByAttr>(this)->getSpelling();
11942 return cast<PtGuardedVarAttr>(this)->getSpelling();
11944 return cast<Ptr32Attr>(this)->getSpelling();
11946 return cast<Ptr64Attr>(this)->getSpelling();
11948 return cast<PureAttr>(this)->getSpelling();
11950 return cast<RISCVInterruptAttr>(this)->getSpelling();
11952 return cast<RegCallAttr>(this)->getSpelling();
11954 return cast<ReinitializesAttr>(this)->getSpelling();
11956 return cast<ReleaseCapabilityAttr>(this)->getSpelling();
11958 return cast<RenderScriptKernelAttr>(this)->getSpelling();
11960 return cast<ReqdWorkGroupSizeAttr>(this)->getSpelling();
11962 return cast<RequiresCapabilityAttr>(this)->getSpelling();
11964 return cast<RestrictAttr>(this)->getSpelling();
11966 return cast<ReturnTypestateAttr>(this)->getSpelling();
11968 return cast<ReturnsNonNullAttr>(this)->getSpelling();
11970 return cast<ReturnsTwiceAttr>(this)->getSpelling();
11972 return cast<SPtrAttr>(this)->getSpelling();
11974 return cast<ScopedLockableAttr>(this)->getSpelling();
11976 return cast<SectionAttr>(this)->getSpelling();
11978 return cast<SelectAnyAttr>(this)->getSpelling();
11980 return cast<SentinelAttr>(this)->getSpelling();
11982 return cast<SetTypestateAttr>(this)->getSpelling();
11984 return cast<SharedTrylockFunctionAttr>(this)->getSpelling();
11986 return cast<SpeculativeLoadHardeningAttr>(this)->getSpelling();
11988 return cast<StdCallAttr>(this)->getSpelling();
11990 return cast<SuppressAttr>(this)->getSpelling();
11992 return cast<SwiftCallAttr>(this)->getSpelling();
11994 return cast<SwiftContextAttr>(this)->getSpelling();
11996 return cast<SwiftErrorResultAttr>(this)->getSpelling();
11998 return cast<SwiftIndirectResultAttr>(this)->getSpelling();
12000 return cast<SysVABIAttr>(this)->getSpelling();
12002 return cast<TLSModelAttr>(this)->getSpelling();
12004 return cast<TargetAttr>(this)->getSpelling();
12006 return cast<TestTypestateAttr>(this)->getSpelling();
12008 return cast<ThisCallAttr>(this)->getSpelling();
12010 return cast<ThreadAttr>(this)->getSpelling();
12012 return cast<TransparentUnionAttr>(this)->getSpelling();
12014 return cast<TrivialABIAttr>(this)->getSpelling();
12016 return cast<TryAcquireCapabilityAttr>(this)->getSpelling();
12018 return cast<TypeNonNullAttr>(this)->getSpelling();
12020 return cast<TypeNullUnspecifiedAttr>(this)->getSpelling();
12022 return cast<TypeNullableAttr>(this)->getSpelling();
12024 return cast<TypeTagForDatatypeAttr>(this)->getSpelling();
12026 return cast<TypeVisibilityAttr>(this)->getSpelling();
12028 return cast<UPtrAttr>(this)->getSpelling();
12030 return cast<UnavailableAttr>(this)->getSpelling();
12032 return cast<UninitializedAttr>(this)->getSpelling();
12034 return cast<UnusedAttr>(this)->getSpelling();
12036 return cast<UsedAttr>(this)->getSpelling();
12038 return cast<UuidAttr>(this)->getSpelling();
12040 return cast<VecReturnAttr>(this)->getSpelling();
12042 return cast<VecTypeHintAttr>(this)->getSpelling();
12044 return cast<VectorCallAttr>(this)->getSpelling();
12046 return cast<VisibilityAttr>(this)->getSpelling();
12048 return cast<WarnUnusedAttr>(this)->getSpelling();
12050 return cast<WarnUnusedResultAttr>(this)->getSpelling();
12052 return cast<WeakAttr>(this)->getSpelling();
12054 return cast<WeakImportAttr>(this)->getSpelling();
12056 return cast<WeakRefAttr>(this)->getSpelling();
12058 return cast<WebAssemblyImportModuleAttr>(this)->getSpelling();
12060 return cast<WebAssemblyImportNameAttr>(this)->getSpelling();
12062 return cast<WorkGroupSizeHintAttr>(this)->getSpelling();
12064 return cast<X86ForceAlignArgPointerAttr>(this)->getSpelling();
12066 return cast<XRayInstrumentAttr>(this)->getSpelling();
12068 return cast<XRayLogArgsAttr>(this)->getSpelling();
12076 return cast<AArch64VectorPcsAttr>(this)->clone(C);
12078 return cast<AMDGPUFlatWorkGroupSizeAttr>(this)->clone(C);
12080 return cast<AMDGPUNumSGPRAttr>(this)->clone(C);
12082 return cast<AMDGPUNumVGPRAttr>(this)->clone(C);
12084 return cast<AMDGPUWavesPerEUAttr>(this)->clone(C);
12086 return cast<ARMInterruptAttr>(this)->clone(C);
12088 return cast<AVRInterruptAttr>(this)->clone(C);
12090 return cast<AVRSignalAttr>(this)->clone(C);
12092 return cast<AbiTagAttr>(this)->clone(C);
12094 return cast<AcquireCapabilityAttr>(this)->clone(C);
12096 return cast<AcquiredAfterAttr>(this)->clone(C);
12098 return cast<AcquiredBeforeAttr>(this)->clone(C);
12100 return cast<AddressSpaceAttr>(this)->clone(C);
12102 return cast<AliasAttr>(this)->clone(C);
12104 return cast<AlignMac68kAttr>(this)->clone(C);
12106 return cast<AlignValueAttr>(this)->clone(C);
12108 return cast<AlignedAttr>(this)->clone(C);
12110 return cast<AllocAlignAttr>(this)->clone(C);
12112 return cast<AllocSizeAttr>(this)->clone(C);
12114 return cast<AlwaysDestroyAttr>(this)->clone(C);
12116 return cast<AlwaysInlineAttr>(this)->clone(C);
12118 return cast<AnalyzerNoReturnAttr>(this)->clone(C);
12120 return cast<AnnotateAttr>(this)->clone(C);
12122 return cast<AnyX86InterruptAttr>(this)->clone(C);
12124 return cast<AnyX86NoCallerSavedRegistersAttr>(this)->clone(C);
12126 return cast<AnyX86NoCfCheckAttr>(this)->clone(C);
12128 return cast<ArcWeakrefUnavailableAttr>(this)->clone(C);
12130 return cast<ArgumentWithTypeTagAttr>(this)->clone(C);
12132 return cast<ArmMveAliasAttr>(this)->clone(C);
12134 return cast<ArtificialAttr>(this)->clone(C);
12136 return cast<AsmLabelAttr>(this)->clone(C);
12138 return cast<AssertCapabilityAttr>(this)->clone(C);
12140 return cast<AssertExclusiveLockAttr>(this)->clone(C);
12142 return cast<AssertSharedLockAttr>(this)->clone(C);
12144 return cast<AssumeAlignedAttr>(this)->clone(C);
12146 return cast<AvailabilityAttr>(this)->clone(C);
12148 return cast<BlocksAttr>(this)->clone(C);
12150 return cast<C11NoReturnAttr>(this)->clone(C);
12152 return cast<CDeclAttr>(this)->clone(C);
12154 return cast<CFAuditedTransferAttr>(this)->clone(C);
12156 return cast<CFConsumedAttr>(this)->clone(C);
12158 return cast<CFICanonicalJumpTableAttr>(this)->clone(C);
12160 return cast<CFReturnsNotRetainedAttr>(this)->clone(C);
12162 return cast<CFReturnsRetainedAttr>(this)->clone(C);
12164 return cast<CFUnknownTransferAttr>(this)->clone(C);
12166 return cast<CPUDispatchAttr>(this)->clone(C);
12168 return cast<CPUSpecificAttr>(this)->clone(C);
12170 return cast<CUDAConstantAttr>(this)->clone(C);
12172 return cast<CUDADeviceAttr>(this)->clone(C);
12174 return cast<CUDAGlobalAttr>(this)->clone(C);
12176 return cast<CUDAHostAttr>(this)->clone(C);
12178 return cast<CUDAInvalidTargetAttr>(this)->clone(C);
12180 return cast<CUDALaunchBoundsAttr>(this)->clone(C);
12182 return cast<CUDASharedAttr>(this)->clone(C);
12184 return cast<CXX11NoReturnAttr>(this)->clone(C);
12186 return cast<CallableWhenAttr>(this)->clone(C);
12188 return cast<CallbackAttr>(this)->clone(C);
12190 return cast<CapabilityAttr>(this)->clone(C);
12192 return cast<CapturedRecordAttr>(this)->clone(C);
12194 return cast<CarriesDependencyAttr>(this)->clone(C);
12196 return cast<CleanupAttr>(this)->clone(C);
12198 return cast<CodeSegAttr>(this)->clone(C);
12200 return cast<ColdAttr>(this)->clone(C);
12202 return cast<CommonAttr>(this)->clone(C);
12204 return cast<ConstAttr>(this)->clone(C);
12206 return cast<ConstInitAttr>(this)->clone(C);
12208 return cast<ConstructorAttr>(this)->clone(C);
12210 return cast<ConsumableAttr>(this)->clone(C);
12212 return cast<ConsumableAutoCastAttr>(this)->clone(C);
12214 return cast<ConsumableSetOnReadAttr>(this)->clone(C);
12216 return cast<ConvergentAttr>(this)->clone(C);
12218 return cast<DLLExportAttr>(this)->clone(C);
12220 return cast<DLLExportStaticLocalAttr>(this)->clone(C);
12222 return cast<DLLImportAttr>(this)->clone(C);
12224 return cast<DLLImportStaticLocalAttr>(this)->clone(C);
12226 return cast<DeprecatedAttr>(this)->clone(C);
12228 return cast<DestructorAttr>(this)->clone(C);
12230 return cast<DiagnoseIfAttr>(this)->clone(C);
12232 return cast<DisableTailCallsAttr>(this)->clone(C);
12234 return cast<EmptyBasesAttr>(this)->clone(C);
12236 return cast<EnableIfAttr>(this)->clone(C);
12238 return cast<EnumExtensibilityAttr>(this)->clone(C);
12240 return cast<ExcludeFromExplicitInstantiationAttr>(this)->clone(C);
12242 return cast<ExclusiveTrylockFunctionAttr>(this)->clone(C);
12244 return cast<ExternalSourceSymbolAttr>(this)->clone(C);
12246 return cast<FallThroughAttr>(this)->clone(C);
12248 return cast<FastCallAttr>(this)->clone(C);
12250 return cast<FinalAttr>(this)->clone(C);
12252 return cast<FlagEnumAttr>(this)->clone(C);
12254 return cast<FlattenAttr>(this)->clone(C);
12256 return cast<FormatAttr>(this)->clone(C);
12258 return cast<FormatArgAttr>(this)->clone(C);
12260 return cast<GNUInlineAttr>(this)->clone(C);
12262 return cast<GuardedByAttr>(this)->clone(C);
12264 return cast<GuardedVarAttr>(this)->clone(C);
12266 return cast<HIPPinnedShadowAttr>(this)->clone(C);
12268 return cast<HotAttr>(this)->clone(C);
12270 return cast<IBActionAttr>(this)->clone(C);
12272 return cast<IBOutletAttr>(this)->clone(C);
12274 return cast<IBOutletCollectionAttr>(this)->clone(C);
12276 return cast<IFuncAttr>(this)->clone(C);
12278 return cast<InitPriorityAttr>(this)->clone(C);
12280 return cast<InitSegAttr>(this)->clone(C);
12282 return cast<IntelOclBiccAttr>(this)->clone(C);
12284 return cast<InternalLinkageAttr>(this)->clone(C);
12286 return cast<LTOVisibilityPublicAttr>(this)->clone(C);
12288 return cast<LayoutVersionAttr>(this)->clone(C);
12290 return cast<LifetimeBoundAttr>(this)->clone(C);
12292 return cast<LockReturnedAttr>(this)->clone(C);
12294 return cast<LocksExcludedAttr>(this)->clone(C);
12296 return cast<LoopHintAttr>(this)->clone(C);
12298 return cast<MIGServerRoutineAttr>(this)->clone(C);
12300 return cast<MSABIAttr>(this)->clone(C);
12302 return cast<MSAllocatorAttr>(this)->clone(C);
12304 return cast<MSInheritanceAttr>(this)->clone(C);
12306 return cast<MSNoVTableAttr>(this)->clone(C);
12308 return cast<MSP430InterruptAttr>(this)->clone(C);
12310 return cast<MSStructAttr>(this)->clone(C);
12312 return cast<MSVtorDispAttr>(this)->clone(C);
12314 return cast<MaxFieldAlignmentAttr>(this)->clone(C);
12316 return cast<MayAliasAttr>(this)->clone(C);
12318 return cast<MicroMipsAttr>(this)->clone(C);
12320 return cast<MinSizeAttr>(this)->clone(C);
12322 return cast<MinVectorWidthAttr>(this)->clone(C);
12324 return cast<Mips16Attr>(this)->clone(C);
12326 return cast<MipsInterruptAttr>(this)->clone(C);
12328 return cast<MipsLongCallAttr>(this)->clone(C);
12330 return cast<MipsShortCallAttr>(this)->clone(C);
12332 return cast<ModeAttr>(this)->clone(C);
12334 return cast<NSConsumedAttr>(this)->clone(C);
12336 return cast<NSConsumesSelfAttr>(this)->clone(C);
12338 return cast<NSReturnsAutoreleasedAttr>(this)->clone(C);
12340 return cast<NSReturnsNotRetainedAttr>(this)->clone(C);
12342 return cast<NSReturnsRetainedAttr>(this)->clone(C);
12344 return cast<NakedAttr>(this)->clone(C);
12346 return cast<NoAliasAttr>(this)->clone(C);
12348 return cast<NoCommonAttr>(this)->clone(C);
12350 return cast<NoDebugAttr>(this)->clone(C);
12352 return cast<NoDerefAttr>(this)->clone(C);
12354 return cast<NoDestroyAttr>(this)->clone(C);
12356 return cast<NoDuplicateAttr>(this)->clone(C);
12358 return cast<NoEscapeAttr>(this)->clone(C);
12360 return cast<NoInlineAttr>(this)->clone(C);
12362 return cast<NoInstrumentFunctionAttr>(this)->clone(C);
12364 return cast<NoMicroMipsAttr>(this)->clone(C);
12366 return cast<NoMips16Attr>(this)->clone(C);
12368 return cast<NoReturnAttr>(this)->clone(C);
12370 return cast<NoSanitizeAttr>(this)->clone(C);
12372 return cast<NoSpeculativeLoadHardeningAttr>(this)->clone(C);
12374 return cast<NoSplitStackAttr>(this)->clone(C);
12376 return cast<NoStackProtectorAttr>(this)->clone(C);
12378 return cast<NoThreadSafetyAnalysisAttr>(this)->clone(C);
12380 return cast<NoThrowAttr>(this)->clone(C);
12382 return cast<NoUniqueAddressAttr>(this)->clone(C);
12384 return cast<NonNullAttr>(this)->clone(C);
12386 return cast<NotTailCalledAttr>(this)->clone(C);
12388 return cast<OMPAllocateDeclAttr>(this)->clone(C);
12390 return cast<OMPCaptureKindAttr>(this)->clone(C);
12392 return cast<OMPCaptureNoInitAttr>(this)->clone(C);
12394 return cast<OMPDeclareSimdDeclAttr>(this)->clone(C);
12396 return cast<OMPDeclareTargetDeclAttr>(this)->clone(C);
12398 return cast<OMPDeclareVariantAttr>(this)->clone(C);
12400 return cast<OMPReferencedVarAttr>(this)->clone(C);
12402 return cast<OMPThreadPrivateDeclAttr>(this)->clone(C);
12404 return cast<OSConsumedAttr>(this)->clone(C);
12406 return cast<OSConsumesThisAttr>(this)->clone(C);
12408 return cast<OSReturnsNotRetainedAttr>(this)->clone(C);
12410 return cast<OSReturnsRetainedAttr>(this)->clone(C);
12412 return cast<OSReturnsRetainedOnNonZeroAttr>(this)->clone(C);
12414 return cast<OSReturnsRetainedOnZeroAttr>(this)->clone(C);
12416 return cast<ObjCBoxableAttr>(this)->clone(C);
12418 return cast<ObjCBridgeAttr>(this)->clone(C);
12420 return cast<ObjCBridgeMutableAttr>(this)->clone(C);
12422 return cast<ObjCBridgeRelatedAttr>(this)->clone(C);
12424 return cast<ObjCClassStubAttr>(this)->clone(C);
12426 return cast<ObjCDesignatedInitializerAttr>(this)->clone(C);
12428 return cast<ObjCExceptionAttr>(this)->clone(C);
12430 return cast<ObjCExplicitProtocolImplAttr>(this)->clone(C);
12432 return cast<ObjCExternallyRetainedAttr>(this)->clone(C);
12434 return cast<ObjCGCAttr>(this)->clone(C);
12436 return cast<ObjCIndependentClassAttr>(this)->clone(C);
12438 return cast<ObjCInertUnsafeUnretainedAttr>(this)->clone(C);
12440 return cast<ObjCKindOfAttr>(this)->clone(C);
12442 return cast<ObjCMethodFamilyAttr>(this)->clone(C);
12444 return cast<ObjCNSObjectAttr>(this)->clone(C);
12446 return cast<ObjCNonLazyClassAttr>(this)->clone(C);
12448 return cast<ObjCOwnershipAttr>(this)->clone(C);
12450 return cast<ObjCPreciseLifetimeAttr>(this)->clone(C);
12452 return cast<ObjCRequiresPropertyDefsAttr>(this)->clone(C);
12454 return cast<ObjCRequiresSuperAttr>(this)->clone(C);
12456 return cast<ObjCReturnsInnerPointerAttr>(this)->clone(C);
12458 return cast<ObjCRootClassAttr>(this)->clone(C);
12460 return cast<ObjCRuntimeNameAttr>(this)->clone(C);
12462 return cast<ObjCRuntimeVisibleAttr>(this)->clone(C);
12464 return cast<ObjCSubclassingRestrictedAttr>(this)->clone(C);
12466 return cast<OpenCLAccessAttr>(this)->clone(C);
12468 return cast<OpenCLConstantAddressSpaceAttr>(this)->clone(C);
12470 return cast<OpenCLGenericAddressSpaceAttr>(this)->clone(C);
12472 return cast<OpenCLGlobalAddressSpaceAttr>(this)->clone(C);
12474 return cast<OpenCLIntelReqdSubGroupSizeAttr>(this)->clone(C);
12476 return cast<OpenCLKernelAttr>(this)->clone(C);
12478 return cast<OpenCLLocalAddressSpaceAttr>(this)->clone(C);
12480 return cast<OpenCLPrivateAddressSpaceAttr>(this)->clone(C);
12482 return cast<OpenCLUnrollHintAttr>(this)->clone(C);
12484 return cast<OptimizeNoneAttr>(this)->clone(C);
12486 return cast<OverloadableAttr>(this)->clone(C);
12488 return cast<OverrideAttr>(this)->clone(C);
12490 return cast<OwnerAttr>(this)->clone(C);
12492 return cast<OwnershipAttr>(this)->clone(C);
12494 return cast<PackedAttr>(this)->clone(C);
12496 return cast<ParamTypestateAttr>(this)->clone(C);
12498 return cast<PascalAttr>(this)->clone(C);
12500 return cast<PassObjectSizeAttr>(this)->clone(C);
12502 return cast<PcsAttr>(this)->clone(C);
12504 return cast<PointerAttr>(this)->clone(C);
12506 return cast<PragmaClangBSSSectionAttr>(this)->clone(C);
12508 return cast<PragmaClangDataSectionAttr>(this)->clone(C);
12510 return cast<PragmaClangRelroSectionAttr>(this)->clone(C);
12512 return cast<PragmaClangRodataSectionAttr>(this)->clone(C);
12514 return cast<PragmaClangTextSectionAttr>(this)->clone(C);
12516 return cast<PreserveAllAttr>(this)->clone(C);
12518 return cast<PreserveMostAttr>(this)->clone(C);
12520 return cast<PtGuardedByAttr>(this)->clone(C);
12522 return cast<PtGuardedVarAttr>(this)->clone(C);
12524 return cast<Ptr32Attr>(this)->clone(C);
12526 return cast<Ptr64Attr>(this)->clone(C);
12528 return cast<PureAttr>(this)->clone(C);
12530 return cast<RISCVInterruptAttr>(this)->clone(C);
12532 return cast<RegCallAttr>(this)->clone(C);
12534 return cast<ReinitializesAttr>(this)->clone(C);
12536 return cast<ReleaseCapabilityAttr>(this)->clone(C);
12538 return cast<RenderScriptKernelAttr>(this)->clone(C);
12540 return cast<ReqdWorkGroupSizeAttr>(this)->clone(C);
12542 return cast<RequiresCapabilityAttr>(this)->clone(C);
12544 return cast<RestrictAttr>(this)->clone(C);
12546 return cast<ReturnTypestateAttr>(this)->clone(C);
12548 return cast<ReturnsNonNullAttr>(this)->clone(C);
12550 return cast<ReturnsTwiceAttr>(this)->clone(C);
12552 return cast<SPtrAttr>(this)->clone(C);
12554 return cast<ScopedLockableAttr>(this)->clone(C);
12556 return cast<SectionAttr>(this)->clone(C);
12558 return cast<SelectAnyAttr>(this)->clone(C);
12560 return cast<SentinelAttr>(this)->clone(C);
12562 return cast<SetTypestateAttr>(this)->clone(C);
12564 return cast<SharedTrylockFunctionAttr>(this)->clone(C);
12566 return cast<SpeculativeLoadHardeningAttr>(this)->clone(C);
12568 return cast<StdCallAttr>(this)->clone(C);
12570 return cast<SuppressAttr>(this)->clone(C);
12572 return cast<SwiftCallAttr>(this)->clone(C);
12574 return cast<SwiftContextAttr>(this)->clone(C);
12576 return cast<SwiftErrorResultAttr>(this)->clone(C);
12578 return cast<SwiftIndirectResultAttr>(this)->clone(C);
12580 return cast<SysVABIAttr>(this)->clone(C);
12582 return cast<TLSModelAttr>(this)->clone(C);
12584 return cast<TargetAttr>(this)->clone(C);
12586 return cast<TestTypestateAttr>(this)->clone(C);
12588 return cast<ThisCallAttr>(this)->clone(C);
12590 return cast<ThreadAttr>(this)->clone(C);
12592 return cast<TransparentUnionAttr>(this)->clone(C);
12594 return cast<TrivialABIAttr>(this)->clone(C);
12596 return cast<TryAcquireCapabilityAttr>(this)->clone(C);
12598 return cast<TypeNonNullAttr>(this)->clone(C);
12600 return cast<TypeNullUnspecifiedAttr>(this)->clone(C);
12602 return cast<TypeNullableAttr>(this)->clone(C);
12604 return cast<TypeTagForDatatypeAttr>(this)->clone(C);
12606 return cast<TypeVisibilityAttr>(this)->clone(C);
12608 return cast<UPtrAttr>(this)->clone(C);
12610 return cast<UnavailableAttr>(this)->clone(C);
12612 return cast<UninitializedAttr>(this)->clone(C);
12614 return cast<UnusedAttr>(this)->clone(C);
12616 return cast<UsedAttr>(this)->clone(C);
12618 return cast<UuidAttr>(this)->clone(C);
12620 return cast<VecReturnAttr>(this)->clone(C);
12622 return cast<VecTypeHintAttr>(this)->clone(C);
12624 return cast<VectorCallAttr>(this)->clone(C);
12626 return cast<VisibilityAttr>(this)->clone(C);
12628 return cast<WarnUnusedAttr>(this)->clone(C);
12630 return cast<WarnUnusedResultAttr>(this)->clone(C);
12632 return cast<WeakAttr>(this)->clone(C);
12634 return cast<WeakImportAttr>(this)->clone(C);
12636 return cast<WeakRefAttr>(this)->clone(C);
12638 return cast<WebAssemblyImportModuleAttr>(this)->clone(C);
12640 return cast<WebAssemblyImportNameAttr>(this)->clone(C);
12642 return cast<WorkGroupSizeHintAttr>(this)->clone(C);
12644 return cast<X86ForceAlignArgPointerAttr>(this)->clone(C);
12646 return cast<XRayInstrumentAttr>(this)->clone(C);
12648 return cast<XRayLogArgsAttr>(this)->clone(C);
12656 return cast<AArch64VectorPcsAttr>(this)->printPretty(OS, Policy);
12658 return cast<AMDGPUFlatWorkGroupSizeAttr>(this)->printPretty(OS, Policy);
12660 return cast<AMDGPUNumSGPRAttr>(this)->printPretty(OS, Policy);
12662 return cast<AMDGPUNumVGPRAttr>(this)->printPretty(OS, Policy);
12664 return cast<AMDGPUWavesPerEUAttr>(this)->printPretty(OS, Policy);
12666 return cast<ARMInterruptAttr>(this)->printPretty(OS, Policy);
12668 return cast<AVRInterruptAttr>(this)->printPretty(OS, Policy);
12670 return cast<AVRSignalAttr>(this)->printPretty(OS, Policy);
12672 return cast<AbiTagAttr>(this)->printPretty(OS, Policy);
12674 return cast<AcquireCapabilityAttr>(this)->printPretty(OS, Policy);
12676 return cast<AcquiredAfterAttr>(this)->printPretty(OS, Policy);
12678 return cast<AcquiredBeforeAttr>(this)->printPretty(OS, Policy);
12680 return cast<AddressSpaceAttr>(this)->printPretty(OS, Policy);
12682 return cast<AliasAttr>(this)->printPretty(OS, Policy);
12684 return cast<AlignMac68kAttr>(this)->printPretty(OS, Policy);
12686 return cast<AlignValueAttr>(this)->printPretty(OS, Policy);
12688 return cast<AlignedAttr>(this)->printPretty(OS, Policy);
12690 return cast<AllocAlignAttr>(this)->printPretty(OS, Policy);
12692 return cast<AllocSizeAttr>(this)->printPretty(OS, Policy);
12694 return cast<AlwaysDestroyAttr>(this)->printPretty(OS, Policy);
12696 return cast<AlwaysInlineAttr>(this)->printPretty(OS, Policy);
12698 return cast<AnalyzerNoReturnAttr>(this)->printPretty(OS, Policy);
12700 return cast<AnnotateAttr>(this)->printPretty(OS, Policy);
12702 return cast<AnyX86InterruptAttr>(this)->printPretty(OS, Policy);
12704 return cast<AnyX86NoCallerSavedRegistersAttr>(this)->printPretty(OS, Policy);
12706 return cast<AnyX86NoCfCheckAttr>(this)->printPretty(OS, Policy);
12708 return cast<ArcWeakrefUnavailableAttr>(this)->printPretty(OS, Policy);
12710 return cast<ArgumentWithTypeTagAttr>(this)->printPretty(OS, Policy);
12712 return cast<ArmMveAliasAttr>(this)->printPretty(OS, Policy);
12714 return cast<ArtificialAttr>(this)->printPretty(OS, Policy);
12716 return cast<AsmLabelAttr>(this)->printPretty(OS, Policy);
12718 return cast<AssertCapabilityAttr>(this)->printPretty(OS, Policy);
12720 return cast<AssertExclusiveLockAttr>(this)->printPretty(OS, Policy);
12722 return cast<AssertSharedLockAttr>(this)->printPretty(OS, Policy);
12724 return cast<AssumeAlignedAttr>(this)->printPretty(OS, Policy);
12726 return cast<AvailabilityAttr>(this)->printPretty(OS, Policy);
12728 return cast<BlocksAttr>(this)->printPretty(OS, Policy);
12730 return cast<C11NoReturnAttr>(this)->printPretty(OS, Policy);
12732 return cast<CDeclAttr>(this)->printPretty(OS, Policy);
12734 return cast<CFAuditedTransferAttr>(this)->printPretty(OS, Policy);
12736 return cast<CFConsumedAttr>(this)->printPretty(OS, Policy);
12738 return cast<CFICanonicalJumpTableAttr>(this)->printPretty(OS, Policy);
12740 return cast<CFReturnsNotRetainedAttr>(this)->printPretty(OS, Policy);
12742 return cast<CFReturnsRetainedAttr>(this)->printPretty(OS, Policy);
12744 return cast<CFUnknownTransferAttr>(this)->printPretty(OS, Policy);
12746 return cast<CPUDispatchAttr>(this)->printPretty(OS, Policy);
12748 return cast<CPUSpecificAttr>(this)->printPretty(OS, Policy);
12750 return cast<CUDAConstantAttr>(this)->printPretty(OS, Policy);
12752 return cast<CUDADeviceAttr>(this)->printPretty(OS, Policy);
12754 return cast<CUDAGlobalAttr>(this)->printPretty(OS, Policy);
12756 return cast<CUDAHostAttr>(this)->printPretty(OS, Policy);
12758 return cast<CUDAInvalidTargetAttr>(this)->printPretty(OS, Policy);
12760 return cast<CUDALaunchBoundsAttr>(this)->printPretty(OS, Policy);
12762 return cast<CUDASharedAttr>(this)->printPretty(OS, Policy);
12764 return cast<CXX11NoReturnAttr>(this)->printPretty(OS, Policy);
12766 return cast<CallableWhenAttr>(this)->printPretty(OS, Policy);
12768 return cast<CallbackAttr>(this)->printPretty(OS, Policy);
12770 return cast<CapabilityAttr>(this)->printPretty(OS, Policy);
12772 return cast<CapturedRecordAttr>(this)->printPretty(OS, Policy);
12774 return cast<CarriesDependencyAttr>(this)->printPretty(OS, Policy);
12776 return cast<CleanupAttr>(this)->printPretty(OS, Policy);
12778 return cast<CodeSegAttr>(this)->printPretty(OS, Policy);
12780 return cast<ColdAttr>(this)->printPretty(OS, Policy);
12782 return cast<CommonAttr>(this)->printPretty(OS, Policy);
12784 return cast<ConstAttr>(this)->printPretty(OS, Policy);
12786 return cast<ConstInitAttr>(this)->printPretty(OS, Policy);
12788 return cast<ConstructorAttr>(this)->printPretty(OS, Policy);
12790 return cast<ConsumableAttr>(this)->printPretty(OS, Policy);
12792 return cast<ConsumableAutoCastAttr>(this)->printPretty(OS, Policy);
12794 return cast<ConsumableSetOnReadAttr>(this)->printPretty(OS, Policy);
12796 return cast<ConvergentAttr>(this)->printPretty(OS, Policy);
12798 return cast<DLLExportAttr>(this)->printPretty(OS, Policy);
12800 return cast<DLLExportStaticLocalAttr>(this)->printPretty(OS, Policy);
12802 return cast<DLLImportAttr>(this)->printPretty(OS, Policy);
12804 return cast<DLLImportStaticLocalAttr>(this)->printPretty(OS, Policy);
12806 return cast<DeprecatedAttr>(this)->printPretty(OS, Policy);
12808 return cast<DestructorAttr>(this)->printPretty(OS, Policy);
12810 return cast<DiagnoseIfAttr>(this)->printPretty(OS, Policy);
12812 return cast<DisableTailCallsAttr>(this)->printPretty(OS, Policy);
12814 return cast<EmptyBasesAttr>(this)->printPretty(OS, Policy);
12816 return cast<EnableIfAttr>(this)->printPretty(OS, Policy);
12818 return cast<EnumExtensibilityAttr>(this)->printPretty(OS, Policy);
12820 return cast<ExcludeFromExplicitInstantiationAttr>(this)->printPretty(OS, Policy);
12822 return cast<ExclusiveTrylockFunctionAttr>(this)->printPretty(OS, Policy);
12824 return cast<ExternalSourceSymbolAttr>(this)->printPretty(OS, Policy);
12826 return cast<FallThroughAttr>(this)->printPretty(OS, Policy);
12828 return cast<FastCallAttr>(this)->printPretty(OS, Policy);
12830 return cast<FinalAttr>(this)->printPretty(OS, Policy);
12832 return cast<FlagEnumAttr>(this)->printPretty(OS, Policy);
12834 return cast<FlattenAttr>(this)->printPretty(OS, Policy);
12836 return cast<FormatAttr>(this)->printPretty(OS, Policy);
12838 return cast<FormatArgAttr>(this)->printPretty(OS, Policy);
12840 return cast<GNUInlineAttr>(this)->printPretty(OS, Policy);
12842 return cast<GuardedByAttr>(this)->printPretty(OS, Policy);
12844 return cast<GuardedVarAttr>(this)->printPretty(OS, Policy);
12846 return cast<HIPPinnedShadowAttr>(this)->printPretty(OS, Policy);
12848 return cast<HotAttr>(this)->printPretty(OS, Policy);
12850 return cast<IBActionAttr>(this)->printPretty(OS, Policy);
12852 return cast<IBOutletAttr>(this)->printPretty(OS, Policy);
12854 return cast<IBOutletCollectionAttr>(this)->printPretty(OS, Policy);
12856 return cast<IFuncAttr>(this)->printPretty(OS, Policy);
12858 return cast<InitPriorityAttr>(this)->printPretty(OS, Policy);
12860 return cast<InitSegAttr>(this)->printPretty(OS, Policy);
12862 return cast<IntelOclBiccAttr>(this)->printPretty(OS, Policy);
12864 return cast<InternalLinkageAttr>(this)->printPretty(OS, Policy);
12866 return cast<LTOVisibilityPublicAttr>(this)->printPretty(OS, Policy);
12868 return cast<LayoutVersionAttr>(this)->printPretty(OS, Policy);
12870 return cast<LifetimeBoundAttr>(this)->printPretty(OS, Policy);
12872 return cast<LockReturnedAttr>(this)->printPretty(OS, Policy);
12874 return cast<LocksExcludedAttr>(this)->printPretty(OS, Policy);
12876 return cast<LoopHintAttr>(this)->printPretty(OS, Policy);
12878 return cast<MIGServerRoutineAttr>(this)->printPretty(OS, Policy);
12880 return cast<MSABIAttr>(this)->printPretty(OS, Policy);
12882 return cast<MSAllocatorAttr>(this)->printPretty(OS, Policy);
12884 return cast<MSInheritanceAttr>(this)->printPretty(OS, Policy);
12886 return cast<MSNoVTableAttr>(this)->printPretty(OS, Policy);
12888 return cast<MSP430InterruptAttr>(this)->printPretty(OS, Policy);
12890 return cast<MSStructAttr>(this)->printPretty(OS, Policy);
12892 return cast<MSVtorDispAttr>(this)->printPretty(OS, Policy);
12894 return cast<MaxFieldAlignmentAttr>(this)->printPretty(OS, Policy);
12896 return cast<MayAliasAttr>(this)->printPretty(OS, Policy);
12898 return cast<MicroMipsAttr>(this)->printPretty(OS, Policy);
12900 return cast<MinSizeAttr>(this)->printPretty(OS, Policy);
12902 return cast<MinVectorWidthAttr>(this)->printPretty(OS, Policy);
12904 return cast<Mips16Attr>(this)->printPretty(OS, Policy);
12906 return cast<MipsInterruptAttr>(this)->printPretty(OS, Policy);
12908 return cast<MipsLongCallAttr>(this)->printPretty(OS, Policy);
12910 return cast<MipsShortCallAttr>(this)->printPretty(OS, Policy);
12912 return cast<ModeAttr>(this)->printPretty(OS, Policy);
12914 return cast<NSConsumedAttr>(this)->printPretty(OS, Policy);
12916 return cast<NSConsumesSelfAttr>(this)->printPretty(OS, Policy);
12918 return cast<NSReturnsAutoreleasedAttr>(this)->printPretty(OS, Policy);
12920 return cast<NSReturnsNotRetainedAttr>(this)->printPretty(OS, Policy);
12922 return cast<NSReturnsRetainedAttr>(this)->printPretty(OS, Policy);
12924 return cast<NakedAttr>(this)->printPretty(OS, Policy);
12926 return cast<NoAliasAttr>(this)->printPretty(OS, Policy);
12928 return cast<NoCommonAttr>(this)->printPretty(OS, Policy);
12930 return cast<NoDebugAttr>(this)->printPretty(OS, Policy);
12932 return cast<NoDerefAttr>(this)->printPretty(OS, Policy);
12934 return cast<NoDestroyAttr>(this)->printPretty(OS, Policy);
12936 return cast<NoDuplicateAttr>(this)->printPretty(OS, Policy);
12938 return cast<NoEscapeAttr>(this)->printPretty(OS, Policy);
12940 return cast<NoInlineAttr>(this)->printPretty(OS, Policy);
12942 return cast<NoInstrumentFunctionAttr>(this)->printPretty(OS, Policy);
12944 return cast<NoMicroMipsAttr>(this)->printPretty(OS, Policy);
12946 return cast<NoMips16Attr>(this)->printPretty(OS, Policy);
12948 return cast<NoReturnAttr>(this)->printPretty(OS, Policy);
12950 return cast<NoSanitizeAttr>(this)->printPretty(OS, Policy);
12952 return cast<NoSpeculativeLoadHardeningAttr>(this)->printPretty(OS, Policy);
12954 return cast<NoSplitStackAttr>(this)->printPretty(OS, Policy);
12956 return cast<NoStackProtectorAttr>(this)->printPretty(OS, Policy);
12958 return cast<NoThreadSafetyAnalysisAttr>(this)->printPretty(OS, Policy);
12960 return cast<NoThrowAttr>(this)->printPretty(OS, Policy);
12962 return cast<NoUniqueAddressAttr>(this)->printPretty(OS, Policy);
12964 return cast<NonNullAttr>(this)->printPretty(OS, Policy);
12966 return cast<NotTailCalledAttr>(this)->printPretty(OS, Policy);
12968 return cast<OMPAllocateDeclAttr>(this)->printPretty(OS, Policy);
12970 return cast<OMPCaptureKindAttr>(this)->printPretty(OS, Policy);
12972 return cast<OMPCaptureNoInitAttr>(this)->printPretty(OS, Policy);
12974 return cast<OMPDeclareSimdDeclAttr>(this)->printPretty(OS, Policy);
12976 return cast<OMPDeclareTargetDeclAttr>(this)->printPretty(OS, Policy);
12978 return cast<OMPDeclareVariantAttr>(this)->printPretty(OS, Policy);
12980 return cast<OMPReferencedVarAttr>(this)->printPretty(OS, Policy);
12982 return cast<OMPThreadPrivateDeclAttr>(this)->printPretty(OS, Policy);
12984 return cast<OSConsumedAttr>(this)->printPretty(OS, Policy);
12986 return cast<OSConsumesThisAttr>(this)->printPretty(OS, Policy);
12988 return cast<OSReturnsNotRetainedAttr>(this)->printPretty(OS, Policy);
12990 return cast<OSReturnsRetainedAttr>(this)->printPretty(OS, Policy);
12992 return cast<OSReturnsRetainedOnNonZeroAttr>(this)->printPretty(OS, Policy);
12994 return cast<OSReturnsRetainedOnZeroAttr>(this)->printPretty(OS, Policy);
12996 return cast<ObjCBoxableAttr>(this)->printPretty(OS, Policy);
12998 return cast<ObjCBridgeAttr>(this)->printPretty(OS, Policy);
13000 return cast<ObjCBridgeMutableAttr>(this)->printPretty(OS, Policy);
13002 return cast<ObjCBridgeRelatedAttr>(this)->printPretty(OS, Policy);
13004 return cast<ObjCClassStubAttr>(this)->printPretty(OS, Policy);
13006 return cast<ObjCDesignatedInitializerAttr>(this)->printPretty(OS, Policy);
13008 return cast<ObjCExceptionAttr>(this)->printPretty(OS, Policy);
13010 return cast<ObjCExplicitProtocolImplAttr>(this)->printPretty(OS, Policy);
13012 return cast<ObjCExternallyRetainedAttr>(this)->printPretty(OS, Policy);
13014 return cast<ObjCGCAttr>(this)->printPretty(OS, Policy);
13016 return cast<ObjCIndependentClassAttr>(this)->printPretty(OS, Policy);
13018 return cast<ObjCInertUnsafeUnretainedAttr>(this)->printPretty(OS, Policy);
13020 return cast<ObjCKindOfAttr>(this)->printPretty(OS, Policy);
13022 return cast<ObjCMethodFamilyAttr>(this)->printPretty(OS, Policy);
13024 return cast<ObjCNSObjectAttr>(this)->printPretty(OS, Policy);
13026 return cast<ObjCNonLazyClassAttr>(this)->printPretty(OS, Policy);
13028 return cast<ObjCOwnershipAttr>(this)->printPretty(OS, Policy);
13030 return cast<ObjCPreciseLifetimeAttr>(this)->printPretty(OS, Policy);
13032 return cast<ObjCRequiresPropertyDefsAttr>(this)->printPretty(OS, Policy);
13034 return cast<ObjCRequiresSuperAttr>(this)->printPretty(OS, Policy);
13036 return cast<ObjCReturnsInnerPointerAttr>(this)->printPretty(OS, Policy);
13038 return cast<ObjCRootClassAttr>(this)->printPretty(OS, Policy);
13040 return cast<ObjCRuntimeNameAttr>(this)->printPretty(OS, Policy);
13042 return cast<ObjCRuntimeVisibleAttr>(this)->printPretty(OS, Policy);
13044 return cast<ObjCSubclassingRestrictedAttr>(this)->printPretty(OS, Policy);
13046 return cast<OpenCLAccessAttr>(this)->printPretty(OS, Policy);
13048 return cast<OpenCLConstantAddressSpaceAttr>(this)->printPretty(OS, Policy);
13050 return cast<OpenCLGenericAddressSpaceAttr>(this)->printPretty(OS, Policy);
13052 return cast<OpenCLGlobalAddressSpaceAttr>(this)->printPretty(OS, Policy);
13054 return cast<OpenCLIntelReqdSubGroupSizeAttr>(this)->printPretty(OS, Policy);
13056 return cast<OpenCLKernelAttr>(this)->printPretty(OS, Policy);
13058 return cast<OpenCLLocalAddressSpaceAttr>(this)->printPretty(OS, Policy);
13060 return cast<OpenCLPrivateAddressSpaceAttr>(this)->printPretty(OS, Policy);
13062 return cast<OpenCLUnrollHintAttr>(this)->printPretty(OS, Policy);
13064 return cast<OptimizeNoneAttr>(this)->printPretty(OS, Policy);
13066 return cast<OverloadableAttr>(this)->printPretty(OS, Policy);
13068 return cast<OverrideAttr>(this)->printPretty(OS, Policy);
13070 return cast<OwnerAttr>(this)->printPretty(OS, Policy);
13072 return cast<OwnershipAttr>(this)->printPretty(OS, Policy);
13074 return cast<PackedAttr>(this)->printPretty(OS, Policy);
13076 return cast<ParamTypestateAttr>(this)->printPretty(OS, Policy);
13078 return cast<PascalAttr>(this)->printPretty(OS, Policy);
13080 return cast<PassObjectSizeAttr>(this)->printPretty(OS, Policy);
13082 return cast<PcsAttr>(this)->printPretty(OS, Policy);
13084 return cast<PointerAttr>(this)->printPretty(OS, Policy);
13086 return cast<PragmaClangBSSSectionAttr>(this)->printPretty(OS, Policy);
13088 return cast<PragmaClangDataSectionAttr>(this)->printPretty(OS, Policy);
13090 return cast<PragmaClangRelroSectionAttr>(this)->printPretty(OS, Policy);
13092 return cast<PragmaClangRodataSectionAttr>(this)->printPretty(OS, Policy);
13094 return cast<PragmaClangTextSectionAttr>(this)->printPretty(OS, Policy);
13096 return cast<PreserveAllAttr>(this)->printPretty(OS, Policy);
13098 return cast<PreserveMostAttr>(this)->printPretty(OS, Policy);
13100 return cast<PtGuardedByAttr>(this)->printPretty(OS, Policy);
13102 return cast<PtGuardedVarAttr>(this)->printPretty(OS, Policy);
13104 return cast<Ptr32Attr>(this)->printPretty(OS, Policy);
13106 return cast<Ptr64Attr>(this)->printPretty(OS, Policy);
13108 return cast<PureAttr>(this)->printPretty(OS, Policy);
13110 return cast<RISCVInterruptAttr>(this)->printPretty(OS, Policy);
13112 return cast<RegCallAttr>(this)->printPretty(OS, Policy);
13114 return cast<ReinitializesAttr>(this)->printPretty(OS, Policy);
13116 return cast<ReleaseCapabilityAttr>(this)->printPretty(OS, Policy);
13118 return cast<RenderScriptKernelAttr>(this)->printPretty(OS, Policy);
13120 return cast<ReqdWorkGroupSizeAttr>(this)->printPretty(OS, Policy);
13122 return cast<RequiresCapabilityAttr>(this)->printPretty(OS, Policy);
13124 return cast<RestrictAttr>(this)->printPretty(OS, Policy);
13126 return cast<ReturnTypestateAttr>(this)->printPretty(OS, Policy);
13128 return cast<ReturnsNonNullAttr>(this)->printPretty(OS, Policy);
13130 return cast<ReturnsTwiceAttr>(this)->printPretty(OS, Policy);
13132 return cast<SPtrAttr>(this)->printPretty(OS, Policy);
13134 return cast<ScopedLockableAttr>(this)->printPretty(OS, Policy);
13136 return cast<SectionAttr>(this)->printPretty(OS, Policy);
13138 return cast<SelectAnyAttr>(this)->printPretty(OS, Policy);
13140 return cast<SentinelAttr>(this)->printPretty(OS, Policy);
13142 return cast<SetTypestateAttr>(this)->printPretty(OS, Policy);
13144 return cast<SharedTrylockFunctionAttr>(this)->printPretty(OS, Policy);
13146 return cast<SpeculativeLoadHardeningAttr>(this)->printPretty(OS, Policy);
13148 return cast<StdCallAttr>(this)->printPretty(OS, Policy);
13150 return cast<SuppressAttr>(this)->printPretty(OS, Policy);
13152 return cast<SwiftCallAttr>(this)->printPretty(OS, Policy);
13154 return cast<SwiftContextAttr>(this)->printPretty(OS, Policy);
13156 return cast<SwiftErrorResultAttr>(this)->printPretty(OS, Policy);
13158 return cast<SwiftIndirectResultAttr>(this)->printPretty(OS, Policy);
13160 return cast<SysVABIAttr>(this)->printPretty(OS, Policy);
13162 return cast<TLSModelAttr>(this)->printPretty(OS, Policy);
13164 return cast<TargetAttr>(this)->printPretty(OS, Policy);
13166 return cast<TestTypestateAttr>(this)->printPretty(OS, Policy);
13168 return cast<ThisCallAttr>(this)->printPretty(OS, Policy);
13170 return cast<ThreadAttr>(this)->printPretty(OS, Policy);
13172 return cast<TransparentUnionAttr>(this)->printPretty(OS, Policy);
13174 return cast<TrivialABIAttr>(this)->printPretty(OS, Policy);
13176 return cast<TryAcquireCapabilityAttr>(this)->printPretty(OS, Policy);
13178 return cast<TypeNonNullAttr>(this)->printPretty(OS, Policy);
13180 return cast<TypeNullUnspecifiedAttr>(this)->printPretty(OS, Policy);
13182 return cast<TypeNullableAttr>(this)->printPretty(OS, Policy);
13184 return cast<TypeTagForDatatypeAttr>(this)->printPretty(OS, Policy);
13186 return cast<TypeVisibilityAttr>(this)->printPretty(OS, Policy);
13188 return cast<UPtrAttr>(this)->printPretty(OS, Policy);
13190 return cast<UnavailableAttr>(this)->printPretty(OS, Policy);
13192 return cast<UninitializedAttr>(this)->printPretty(OS, Policy);
13194 return cast<UnusedAttr>(this)->printPretty(OS, Policy);
13196 return cast<UsedAttr>(this)->printPretty(OS, Policy);
13198 return cast<UuidAttr>(this)->printPretty(OS, Policy);
13200 return cast<VecReturnAttr>(this)->printPretty(OS, Policy);
13202 return cast<VecTypeHintAttr>(this)->printPretty(OS, Policy);
13204 return cast<VectorCallAttr>(this)->printPretty(OS, Policy);
13206 return cast<VisibilityAttr>(this)->printPretty(OS, Policy);
13208 return cast<WarnUnusedAttr>(this)->printPretty(OS, Policy);
13210 return cast<WarnUnusedResultAttr>(this)->printPretty(OS, Policy);
13212 return cast<WeakAttr>(this)->printPretty(OS, Policy);
13214 return cast<WeakImportAttr>(this)->printPretty(OS, Policy);
13216 return cast<WeakRefAttr>(this)->printPretty(OS, Policy);
13218 return cast<WebAssemblyImportModuleAttr>(this)->printPretty(OS, Policy);
13220 return cast<WebAssemblyImportNameAttr>(this)->printPretty(OS, Policy);
13222 return cast<WorkGroupSizeHintAttr>(this)->printPretty(OS, Policy);
13224 return cast<X86ForceAlignArgPointerAttr>(this)->printPretty(OS, Policy);
13226 return cast<XRayInstrumentAttr>(this)->printPretty(OS, Policy);
13228 return cast<XRayLogArgsAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrNodeTraverse.inc 10 const auto *SA = cast<AMDGPUFlatWorkGroupSizeAttr>(A); (void)SA;
15 const auto *SA = cast<AMDGPUWavesPerEUAttr>(A); (void)SA;
20 const auto *SA = cast<AcquireCapabilityAttr>(A); (void)SA;
25 const auto *SA = cast<AcquiredAfterAttr>(A); (void)SA;
30 const auto *SA = cast<AcquiredBeforeAttr>(A); (void)SA;
35 const auto *SA = cast<AlignValueAttr>(A); (void)SA;
39 const auto *SA = cast<AlignedAttr>(A); (void)SA;
44 const auto *SA = cast<AssertCapabilityAttr>(A); (void)SA;
49 const auto *SA = cast<AssertExclusiveLockAttr>(A); (void)SA;
54 const auto *SA = cast<AssertSharedLockAttr>(A); (void)SA;
59 const auto *SA = cast<AssumeAlignedAttr>(A); (void)SA;
64 const auto *SA = cast<CUDALaunchBoundsAttr>(A); (void)SA;
69 const auto *SA = cast<DiagnoseIfAttr>(A); (void)SA;
73 const auto *SA = cast<EnableIfAttr>(A); (void)SA;
77 const auto *SA = cast<ExclusiveTrylockFunctionAttr>(A); (void)SA;
83 const auto *SA = cast<GuardedByAttr>(A); (void)SA;
87 const auto *SA = cast<LockReturnedAttr>(A); (void)SA;
91 const auto *SA = cast<LocksExcludedAttr>(A); (void)SA;
96 const auto *SA = cast<LoopHintAttr>(A); (void)SA;
100 const auto *SA = cast<OMPAllocateDeclAttr>(A); (void)SA;
104 const auto *SA = cast<OMPDeclareSimdDeclAttr>(A); (void)SA;
118 const auto *SA = cast<OMPDeclareVariantAttr>(A); (void)SA;
123 const auto *SA = cast<OMPReferencedVarAttr>(A); (void)SA;
127 const auto *SA = cast<PtGuardedByAttr>(A); (void)SA;
131 const auto *SA = cast<ReleaseCapabilityAttr>(A); (void)SA;
136 const auto *SA = cast<RequiresCapabilityAttr>(A); (void)SA;
141 const auto *SA = cast<SharedTrylockFunctionAttr>(A); (void)SA;
147 const auto *SA = cast<TryAcquireCapabilityAttr>(A); (void)SA;
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc 10 const auto *SA = cast<AMDGPUNumSGPRAttr>(A); (void)SA;
14 const auto *SA = cast<AMDGPUNumVGPRAttr>(A); (void)SA;
18 const auto *SA = cast<ARMInterruptAttr>(A); (void)SA;
41 const auto *SA = cast<AbiTagAttr>(A); (void)SA;
46 const auto *SA = cast<AcquireCapabilityAttr>(A); (void)SA;
50 const auto *SA = cast<AddressSpaceAttr>(A); (void)SA;
54 const auto *SA = cast<AliasAttr>(A); (void)SA;
58 const auto *SA = cast<AlignedAttr>(A); (void)SA;
64 const auto *SA = cast<AllocAlignAttr>(A); (void)SA;
68 const auto *SA = cast<AllocSizeAttr>(A); (void)SA;
77 const auto *SA = cast<AnnotateAttr>(A); (void)SA;
81 const auto *SA = cast<ArgumentWithTypeTagAttr>(A); (void)SA;
90 const auto *SA = cast<ArmMveAliasAttr>(A); (void)SA;
95 const auto *SA = cast<AsmLabelAttr>(A); (void)SA;
100 const auto *SA = cast<AssertCapabilityAttr>(A); (void)SA;
104 const auto *SA = cast<AvailabilityAttr>(A); (void)SA;
117 const auto *SA = cast<BlocksAttr>(A); (void)SA;
125 const auto *SA = cast<CPUDispatchAttr>(A); (void)SA;
130 const auto *SA = cast<CPUSpecificAttr>(A); (void)SA;
135 const auto *SA = cast<CallableWhenAttr>(A); (void)SA;
151 const auto *SA = cast<CallbackAttr>(A); (void)SA;
156 const auto *SA = cast<CapabilityAttr>(A); (void)SA;
161 const auto *SA = cast<CleanupAttr>(A); (void)SA;
166 const auto *SA = cast<CodeSegAttr>(A); (void)SA;
173 const auto *SA = cast<ConstructorAttr>(A); (void)SA;
177 const auto *SA = cast<ConsumableAttr>(A); (void)SA;
191 const auto *SA = cast<DeprecatedAttr>(A); (void)SA;
196 const auto *SA = cast<DestructorAttr>(A); (void)SA;
200 const auto *SA = cast<DiagnoseIfAttr>(A); (void)SA;
215 const auto *SA = cast<EnableIfAttr>(A); (void)SA;
219 const auto *SA = cast<EnumExtensibilityAttr>(A); (void)SA;
230 const auto *SA = cast<ExternalSourceSymbolAttr>(A); (void)SA;
239 const auto *SA = cast<FormatAttr>(A); (void)SA;
246 const auto *SA = cast<FormatArgAttr>(A); (void)SA;
250 const auto *SA = cast<IBOutletCollectionAttr>(A); (void)SA;
254 const auto *SA = cast<IFuncAttr>(A); (void)SA;
258 const auto *SA = cast<InitPriorityAttr>(A); (void)SA;
262 const auto *SA = cast<InitSegAttr>(A); (void)SA;
266 const auto *SA = cast<LayoutVersionAttr>(A); (void)SA;
270 const auto *SA = cast<LoopHintAttr>(A); (void)SA;
329 const auto *SA = cast<MSInheritanceAttr>(A); (void)SA;
334 const auto *SA = cast<MSP430InterruptAttr>(A); (void)SA;
338 const auto *SA = cast<MSVtorDispAttr>(A); (void)SA;
342 const auto *SA = cast<MaxFieldAlignmentAttr>(A); (void)SA;
346 const auto *SA = cast<MinVectorWidthAttr>(A); (void)SA;
350 const auto *SA = cast<MipsInterruptAttr>(A); (void)SA;
388 const auto *SA = cast<ModeAttr>(A); (void)SA;
393 const auto *SA = cast<NoSanitizeAttr>(A); (void)SA;
398 const auto *SA = cast<NonNullAttr>(A); (void)SA;
403 const auto *SA = cast<OMPAllocateDeclAttr>(A); (void)SA;
435 const auto *SA = cast<OMPCaptureKindAttr>(A); (void)SA;
439 const auto *SA = cast<OMPDeclareSimdDeclAttr>(A); (void)SA;
455 const auto *SA = cast<OMPDeclareTargetDeclAttr>(A); (void)SA;
477 const auto *SA = cast<OMPDeclareVariantAttr>(A); (void)SA;
506 const auto *SA = cast<ObjCBridgeAttr>(A); (void)SA;
511 const auto *SA = cast<ObjCBridgeMutableAttr>(A); (void)SA;
516 const auto *SA = cast<ObjCBridgeRelatedAttr>(A); (void)SA;
525 const auto *SA = cast<ObjCGCAttr>(A); (void)SA;
530 const auto *SA = cast<ObjCMethodFamilyAttr>(A); (void)SA;
553 const auto *SA = cast<ObjCOwnershipAttr>(A); (void)SA;
558 const auto *SA = cast<ObjCRuntimeNameAttr>(A); (void)SA;
565 const auto *SA = cast<OpenCLIntelReqdSubGroupSizeAttr>(A); (void)SA;
569 const auto *SA = cast<OpenCLUnrollHintAttr>(A); (void)SA;
573 const auto *SA = cast<OwnerAttr>(A); (void)SA;
577 const auto *SA = cast<OwnershipAttr>(A); (void)SA;
585 const auto *SA = cast<ParamTypestateAttr>(A); (void)SA;
599 const auto *SA = cast<PassObjectSizeAttr>(A); (void)SA;
604 const auto *SA = cast<PcsAttr>(A); (void)SA;
615 const auto *SA = cast<PointerAttr>(A); (void)SA;
619 const auto *SA = cast<PragmaClangBSSSectionAttr>(A); (void)SA;
623 const auto *SA = cast<PragmaClangDataSectionAttr>(A); (void)SA;
627 const auto *SA = cast<PragmaClangRelroSectionAttr>(A); (void)SA;
631 const auto *SA = cast<PragmaClangRodataSectionAttr>(A); (void)SA;
635 const auto *SA = cast<PragmaClangTextSectionAttr>(A); (void)SA;
639 const auto *SA = cast<RISCVInterruptAttr>(A); (void)SA;
653 const auto *SA = cast<ReleaseCapabilityAttr>(A); (void)SA;
657 const auto *SA = cast<ReqdWorkGroupSizeAttr>(A); (void)SA;
663 const auto *SA = cast<RequiresCapabilityAttr>(A); (void)SA;
670 const auto *SA = cast<ReturnTypestateAttr>(A); (void)SA;
684 const auto *SA = cast<SectionAttr>(A); (void)SA;
689 const auto *SA = cast<SentinelAttr>(A); (void)SA;
694 const auto *SA = cast<SetTypestateAttr>(A); (void)SA;
708 const auto *SA = cast<SuppressAttr>(A); (void)SA;
713 const auto *SA = cast<TLSModelAttr>(A); (void)SA;
717 const auto *SA = cast<TargetAttr>(A); (void)SA;
721 const auto *SA = cast<TestTypestateAttr>(A); (void)SA;
732 const auto *SA = cast<TryAcquireCapabilityAttr>(A); (void)SA;
736 const auto *SA = cast<TypeTagForDatatypeAttr>(A); (void)SA;
744 const auto *SA = cast<TypeVisibilityAttr>(A); (void)SA;
758 const auto *SA = cast<UnavailableAttr>(A); (void)SA;
785 const auto *SA = cast<UuidAttr>(A); (void)SA;
789 const auto *SA = cast<VecTypeHintAttr>(A); (void)SA;
793 const auto *SA = cast<VisibilityAttr>(A); (void)SA;
807 const auto *SA = cast<WarnUnusedResultAttr>(A); (void)SA;
812 const auto *SA = cast<WeakRefAttr>(A); (void)SA;
816 const auto *SA = cast<WebAssemblyImportModuleAttr>(A); (void)SA;
820 const auto *SA = cast<WebAssemblyImportNameAttr>(A); (void)SA;
824 const auto *SA = cast<WorkGroupSizeHintAttr>(A); (void)SA;
833 const auto *SA = cast<XRayLogArgsAttr>(A); (void)SA;
gen/tools/clang/include/clang/AST/AttrVisitor.inc 3956 return getDerived().TraverseAArch64VectorPcsAttr(cast<AArch64VectorPcsAttr>(A));
3958 return getDerived().TraverseAMDGPUFlatWorkGroupSizeAttr(cast<AMDGPUFlatWorkGroupSizeAttr>(A));
3960 return getDerived().TraverseAMDGPUNumSGPRAttr(cast<AMDGPUNumSGPRAttr>(A));
3962 return getDerived().TraverseAMDGPUNumVGPRAttr(cast<AMDGPUNumVGPRAttr>(A));
3964 return getDerived().TraverseAMDGPUWavesPerEUAttr(cast<AMDGPUWavesPerEUAttr>(A));
3966 return getDerived().TraverseARMInterruptAttr(cast<ARMInterruptAttr>(A));
3968 return getDerived().TraverseAVRInterruptAttr(cast<AVRInterruptAttr>(A));
3970 return getDerived().TraverseAVRSignalAttr(cast<AVRSignalAttr>(A));
3972 return getDerived().TraverseAbiTagAttr(cast<AbiTagAttr>(A));
3974 return getDerived().TraverseAcquireCapabilityAttr(cast<AcquireCapabilityAttr>(A));
3976 return getDerived().TraverseAcquiredAfterAttr(cast<AcquiredAfterAttr>(A));
3978 return getDerived().TraverseAcquiredBeforeAttr(cast<AcquiredBeforeAttr>(A));
3980 return getDerived().TraverseAddressSpaceAttr(cast<AddressSpaceAttr>(A));
3982 return getDerived().TraverseAliasAttr(cast<AliasAttr>(A));
3984 return getDerived().TraverseAlignMac68kAttr(cast<AlignMac68kAttr>(A));
3986 return getDerived().TraverseAlignValueAttr(cast<AlignValueAttr>(A));
3988 return getDerived().TraverseAlignedAttr(cast<AlignedAttr>(A));
3990 return getDerived().TraverseAllocAlignAttr(cast<AllocAlignAttr>(A));
3992 return getDerived().TraverseAllocSizeAttr(cast<AllocSizeAttr>(A));
3994 return getDerived().TraverseAlwaysDestroyAttr(cast<AlwaysDestroyAttr>(A));
3996 return getDerived().TraverseAlwaysInlineAttr(cast<AlwaysInlineAttr>(A));
3998 return getDerived().TraverseAnalyzerNoReturnAttr(cast<AnalyzerNoReturnAttr>(A));
4000 return getDerived().TraverseAnnotateAttr(cast<AnnotateAttr>(A));
4002 return getDerived().TraverseAnyX86InterruptAttr(cast<AnyX86InterruptAttr>(A));
4004 return getDerived().TraverseAnyX86NoCallerSavedRegistersAttr(cast<AnyX86NoCallerSavedRegistersAttr>(A));
4006 return getDerived().TraverseAnyX86NoCfCheckAttr(cast<AnyX86NoCfCheckAttr>(A));
4008 return getDerived().TraverseArcWeakrefUnavailableAttr(cast<ArcWeakrefUnavailableAttr>(A));
4010 return getDerived().TraverseArgumentWithTypeTagAttr(cast<ArgumentWithTypeTagAttr>(A));
4012 return getDerived().TraverseArmMveAliasAttr(cast<ArmMveAliasAttr>(A));
4014 return getDerived().TraverseArtificialAttr(cast<ArtificialAttr>(A));
4016 return getDerived().TraverseAsmLabelAttr(cast<AsmLabelAttr>(A));
4018 return getDerived().TraverseAssertCapabilityAttr(cast<AssertCapabilityAttr>(A));
4020 return getDerived().TraverseAssertExclusiveLockAttr(cast<AssertExclusiveLockAttr>(A));
4022 return getDerived().TraverseAssertSharedLockAttr(cast<AssertSharedLockAttr>(A));
4024 return getDerived().TraverseAssumeAlignedAttr(cast<AssumeAlignedAttr>(A));
4026 return getDerived().TraverseAvailabilityAttr(cast<AvailabilityAttr>(A));
4028 return getDerived().TraverseBlocksAttr(cast<BlocksAttr>(A));
4030 return getDerived().TraverseC11NoReturnAttr(cast<C11NoReturnAttr>(A));
4032 return getDerived().TraverseCDeclAttr(cast<CDeclAttr>(A));
4034 return getDerived().TraverseCFAuditedTransferAttr(cast<CFAuditedTransferAttr>(A));
4036 return getDerived().TraverseCFConsumedAttr(cast<CFConsumedAttr>(A));
4038 return getDerived().TraverseCFICanonicalJumpTableAttr(cast<CFICanonicalJumpTableAttr>(A));
4040 return getDerived().TraverseCFReturnsNotRetainedAttr(cast<CFReturnsNotRetainedAttr>(A));
4042 return getDerived().TraverseCFReturnsRetainedAttr(cast<CFReturnsRetainedAttr>(A));
4044 return getDerived().TraverseCFUnknownTransferAttr(cast<CFUnknownTransferAttr>(A));
4046 return getDerived().TraverseCPUDispatchAttr(cast<CPUDispatchAttr>(A));
4048 return getDerived().TraverseCPUSpecificAttr(cast<CPUSpecificAttr>(A));
4050 return getDerived().TraverseCUDAConstantAttr(cast<CUDAConstantAttr>(A));
4052 return getDerived().TraverseCUDADeviceAttr(cast<CUDADeviceAttr>(A));
4054 return getDerived().TraverseCUDAGlobalAttr(cast<CUDAGlobalAttr>(A));
4056 return getDerived().TraverseCUDAHostAttr(cast<CUDAHostAttr>(A));
4058 return getDerived().TraverseCUDAInvalidTargetAttr(cast<CUDAInvalidTargetAttr>(A));
4060 return getDerived().TraverseCUDALaunchBoundsAttr(cast<CUDALaunchBoundsAttr>(A));
4062 return getDerived().TraverseCUDASharedAttr(cast<CUDASharedAttr>(A));
4064 return getDerived().TraverseCXX11NoReturnAttr(cast<CXX11NoReturnAttr>(A));
4066 return getDerived().TraverseCallableWhenAttr(cast<CallableWhenAttr>(A));
4068 return getDerived().TraverseCallbackAttr(cast<CallbackAttr>(A));
4070 return getDerived().TraverseCapabilityAttr(cast<CapabilityAttr>(A));
4072 return getDerived().TraverseCapturedRecordAttr(cast<CapturedRecordAttr>(A));
4074 return getDerived().TraverseCarriesDependencyAttr(cast<CarriesDependencyAttr>(A));
4076 return getDerived().TraverseCleanupAttr(cast<CleanupAttr>(A));
4078 return getDerived().TraverseCodeSegAttr(cast<CodeSegAttr>(A));
4080 return getDerived().TraverseColdAttr(cast<ColdAttr>(A));
4082 return getDerived().TraverseCommonAttr(cast<CommonAttr>(A));
4084 return getDerived().TraverseConstAttr(cast<ConstAttr>(A));
4086 return getDerived().TraverseConstInitAttr(cast<ConstInitAttr>(A));
4088 return getDerived().TraverseConstructorAttr(cast<ConstructorAttr>(A));
4090 return getDerived().TraverseConsumableAttr(cast<ConsumableAttr>(A));
4092 return getDerived().TraverseConsumableAutoCastAttr(cast<ConsumableAutoCastAttr>(A));
4094 return getDerived().TraverseConsumableSetOnReadAttr(cast<ConsumableSetOnReadAttr>(A));
4096 return getDerived().TraverseConvergentAttr(cast<ConvergentAttr>(A));
4098 return getDerived().TraverseDLLExportAttr(cast<DLLExportAttr>(A));
4100 return getDerived().TraverseDLLExportStaticLocalAttr(cast<DLLExportStaticLocalAttr>(A));
4102 return getDerived().TraverseDLLImportAttr(cast<DLLImportAttr>(A));
4104 return getDerived().TraverseDLLImportStaticLocalAttr(cast<DLLImportStaticLocalAttr>(A));
4106 return getDerived().TraverseDeprecatedAttr(cast<DeprecatedAttr>(A));
4108 return getDerived().TraverseDestructorAttr(cast<DestructorAttr>(A));
4110 return getDerived().TraverseDiagnoseIfAttr(cast<DiagnoseIfAttr>(A));
4112 return getDerived().TraverseDisableTailCallsAttr(cast<DisableTailCallsAttr>(A));
4114 return getDerived().TraverseEmptyBasesAttr(cast<EmptyBasesAttr>(A));
4116 return getDerived().TraverseEnableIfAttr(cast<EnableIfAttr>(A));
4118 return getDerived().TraverseEnumExtensibilityAttr(cast<EnumExtensibilityAttr>(A));
4120 return getDerived().TraverseExcludeFromExplicitInstantiationAttr(cast<ExcludeFromExplicitInstantiationAttr>(A));
4122 return getDerived().TraverseExclusiveTrylockFunctionAttr(cast<ExclusiveTrylockFunctionAttr>(A));
4124 return getDerived().TraverseExternalSourceSymbolAttr(cast<ExternalSourceSymbolAttr>(A));
4126 return getDerived().TraverseFallThroughAttr(cast<FallThroughAttr>(A));
4128 return getDerived().TraverseFastCallAttr(cast<FastCallAttr>(A));
4130 return getDerived().TraverseFinalAttr(cast<FinalAttr>(A));
4132 return getDerived().TraverseFlagEnumAttr(cast<FlagEnumAttr>(A));
4134 return getDerived().TraverseFlattenAttr(cast<FlattenAttr>(A));
4136 return getDerived().TraverseFormatAttr(cast<FormatAttr>(A));
4138 return getDerived().TraverseFormatArgAttr(cast<FormatArgAttr>(A));
4140 return getDerived().TraverseGNUInlineAttr(cast<GNUInlineAttr>(A));
4142 return getDerived().TraverseGuardedByAttr(cast<GuardedByAttr>(A));
4144 return getDerived().TraverseGuardedVarAttr(cast<GuardedVarAttr>(A));
4146 return getDerived().TraverseHIPPinnedShadowAttr(cast<HIPPinnedShadowAttr>(A));
4148 return getDerived().TraverseHotAttr(cast<HotAttr>(A));
4150 return getDerived().TraverseIBActionAttr(cast<IBActionAttr>(A));
4152 return getDerived().TraverseIBOutletAttr(cast<IBOutletAttr>(A));
4154 return getDerived().TraverseIBOutletCollectionAttr(cast<IBOutletCollectionAttr>(A));
4156 return getDerived().TraverseIFuncAttr(cast<IFuncAttr>(A));
4158 return getDerived().TraverseInitPriorityAttr(cast<InitPriorityAttr>(A));
4160 return getDerived().TraverseInitSegAttr(cast<InitSegAttr>(A));
4162 return getDerived().TraverseIntelOclBiccAttr(cast<IntelOclBiccAttr>(A));
4164 return getDerived().TraverseInternalLinkageAttr(cast<InternalLinkageAttr>(A));
4166 return getDerived().TraverseLTOVisibilityPublicAttr(cast<LTOVisibilityPublicAttr>(A));
4168 return getDerived().TraverseLayoutVersionAttr(cast<LayoutVersionAttr>(A));
4170 return getDerived().TraverseLifetimeBoundAttr(cast<LifetimeBoundAttr>(A));
4172 return getDerived().TraverseLockReturnedAttr(cast<LockReturnedAttr>(A));
4174 return getDerived().TraverseLocksExcludedAttr(cast<LocksExcludedAttr>(A));
4176 return getDerived().TraverseLoopHintAttr(cast<LoopHintAttr>(A));
4178 return getDerived().TraverseMIGServerRoutineAttr(cast<MIGServerRoutineAttr>(A));
4180 return getDerived().TraverseMSABIAttr(cast<MSABIAttr>(A));
4182 return getDerived().TraverseMSAllocatorAttr(cast<MSAllocatorAttr>(A));
4184 return getDerived().TraverseMSInheritanceAttr(cast<MSInheritanceAttr>(A));
4186 return getDerived().TraverseMSNoVTableAttr(cast<MSNoVTableAttr>(A));
4188 return getDerived().TraverseMSP430InterruptAttr(cast<MSP430InterruptAttr>(A));
4190 return getDerived().TraverseMSStructAttr(cast<MSStructAttr>(A));
4192 return getDerived().TraverseMSVtorDispAttr(cast<MSVtorDispAttr>(A));
4194 return getDerived().TraverseMaxFieldAlignmentAttr(cast<MaxFieldAlignmentAttr>(A));
4196 return getDerived().TraverseMayAliasAttr(cast<MayAliasAttr>(A));
4198 return getDerived().TraverseMicroMipsAttr(cast<MicroMipsAttr>(A));
4200 return getDerived().TraverseMinSizeAttr(cast<MinSizeAttr>(A));
4202 return getDerived().TraverseMinVectorWidthAttr(cast<MinVectorWidthAttr>(A));
4204 return getDerived().TraverseMips16Attr(cast<Mips16Attr>(A));
4206 return getDerived().TraverseMipsInterruptAttr(cast<MipsInterruptAttr>(A));
4208 return getDerived().TraverseMipsLongCallAttr(cast<MipsLongCallAttr>(A));
4210 return getDerived().TraverseMipsShortCallAttr(cast<MipsShortCallAttr>(A));
4212 return getDerived().TraverseModeAttr(cast<ModeAttr>(A));
4214 return getDerived().TraverseNSConsumedAttr(cast<NSConsumedAttr>(A));
4216 return getDerived().TraverseNSConsumesSelfAttr(cast<NSConsumesSelfAttr>(A));
4218 return getDerived().TraverseNSReturnsAutoreleasedAttr(cast<NSReturnsAutoreleasedAttr>(A));
4220 return getDerived().TraverseNSReturnsNotRetainedAttr(cast<NSReturnsNotRetainedAttr>(A));
4222 return getDerived().TraverseNSReturnsRetainedAttr(cast<NSReturnsRetainedAttr>(A));
4224 return getDerived().TraverseNakedAttr(cast<NakedAttr>(A));
4226 return getDerived().TraverseNoAliasAttr(cast<NoAliasAttr>(A));
4228 return getDerived().TraverseNoCommonAttr(cast<NoCommonAttr>(A));
4230 return getDerived().TraverseNoDebugAttr(cast<NoDebugAttr>(A));
4232 return getDerived().TraverseNoDerefAttr(cast<NoDerefAttr>(A));
4234 return getDerived().TraverseNoDestroyAttr(cast<NoDestroyAttr>(A));
4236 return getDerived().TraverseNoDuplicateAttr(cast<NoDuplicateAttr>(A));
4238 return getDerived().TraverseNoEscapeAttr(cast<NoEscapeAttr>(A));
4240 return getDerived().TraverseNoInlineAttr(cast<NoInlineAttr>(A));
4242 return getDerived().TraverseNoInstrumentFunctionAttr(cast<NoInstrumentFunctionAttr>(A));
4244 return getDerived().TraverseNoMicroMipsAttr(cast<NoMicroMipsAttr>(A));
4246 return getDerived().TraverseNoMips16Attr(cast<NoMips16Attr>(A));
4248 return getDerived().TraverseNoReturnAttr(cast<NoReturnAttr>(A));
4250 return getDerived().TraverseNoSanitizeAttr(cast<NoSanitizeAttr>(A));
4252 return getDerived().TraverseNoSpeculativeLoadHardeningAttr(cast<NoSpeculativeLoadHardeningAttr>(A));
4254 return getDerived().TraverseNoSplitStackAttr(cast<NoSplitStackAttr>(A));
4256 return getDerived().TraverseNoStackProtectorAttr(cast<NoStackProtectorAttr>(A));
4258 return getDerived().TraverseNoThreadSafetyAnalysisAttr(cast<NoThreadSafetyAnalysisAttr>(A));
4260 return getDerived().TraverseNoThrowAttr(cast<NoThrowAttr>(A));
4262 return getDerived().TraverseNoUniqueAddressAttr(cast<NoUniqueAddressAttr>(A));
4264 return getDerived().TraverseNonNullAttr(cast<NonNullAttr>(A));
4266 return getDerived().TraverseNotTailCalledAttr(cast<NotTailCalledAttr>(A));
4268 return getDerived().TraverseOMPAllocateDeclAttr(cast<OMPAllocateDeclAttr>(A));
4270 return getDerived().TraverseOMPCaptureKindAttr(cast<OMPCaptureKindAttr>(A));
4272 return getDerived().TraverseOMPCaptureNoInitAttr(cast<OMPCaptureNoInitAttr>(A));
4274 return getDerived().TraverseOMPDeclareSimdDeclAttr(cast<OMPDeclareSimdDeclAttr>(A));
4276 return getDerived().TraverseOMPDeclareTargetDeclAttr(cast<OMPDeclareTargetDeclAttr>(A));
4278 return getDerived().TraverseOMPDeclareVariantAttr(cast<OMPDeclareVariantAttr>(A));
4280 return getDerived().TraverseOMPReferencedVarAttr(cast<OMPReferencedVarAttr>(A));
4282 return getDerived().TraverseOMPThreadPrivateDeclAttr(cast<OMPThreadPrivateDeclAttr>(A));
4284 return getDerived().TraverseOSConsumedAttr(cast<OSConsumedAttr>(A));
4286 return getDerived().TraverseOSConsumesThisAttr(cast<OSConsumesThisAttr>(A));
4288 return getDerived().TraverseOSReturnsNotRetainedAttr(cast<OSReturnsNotRetainedAttr>(A));
4290 return getDerived().TraverseOSReturnsRetainedAttr(cast<OSReturnsRetainedAttr>(A));
4292 return getDerived().TraverseOSReturnsRetainedOnNonZeroAttr(cast<OSReturnsRetainedOnNonZeroAttr>(A));
4294 return getDerived().TraverseOSReturnsRetainedOnZeroAttr(cast<OSReturnsRetainedOnZeroAttr>(A));
4296 return getDerived().TraverseObjCBoxableAttr(cast<ObjCBoxableAttr>(A));
4298 return getDerived().TraverseObjCBridgeAttr(cast<ObjCBridgeAttr>(A));
4300 return getDerived().TraverseObjCBridgeMutableAttr(cast<ObjCBridgeMutableAttr>(A));
4302 return getDerived().TraverseObjCBridgeRelatedAttr(cast<ObjCBridgeRelatedAttr>(A));
4304 return getDerived().TraverseObjCClassStubAttr(cast<ObjCClassStubAttr>(A));
4306 return getDerived().TraverseObjCDesignatedInitializerAttr(cast<ObjCDesignatedInitializerAttr>(A));
4308 return getDerived().TraverseObjCExceptionAttr(cast<ObjCExceptionAttr>(A));
4310 return getDerived().TraverseObjCExplicitProtocolImplAttr(cast<ObjCExplicitProtocolImplAttr>(A));
4312 return getDerived().TraverseObjCExternallyRetainedAttr(cast<ObjCExternallyRetainedAttr>(A));
4314 return getDerived().TraverseObjCGCAttr(cast<ObjCGCAttr>(A));
4316 return getDerived().TraverseObjCIndependentClassAttr(cast<ObjCIndependentClassAttr>(A));
4318 return getDerived().TraverseObjCInertUnsafeUnretainedAttr(cast<ObjCInertUnsafeUnretainedAttr>(A));
4320 return getDerived().TraverseObjCKindOfAttr(cast<ObjCKindOfAttr>(A));
4322 return getDerived().TraverseObjCMethodFamilyAttr(cast<ObjCMethodFamilyAttr>(A));
4324 return getDerived().TraverseObjCNSObjectAttr(cast<ObjCNSObjectAttr>(A));
4326 return getDerived().TraverseObjCNonLazyClassAttr(cast<ObjCNonLazyClassAttr>(A));
4328 return getDerived().TraverseObjCOwnershipAttr(cast<ObjCOwnershipAttr>(A));
4330 return getDerived().TraverseObjCPreciseLifetimeAttr(cast<ObjCPreciseLifetimeAttr>(A));
4332 return getDerived().TraverseObjCRequiresPropertyDefsAttr(cast<ObjCRequiresPropertyDefsAttr>(A));
4334 return getDerived().TraverseObjCRequiresSuperAttr(cast<ObjCRequiresSuperAttr>(A));
4336 return getDerived().TraverseObjCReturnsInnerPointerAttr(cast<ObjCReturnsInnerPointerAttr>(A));
4338 return getDerived().TraverseObjCRootClassAttr(cast<ObjCRootClassAttr>(A));
4340 return getDerived().TraverseObjCRuntimeNameAttr(cast<ObjCRuntimeNameAttr>(A));
4342 return getDerived().TraverseObjCRuntimeVisibleAttr(cast<ObjCRuntimeVisibleAttr>(A));
4344 return getDerived().TraverseObjCSubclassingRestrictedAttr(cast<ObjCSubclassingRestrictedAttr>(A));
4346 return getDerived().TraverseOpenCLAccessAttr(cast<OpenCLAccessAttr>(A));
4348 return getDerived().TraverseOpenCLConstantAddressSpaceAttr(cast<OpenCLConstantAddressSpaceAttr>(A));
4350 return getDerived().TraverseOpenCLGenericAddressSpaceAttr(cast<OpenCLGenericAddressSpaceAttr>(A));
4352 return getDerived().TraverseOpenCLGlobalAddressSpaceAttr(cast<OpenCLGlobalAddressSpaceAttr>(A));
4354 return getDerived().TraverseOpenCLIntelReqdSubGroupSizeAttr(cast<OpenCLIntelReqdSubGroupSizeAttr>(A));
4356 return getDerived().TraverseOpenCLKernelAttr(cast<OpenCLKernelAttr>(A));
4358 return getDerived().TraverseOpenCLLocalAddressSpaceAttr(cast<OpenCLLocalAddressSpaceAttr>(A));
4360 return getDerived().TraverseOpenCLPrivateAddressSpaceAttr(cast<OpenCLPrivateAddressSpaceAttr>(A));
4362 return getDerived().TraverseOpenCLUnrollHintAttr(cast<OpenCLUnrollHintAttr>(A));
4364 return getDerived().TraverseOptimizeNoneAttr(cast<OptimizeNoneAttr>(A));
4366 return getDerived().TraverseOverloadableAttr(cast<OverloadableAttr>(A));
4368 return getDerived().TraverseOverrideAttr(cast<OverrideAttr>(A));
4370 return getDerived().TraverseOwnerAttr(cast<OwnerAttr>(A));
4372 return getDerived().TraverseOwnershipAttr(cast<OwnershipAttr>(A));
4374 return getDerived().TraversePackedAttr(cast<PackedAttr>(A));
4376 return getDerived().TraverseParamTypestateAttr(cast<ParamTypestateAttr>(A));
4378 return getDerived().TraversePascalAttr(cast<PascalAttr>(A));
4380 return getDerived().TraversePassObjectSizeAttr(cast<PassObjectSizeAttr>(A));
4382 return getDerived().TraversePcsAttr(cast<PcsAttr>(A));
4384 return getDerived().TraversePointerAttr(cast<PointerAttr>(A));
4386 return getDerived().TraversePragmaClangBSSSectionAttr(cast<PragmaClangBSSSectionAttr>(A));
4388 return getDerived().TraversePragmaClangDataSectionAttr(cast<PragmaClangDataSectionAttr>(A));
4390 return getDerived().TraversePragmaClangRelroSectionAttr(cast<PragmaClangRelroSectionAttr>(A));
4392 return getDerived().TraversePragmaClangRodataSectionAttr(cast<PragmaClangRodataSectionAttr>(A));
4394 return getDerived().TraversePragmaClangTextSectionAttr(cast<PragmaClangTextSectionAttr>(A));
4396 return getDerived().TraversePreserveAllAttr(cast<PreserveAllAttr>(A));
4398 return getDerived().TraversePreserveMostAttr(cast<PreserveMostAttr>(A));
4400 return getDerived().TraversePtGuardedByAttr(cast<PtGuardedByAttr>(A));
4402 return getDerived().TraversePtGuardedVarAttr(cast<PtGuardedVarAttr>(A));
4404 return getDerived().TraversePtr32Attr(cast<Ptr32Attr>(A));
4406 return getDerived().TraversePtr64Attr(cast<Ptr64Attr>(A));
4408 return getDerived().TraversePureAttr(cast<PureAttr>(A));
4410 return getDerived().TraverseRISCVInterruptAttr(cast<RISCVInterruptAttr>(A));
4412 return getDerived().TraverseRegCallAttr(cast<RegCallAttr>(A));
4414 return getDerived().TraverseReinitializesAttr(cast<ReinitializesAttr>(A));
4416 return getDerived().TraverseReleaseCapabilityAttr(cast<ReleaseCapabilityAttr>(A));
4418 return getDerived().TraverseRenderScriptKernelAttr(cast<RenderScriptKernelAttr>(A));
4420 return getDerived().TraverseReqdWorkGroupSizeAttr(cast<ReqdWorkGroupSizeAttr>(A));
4422 return getDerived().TraverseRequiresCapabilityAttr(cast<RequiresCapabilityAttr>(A));
4424 return getDerived().TraverseRestrictAttr(cast<RestrictAttr>(A));
4426 return getDerived().TraverseReturnTypestateAttr(cast<ReturnTypestateAttr>(A));
4428 return getDerived().TraverseReturnsNonNullAttr(cast<ReturnsNonNullAttr>(A));
4430 return getDerived().TraverseReturnsTwiceAttr(cast<ReturnsTwiceAttr>(A));
4432 return getDerived().TraverseSPtrAttr(cast<SPtrAttr>(A));
4434 return getDerived().TraverseScopedLockableAttr(cast<ScopedLockableAttr>(A));
4436 return getDerived().TraverseSectionAttr(cast<SectionAttr>(A));
4438 return getDerived().TraverseSelectAnyAttr(cast<SelectAnyAttr>(A));
4440 return getDerived().TraverseSentinelAttr(cast<SentinelAttr>(A));
4442 return getDerived().TraverseSetTypestateAttr(cast<SetTypestateAttr>(A));
4444 return getDerived().TraverseSharedTrylockFunctionAttr(cast<SharedTrylockFunctionAttr>(A));
4446 return getDerived().TraverseSpeculativeLoadHardeningAttr(cast<SpeculativeLoadHardeningAttr>(A));
4448 return getDerived().TraverseStdCallAttr(cast<StdCallAttr>(A));
4450 return getDerived().TraverseSuppressAttr(cast<SuppressAttr>(A));
4452 return getDerived().TraverseSwiftCallAttr(cast<SwiftCallAttr>(A));
4454 return getDerived().TraverseSwiftContextAttr(cast<SwiftContextAttr>(A));
4456 return getDerived().TraverseSwiftErrorResultAttr(cast<SwiftErrorResultAttr>(A));
4458 return getDerived().TraverseSwiftIndirectResultAttr(cast<SwiftIndirectResultAttr>(A));
4460 return getDerived().TraverseSysVABIAttr(cast<SysVABIAttr>(A));
4462 return getDerived().TraverseTLSModelAttr(cast<TLSModelAttr>(A));
4464 return getDerived().TraverseTargetAttr(cast<TargetAttr>(A));
4466 return getDerived().TraverseTestTypestateAttr(cast<TestTypestateAttr>(A));
4468 return getDerived().TraverseThisCallAttr(cast<ThisCallAttr>(A));
4470 return getDerived().TraverseThreadAttr(cast<ThreadAttr>(A));
4472 return getDerived().TraverseTransparentUnionAttr(cast<TransparentUnionAttr>(A));
4474 return getDerived().TraverseTrivialABIAttr(cast<TrivialABIAttr>(A));
4476 return getDerived().TraverseTryAcquireCapabilityAttr(cast<TryAcquireCapabilityAttr>(A));
4478 return getDerived().TraverseTypeNonNullAttr(cast<TypeNonNullAttr>(A));
4480 return getDerived().TraverseTypeNullUnspecifiedAttr(cast<TypeNullUnspecifiedAttr>(A));
4482 return getDerived().TraverseTypeNullableAttr(cast<TypeNullableAttr>(A));
4484 return getDerived().TraverseTypeTagForDatatypeAttr(cast<TypeTagForDatatypeAttr>(A));
4486 return getDerived().TraverseTypeVisibilityAttr(cast<TypeVisibilityAttr>(A));
4488 return getDerived().TraverseUPtrAttr(cast<UPtrAttr>(A));
4490 return getDerived().TraverseUnavailableAttr(cast<UnavailableAttr>(A));
4492 return getDerived().TraverseUninitializedAttr(cast<UninitializedAttr>(A));
4494 return getDerived().TraverseUnusedAttr(cast<UnusedAttr>(A));
4496 return getDerived().TraverseUsedAttr(cast<UsedAttr>(A));
4498 return getDerived().TraverseUuidAttr(cast<UuidAttr>(A));
4500 return getDerived().TraverseVecReturnAttr(cast<VecReturnAttr>(A));
4502 return getDerived().TraverseVecTypeHintAttr(cast<VecTypeHintAttr>(A));
4504 return getDerived().TraverseVectorCallAttr(cast<VectorCallAttr>(A));
4506 return getDerived().TraverseVisibilityAttr(cast<VisibilityAttr>(A));
4508 return getDerived().TraverseWarnUnusedAttr(cast<WarnUnusedAttr>(A));
4510 return getDerived().TraverseWarnUnusedResultAttr(cast<WarnUnusedResultAttr>(A));
4512 return getDerived().TraverseWeakAttr(cast<WeakAttr>(A));
4514 return getDerived().TraverseWeakImportAttr(cast<WeakImportAttr>(A));
4516 return getDerived().TraverseWeakRefAttr(cast<WeakRefAttr>(A));
4518 return getDerived().TraverseWebAssemblyImportModuleAttr(cast<WebAssemblyImportModuleAttr>(A));
4520 return getDerived().TraverseWebAssemblyImportNameAttr(cast<WebAssemblyImportNameAttr>(A));
4522 return getDerived().TraverseWorkGroupSizeHintAttr(cast<WorkGroupSizeHintAttr>(A));
4524 return getDerived().TraverseX86ForceAlignArgPointerAttr(cast<X86ForceAlignArgPointerAttr>(A));
4526 return getDerived().TraverseXRayInstrumentAttr(cast<XRayInstrumentAttr>(A));
4528 return getDerived().TraverseXRayLogArgsAttr(cast<XRayLogArgsAttr>(A));
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc 16 const auto *A = cast<AArch64VectorPcsAttr>(At);
20 const auto *A = cast<AMDGPUFlatWorkGroupSizeAttr>(At);
24 const auto *A = cast<AMDGPUNumSGPRAttr>(At);
28 const auto *A = cast<AMDGPUNumVGPRAttr>(At);
32 const auto *A = cast<AMDGPUWavesPerEUAttr>(At);
36 const auto *A = cast<ARMInterruptAttr>(At);
40 const auto *A = cast<AVRInterruptAttr>(At);
44 const auto *A = cast<AVRSignalAttr>(At);
48 const auto *A = cast<AbiTagAttr>(At);
52 const auto *A = cast<AcquireCapabilityAttr>(At);
67 const auto *A = cast<AcquiredAfterAttr>(At);
82 const auto *A = cast<AcquiredBeforeAttr>(At);
97 const auto *A = cast<AddressSpaceAttr>(At);
101 const auto *A = cast<AliasAttr>(At);
105 const auto *A = cast<AlignMac68kAttr>(At);
109 const auto *A = cast<AlignValueAttr>(At);
113 const auto *A = cast<AlignedAttr>(At);
117 const auto *A = cast<AllocAlignAttr>(At);
121 const auto *A = cast<AllocSizeAttr>(At);
125 const auto *A = cast<AlwaysDestroyAttr>(At);
129 const auto *A = cast<AlwaysInlineAttr>(At);
133 const auto *A = cast<AnalyzerNoReturnAttr>(At);
137 const auto *A = cast<AnnotateAttr>(At);
141 const auto *A = cast<AnyX86InterruptAttr>(At);
145 const auto *A = cast<AnyX86NoCallerSavedRegistersAttr>(At);
149 const auto *A = cast<AnyX86NoCfCheckAttr>(At);
153 const auto *A = cast<ArcWeakrefUnavailableAttr>(At);
157 const auto *A = cast<ArgumentWithTypeTagAttr>(At);
161 const auto *A = cast<ArmMveAliasAttr>(At);
165 const auto *A = cast<ArtificialAttr>(At);
169 const auto *A = cast<AsmLabelAttr>(At);
173 const auto *A = cast<AssertCapabilityAttr>(At);
188 const auto *A = cast<AssertExclusiveLockAttr>(At);
203 const auto *A = cast<AssertSharedLockAttr>(At);
218 const auto *A = cast<AssumeAlignedAttr>(At);
222 const auto *A = cast<AvailabilityAttr>(At);
226 const auto *A = cast<BlocksAttr>(At);
230 const auto *A = cast<C11NoReturnAttr>(At);
234 const auto *A = cast<CDeclAttr>(At);
238 const auto *A = cast<CFAuditedTransferAttr>(At);
242 const auto *A = cast<CFConsumedAttr>(At);
246 const auto *A = cast<CFICanonicalJumpTableAttr>(At);
250 const auto *A = cast<CFReturnsNotRetainedAttr>(At);
254 const auto *A = cast<CFReturnsRetainedAttr>(At);
258 const auto *A = cast<CFUnknownTransferAttr>(At);
262 const auto *A = cast<CPUDispatchAttr>(At);
266 const auto *A = cast<CPUSpecificAttr>(At);
270 const auto *A = cast<CUDAConstantAttr>(At);
274 const auto *A = cast<CUDADeviceAttr>(At);
278 const auto *A = cast<CUDAGlobalAttr>(At);
282 const auto *A = cast<CUDAHostAttr>(At);
286 const auto *A = cast<CUDAInvalidTargetAttr>(At);
290 const auto *A = cast<CUDALaunchBoundsAttr>(At);
294 const auto *A = cast<CUDASharedAttr>(At);
298 const auto *A = cast<CXX11NoReturnAttr>(At);
302 const auto *A = cast<CallableWhenAttr>(At);
306 const auto *A = cast<CallbackAttr>(At);
310 const auto *A = cast<CapabilityAttr>(At);
314 const auto *A = cast<CapturedRecordAttr>(At);
318 const auto *A = cast<CarriesDependencyAttr>(At);
322 const auto *A = cast<CleanupAttr>(At);
326 const auto *A = cast<CodeSegAttr>(At);
330 const auto *A = cast<ColdAttr>(At);
334 const auto *A = cast<CommonAttr>(At);
338 const auto *A = cast<ConstAttr>(At);
342 const auto *A = cast<ConstInitAttr>(At);
346 const auto *A = cast<ConstructorAttr>(At);
350 const auto *A = cast<ConsumableAttr>(At);
354 const auto *A = cast<ConsumableAutoCastAttr>(At);
358 const auto *A = cast<ConsumableSetOnReadAttr>(At);
362 const auto *A = cast<ConvergentAttr>(At);
366 const auto *A = cast<DLLExportAttr>(At);
370 const auto *A = cast<DLLExportStaticLocalAttr>(At);
374 const auto *A = cast<DLLImportAttr>(At);
378 const auto *A = cast<DLLImportStaticLocalAttr>(At);
382 const auto *A = cast<DeprecatedAttr>(At);
386 const auto *A = cast<DestructorAttr>(At);
390 const auto *A = cast<DiagnoseIfAttr>(At);
400 const auto *A = cast<DisableTailCallsAttr>(At);
404 const auto *A = cast<EmptyBasesAttr>(At);
408 const auto *A = cast<EnableIfAttr>(At);
418 const auto *A = cast<EnumExtensibilityAttr>(At);
422 const auto *A = cast<ExcludeFromExplicitInstantiationAttr>(At);
426 const auto *A = cast<ExclusiveTrylockFunctionAttr>(At);
447 const auto *A = cast<ExternalSourceSymbolAttr>(At);
451 const auto *A = cast<FallThroughAttr>(At);
455 const auto *A = cast<FastCallAttr>(At);
459 const auto *A = cast<FinalAttr>(At);
463 const auto *A = cast<FlagEnumAttr>(At);
467 const auto *A = cast<FlattenAttr>(At);
471 const auto *A = cast<FormatAttr>(At);
475 const auto *A = cast<FormatArgAttr>(At);
479 const auto *A = cast<GNUInlineAttr>(At);
483 const auto *A = cast<GuardedByAttr>(At);
493 const auto *A = cast<GuardedVarAttr>(At);
497 const auto *A = cast<HIPPinnedShadowAttr>(At);
501 const auto *A = cast<HotAttr>(At);
505 const auto *A = cast<IBActionAttr>(At);
509 const auto *A = cast<IBOutletAttr>(At);
513 const auto *A = cast<IBOutletCollectionAttr>(At);
517 const auto *A = cast<IFuncAttr>(At);
521 const auto *A = cast<InitPriorityAttr>(At);
525 const auto *A = cast<InitSegAttr>(At);
529 const auto *A = cast<IntelOclBiccAttr>(At);
533 const auto *A = cast<InternalLinkageAttr>(At);
537 const auto *A = cast<LTOVisibilityPublicAttr>(At);
541 const auto *A = cast<LayoutVersionAttr>(At);
545 const auto *A = cast<LifetimeBoundAttr>(At);
549 const auto *A = cast<LockReturnedAttr>(At);
559 const auto *A = cast<LocksExcludedAttr>(At);
574 const auto *A = cast<LoopHintAttr>(At);
578 const auto *A = cast<MIGServerRoutineAttr>(At);
582 const auto *A = cast<MSABIAttr>(At);
586 const auto *A = cast<MSAllocatorAttr>(At);
590 const auto *A = cast<MSInheritanceAttr>(At);
594 const auto *A = cast<MSNoVTableAttr>(At);
598 const auto *A = cast<MSP430InterruptAttr>(At);
602 const auto *A = cast<MSStructAttr>(At);
606 const auto *A = cast<MSVtorDispAttr>(At);
610 const auto *A = cast<MaxFieldAlignmentAttr>(At);
614 const auto *A = cast<MayAliasAttr>(At);
618 const auto *A = cast<MicroMipsAttr>(At);
622 const auto *A = cast<MinSizeAttr>(At);
626 const auto *A = cast<MinVectorWidthAttr>(At);
630 const auto *A = cast<Mips16Attr>(At);
634 const auto *A = cast<MipsInterruptAttr>(At);
638 const auto *A = cast<MipsLongCallAttr>(At);
642 const auto *A = cast<MipsShortCallAttr>(At);
646 const auto *A = cast<ModeAttr>(At);
650 const auto *A = cast<NSConsumedAttr>(At);
654 const auto *A = cast<NSConsumesSelfAttr>(At);
658 const auto *A = cast<NSReturnsAutoreleasedAttr>(At);
662 const auto *A = cast<NSReturnsNotRetainedAttr>(At);
666 const auto *A = cast<NSReturnsRetainedAttr>(At);
670 const auto *A = cast<NakedAttr>(At);
674 const auto *A = cast<NoAliasAttr>(At);
678 const auto *A = cast<NoCommonAttr>(At);
682 const auto *A = cast<NoDebugAttr>(At);
686 const auto *A = cast<NoDerefAttr>(At);
690 const auto *A = cast<NoDestroyAttr>(At);
694 const auto *A = cast<NoDuplicateAttr>(At);
698 const auto *A = cast<NoEscapeAttr>(At);
702 const auto *A = cast<NoInlineAttr>(At);
706 const auto *A = cast<NoInstrumentFunctionAttr>(At);
710 const auto *A = cast<NoMicroMipsAttr>(At);
714 const auto *A = cast<NoMips16Attr>(At);
718 const auto *A = cast<NoReturnAttr>(At);
722 const auto *A = cast<NoSanitizeAttr>(At);
726 const auto *A = cast<NoSpeculativeLoadHardeningAttr>(At);
730 const auto *A = cast<NoSplitStackAttr>(At);
734 const auto *A = cast<NoStackProtectorAttr>(At);
738 const auto *A = cast<NoThreadSafetyAnalysisAttr>(At);
742 const auto *A = cast<NoThrowAttr>(At);
746 const auto *A = cast<NoUniqueAddressAttr>(At);
750 const auto *A = cast<NonNullAttr>(At);
754 const auto *A = cast<NotTailCalledAttr>(At);
758 const auto *A = cast<OMPAllocateDeclAttr>(At);
762 const auto *A = cast<OMPCaptureKindAttr>(At);
766 const auto *A = cast<OMPCaptureNoInitAttr>(At);
770 const auto *A = cast<OMPDeclareSimdDeclAttr>(At);
774 const auto *A = cast<OMPDeclareTargetDeclAttr>(At);
778 const auto *A = cast<OMPDeclareVariantAttr>(At);
782 const auto *A = cast<OMPReferencedVarAttr>(At);
786 const auto *A = cast<OMPThreadPrivateDeclAttr>(At);
790 const auto *A = cast<OSConsumedAttr>(At);
794 const auto *A = cast<OSConsumesThisAttr>(At);
798 const auto *A = cast<OSReturnsNotRetainedAttr>(At);
802 const auto *A = cast<OSReturnsRetainedAttr>(At);
806 const auto *A = cast<OSReturnsRetainedOnNonZeroAttr>(At);
810 const auto *A = cast<OSReturnsRetainedOnZeroAttr>(At);
814 const auto *A = cast<ObjCBoxableAttr>(At);
818 const auto *A = cast<ObjCBridgeAttr>(At);
822 const auto *A = cast<ObjCBridgeMutableAttr>(At);
826 const auto *A = cast<ObjCBridgeRelatedAttr>(At);
830 const auto *A = cast<ObjCClassStubAttr>(At);
834 const auto *A = cast<ObjCDesignatedInitializerAttr>(At);
838 const auto *A = cast<ObjCExceptionAttr>(At);
842 const auto *A = cast<ObjCExplicitProtocolImplAttr>(At);
846 const auto *A = cast<ObjCExternallyRetainedAttr>(At);
850 const auto *A = cast<ObjCGCAttr>(At);
854 const auto *A = cast<ObjCIndependentClassAttr>(At);
858 const auto *A = cast<ObjCInertUnsafeUnretainedAttr>(At);
862 const auto *A = cast<ObjCKindOfAttr>(At);
866 const auto *A = cast<ObjCMethodFamilyAttr>(At);
870 const auto *A = cast<ObjCNSObjectAttr>(At);
874 const auto *A = cast<ObjCNonLazyClassAttr>(At);
878 const auto *A = cast<ObjCOwnershipAttr>(At);
882 const auto *A = cast<ObjCPreciseLifetimeAttr>(At);
886 const auto *A = cast<ObjCRequiresPropertyDefsAttr>(At);
890 const auto *A = cast<ObjCRequiresSuperAttr>(At);
894 const auto *A = cast<ObjCReturnsInnerPointerAttr>(At);
898 const auto *A = cast<ObjCRootClassAttr>(At);
902 const auto *A = cast<ObjCRuntimeNameAttr>(At);
906 const auto *A = cast<ObjCRuntimeVisibleAttr>(At);
910 const auto *A = cast<ObjCSubclassingRestrictedAttr>(At);
914 const auto *A = cast<OpenCLAccessAttr>(At);
918 const auto *A = cast<OpenCLConstantAddressSpaceAttr>(At);
922 const auto *A = cast<OpenCLGenericAddressSpaceAttr>(At);
926 const auto *A = cast<OpenCLGlobalAddressSpaceAttr>(At);
930 const auto *A = cast<OpenCLIntelReqdSubGroupSizeAttr>(At);
934 const auto *A = cast<OpenCLKernelAttr>(At);
938 const auto *A = cast<OpenCLLocalAddressSpaceAttr>(At);
942 const auto *A = cast<OpenCLPrivateAddressSpaceAttr>(At);
946 const auto *A = cast<OpenCLUnrollHintAttr>(At);
950 const auto *A = cast<OptimizeNoneAttr>(At);
954 const auto *A = cast<OverloadableAttr>(At);
958 const auto *A = cast<OverrideAttr>(At);
962 const auto *A = cast<OwnerAttr>(At);
966 const auto *A = cast<OwnershipAttr>(At);
970 const auto *A = cast<PackedAttr>(At);
974 const auto *A = cast<ParamTypestateAttr>(At);
978 const auto *A = cast<PascalAttr>(At);
982 const auto *A = cast<PassObjectSizeAttr>(At);
986 const auto *A = cast<PcsAttr>(At);
990 const auto *A = cast<PointerAttr>(At);
994 const auto *A = cast<PragmaClangBSSSectionAttr>(At);
998 const auto *A = cast<PragmaClangDataSectionAttr>(At);
1002 const auto *A = cast<PragmaClangRelroSectionAttr>(At);
1006 const auto *A = cast<PragmaClangRodataSectionAttr>(At);
1010 const auto *A = cast<PragmaClangTextSectionAttr>(At);
1014 const auto *A = cast<PreserveAllAttr>(At);
1018 const auto *A = cast<PreserveMostAttr>(At);
1022 const auto *A = cast<PtGuardedByAttr>(At);
1032 const auto *A = cast<PtGuardedVarAttr>(At);
1036 const auto *A = cast<Ptr32Attr>(At);
1040 const auto *A = cast<Ptr64Attr>(At);
1044 const auto *A = cast<PureAttr>(At);
1048 const auto *A = cast<RISCVInterruptAttr>(At);
1052 const auto *A = cast<RegCallAttr>(At);
1056 const auto *A = cast<ReinitializesAttr>(At);
1060 const auto *A = cast<ReleaseCapabilityAttr>(At);
1075 const auto *A = cast<RenderScriptKernelAttr>(At);
1079 const auto *A = cast<ReqdWorkGroupSizeAttr>(At);
1083 const auto *A = cast<RequiresCapabilityAttr>(At);
1098 const auto *A = cast<RestrictAttr>(At);
1102 const auto *A = cast<ReturnTypestateAttr>(At);
1106 const auto *A = cast<ReturnsNonNullAttr>(At);
1110 const auto *A = cast<ReturnsTwiceAttr>(At);
1114 const auto *A = cast<SPtrAttr>(At);
1118 const auto *A = cast<ScopedLockableAttr>(At);
1122 const auto *A = cast<SectionAttr>(At);
1126 const auto *A = cast<SelectAnyAttr>(At);
1130 const auto *A = cast<SentinelAttr>(At);
1134 const auto *A = cast<SetTypestateAttr>(At);
1138 const auto *A = cast<SharedTrylockFunctionAttr>(At);
1159 const auto *A = cast<SpeculativeLoadHardeningAttr>(At);
1163 const auto *A = cast<StdCallAttr>(At);
1167 const auto *A = cast<SuppressAttr>(At);
1171 const auto *A = cast<SwiftCallAttr>(At);
1175 const auto *A = cast<SwiftContextAttr>(At);
1179 const auto *A = cast<SwiftErrorResultAttr>(At);
1183 const auto *A = cast<SwiftIndirectResultAttr>(At);
1187 const auto *A = cast<SysVABIAttr>(At);
1191 const auto *A = cast<TLSModelAttr>(At);
1195 const auto *A = cast<TargetAttr>(At);
1199 const auto *A = cast<TestTypestateAttr>(At);
1203 const auto *A = cast<ThisCallAttr>(At);
1207 const auto *A = cast<ThreadAttr>(At);
1211 const auto *A = cast<TransparentUnionAttr>(At);
1215 const auto *A = cast<TrivialABIAttr>(At);
1219 const auto *A = cast<TryAcquireCapabilityAttr>(At);
1240 const auto *A = cast<TypeNonNullAttr>(At);
1244 const auto *A = cast<TypeNullUnspecifiedAttr>(At);
1248 const auto *A = cast<TypeNullableAttr>(At);
1252 const auto *A = cast<TypeTagForDatatypeAttr>(At);
1259 const auto *A = cast<UPtrAttr>(At);
1263 const auto *A = cast<UnavailableAttr>(At);
1267 const auto *A = cast<UninitializedAttr>(At);
1271 const auto *A = cast<UnusedAttr>(At);
1275 const auto *A = cast<UsedAttr>(At);
1279 const auto *A = cast<UuidAttr>(At);
1283 const auto *A = cast<VecReturnAttr>(At);
1287 const auto *A = cast<VecTypeHintAttr>(At);
1291 const auto *A = cast<VectorCallAttr>(At);
1298 const auto *A = cast<WarnUnusedAttr>(At);
1302 const auto *A = cast<WarnUnusedResultAttr>(At);
1306 const auto *A = cast<WeakAttr>(At);
1310 const auto *A = cast<WeakImportAttr>(At);
1314 const auto *A = cast<WeakRefAttr>(At);
1318 const auto *A = cast<WebAssemblyImportModuleAttr>(At);
1322 const auto *A = cast<WebAssemblyImportNameAttr>(At);
1326 const auto *A = cast<WorkGroupSizeHintAttr>(At);
1330 const auto *A = cast<X86ForceAlignArgPointerAttr>(At);
1334 const auto *A = cast<XRayInstrumentAttr>(At);
1338 const auto *A = cast<XRayLogArgsAttr>(At);
1375 const auto *A = cast<AbiTagAttr>(At);
1577 const auto *A = cast<DeprecatedAttr>(At);
1599 const auto *A = cast<ExcludeFromExplicitInstantiationAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc 14 cast<InheritableAttr>(New)->setInherited(isInherited);
24 cast<InheritableAttr>(New)->setInherited(isInherited);
33 cast<InheritableAttr>(New)->setInherited(isInherited);
42 cast<InheritableAttr>(New)->setInherited(isInherited);
52 cast<InheritableAttr>(New)->setInherited(isInherited);
61 cast<InheritableAttr>(New)->setInherited(isInherited);
69 cast<InheritableAttr>(New)->setInherited(isInherited);
77 cast<InheritableAttr>(New)->setInherited(isInherited);
105 cast<InheritableAttr>(New)->setInherited(isInherited);
118 cast<InheritableAttr>(New)->setInherited(isInherited);
131 cast<InheritableAttr>(New)->setInherited(isInherited);
153 cast<InheritableAttr>(New)->setInherited(isInherited);
174 cast<InheritableAttr>(New)->setInherited(isInherited);
183 cast<InheritableAttr>(New)->setInherited(isInherited);
193 cast<InheritableAttr>(New)->setInherited(isInherited);
201 cast<InheritableAttr>(New)->setInherited(isInherited);
209 cast<InheritableAttr>(New)->setInherited(isInherited);
217 cast<InheritableAttr>(New)->setInherited(isInherited);
226 cast<InheritableAttr>(New)->setInherited(isInherited);
234 cast<InheritableAttr>(New)->setInherited(isInherited);
242 cast<InheritableAttr>(New)->setInherited(isInherited);
250 cast<InheritableAttr>(New)->setInherited(isInherited);
258 cast<InheritableAttr>(New)->setInherited(isInherited);
270 cast<InheritableAttr>(New)->setInherited(isInherited);
279 cast<InheritableAttr>(New)->setInherited(isInherited);
287 cast<InheritableAttr>(New)->setInherited(isInherited);
297 cast<InheritableAttr>(New)->setInherited(isInherited);
310 cast<InheritableAttr>(New)->setInherited(isInherited);
323 cast<InheritableAttr>(New)->setInherited(isInherited);
336 cast<InheritableAttr>(New)->setInherited(isInherited);
346 cast<InheritableAttr>(New)->setInherited(isInherited);
363 cast<InheritableAttr>(New)->setInherited(isInherited);
372 cast<InheritableAttr>(New)->setInherited(isInherited);
380 cast<InheritableAttr>(New)->setInherited(isInherited);
388 cast<InheritableAttr>(New)->setInherited(isInherited);
396 cast<InheritableAttr>(New)->setInherited(isInherited);
404 cast<InheritableAttr>(New)->setInherited(isInherited);
412 cast<InheritableAttr>(New)->setInherited(isInherited);
420 cast<InheritableAttr>(New)->setInherited(isInherited);
428 cast<InheritableAttr>(New)->setInherited(isInherited);
436 cast<InheritableAttr>(New)->setInherited(isInherited);
449 cast<InheritableAttr>(New)->setInherited(isInherited);
462 cast<InheritableAttr>(New)->setInherited(isInherited);
470 cast<InheritableAttr>(New)->setInherited(isInherited);
478 cast<InheritableAttr>(New)->setInherited(isInherited);
486 cast<InheritableAttr>(New)->setInherited(isInherited);
494 cast<InheritableAttr>(New)->setInherited(isInherited);
502 cast<InheritableAttr>(New)->setInherited(isInherited);
512 cast<InheritableAttr>(New)->setInherited(isInherited);
520 cast<InheritableAttr>(New)->setInherited(isInherited);
528 cast<InheritableAttr>(New)->setInherited(isInherited);
541 cast<InheritableAttr>(New)->setInherited(isInherited);
554 cast<InheritableAttr>(New)->setInherited(isInherited);
563 cast<InheritableAttr>(New)->setInherited(isInherited);
571 cast<InheritableAttr>(New)->setInherited(isInherited);
579 cast<InheritableAttr>(New)->setInherited(isInherited);
588 cast<InheritableAttr>(New)->setInherited(isInherited);
597 cast<InheritableAttr>(New)->setInherited(isInherited);
605 cast<InheritableAttr>(New)->setInherited(isInherited);
613 cast<InheritableAttr>(New)->setInherited(isInherited);
621 cast<InheritableAttr>(New)->setInherited(isInherited);
629 cast<InheritableAttr>(New)->setInherited(isInherited);
638 cast<InheritableAttr>(New)->setInherited(isInherited);
647 cast<InheritableAttr>(New)->setInherited(isInherited);
655 cast<InheritableAttr>(New)->setInherited(isInherited);
663 cast<InheritableAttr>(New)->setInherited(isInherited);
671 cast<InheritableAttr>(New)->setInherited(isInherited);
679 cast<InheritableAttr>(New)->setInherited(isInherited);
687 cast<InheritableAttr>(New)->setInherited(isInherited);
695 cast<InheritableAttr>(New)->setInherited(isInherited);
703 cast<InheritableAttr>(New)->setInherited(isInherited);
713 cast<InheritableAttr>(New)->setInherited(isInherited);
722 cast<InheritableAttr>(New)->setInherited(isInherited);
735 cast<InheritableAttr>(New)->setInherited(isInherited);
743 cast<InheritableAttr>(New)->setInherited(isInherited);
751 cast<InheritableAttr>(New)->setInherited(isInherited);
761 cast<InheritableAttr>(New)->setInherited(isInherited);
770 cast<InheritableAttr>(New)->setInherited(isInherited);
778 cast<InheritableAttr>(New)->setInherited(isInherited);
792 cast<InheritableAttr>(New)->setInherited(isInherited);
803 cast<InheritableAttr>(New)->setInherited(isInherited);
817 cast<InheritableAttr>(New)->setInherited(isInherited);
825 cast<InheritableAttr>(New)->setInherited(isInherited);
833 cast<InheritableAttr>(New)->setInherited(isInherited);
841 cast<InheritableAttr>(New)->setInherited(isInherited);
852 cast<InheritableAttr>(New)->setInherited(isInherited);
861 cast<InheritableAttr>(New)->setInherited(isInherited);
869 cast<InheritableAttr>(New)->setInherited(isInherited);
878 cast<InheritableAttr>(New)->setInherited(isInherited);
886 cast<InheritableAttr>(New)->setInherited(isInherited);
894 cast<InheritableAttr>(New)->setInherited(isInherited);
902 cast<InheritableAttr>(New)->setInherited(isInherited);
910 cast<InheritableAttr>(New)->setInherited(isInherited);
918 cast<InheritableAttr>(New)->setInherited(isInherited);
927 cast<InheritableAttr>(New)->setInherited(isInherited);
943 cast<InheritableAttr>(New)->setInherited(isInherited);
958 cast<InheritableAttr>(New)->setInherited(isInherited);
966 cast<InheritableAttr>(New)->setInherited(isInherited);
974 cast<InheritableAttr>(New)->setInherited(isInherited);
983 cast<InheritableAttr>(New)->setInherited(isInherited);
991 cast<InheritableAttr>(New)->setInherited(isInherited);
1000 cast<InheritableAttr>(New)->setInherited(isInherited);
1013 cast<InheritableAttr>(New)->setInherited(isInherited);
1030 cast<InheritableAttr>(New)->setInherited(isInherited);
1038 cast<InheritableAttr>(New)->setInherited(isInherited);
1046 cast<InheritableAttr>(New)->setInherited(isInherited);
1055 cast<InheritableAttr>(New)->setInherited(isInherited);
1063 cast<InheritableAttr>(New)->setInherited(isInherited);
1072 cast<InheritableAttr>(New)->setInherited(isInherited);
1080 cast<InheritableAttr>(New)->setInherited(isInherited);
1089 cast<InheritableAttr>(New)->setInherited(isInherited);
1098 cast<InheritableAttr>(New)->setInherited(isInherited);
1106 cast<InheritableAttr>(New)->setInherited(isInherited);
1114 cast<InheritableAttr>(New)->setInherited(isInherited);
1122 cast<InheritableAttr>(New)->setInherited(isInherited);
1131 cast<InheritableAttr>(New)->setInherited(isInherited);
1139 cast<InheritableAttr>(New)->setInherited(isInherited);
1148 cast<InheritableAttr>(New)->setInherited(isInherited);
1156 cast<InheritableAttr>(New)->setInherited(isInherited);
1164 cast<InheritableAttr>(New)->setInherited(isInherited);
1179 cast<InheritableAttr>(New)->setInherited(isInherited);
1187 cast<InheritableAttr>(New)->setInherited(isInherited);
1195 cast<InheritableAttr>(New)->setInherited(isInherited);
1203 cast<InheritableAttr>(New)->setInherited(isInherited);
1211 cast<InheritableAttr>(New)->setInherited(isInherited);
1219 cast<InheritableAttr>(New)->setInherited(isInherited);
1227 cast<InheritableAttr>(New)->setInherited(isInherited);
1235 cast<InheritableAttr>(New)->setInherited(isInherited);
1243 cast<InheritableAttr>(New)->setInherited(isInherited);
1257 cast<InheritableAttr>(New)->setInherited(isInherited);
1265 cast<InheritableAttr>(New)->setInherited(isInherited);
1279 cast<InheritableAttr>(New)->setInherited(isInherited);
1287 cast<InheritableAttr>(New)->setInherited(isInherited);
1295 cast<InheritableAttr>(New)->setInherited(isInherited);
1303 cast<InheritableAttr>(New)->setInherited(isInherited);
1311 cast<InheritableAttr>(New)->setInherited(isInherited);
1328 cast<InheritableAttr>(New)->setInherited(isInherited);
1336 cast<InheritableAttr>(New)->setInherited(isInherited);
1344 cast<InheritableAttr>(New)->setInherited(isInherited);
1352 cast<InheritableAttr>(New)->setInherited(isInherited);
1360 cast<InheritableAttr>(New)->setInherited(isInherited);
1368 cast<InheritableAttr>(New)->setInherited(isInherited);
1376 cast<InheritableAttr>(New)->setInherited(isInherited);
1389 cast<InheritableAttr>(New)->setInherited(isInherited);
1397 cast<InheritableAttr>(New)->setInherited(isInherited);
1407 cast<InheritableAttr>(New)->setInherited(isInherited);
1422 cast<InheritableAttr>(New)->setInherited(isInherited);
1470 cast<InheritableAttr>(New)->setInherited(isInherited);
1492 cast<InheritableAttr>(New)->setInherited(isInherited);
1507 cast<InheritableAttr>(New)->setInherited(isInherited);
1515 cast<InheritableAttr>(New)->setInherited(isInherited);
1523 cast<InheritableAttr>(New)->setInherited(isInherited);
1531 cast<InheritableAttr>(New)->setInherited(isInherited);
1539 cast<InheritableAttr>(New)->setInherited(isInherited);
1547 cast<InheritableAttr>(New)->setInherited(isInherited);
1555 cast<InheritableAttr>(New)->setInherited(isInherited);
1570 cast<InheritableAttr>(New)->setInherited(isInherited);
1579 cast<InheritableAttr>(New)->setInherited(isInherited);
1590 cast<InheritableAttr>(New)->setInherited(isInherited);
1610 cast<InheritableAttr>(New)->setInherited(isInherited);
1618 cast<InheritableAttr>(New)->setInherited(isInherited);
1626 cast<InheritableAttr>(New)->setInherited(isInherited);
1641 cast<InheritableAttr>(New)->setInherited(isInherited);
1662 cast<InheritableAttr>(New)->setInherited(isInherited);
1670 cast<InheritableAttr>(New)->setInherited(isInherited);
1685 cast<InheritableAttr>(New)->setInherited(isInherited);
1693 cast<InheritableAttr>(New)->setInherited(isInherited);
1701 cast<InheritableAttr>(New)->setInherited(isInherited);
1709 cast<InheritableAttr>(New)->setInherited(isInherited);
1717 cast<InheritableAttr>(New)->setInherited(isInherited);
1725 cast<InheritableAttr>(New)->setInherited(isInherited);
1746 cast<InheritableAttr>(New)->setInherited(isInherited);
1779 cast<InheritableAttr>(New)->setInherited(isInherited);
1787 cast<InheritableAttr>(New)->setInherited(isInherited);
1808 cast<InheritableAttr>(New)->setInherited(isInherited);
1816 cast<InheritableAttr>(New)->setInherited(isInherited);
1830 cast<InheritableAttr>(New)->setInherited(isInherited);
1839 cast<InheritableAttr>(New)->setInherited(isInherited);
1853 cast<InheritableAttr>(New)->setInherited(isInherited);
1861 cast<InheritableAttr>(New)->setInherited(isInherited);
1870 cast<InheritableAttr>(New)->setInherited(isInherited);
1878 cast<InheritableAttr>(New)->setInherited(isInherited);
1887 cast<InheritableAttr>(New)->setInherited(isInherited);
1896 cast<InheritableAttr>(New)->setInherited(isInherited);
1905 cast<InheritableAttr>(New)->setInherited(isInherited);
1914 cast<InheritableAttr>(New)->setInherited(isInherited);
1923 cast<InheritableAttr>(New)->setInherited(isInherited);
1932 cast<InheritableAttr>(New)->setInherited(isInherited);
1941 cast<InheritableAttr>(New)->setInherited(isInherited);
1950 cast<InheritableAttr>(New)->setInherited(isInherited);
1958 cast<InheritableAttr>(New)->setInherited(isInherited);
1966 cast<InheritableAttr>(New)->setInherited(isInherited);
1975 cast<InheritableAttr>(New)->setInherited(isInherited);
1983 cast<InheritableAttr>(New)->setInherited(isInherited);
2003 cast<InheritableAttr>(New)->setInherited(isInherited);
2012 cast<InheritableAttr>(New)->setInherited(isInherited);
2020 cast<InheritableAttr>(New)->setInherited(isInherited);
2028 cast<InheritableAttr>(New)->setInherited(isInherited);
2041 cast<InheritableAttr>(New)->setInherited(isInherited);
2058 cast<InheritableAttr>(New)->setInherited(isInherited);
2071 cast<InheritableAttr>(New)->setInherited(isInherited);
2079 cast<InheritableAttr>(New)->setInherited(isInherited);
2088 cast<InheritableAttr>(New)->setInherited(isInherited);
2096 cast<InheritableAttr>(New)->setInherited(isInherited);
2104 cast<InheritableAttr>(New)->setInherited(isInherited);
2118 cast<InheritableAttr>(New)->setInherited(isInherited);
2127 cast<InheritableAttr>(New)->setInherited(isInherited);
2135 cast<InheritableAttr>(New)->setInherited(isInherited);
2145 cast<InheritableAttr>(New)->setInherited(isInherited);
2154 cast<InheritableAttr>(New)->setInherited(isInherited);
2168 cast<InheritableAttr>(New)->setInherited(isInherited);
2176 cast<InheritableAttr>(New)->setInherited(isInherited);
2184 cast<InheritableAttr>(New)->setInherited(isInherited);
2207 cast<InheritableAttr>(New)->setInherited(isInherited);
2215 cast<InheritableAttr>(New)->setInherited(isInherited);
2223 cast<InheritableAttr>(New)->setInherited(isInherited);
2231 cast<InheritableAttr>(New)->setInherited(isInherited);
2239 cast<InheritableAttr>(New)->setInherited(isInherited);
2248 cast<InheritableAttr>(New)->setInherited(isInherited);
2257 cast<InheritableAttr>(New)->setInherited(isInherited);
2266 cast<InheritableAttr>(New)->setInherited(isInherited);
2274 cast<InheritableAttr>(New)->setInherited(isInherited);
2288 cast<InheritableAttr>(New)->setInherited(isInherited);
2296 cast<InheritableAttr>(New)->setInherited(isInherited);
2310 cast<InheritableAttr>(New)->setInherited(isInherited);
2340 cast<InheritableAttr>(New)->setInherited(isInherited);
2349 cast<InheritableAttr>(New)->setInherited(isInherited);
2365 cast<InheritableAttr>(New)->setInherited(isInherited);
2373 cast<InheritableAttr>(New)->setInherited(isInherited);
2381 cast<InheritableAttr>(New)->setInherited(isInherited);
2389 cast<InheritableAttr>(New)->setInherited(isInherited);
2398 cast<InheritableAttr>(New)->setInherited(isInherited);
2406 cast<InheritableAttr>(New)->setInherited(isInherited);
2415 cast<InheritableAttr>(New)->setInherited(isInherited);
2423 cast<InheritableAttr>(New)->setInherited(isInherited);
2432 cast<InheritableAttr>(New)->setInherited(isInherited);
2440 cast<InheritableAttr>(New)->setInherited(isInherited);
2449 cast<InheritableAttr>(New)->setInherited(isInherited);
2457 cast<InheritableAttr>(New)->setInherited(isInherited);
2465 cast<InheritableAttr>(New)->setInherited(isInherited);
2474 cast<InheritableAttr>(New)->setInherited(isInherited);
2483 cast<InheritableAttr>(New)->setInherited(isInherited);
2492 cast<InheritableAttr>(New)->setInherited(isInherited);
2503 cast<InheritableAttr>(New)->setInherited(isInherited);
2511 cast<InheritableAttr>(New)->setInherited(isInherited);
2519 cast<InheritableAttr>(New)->setInherited(isInherited);
2528 cast<InheritableAttr>(New)->setInherited(isInherited);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc 11 const auto *SA = cast<AArch64VectorPcsAttr>(A);
17 const auto *SA = cast<AMDGPUFlatWorkGroupSizeAttr>(A);
25 const auto *SA = cast<AMDGPUNumSGPRAttr>(A);
32 const auto *SA = cast<AMDGPUNumVGPRAttr>(A);
39 const auto *SA = cast<AMDGPUWavesPerEUAttr>(A);
47 const auto *SA = cast<ARMInterruptAttr>(A);
54 const auto *SA = cast<AVRInterruptAttr>(A);
60 const auto *SA = cast<AVRSignalAttr>(A);
66 const auto *SA = cast<AbiTagAttr>(A);
74 const auto *SA = cast<AcquireCapabilityAttr>(A);
83 const auto *SA = cast<AcquiredAfterAttr>(A);
92 const auto *SA = cast<AcquiredBeforeAttr>(A);
101 const auto *SA = cast<AddressSpaceAttr>(A);
107 const auto *SA = cast<AliasAttr>(A);
113 const auto *SA = cast<AlignMac68kAttr>(A);
119 const auto *SA = cast<AlignValueAttr>(A);
125 const auto *SA = cast<AlignedAttr>(A);
136 const auto *SA = cast<AllocAlignAttr>(A);
143 const auto *SA = cast<AllocSizeAttr>(A);
151 const auto *SA = cast<AlwaysDestroyAttr>(A);
157 const auto *SA = cast<AlwaysInlineAttr>(A);
163 const auto *SA = cast<AnalyzerNoReturnAttr>(A);
169 const auto *SA = cast<AnnotateAttr>(A);
176 const auto *SA = cast<AnyX86InterruptAttr>(A);
182 const auto *SA = cast<AnyX86NoCallerSavedRegistersAttr>(A);
188 const auto *SA = cast<AnyX86NoCfCheckAttr>(A);
194 const auto *SA = cast<ArcWeakrefUnavailableAttr>(A);
200 const auto *SA = cast<ArgumentWithTypeTagAttr>(A);
210 const auto *SA = cast<ArmMveAliasAttr>(A);
217 const auto *SA = cast<ArtificialAttr>(A);
223 const auto *SA = cast<AsmLabelAttr>(A);
231 const auto *SA = cast<AssertCapabilityAttr>(A);
240 const auto *SA = cast<AssertExclusiveLockAttr>(A);
249 const auto *SA = cast<AssertSharedLockAttr>(A);
258 const auto *SA = cast<AssumeAlignedAttr>(A);
266 const auto *SA = cast<AvailabilityAttr>(A);
281 const auto *SA = cast<BlocksAttr>(A);
288 const auto *SA = cast<C11NoReturnAttr>(A);
294 const auto *SA = cast<CDeclAttr>(A);
300 const auto *SA = cast<CFAuditedTransferAttr>(A);
306 const auto *SA = cast<CFConsumedAttr>(A);
312 const auto *SA = cast<CFICanonicalJumpTableAttr>(A);
318 const auto *SA = cast<CFReturnsNotRetainedAttr>(A);
324 const auto *SA = cast<CFReturnsRetainedAttr>(A);
330 const auto *SA = cast<CFUnknownTransferAttr>(A);
336 const auto *SA = cast<CPUDispatchAttr>(A);
345 const auto *SA = cast<CPUSpecificAttr>(A);
354 const auto *SA = cast<CUDAConstantAttr>(A);
360 const auto *SA = cast<CUDADeviceAttr>(A);
366 const auto *SA = cast<CUDAGlobalAttr>(A);
372 const auto *SA = cast<CUDAHostAttr>(A);
378 const auto *SA = cast<CUDAInvalidTargetAttr>(A);
384 const auto *SA = cast<CUDALaunchBoundsAttr>(A);
392 const auto *SA = cast<CUDASharedAttr>(A);
398 const auto *SA = cast<CXX11NoReturnAttr>(A);
404 const auto *SA = cast<CallableWhenAttr>(A);
413 const auto *SA = cast<CallbackAttr>(A);
422 const auto *SA = cast<CapabilityAttr>(A);
429 const auto *SA = cast<CapturedRecordAttr>(A);
435 const auto *SA = cast<CarriesDependencyAttr>(A);
441 const auto *SA = cast<CleanupAttr>(A);
448 const auto *SA = cast<CodeSegAttr>(A);
455 const auto *SA = cast<ColdAttr>(A);
461 const auto *SA = cast<CommonAttr>(A);
467 const auto *SA = cast<ConstAttr>(A);
473 const auto *SA = cast<ConstInitAttr>(A);
479 const auto *SA = cast<ConstructorAttr>(A);
486 const auto *SA = cast<ConsumableAttr>(A);
493 const auto *SA = cast<ConsumableAutoCastAttr>(A);
499 const auto *SA = cast<ConsumableSetOnReadAttr>(A);
505 const auto *SA = cast<ConvergentAttr>(A);
511 const auto *SA = cast<DLLExportAttr>(A);
517 const auto *SA = cast<DLLExportStaticLocalAttr>(A);
523 const auto *SA = cast<DLLImportAttr>(A);
529 const auto *SA = cast<DLLImportStaticLocalAttr>(A);
535 const auto *SA = cast<DeprecatedAttr>(A);
543 const auto *SA = cast<DestructorAttr>(A);
550 const auto *SA = cast<DiagnoseIfAttr>(A);
561 const auto *SA = cast<DisableTailCallsAttr>(A);
567 const auto *SA = cast<EmptyBasesAttr>(A);
573 const auto *SA = cast<EnableIfAttr>(A);
581 const auto *SA = cast<EnumExtensibilityAttr>(A);
588 const auto *SA = cast<ExcludeFromExplicitInstantiationAttr>(A);
594 const auto *SA = cast<ExclusiveTrylockFunctionAttr>(A);
604 const auto *SA = cast<ExternalSourceSymbolAttr>(A);
617 const auto *SA = cast<FastCallAttr>(A);
623 const auto *SA = cast<FinalAttr>(A);
629 const auto *SA = cast<FlagEnumAttr>(A);
635 const auto *SA = cast<FlattenAttr>(A);
641 const auto *SA = cast<FormatAttr>(A);
650 const auto *SA = cast<FormatArgAttr>(A);
657 const auto *SA = cast<GNUInlineAttr>(A);
663 const auto *SA = cast<GuardedByAttr>(A);
670 const auto *SA = cast<GuardedVarAttr>(A);
676 const auto *SA = cast<HIPPinnedShadowAttr>(A);
682 const auto *SA = cast<HotAttr>(A);
688 const auto *SA = cast<IBActionAttr>(A);
694 const auto *SA = cast<IBOutletAttr>(A);
700 const auto *SA = cast<IBOutletCollectionAttr>(A);
707 const auto *SA = cast<IFuncAttr>(A);
713 const auto *SA = cast<InitPriorityAttr>(A);
720 const auto *SA = cast<InitSegAttr>(A);
726 const auto *SA = cast<IntelOclBiccAttr>(A);
732 const auto *SA = cast<InternalLinkageAttr>(A);
738 const auto *SA = cast<LTOVisibilityPublicAttr>(A);
744 const auto *SA = cast<LayoutVersionAttr>(A);
751 const auto *SA = cast<LifetimeBoundAttr>(A);
757 const auto *SA = cast<LockReturnedAttr>(A);
764 const auto *SA = cast<LocksExcludedAttr>(A);
773 const auto *SA = cast<LoopHintAttr>(A);
781 const auto *SA = cast<MIGServerRoutineAttr>(A);
787 const auto *SA = cast<MSABIAttr>(A);
793 const auto *SA = cast<MSAllocatorAttr>(A);
799 const auto *SA = cast<MSInheritanceAttr>(A);
806 const auto *SA = cast<MSNoVTableAttr>(A);
812 const auto *SA = cast<MSP430InterruptAttr>(A);
819 const auto *SA = cast<MSStructAttr>(A);
825 const auto *SA = cast<MSVtorDispAttr>(A);
832 const auto *SA = cast<MaxFieldAlignmentAttr>(A);
839 const auto *SA = cast<MayAliasAttr>(A);
845 const auto *SA = cast<MicroMipsAttr>(A);
851 const auto *SA = cast<MinSizeAttr>(A);
857 const auto *SA = cast<MinVectorWidthAttr>(A);
864 const auto *SA = cast<Mips16Attr>(A);
870 const auto *SA = cast<MipsInterruptAttr>(A);
877 const auto *SA = cast<MipsLongCallAttr>(A);
883 const auto *SA = cast<MipsShortCallAttr>(A);
889 const auto *SA = cast<ModeAttr>(A);
895 const auto *SA = cast<NSConsumedAttr>(A);
901 const auto *SA = cast<NSConsumesSelfAttr>(A);
907 const auto *SA = cast<NSReturnsAutoreleasedAttr>(A);
913 const auto *SA = cast<NSReturnsNotRetainedAttr>(A);
919 const auto *SA = cast<NSReturnsRetainedAttr>(A);
925 const auto *SA = cast<NakedAttr>(A);
931 const auto *SA = cast<NoAliasAttr>(A);
937 const auto *SA = cast<NoCommonAttr>(A);
943 const auto *SA = cast<NoDebugAttr>(A);
953 const auto *SA = cast<NoDestroyAttr>(A);
959 const auto *SA = cast<NoDuplicateAttr>(A);
969 const auto *SA = cast<NoInlineAttr>(A);
975 const auto *SA = cast<NoInstrumentFunctionAttr>(A);
981 const auto *SA = cast<NoMicroMipsAttr>(A);
987 const auto *SA = cast<NoMips16Attr>(A);
993 const auto *SA = cast<NoReturnAttr>(A);
999 const auto *SA = cast<NoSanitizeAttr>(A);
1008 const auto *SA = cast<NoSpeculativeLoadHardeningAttr>(A);
1014 const auto *SA = cast<NoSplitStackAttr>(A);
1020 const auto *SA = cast<NoStackProtectorAttr>(A);
1026 const auto *SA = cast<NoThreadSafetyAnalysisAttr>(A);
1032 const auto *SA = cast<NoThrowAttr>(A);
1038 const auto *SA = cast<NoUniqueAddressAttr>(A);
1044 const auto *SA = cast<NonNullAttr>(A);
1053 const auto *SA = cast<NotTailCalledAttr>(A);
1059 const auto *SA = cast<OMPAllocateDeclAttr>(A);
1067 const auto *SA = cast<OMPCaptureKindAttr>(A);
1073 const auto *SA = cast<OMPCaptureNoInitAttr>(A);
1079 const auto *SA = cast<OMPDeclareSimdDeclAttr>(A);
1104 const auto *SA = cast<OMPDeclareTargetDeclAttr>(A);
1112 const auto *SA = cast<OMPDeclareVariantAttr>(A);
1126 const auto *SA = cast<OMPReferencedVarAttr>(A);
1132 const auto *SA = cast<OMPThreadPrivateDeclAttr>(A);
1138 const auto *SA = cast<OSConsumedAttr>(A);
1144 const auto *SA = cast<OSConsumesThisAttr>(A);
1150 const auto *SA = cast<OSReturnsNotRetainedAttr>(A);
1156 const auto *SA = cast<OSReturnsRetainedAttr>(A);
1162 const auto *SA = cast<OSReturnsRetainedOnNonZeroAttr>(A);
1168 const auto *SA = cast<OSReturnsRetainedOnZeroAttr>(A);
1178 const auto *SA = cast<ObjCBridgeAttr>(A);
1185 const auto *SA = cast<ObjCBridgeMutableAttr>(A);
1192 const auto *SA = cast<ObjCBridgeRelatedAttr>(A);
1209 const auto *SA = cast<ObjCExceptionAttr>(A);
1215 const auto *SA = cast<ObjCExplicitProtocolImplAttr>(A);
1221 const auto *SA = cast<ObjCExternallyRetainedAttr>(A);
1227 const auto *SA = cast<ObjCGCAttr>(A);
1233 const auto *SA = cast<ObjCIndependentClassAttr>(A);
1247 const auto *SA = cast<ObjCMethodFamilyAttr>(A);
1254 const auto *SA = cast<ObjCNSObjectAttr>(A);
1264 const auto *SA = cast<ObjCOwnershipAttr>(A);
1271 const auto *SA = cast<ObjCPreciseLifetimeAttr>(A);
1277 const auto *SA = cast<ObjCRequiresPropertyDefsAttr>(A);
1283 const auto *SA = cast<ObjCRequiresSuperAttr>(A);
1289 const auto *SA = cast<ObjCReturnsInnerPointerAttr>(A);
1295 const auto *SA = cast<ObjCRootClassAttr>(A);
1301 const auto *SA = cast<ObjCRuntimeNameAttr>(A);
1311 const auto *SA = cast<ObjCSubclassingRestrictedAttr>(A);
1333 const auto *SA = cast<OpenCLIntelReqdSubGroupSizeAttr>(A);
1340 const auto *SA = cast<OpenCLKernelAttr>(A);
1354 const auto *SA = cast<OpenCLUnrollHintAttr>(A);
1361 const auto *SA = cast<OptimizeNoneAttr>(A);
1371 const auto *SA = cast<OverrideAttr>(A);
1377 const auto *SA = cast<OwnerAttr>(A);
1384 const auto *SA = cast<OwnershipAttr>(A);
1394 const auto *SA = cast<PackedAttr>(A);
1400 const auto *SA = cast<ParamTypestateAttr>(A);
1407 const auto *SA = cast<PascalAttr>(A);
1413 const auto *SA = cast<PassObjectSizeAttr>(A);
1420 const auto *SA = cast<PcsAttr>(A);
1427 const auto *SA = cast<PointerAttr>(A);
1434 const auto *SA = cast<PragmaClangBSSSectionAttr>(A);
1441 const auto *SA = cast<PragmaClangDataSectionAttr>(A);
1448 const auto *SA = cast<PragmaClangRelroSectionAttr>(A);
1455 const auto *SA = cast<PragmaClangRodataSectionAttr>(A);
1462 const auto *SA = cast<PragmaClangTextSectionAttr>(A);
1469 const auto *SA = cast<PreserveAllAttr>(A);
1475 const auto *SA = cast<PreserveMostAttr>(A);
1481 const auto *SA = cast<PtGuardedByAttr>(A);
1488 const auto *SA = cast<PtGuardedVarAttr>(A);
1502 const auto *SA = cast<PureAttr>(A);
1508 const auto *SA = cast<RISCVInterruptAttr>(A);
1515 const auto *SA = cast<RegCallAttr>(A);
1521 const auto *SA = cast<ReinitializesAttr>(A);
1527 const auto *SA = cast<ReleaseCapabilityAttr>(A);
1540 const auto *SA = cast<ReqdWorkGroupSizeAttr>(A);
1549 const auto *SA = cast<RequiresCapabilityAttr>(A);
1558 const auto *SA = cast<RestrictAttr>(A);
1564 const auto *SA = cast<ReturnTypestateAttr>(A);
1571 const auto *SA = cast<ReturnsNonNullAttr>(A);
1577 const auto *SA = cast<ReturnsTwiceAttr>(A);
1587 const auto *SA = cast<ScopedLockableAttr>(A);
1593 const auto *SA = cast<SectionAttr>(A);
1600 const auto *SA = cast<SelectAnyAttr>(A);
1606 const auto *SA = cast<SentinelAttr>(A);
1614 const auto *SA = cast<SetTypestateAttr>(A);
1621 const auto *SA = cast<SharedTrylockFunctionAttr>(A);
1631 const auto *SA = cast<SpeculativeLoadHardeningAttr>(A);
1637 const auto *SA = cast<StdCallAttr>(A);
1643 const auto *SA = cast<SuppressAttr>(A);
1651 const auto *SA = cast<SwiftCallAttr>(A);
1657 const auto *SA = cast<SwiftContextAttr>(A);
1663 const auto *SA = cast<SwiftErrorResultAttr>(A);
1669 const auto *SA = cast<SwiftIndirectResultAttr>(A);
1675 const auto *SA = cast<SysVABIAttr>(A);
1681 const auto *SA = cast<TLSModelAttr>(A);
1688 const auto *SA = cast<TargetAttr>(A);
1695 const auto *SA = cast<TestTypestateAttr>(A);
1702 const auto *SA = cast<ThisCallAttr>(A);
1712 const auto *SA = cast<TransparentUnionAttr>(A);
1718 const auto *SA = cast<TrivialABIAttr>(A);
1724 const auto *SA = cast<TryAcquireCapabilityAttr>(A);
1746 const auto *SA = cast<TypeTagForDatatypeAttr>(A);
1756 const auto *SA = cast<TypeVisibilityAttr>(A);
1767 const auto *SA = cast<UnavailableAttr>(A);
1775 const auto *SA = cast<UninitializedAttr>(A);
1781 const auto *SA = cast<UnusedAttr>(A);
1787 const auto *SA = cast<UsedAttr>(A);
1793 const auto *SA = cast<UuidAttr>(A);
1800 const auto *SA = cast<VecReturnAttr>(A);
1806 const auto *SA = cast<VecTypeHintAttr>(A);
1813 const auto *SA = cast<VectorCallAttr>(A);
1819 const auto *SA = cast<VisibilityAttr>(A);
1826 const auto *SA = cast<WarnUnusedAttr>(A);
1832 const auto *SA = cast<WarnUnusedResultAttr>(A);
1839 const auto *SA = cast<WeakAttr>(A);
1845 const auto *SA = cast<WeakImportAttr>(A);
1851 const auto *SA = cast<WeakRefAttr>(A);
1858 const auto *SA = cast<WebAssemblyImportModuleAttr>(A);
1865 const auto *SA = cast<WebAssemblyImportNameAttr>(A);
1872 const auto *SA = cast<WorkGroupSizeHintAttr>(A);
1881 const auto *SA = cast<X86ForceAlignArgPointerAttr>(A);
1887 const auto *SA = cast<XRayInstrumentAttr>(A);
1893 const auto *SA = cast<XRayLogArgsAttr>(A);
include/llvm/Analysis/BranchProbabilityInfo.h 156 BPI->eraseBlock(cast<BasicBlock>(getValPtr()));
include/llvm/Analysis/CFLAliasAnalysisUtils.h 39 Result->evict(cast<Function>(Val));
include/llvm/Analysis/IVDescriptors.h 319 !cast<FPMathOperator>(InductionBinOp)->isFast();
328 if (!InductionBinOp || cast<FPMathOperator>(InductionBinOp)->isFast())
include/llvm/Analysis/IVUsers.h 46 return cast<Instruction>(getValPtr());
include/llvm/Analysis/InstructionSimplify.h 85 return cast<PossiblyExactOperator>(Op)->isExact();
include/llvm/Analysis/LazyCallGraph.h 1111 if (Visited.insert(cast<Constant>(Op)).second)
1112 Worklist.push_back(cast<Constant>(Op));
include/llvm/Analysis/LoopInfo.h 1129 auto *UI = cast<Instruction>(U.getUser());
1130 auto *UBB = isa<PHINode>(UI) ? cast<PHINode>(UI)->getIncomingBlock(U)
include/llvm/Analysis/MemoryLocation.h 210 return get(cast<LoadInst>(Inst));
212 return get(cast<StoreInst>(Inst));
214 return get(cast<VAArgInst>(Inst));
216 return get(cast<AtomicCmpXchgInst>(Inst));
218 return get(cast<AtomicRMWInst>(Inst));
include/llvm/Analysis/MemorySSA.h 432 return OperandTraits<MemoryDef>::op_begin(cast<MemoryDef>(MUD));
438 return OperandTraits<MemoryDef>::op_end(cast<MemoryDef>(MUD));
444 return OperandTraits<MemoryDef>::operands(cast<MemoryDef>(MUD));
669 return cast<MemoryPhi>(this)->getID();
675 return cast<MemoryUse>(this)->isOptimized();
681 return cast<MemoryUse>(this)->getOptimized();
688 cast<MemoryUse>(this)->setOptimized(MA);
695 cast<MemoryUse>(this)->resetOptimized();
725 return cast_or_null<MemoryPhi>(ValueToMemoryAccess.lookup(cast<Value>(BB)));
1113 return cast<MemoryUseOrDef>(Access)->getDefiningAccess();
include/llvm/Analysis/ObjCARCAnalysisUtils.h 83 V = cast<CallInst>(V)->getArgOperand(0);
121 V = cast<CallInst>(V)->getArgOperand(0);
138 return GetRCIdentityRoot(cast<CallInst>(Inst)->getArgOperand(0));
148 cast<GetElementPtrInst>(I)->hasAllZeroIndices());
include/llvm/Analysis/PtrUseVisitor.h 225 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType()));
241 Instruction *I = cast<Instruction>(U->getUser());
include/llvm/Analysis/ScalarEvolutionExpressions.h 586 push(cast<SCEVCastExpr>(S)->getOperand());
595 for (const auto *Op : cast<SCEVNAryExpr>(S)->operands())
599 const SCEVUDivExpr *UDiv = cast<SCEVUDivExpr>(S);
806 return SE.getConstant(cast<ConstantInt>(NV));
844 const SCEVAddRecExpr *Rec = cast<SCEVAddRecExpr>(Res);
include/llvm/Analysis/SparsePropagation.h 364 SwitchInst::CaseHandle Case = *SI.findCaseValue(cast<ConstantInt>(C));
include/llvm/Analysis/TargetTransformInfoImpl.h 608 const auto* VectorValue = cast<Constant>(Val);
612 auto *VT = cast<VectorType>(Val->getType());
669 const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ptr);
869 ->getCallCost(cast<FunctionType>(FTy), CS.arg_size(), U);
879 return static_cast<T *>(this)->getExtCost(cast<Instruction>(U),
include/llvm/Analysis/Utils/Local.h 30 GEPOperator *GEPOp = cast<GEPOperator>(GEP);
include/llvm/Analysis/ValueLattice.h 166 return cast<ConstantInt>(getConstant())->getValue();
287 return cast<ConstantInt>(getConstant());
include/llvm/CodeGen/BasicTTIImpl.h 1098 unsigned Alignment = cast<ConstantInt>(Args[2])->getZExtValue();
1106 unsigned Alignment = cast<ConstantInt>(Args[1])->getZExtValue();
include/llvm/CodeGen/SelectionDAG.h 1790 cast<TargetMemSDNode>(E)->refineAlignment(MMO);
include/llvm/CodeGen/SelectionDAGNodes.h 2600 cast<LoadSDNode>(N)->getExtensionType() == ISD::NON_EXTLOAD;
2606 cast<LoadSDNode>(N)->getExtensionType() == ISD::EXTLOAD;
2612 cast<LoadSDNode>(N)->getExtensionType() == ISD::SEXTLOAD;
2618 cast<LoadSDNode>(N)->getExtensionType() == ISD::ZEXTLOAD;
2624 cast<LoadSDNode>(N)->getAddressingMode() == ISD::UNINDEXED;
2637 return isa<StoreSDNode>(N) && !cast<StoreSDNode>(N)->isTruncatingStore();
2642 return isa<StoreSDNode>(N) && cast<StoreSDNode>(N)->isTruncatingStore();
2648 cast<StoreSDNode>(N)->getAddressingMode() == ISD::UNINDEXED;
include/llvm/CodeGen/TargetLowering.h 203 return setAttributes(cast<CallBase>(CS->getInstruction()), ArgIdx);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h 510 NewA->setAliasee(cast<Constant>(Init));
668 return Function::Create(cast<FunctionType>(Ty),
include/llvm/IR/CFG.h 75 return cast<Instruction>(*It)->getParent();
include/llvm/IR/CallSite.h 132 assert(cast<PointerType>(V->getType())->getElementType() ==
133 cast<CallBase>(getInstruction())->getFunctionType() &&
255 return cast<CallBase>(getInstruction())->data_operands_begin();
259 return cast<CallBase>(getInstruction())->data_operands_end();
280 return isCall() && cast<CallInst>(getInstruction())->isMustTailCall();
285 return isCall() && cast<CallInst>(getInstruction())->isTailCall();
316 return cast<CallBase>(getInstruction())->isInlineAsm();
598 cast<CallBase>(getInstruction())->getOperandBundlesAsDefs(Defs);
668 return cast<CallBase>(getInstruction())->op_end() - 1;
include/llvm/IR/Constant.h 184 return cast<Constant>(Value::stripPointerCasts());
include/llvm/IR/Constants.h 172 return cast<IntegerType>(Value::getType());
433 return cast<ArrayType>(Value::getType());
487 return cast<StructType>(Value::getType());
522 return cast<VectorType>(Value::getType());
555 return cast<PointerType>(Value::getType());
633 return cast<SequentialType>(Value::getType());
746 return cast<ArrayType>(Value::getType());
805 return cast<VectorType>(Value::getType());
1169 return getGetElementPtr(Ty, C, cast<Value>(Idx), InBounds, InRangeIndex,
include/llvm/IR/DIBuilder.h 878 return cast<NodeTy>(MDNode::replaceWithUniqued(std::move(N)));
include/llvm/IR/DataLayout.h 632 ArrayType *ATy = cast<ArrayType>(Ty);
639 getStructLayout(cast<StructType>(Ty))->getSizeInBits());
657 VectorType *VTy = cast<VectorType>(Ty);
include/llvm/IR/DebugInfoMetadata.h 330 return CountType(cast<ConstantInt>(MD->getValue()));
618 return TempDIType(cast<DIType>(MDNode::clone().release()));
1435 DILocalScope *getScope() const { return cast<DILocalScope>(getRawScope()); }
1848 DILocalScope *getScope() const { return cast<DILocalScope>(getRawScope()); }
2802 return cast<DILocalScope>(DIVariable::getScope());
3082 return cast<DIExpression>(getRawExpression());
include/llvm/IR/DerivedTypes.h 103 return cast<IntegerType>(this)->getBitWidth();
155 return cast<FunctionType>(this)->isVarArg();
159 return cast<FunctionType>(this)->getParamType(i);
163 return cast<FunctionType>(this)->getNumParams();
363 return cast<StructType>(this)->getName();
367 return cast<StructType>(this)->getNumElements();
371 return cast<StructType>(this)->getElementType(N);
428 return cast<ArrayType>(this)->getNumElements();
479 auto *EltTy = cast<IntegerType>(VTy->getElementType());
567 return cast<VectorType>(this)->getNumElements();
571 return cast<VectorType>(this)->isScalable();
575 return cast<VectorType>(this)->getElementCount();
622 return cast<IntegerType>(this)->getExtendedType();
636 return cast<PointerType>(getScalarType())->getAddressSpace();
include/llvm/IR/Function.h 164 return cast<FunctionType>(getValueType());
include/llvm/IR/GetElementPtrTypeIterator.h 128 auto *GEPOp = cast<GEPOperator>(GEP);
include/llvm/IR/GlobalValue.h 277 PointerType *getType() const { return cast<PointerType>(User::getType()); }
include/llvm/IR/IRBuilder.h 982 cast<FunctionType>(
983 cast<PointerType>(Callee->getType())->getElementType()),
993 cast<FunctionType>(
994 cast<PointerType>(Callee->getType())->getElementType()),
1285 if (isa<ConstantInt>(RC) && cast<ConstantInt>(RC)->isMinusOne())
2296 cast<FunctionType>(Callee->getType()->getPointerElementType()), Callee,
2305 cast<FunctionType>(Callee->getType()->getPointerElementType()), Callee,
2420 auto *ArgType = cast<PointerType>(LHS->getType());
2504 auto *IntTy = cast<IntegerType>(From->getType());
2646 auto *PtrTy = cast<PointerType>(PtrValue->getType());
2672 auto *PtrTy = cast<PointerType>(PtrValue->getType());
include/llvm/IR/InstrTypes.h 88 return isa<Instruction>(V) && classof(cast<Instruction>(V));
180 return isa<Instruction>(V) && classof(cast<Instruction>(V));
418 return isa<Instruction>(V) && classof(cast<Instruction>(V));
712 return isa<Instruction>(V) && classof(cast<Instruction>(V));
971 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1146 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1341 assert(FTy == cast<FunctionType>(
1342 cast<PointerType>(Fn->getType())->getElementType()));
2191 return isa<Instruction>(V) && classof(cast<Instruction>(V));
include/llvm/IR/Instruction.h 63 Instruction *user_back() { return cast<Instruction>(*user_begin());}
64 const Instruction *user_back() const { return cast<Instruction>(*user_begin());}
include/llvm/IR/Instructions.h 97 return cast<PointerType>(Instruction::getType());
152 return isa<Instruction>(V) && classof(cast<Instruction>(V));
304 return isa<Instruction>(V) && classof(cast<Instruction>(V));
433 return isa<Instruction>(V) && classof(cast<Instruction>(V));
510 return isa<Instruction>(V) && classof(cast<Instruction>(V));
668 return isa<Instruction>(V) && classof(cast<Instruction>(V));
840 return isa<Instruction>(V) && classof(cast<Instruction>(V));
914 cast<PointerType>(Ptr->getType()->getScalarType())->getElementType();
918 cast<PointerType>(Ptr->getType()->getScalarType())->getElementType());
930 cast<PointerType>(Ptr->getType()->getScalarType())->getElementType();
934 cast<PointerType>(Ptr->getType()->getScalarType())->getElementType());
985 cast<PointerType>(getType()->getScalarType())->getElementType());
1044 cast<PointerType>(Ptr->getType()->getScalarType())->getElementType(),
1105 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1124 cast<PointerType>(getType()->getScalarType())->getElementType());
1138 cast<PointerType>(getType()->getScalarType())->getElementType());
1282 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1390 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1532 return Create(cast<FunctionType>(
1533 cast<PointerType>(Func->getType())->getElementType()),
1541 return Create(cast<FunctionType>(
1542 cast<PointerType>(Func->getType())->getElementType()),
1551 return Create(cast<FunctionType>(
1552 cast<PointerType>(Func->getType())->getElementType()),
1559 return Create(cast<FunctionType>(
1560 cast<PointerType>(Func->getType())->getElementType()),
1567 return Create(cast<FunctionType>(
1568 cast<PointerType>(Func->getType())->getElementType()),
1576 return Create(cast<FunctionType>(
1577 cast<PointerType>(Func->getType())->getElementType()),
1673 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1793 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1839 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1885 return cast<VectorType>(getVectorOperand()->getType());
1896 return isa<Instruction>(V) && classof(cast<Instruction>(V));
1948 return cast<VectorType>(Instruction::getType());
1959 return isa<Instruction>(V) && classof(cast<Instruction>(V));
2008 return cast<VectorType>(Instruction::getType());
2015 return cast<Constant>(getOperand(2));
2274 return isa<Instruction>(V) && classof(cast<Instruction>(V));
2374 return isa<Instruction>(V) && classof(cast<Instruction>(V));
2505 return isa<Instruction>(V) && classof(cast<Instruction>(V));
2766 return isa<Instruction>(V) && classof(cast<Instruction>(V));
2875 return isa<Instruction>(V) && classof(cast<Instruction>(V));
2949 return isa<Instruction>(V) && classof(cast<Instruction>(V));
3014 BasicBlock *operator*() const { return cast<BasicBlock>(*I); }
3027 const BasicBlock *operator*() const { return cast<BasicBlock>(*I); }
3102 return isa<Instruction>(V) && classof(cast<Instruction>(V));
3328 return cast<BasicBlock>(getOperand(1));
3447 return cast<BasicBlock>(getOperand(idx*2+1));
3459 return isa<Instruction>(V) && classof(cast<Instruction>(V));
3565 BasicBlock *operator*() const { return cast<BasicBlock>(*I); }
3578 const BasicBlock *operator*() const { return cast<BasicBlock>(*I); }
3618 return cast<BasicBlock>(getOperand(i+1));
3639 return isa<Instruction>(V) && classof(cast<Instruction>(V));
3783 return Create(cast<FunctionType>(
3784 cast<PointerType>(Func->getType())->getElementType()),
3795 return Create(cast<FunctionType>(
3796 cast<PointerType>(Func->getType())->getElementType()),
3805 return Create(cast<FunctionType>(
3806 cast<PointerType>(Func->getType())->getElementType()),
3815 return Create(cast<FunctionType>(
3816 cast<PointerType>(Func->getType())->getElementType()),
3877 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4117 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4146 cast<FunctionType>(
4147 cast<PointerType>(Func->getType())->getElementType())
4196 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4285 return cast<BasicBlock>(getOperand(1));
4303 static BasicBlock *handler_helper(Value *V) { return cast<BasicBlock>(V); }
4305 return cast<BasicBlock>(V);
4368 return cast<BasicBlock>(getOperand(Idx + 1));
4381 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4427 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4477 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4541 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4635 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4694 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4742 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4781 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4820 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4859 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4898 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4937 return isa<Instruction>(V) && classof(cast<Instruction>(V));
4976 return isa<Instruction>(V) && classof(cast<Instruction>(V));
5015 return isa<Instruction>(V) && classof(cast<Instruction>(V));
5054 return isa<Instruction>(V) && classof(cast<Instruction>(V));
5097 return isa<Instruction>(V) && classof(cast<Instruction>(V));
5148 return isa<Instruction>(V) && classof(cast<Instruction>(V));
5187 return isa<Instruction>(V) && classof(cast<Instruction>(V));
5227 return isa<Instruction>(V) && classof(cast<Instruction>(V));
5289 return MaybeAlign(cast<StoreInst>(I)->getAlignment());
5299 return cast<StoreInst>(I)->getPointerAddressSpace();
include/llvm/IR/IntrinsicInst.h 61 return isa<CallInst>(V) && classof(cast<CallInst>(V));
81 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
101 return cast<DILocalVariable>(getRawVariable());
105 return cast<DIExpression>(getRawExpression());
109 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata();
113 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata();
132 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
148 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
164 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
181 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
190 return cast<DILabel>(getRawLabel());
194 return cast<MetadataAsValue>(getArgOperand(0))->getMetadata();
203 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
293 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
319 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
352 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
371 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
402 return cast<PointerType>(getRawDest()->getType())->getAddressSpace();
450 return cast<PointerType>(getRawSource()->getType())->getAddressSpace();
506 return cast<ConstantInt>(getRawElementSizeInBytes());
530 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
542 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
560 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
572 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
584 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
595 return cast<ConstantInt>(
616 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
628 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
641 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
653 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
665 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
696 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
715 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
736 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
755 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
774 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
785 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
798 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
811 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
825 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
829 return cast<GlobalVariable>(
834 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(1)));
838 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(2)));
842 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(3)));
854 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
865 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
869 return cast<GlobalVariable>(
874 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(1)));
878 return cast<Value>(const_cast<Value *>(getArgOperand(2)));
882 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(3)));
887 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(4)));
include/llvm/IR/Metadata.h 361 return cast<ConstantAsMetadata>(get(C));
365 return cast<LocalAsMetadata>(get(Local));
418 return cast<Constant>(ValueAsMetadata::getValue());
549 return cast<X>(cast<ConstantAsMetadata>(MD)->getValue());
549 return cast<X>(cast<ConstantAsMetadata>(MD)->getValue());
566 return cast<X>(V->getValue());
972 return cast<T>(N.release()->replaceWithPermanentImpl());
984 return cast<T>(N.release()->replaceWithUniquedImpl());
994 return cast<T>(N.release()->replaceWithDistinctImpl());
1311 Metadata *T = cast<Metadata>(this);
include/llvm/IR/ModuleSummaryIndex.h 1383 cast<FunctionSummary>(N.getSummaryList().front()->getBaseObject());
1393 cast<FunctionSummary>(N.getSummaryList().front()->getBaseObject());
1402 cast<FunctionSummary>(N.getSummaryList().front()->getBaseObject());
1411 cast<FunctionSummary>(N.getSummaryList().front()->getBaseObject());
include/llvm/IR/Operator.h 43 return cast<ConstantExpr>(this)->getOpcode();
112 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
113 (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V)));
153 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
154 (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V)));
416 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
417 (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V)));
578 return cast<PointerType>(getPointerOperandType())->getAddressSpace();
include/llvm/IR/PatternMatch.h 744 auto *I = cast<BinaryOperator>(V);
1174 auto *I = cast<Instruction>(V);
1190 auto *I = cast<Instruction>(V);
1209 auto *I = cast<Instruction>(V);
include/llvm/IR/Statepoint.h 79 StatepointCall = isStatepoint(I) ? cast<CallBaseTy>(I) : nullptr;
113 return cast<ConstantInt>(getCall()->getArgOperand(FlagsPos))
120 return cast<ConstantInt>(IDVal)->getZExtValue();
127 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue();
158 auto *FTy = cast<FunctionType>(
159 cast<PointerType>(getCalledValue()->getType())->getElementType());
166 return cast<ConstantInt>(NumCallArgsVal)->getZExtValue();
200 return cast<ConstantInt>(NumGCTransitionArgs)->getZExtValue();
222 return cast<ConstantInt>(NumVMSArgs)->getZExtValue();
324 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
343 return cast<CallBase>(Token);
348 cast<Instruction>(Token)->getParent()->getUniquePredecessor();
355 return cast<CallBase>(InvokeBB->getTerminator());
367 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
374 return cast<ConstantInt>(getArgOperand(1))->getZExtValue();
380 return cast<ConstantInt>(getArgOperand(2))->getZExtValue();
400 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
include/llvm/IR/ValueMap.h 281 KeyT typed_new_key = cast<KeySansPointerT>(new_key);
include/llvm/Object/ELFObjectFile.h 105 return cast<ELFObjectFileBase>(SectionRef::getObject());
143 return cast<ELFObjectFileBase>(BasicSymbolRef::getObject());
177 cast<ELFObjectFileBase>(B->getObject()))) {}
195 return cast<ELFObjectFileBase>(RelocationRef::getObject());
207 B->getRawDataRefImpl(), cast<ELFObjectFileBase>(B->getObject()))) {}
include/llvm/Object/ObjectFile.h 205 cast<ObjectFile>(B->getObject()))) {}
405 return cast<ObjectFile>(O);
include/llvm/Support/Casting.h 309 return cast<X>(Val);
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/TableGen/Record.h 691 return cast<ListRecTy>(getType())->getElementType();
1114 cast<BitsRecTy>(T->getType())->getNumBits() > B)) &&
1148 cast<ListRecTy>(T->getType())->getElementType()),
1480 StringRef getName() const { return cast<StringInit>(Name)->getValue(); }
include/llvm/Transforms/IPO/Attributor.h 368 return *cast<CallBase>(AnchorVal)->getArgOperand(getArgNo());
include/llvm/Transforms/InstCombine/InstCombineWorklist.h 91 Add(cast<Instruction>(U));
include/llvm/Transforms/Utils/FunctionComparator.h 348 return cmpGEPs(cast<GEPOperator>(GEPL), cast<GEPOperator>(GEPR));
348 return cmpGEPs(cast<GEPOperator>(GEPL), cast<GEPOperator>(GEPR));
lib/Analysis/AliasAnalysisEvaluator.cpp 143 Type *I1ElTy = cast<PointerType>((*I1)->getType())->getElementType();
149 Type *I2ElTy = cast<PointerType>((*I2)->getType())->getElementType();
179 AliasResult AR = AA.alias(MemoryLocation::get(cast<LoadInst>(Load)),
180 MemoryLocation::get(cast<StoreInst>(Store)));
206 AliasResult AR = AA.alias(MemoryLocation::get(cast<StoreInst>(*I1)),
207 MemoryLocation::get(cast<StoreInst>(*I2)));
234 Type *ElTy = cast<PointerType>(Pointer->getType())->getElementType();
lib/Analysis/AliasSetTracker.cpp 281 return cast<Instruction>(*(Addr->user_begin()));
lib/Analysis/AssumptionCache.cpp 241 auto I = ACT->AssumptionCaches.find_as(cast<Function>(getValPtr()));
288 !AssumptionSet.count(cast<CallInst>(&II)))
lib/Analysis/BasicAliasAnalysis.cpp 377 Value *CastOp = cast<CastInst>(V)->getOperand(0);
545 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue();
1160 DL.getTypeStoreSize(cast<SequentialType>(Ty)->getElementType());
lib/Analysis/BranchProbabilityInfo.cpp 515 InstChain.push_back(cast<BinaryOperator>(CmpLHS));
553 cast<Constant>(I->getOperand(1)), true);
lib/Analysis/CFLGraph.h 328 auto *GEPOp = cast<GEPOperator>(&Inst);
512 auto GEPOp = cast<GEPOperator>(CE);
lib/Analysis/CaptureTracking.cpp 134 Instruction *I = cast<Instruction>(U->getUser());
251 Instruction *I = cast<Instruction>(U->getUser());
257 auto *Call = cast<CallBase>(I);
302 if (cast<LoadInst>(I)->isVolatile())
312 if (V == I->getOperand(0) || cast<StoreInst>(I)->isVolatile())
322 auto *ARMWI = cast<AtomicRMWInst>(I);
334 auto *ACXI = cast<AtomicCmpXchgInst>(I);
lib/Analysis/ConstantFolding.cpp 502 auto *PTy = cast<PointerType>(C->getType());
804 auto *OldPtrTy = cast<PointerType>(Ptr->getType());
805 Ptr = cast<Constant>(Ptr->stripPointerCasts());
806 auto *NewPtrTy = cast<PointerType>(Ptr->getType());
891 Ptr = cast<Constant>(GEP->getOperand(0));
907 auto *PTy = cast<PointerType>(Ptr->getType());
958 auto *STy = cast<StructType>(Ty);
1048 const auto *Call = cast<CallBase>(InstOrCE);
1059 Ops[0], cast<ExtractValueInst>(InstOrCE)->getIndices());
1084 auto *NewC = cast<Constant>(&NewU);
1158 auto *Op = cast<Constant>(&OpU);
1175 cast<Constant>(IVI->getAggregateOperand()),
1176 cast<Constant>(IVI->getInsertedValueOperand()),
1182 cast<Constant>(EVI->getAggregateOperand()),
1664 if (!isManifestConstant(cast<Constant>(subc)))
1994 auto *Op = cast<Constant>(Operands[0]);
2142 cast<StructType>(Ty),
2181 return ConstantStruct::get(cast<StructType>(Ty), Ops);
2227 cast<ConstantInt>(Operands[1])->getValue() == 4) {
2228 auto *Op = cast<Constant>(Operands[0]);
lib/Analysis/DDG.cpp 32 for (auto *I : cast<const SimpleDDGNode>(this)->getInstructions())
lib/Analysis/DemandedBits.cpp 191 const ShlOperator *S = cast<ShlOperator>(UserI);
208 if (cast<LShrOperator>(UserI)->isExact())
228 if (cast<AShrOperator>(UserI)->isExact())
444 Instruction *UserI = cast<Instruction>(U->getUser());
lib/Analysis/DependenceAnalysis.cpp 868 const SCEVCastExpr *SrcCast = cast<SCEVCastExpr>(Src);
869 const SCEVCastExpr *DstCast = cast<SCEVCastExpr>(Dst);
975 const SCEVCastExpr *CX = cast<SCEVCastExpr>(X);
976 const SCEVCastExpr *CY = cast<SCEVCastExpr>(Y);
1184 APInt ConstDelta = cast<SCEVConstant>(Delta)->getAPInt();
1185 APInt ConstCoeff = cast<SCEVConstant>(Coeff)->getAPInt();
1772 !isRemainderZero(cast<SCEVConstant>(Delta), ConstCoeff)) {
1881 !isRemainderZero(cast<SCEVConstant>(Delta), ConstCoeff)) {
2384 Constant = cast<SCEVConstant>(Operand);
2402 APInt ConstDelta = cast<SCEVConstant>(Constant)->getAPInt();
2439 AddRec = cast<SCEVAddRecExpr>(Inner);
2456 AddRec = cast<SCEVAddRecExpr>(Inner);
lib/Analysis/DivergenceAnalysis.cpp 417 Instruction &I = *cast<Instruction>(U.getUser());
lib/Analysis/EHPersonalities.cpp 128 SuccColor = cast<Instruction>(ParentPad)->getParent();
lib/Analysis/IVDescriptors.cpp 94 Instruction *I, *J = cast<Instruction>(Phi->use_begin()->getUser());
183 for (Value *O : cast<User>(Val)->operands())
340 Instruction *UI = cast<Instruction>(U);
823 return dyn_cast<ConstantInt>(cast<SCEVConstant>(Step)->getValue());
918 auto *PN = cast<PHINode>(PhiScev->getValue());
lib/Analysis/IVUsers.cpp 207 Instruction *User = cast<Instruction>(U.getUser());
lib/Analysis/InlineCost.cpp 1668 V = cast<Operator>(V)->getOperand(0);
1680 return cast<ConstantInt>(ConstantInt::get(IntPtrTy, Offset));
1976 PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType());
2031 PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType());
2117 cast<CallInst>(Call)->canReturnTwice())
lib/Analysis/InstructionPrecedenceTracking.cpp 142 assert(cast<LoadInst>(Insn)->isVolatile() &&
147 assert(cast<StoreInst>(Insn)->isVolatile() &&
lib/Analysis/InstructionSimplify.cpp 338 SI = cast<SelectInst>(LHS);
341 SI = cast<SelectInst>(RHS);
414 SelectInst *SI = cast<SelectInst>(LHS);
492 PI = cast<PHINode>(LHS);
498 PI = cast<PHINode>(RHS);
538 PHINode *PI = cast<PHINode>(LHS);
1021 auto *Mul = cast<OverflowingBinaryOperator>(Op0);
1622 auto *AddInst = cast<OverflowingBinaryOperator>(Op0->getOperand(0));
1695 auto *AddInst = cast<BinaryOperator>(Op0->getOperand(0));
2390 NullPointerIsDefined(cast<AllocaInst>(LHS)->getFunction());
2407 if (!cast<PointerType>(LHS->getType())->isEmptyTy() &&
2408 !cast<PointerType>(RHS->getType())->isEmptyTy() &&
2682 Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(LBO))) ||
2684 Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(LBO)));
2692 Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(RBO))) ||
2694 Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(RBO)));
2912 if (Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(LBO)) ||
2913 Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(LBO)) ||
3222 auto RHS_Instr = cast<Instruction>(RHS);
3223 auto LHS_Instr = cast<Instruction>(LHS);
3245 Instruction *LI = cast<CastInst>(LHS);
3588 cast<IntrinsicInst>(LHS)->getIntrinsicID() == Intrinsic::maxnum;
3992 cast<PointerType>(Ops[0]->getType()->getScalarType())->getAddressSpace();
4093 auto *CE = ConstantExpr::getGetElementPtr(SrcTy, cast<Constant>(Ops[0]),
4151 uint64_t NumElements = cast<VectorType>(Vec->getType())->getNumElements();
4494 return propagateNaN(cast<Constant>(V));
5021 cast<StructType>(ReturnType),
5147 Function *F = cast<Function>(Call->getCalledFunction());
5257 Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)),
5258 Q.IIQ.hasNoUnsignedWrap(cast<BinaryOperator>(I)), Q);
5267 Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)),
5268 Q.IIQ.hasNoUnsignedWrap(cast<BinaryOperator>(I)), Q);
5300 Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)),
5301 Q.IIQ.hasNoUnsignedWrap(cast<BinaryOperator>(I)), Q);
5305 Q.IIQ.isExact(cast<BinaryOperator>(I)), Q);
5309 Q.IIQ.isExact(cast<BinaryOperator>(I)), Q);
5321 Result = SimplifyICmpInst(cast<ICmpInst>(I)->getPredicate(),
5326 SimplifyFCmpInst(cast<FCmpInst>(I)->getPredicate(), I->getOperand(0),
5335 Result = SimplifyGEPInst(cast<GetElementPtrInst>(I)->getSourceElementType(),
5340 InsertValueInst *IV = cast<InsertValueInst>(I);
5347 auto *IE = cast<InsertElementInst>(I);
5353 auto *EVI = cast<ExtractValueInst>(I);
5359 auto *EEI = cast<ExtractElementInst>(I);
5365 auto *SVI = cast<ShuffleVectorInst>(I);
5371 Result = SimplifyPHINode(cast<PHINode>(I), Q);
5374 Result = SimplifyCall(cast<CallInst>(I), Q);
5429 Worklist.insert(cast<Instruction>(U));
5461 Worklist.insert(cast<Instruction>(U));
lib/Analysis/LazyValueInfo.cpp 1201 return ValueLatticeElement::get(cast<Constant>(RHS));
1203 return ValueLatticeElement::getNot(cast<Constant>(RHS));
1475 User *Usr = cast<User>(Val);
1929 cast<Instruction>(V)->getParent() != BB) {
lib/Analysis/LegacyDivergenceAnalysis.cpp 218 Instruction *UserInst = cast<Instruction>(Use.getUser());
lib/Analysis/Lint.cpp 290 cast<PointerType>(Formal->getType())->getElementType();
300 const CallInst *CI = cast<CallInst>(CS.getInstruction());
326 MemCpyInst *MCI = cast<MemCpyInst>(&I);
348 MemMoveInst *MMI = cast<MemMoveInst>(&I);
357 MemSetInst *MSI = cast<MemSetInst>(&I);
428 !cast<ConstantInt>(UnderlyingObject)->isMinusOne(),
431 !cast<ConstantInt>(UnderlyingObject)->isOne(),
531 Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
538 Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
545 Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
lib/Analysis/Loads.cpp 190 if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI))
lib/Analysis/LoopAccessAnalysis.cpp 160 const auto *U = cast<SCEVUnknown>(SE->getSCEV(StrideVal));
997 auto *PtrTy = cast<PointerType>(Ty);
1191 Type *Ty = cast<PointerType>(PtrA->getType())->getElementType();
1199 ASA = cast<PointerType>(PtrA->getType())->getAddressSpace();
1200 ASB = cast<PointerType>(PtrB->getType())->getAddressSpace();
1215 const APInt &OffsetDelta = cast<SCEVConstant>(OffsetDeltaSCEV)->getAPInt();
lib/Analysis/LoopCacheAnalysis.cpp 418 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(&Subscript);
lib/Analysis/LoopInfo.cpp 431 const Instruction *UI = cast<Instruction>(U.getUser());
548 MDNode *AccGroup = cast<MDNode>(MD.get());
573 MDNode *AccGroup = cast<MDNode>(AccessListItem.get());
lib/Analysis/MemoryBuiltins.cpp 367 MallocType = cast<PointerType>(BCI->getDestTy());
377 return cast<PointerType>(CI->getType());
410 return isCallocLikeFn(I, TLI) ? cast<CallInst>(I) : nullptr;
509 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero();
520 cast<ConstantInt>(ObjectSize->getArgOperand(2))->isOne();
522 auto *ResultType = cast<IntegerType>(ObjectSize->getType());
523 bool StaticOnly = cast<ConstantInt>(ObjectSize->getArgOperand(3))->isZero();
659 PointerType *PT = cast<PointerType>(A.getType());
837 IntTy = cast<IntegerType>(DL.getIntPtrType(V->getType()));
899 cast<ConstantExpr>(V)->getOpcode() == Instruction::IntToPtr) ||
lib/Analysis/MemoryLocation.cpp 86 return getForSource(cast<AnyMemTransferInst>(MTI));
90 return getForSource(cast<AnyMemTransferInst>(MTI));
107 return getForDest(cast<AnyMemIntrinsic>(MI));
111 return getForDest(cast<AnyMemIntrinsic>(MI));
158 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()),
170 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()),
lib/Analysis/MemorySSA.cpp 380 cast<LoadInst>(I)->getPointerOperand())));
689 addSearches(cast<MemoryPhi>(Res.Result), PausedSearches, PathIndex);
901 auto *DefChainPhi = cast<MemoryPhi>(DefChainEnd);
954 OptznResult OptRes = tryOptimizePhi(cast<MemoryPhi>(FirstDesc.Last),
1095 auto *Phi = cast<MemoryPhi>(&Accesses->front());
1203 auto *Phi = cast<MemoryPhi>(&Accesses->front());
1438 MemoryDef *MD = cast<MemoryDef>(VersionStack[UpperBound]);
1794 const auto *MP = cast<MemoryPhi>(Replacee);
2163 return dominates(Dominator, cast<MemoryAccess>(Dominatee.getUser()));
2340 auto *StartingUseOrDef = cast<MemoryUseOrDef>(StartingAccess);
lib/Analysis/MemorySSAUpdater.cpp 168 return cast<MemoryAccess>(&U);
228 Same = cast<MemoryAccess>(&*Op);
501 cast<MemoryDef>(FirstDef)->setDefiningAccess(getPreviousDef(FirstDef));
574 MemoryPhi *DefPhi = cast<MemoryPhi>(InsnDefining);
694 MemoryPhi *IncPhi = cast<MemoryPhi>(IncomingAccess);
726 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi));
1099 MemoryAccess *Usr = cast<MemoryAccess>(U.getUser());
1114 cast<MemoryUseOrDef>(Usr)->resetOptimized();
1143 insertUse(cast<MemoryUse>(What), /*RenameUses=*/true);
1179 auto *MUD = cast<MemoryUseOrDef>(FirstInNew);
1184 : cast<MemoryUseOrDef>(&*NextIt);
1289 NewDefTarget = cast<MemoryUseOrDef>(MA)->getDefiningAccess();
lib/Analysis/ModuleSummaryAnalysis.cpp 169 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(1));
200 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(2));
354 cast<GlobalValue>(CalledValue))];
512 findFuncPointers(cast<Constant>(I->getOperand(Op)),
520 findFuncPointers(cast<Constant>(I->getOperand(i)),
558 cast<ConstantInt>(
lib/Analysis/ObjCARCInstKind.cpp 223 const CallInst *CI = cast<CallInst>(I);
241 return GetCallSiteClass(cast<InvokeInst>(I));
lib/Analysis/OptimizationRemarkEmitter.cpp 62 return BFI->getBlockProfileCount(cast<BasicBlock>(V));
lib/Analysis/PHITransAddr.cpp 256 Constant *RHS = cast<ConstantInt>(Inst->getOperand(1));
257 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap();
258 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap();
lib/Analysis/ScalarEvolution.cpp 241 cast<SCEVConstant>(this)->getValue()->printAsOperand(OS, false);
244 const SCEVTruncateExpr *Trunc = cast<SCEVTruncateExpr>(this);
251 const SCEVZeroExtendExpr *ZExt = cast<SCEVZeroExtendExpr>(this);
258 const SCEVSignExtendExpr *SExt = cast<SCEVSignExtendExpr>(this);
265 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(this);
287 const SCEVNAryExpr *NAry = cast<SCEVNAryExpr>(this);
320 const SCEVUDivExpr *UDiv = cast<SCEVUDivExpr>(this);
325 const SCEVUnknown *U = cast<SCEVUnknown>(this);
359 return cast<SCEVConstant>(this)->getType();
363 return cast<SCEVCastExpr>(this)->getType();
370 return cast<SCEVNAryExpr>(this)->getType();
372 return cast<SCEVAddExpr>(this)->getType();
374 return cast<SCEVUDivExpr>(this)->getType();
376 return cast<SCEVUnknown>(this)->getType();
437 IntegerType *ITy = cast<IntegerType>(getEffectiveSCEVType(Ty));
496 AllocTy = cast<PointerType>(CE->getOperand(0)->getType())
511 cast<PointerType>(CE->getOperand(0)->getType())->getElementType();
538 cast<PointerType>(CE->getOperand(0)->getType())->getElementType();
594 const auto *RA = cast<Argument>(RV);
600 const auto *RGV = cast<GlobalValue>(RV);
617 const auto *RInst = cast<Instruction>(RV);
672 const SCEVUnknown *LU = cast<SCEVUnknown>(LHS);
673 const SCEVUnknown *RU = cast<SCEVUnknown>(RHS);
683 const SCEVConstant *LC = cast<SCEVConstant>(LHS);
684 const SCEVConstant *RC = cast<SCEVConstant>(RHS);
696 const SCEVAddRecExpr *LA = cast<SCEVAddRecExpr>(LHS);
697 const SCEVAddRecExpr *RA = cast<SCEVAddRecExpr>(RHS);
737 const SCEVNAryExpr *LC = cast<SCEVNAryExpr>(LHS);
738 const SCEVNAryExpr *RC = cast<SCEVNAryExpr>(RHS);
757 const SCEVUDivExpr *LC = cast<SCEVUDivExpr>(LHS);
758 const SCEVUDivExpr *RC = cast<SCEVUDivExpr>(RHS);
775 const SCEVCastExpr *LC = cast<SCEVCastExpr>(LHS);
776 const SCEVCastExpr *RC = cast<SCEVCastExpr>(RHS);
1060 RewriteMap[cast<SCEVUnknown>(Denominator)->getValue()] =
1061 cast<SCEVConstant>(Zero)->getValue();
1066 RewriteMap[cast<SCEVUnknown>(Denominator)->getValue()] =
1067 cast<SCEVConstant>(One)->getValue();
1272 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty)));
1299 auto *CommOp = cast<SCEVCommutativeExpr>(Op);
1648 cast<ConstantInt>(ConstantExpr::getZExt(SC->getValue(), Ty)));
1954 cast<ConstantInt>(ConstantExpr::getSExt(SC->getValue(), Ty)));
2292 Scale * cast<SCEVConstant>(Mul->getOperand(0))->getAPInt();
2295 const SCEVAddExpr *Add = cast<SCEVAddExpr>(Mul->getOperand(1));
2379 const APInt &C = cast<SCEVConstant>(Ops[0])->getAPInt();
2435 LHSC = cast<SCEVConstant>(Ops[0]);
2613 const SCEVMulExpr *Mul = cast<SCEVMulExpr>(Ops[Idx]);
2650 const SCEVMulExpr *OtherMul = cast<SCEVMulExpr>(Ops[OtherMulIdx]);
2697 const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ops[Idx]);
2745 cast<SCEVAddRecExpr>(Ops[OtherIdx])->getLoop()->getHeader(),
2748 if (AddRecLoop == cast<SCEVAddRecExpr>(Ops[OtherIdx])->getLoop()) {
2754 const auto *OtherAddRec = cast<SCEVAddRecExpr>(Ops[OtherIdx]);
2958 LHSC = cast<SCEVConstant>(Ops[0]);
2962 if (cast<SCEVConstant>(Ops[0])->getValue()->isOne()) {
2965 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isZero()) {
3035 const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ops[Idx]);
3300 return getConstant(cast<ConstantInt>(ConstantExpr::getUDiv(LHSCV,
3363 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor)));
3365 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor)));
3508 ConstantInt *Index = cast<SCEVConstant>(IndexExpr)->getValue();
3519 CurTy = cast<SequentialType>(CurTy)->getElementType();
3595 LHSC = cast<SCEVConstant>(Ops[0]);
3623 const SCEVMinMaxExpr *SMME = cast<SCEVMinMaxExpr>(Ops[Idx]);
3747 assert(cast<SCEVUnknown>(S)->getValue() == V &&
3753 FirstUnknown = cast<SCEVUnknown>(S);
3950 cast<ConstantInt>(ConstantExpr::getNeg(VC->getValue())));
3955 V, getConstant(cast<ConstantInt>(Constant::getAllOnesValue(Ty))), Flags);
3977 cast<ConstantInt>(ConstantExpr::getNot(VC->getValue())));
4000 getConstant(cast<ConstantInt>(Constant::getAllOnesValue(Ty)));
4188 Worklist.push_back(cast<Instruction>(U));
4348 Instruction *I = cast<Instruction>(Expr->getValue());
4351 SelectInst *SI = cast<SelectInst>(I);
4355 bool IsOne = cast<SCEVConstant>(Res.getValue())->getValue()->isOne();
4530 uint32_t BitWidth = cast<IntegerType>(Op->getType())->getBitWidth();
4546 auto *EVI = cast<ExtractValueInst>(Op);
4690 auto *PN = cast<PHINode>(SymbolicPHI->getValue());
4896 auto *PN = cast<PHINode>(SymbolicPHI->getValue());
5076 cast<SCEVAddRecExpr>(Accum)->getLoop() == L)) {
5196 const auto *ARLoop = cast<SCEVAddRecExpr>(S)->getLoop();
5205 const auto *SU = cast<SCEVUnknown>(S);
5211 if (isa<Instruction>(V) && DT.dominates(cast<Instruction>(V), BB))
5393 isa<ConstantInt>(RHS) && cast<ConstantInt>(RHS)->isZero()) {
5407 isa<ConstantInt>(RHS) && cast<ConstantInt>(RHS)->isZero()) {
5878 Offset = cast<SCEVConstant>(SA->getOperand(0))->getAPInt();
5968 const BinaryOperator *BinOp = cast<BinaryOperator>(V);
6084 if (propagatesFullPoison(cast<Instruction>(PoisonUser))) {
6085 if (Pushed.insert(cast<Instruction>(PoisonUser)).second)
6086 PoisonStack.push_back(cast<Instruction>(PoisonUser));
6154 Operator *U = cast<Operator>(V);
6315 const SCEVAddRecExpr *OldAR = cast<SCEVAddRecExpr>(LHS);
6366 uint32_t BitWidth = cast<IntegerType>(SA->getType())->getBitWidth();
6483 return createNodeForGEP(cast<GEPOperator>(U));
6486 return createNodeForPHI(cast<PHINode>(U));
6494 return createNodeForSelectOrPHI(cast<Instruction>(U), U->getOperand(0),
7485 return cast<SCEVConstant>(Val)->getValue();
7508 !cast<Constant>(GEP->getOperand(1))->isNullValue())
7545 cast<IntegerType>(IdxExpr->getType()), IterationNum);
7558 if (cast<ConstantInt>(Result)->getValue().isMinValue()) {
7676 auto *Ty = cast<IntegerType>(RHS->getType());
7690 StableValue = ConstantInt::get(cast<IntegerType>(RHS->getType()), 0);
8054 return cast<SCEVConstant>(V)->getValue();
8056 return dyn_cast<Constant>(cast<SCEVUnknown>(V)->getValue());
8058 const SCEVSignExtendExpr *SS = cast<SCEVSignExtendExpr>(V);
8064 const SCEVZeroExtendExpr *SZ = cast<SCEVZeroExtendExpr>(V);
8070 const SCEVTruncateExpr *ST = cast<SCEVTruncateExpr>(V);
8076 const SCEVAddExpr *SA = cast<SCEVAddExpr>(V);
8115 const SCEVMulExpr *SM = cast<SCEVMulExpr>(V);
8129 const SCEVUDivExpr *SU = cast<SCEVUDivExpr>(V);
8737 const auto *R = cast<SCEVConstant>(getConstant(S.getValue()));
9367 OutY = cast<SCEVConstant>(ConstOp)->getAPInt();
9787 C = cast<SCEVConstant>(FoundLHS);
9790 C = cast<SCEVConstant>(FoundRHS);
9878 const auto *LAR = cast<SCEVAddRecExpr>(Less);
9879 const auto *MAR = cast<SCEVAddRecExpr>(More);
9899 const auto &M = cast<SCEVConstant>(More)->getAPInt();
9900 const auto &L = cast<SCEVConstant>(Less)->getAPInt();
10297 auto *Denominator = cast<SCEVConstant>(getSCEV(LR));
10459 const APInt &ConstFoundRHS = cast<SCEVConstant>(FoundRHS)->getAPInt();
10471 const APInt &ConstRHS = cast<SCEVConstant>(RHS)->getAPInt();
10837 APInt A = cast<SCEVConstant>(getOperand(1))->getAPInt();
10888 return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, getLoop(),
11670 return getLoopDisposition(cast<SCEVCastExpr>(S)->getOperand(), L);
11672 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(S);
11708 for (auto *Op : cast<SCEVNAryExpr>(S)->operands()) {
11718 const SCEVUDivExpr *UDiv = cast<SCEVUDivExpr>(S);
11733 if (auto *I = dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue()))
11777 return getBlockDisposition(cast<SCEVCastExpr>(S)->getOperand(), BB);
11783 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(S);
11796 const SCEVNAryExpr *NAry = cast<SCEVNAryExpr>(S);
11808 const SCEVUDivExpr *UDiv = cast<SCEVUDivExpr>(S);
11821 dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue())) {
12199 auto *AR = cast<const SCEVAddRecExpr>(WP->getExpr());
12433 const auto *AR = cast<SCEVAddRecExpr>(Expr);
12449 const auto *AR = cast<SCEVAddRecExpr>(Expr);
lib/Analysis/ScalarEvolutionExpander.cpp 161 Instruction *I = cast<Instruction>(V);
228 Instruction *BO = cast<Instruction>(Builder.CreateBinOp(Opcode, LHS, RHS));
283 const SCEVConstant *FC = cast<SCEVConstant>(Factor);
512 SE.DT.dominates(cast<Instruction>(V), &*Builder.GetInsertPoint()));
971 unsigned AS = cast<PointerType>(IncV->getType())->getAddressSpace();
1058 PointerType *GEPPtrTy = cast<PointerType>(ExpandTy);
1090 InstToHoist = cast<Instruction>(InstToHoist->getOperand(0));
1131 unsigned BitWidth = cast<IntegerType>(AR->getType())->getBitWidth();
1145 unsigned BitWidth = cast<IntegerType>(AR->getType())->getBitWidth();
1271 SE.DT.properlyDominates(cast<Instruction>(StartV)->getParent(),
1320 cast<BinaryOperator>(IncV)->setHasNoUnsignedWrap();
1322 cast<BinaryOperator>(IncV)->setHasNoSignedWrap();
1348 Normalized = cast<SCEVAddRecExpr>(normalizeForPostIncUse(S, Loops, SE));
1357 Normalized = cast<SCEVAddRecExpr>(
1377 cast<SCEVAddRecExpr>(SE.getAddRecExpr(
1411 !SE.DT.dominates(cast<Instruction>(Result),
1519 findInsertPointAfter(cast<Instruction>(V), Builder.GetInsertBlock());
1626 const SCEV *V = cast<SCEVAddRecExpr>(NewS)->evaluateAtIteration(IH, SE);
1794 if (V && isa<Instruction>(V) && (EntInst = cast<Instruction>(V)) &&
1937 cast<PHINode>(expandCodeFor(H, nullptr, &L->getHeader()->front()));
2146 return isHighCostExpansionHelper(cast<SCEVTruncateExpr>(S)->getOperand(),
2149 return isHighCostExpansionHelper(cast<SCEVZeroExtendExpr>(S)->getOperand(),
2152 return isHighCostExpansionHelper(cast<SCEVSignExtendExpr>(S)->getOperand(),
2170 unsigned Width = cast<IntegerType>(UDivExpr->getType())->getBitWidth();
2217 return expandUnionPredicate(cast<SCEVUnionPredicate>(Pred), IP);
2219 return expandEqualPredicate(cast<SCEVEqualPredicate>(Pred), IP);
2221 auto *AddRecPred = cast<SCEVWrapPredicate>(Pred);
2337 const auto *A = cast<SCEVAddRecExpr>(Pred->getExpr());
lib/Analysis/StackSafetyAnalysis.cpp 191 const FunctionType *Type = cast<FunctionType>(Aliasee->getValueType());
290 auto I = cast<const Instruction>(UI.getUser());
358 WorkList.push_back(cast<const Instruction>(I));
lib/Analysis/TargetLibraryInfo.cpp 1611 return cast<ConstantInt>(ShortWChar->getValue())->getZExtValue();
lib/Analysis/TargetTransformInfo.cpp 905 auto *CI = cast<CmpInst>(SI->getCondition());
910 auto *CI = cast<CmpInst>(SI->getCondition());
976 getReductionData(cast<Instruction>(NextLevelOp));
996 return matchPairwiseReductionAtLevel(cast<Instruction>(NextLevelOp), Level,
1191 const SelectInst *SI = cast<SelectInst>(I);
1201 const StoreInst *SI = cast<StoreInst>(I);
1208 const LoadInst *LI = cast<LoadInst>(I);
1230 const ExtractElementInst * EEI = cast<ExtractElementInst>(I);
1277 const InsertElementInst * IE = cast<InsertElementInst>(I);
1288 const ShuffleVectorInst *Shuffle = cast<ShuffleVectorInst>(I);
lib/Analysis/TypeMetadataUtils.cpp 28 Instruction *User = cast<Instruction>(U.getUser());
146 return getPointerAtOffset(cast<Constant>(I->getOperand(Op)),
157 return getPointerAtOffset(cast<Constant>(I->getOperand(Op)),
lib/Analysis/ValueTracking.cpp 205 IntegerType *IT = cast<IntegerType>(LHS->getType()->getScalarType());
987 Q.IIQ.getMetadata(cast<LoadInst>(I), LLVMContext::MD_range))
1036 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I));
1105 Q.IIQ.hasNoSignedWrap(cast<Instruction>(RHS)))
1171 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I));
1222 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I));
1228 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I));
1292 const AllocaInst *AI = cast<AllocaInst>(I);
1315 Constant *CIndex = cast<Constant>(Index);
1322 unsigned Idx = cast<ConstantInt>(Index)->getZExtValue();
1348 const PHINode *P = cast<PHINode>(I);
1463 Q.IIQ.getMetadata(cast<Instruction>(I), LLVMContext::MD_range))
1583 const ExtractValueInst *EVI = cast<ExtractValueInst>(I);
1794 const OverflowingBinaryOperator *VOBO = cast<OverflowingBinaryOperator>(V);
1828 return isKnownToBeAPowerOfTwo(cast<Operator>(V)->getOperand(0), OrZero,
1866 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand());
1966 DT->dominates(cast<Instruction>(Curr), CtxI)) {
2123 return isKnownNonZero(cast<Instruction>(V)->getOperand(0), Depth, Q);
2129 const OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V);
2142 const PossiblyExactOperator *BO = cast<PossiblyExactOperator>(V);
2202 const OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V);
2237 return isa<ConstantInt>(V) && !cast<ConstantInt>(V)->isZero();
2307 cast<Operator>(Select)->getOpcode() == Instruction::Select &&
2576 const PHINode *PN = cast<PHINode>(U);
2613 auto *Shuf = cast<ShuffleVectorInst>(U);
2990 (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs()))
3018 const auto *CI = cast<CallInst>(I);
3080 (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs()) &&
3173 Constant *Elt = cast<Constant>(V)->getAggregateElement(i);
3246 cast<PointerType>(CE->getType())->getAddressSpace());
3311 InsertValueInst* Del = cast<InsertValueInst>(PrevTo);
3723 V = cast<Operator>(V)->getOperand(0);
3852 getUnderlyingObjectFromInt(cast<User>(V)->getOperand(0));
3937 const LoadInst *LI = cast<LoadInst>(Inst);
3946 auto *CI = cast<const CallInst>(Inst);
4356 return cast<StoreInst>(I)->getPointerOperand();
4359 return cast<LoadInst>(I)->getPointerOperand();
4362 return cast<AtomicCmpXchgInst>(I)->getPointerOperand();
4365 return cast<AtomicRMWInst>(I)->getPointerOperand();
4421 const Instruction *UserI = cast<Instruction>(User);
4774 !cast<Constant>(TrueVal)->containsUndefElement())
4777 !cast<Constant>(FalseVal)->containsUndefElement())
5092 cast<CastInst>(TrueVal)->getOperand(0), C,
5101 C, cast<CastInst>(FalseVal)->getOperand(0),
5300 APred, cast<ConstantInt>(ARHS), BPred, cast<ConstantInt>(BRHS)))
5300 APred, cast<ConstantInt>(ARHS), BPred, cast<ConstantInt>(BRHS)))
5426 if (IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(&BO))) {
5429 } else if (IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(&BO))) {
5649 IIQ.hasNoSignedWrap(cast<Instruction>(RHS)))
lib/Analysis/VectorUtils.cpp 221 const APInt &APStepVal = cast<SCEVConstant>(M->getOperand(0))->getAPInt();
263 VectorType *VTy = cast<VectorType>(V->getType());
275 unsigned IIElt = cast<ConstantInt>(III->getOperand(2))->getZExtValue();
421 Instruction *I = cast<Instruction>(Val);
457 for (Value *O : cast<User>(I)->operands()) {
500 Ty = cast<Instruction>(*MI)->getOperand(0)->getType();
502 MinBWs[cast<Instruction>(*MI)] = MinBW;
520 auto *Item = cast<MDNode>(AccGroupListOp.get());
541 return cast<MDNode>(Union.front());
577 auto *Item = cast<MDNode>(Node.get());
587 return cast<MDNode>(Intersection.front());
595 Instruction *I0 = cast<Instruction>(VL[0]);
606 const Instruction *IJ = cast<Instruction>(VL[J]);
789 const unsigned VWidth = cast<VectorType>(Mask->getType())->getNumElements();
835 PointerType *PtrTy = cast<PointerType>(Ptr->getType());
lib/AsmParser/LLParser.cpp 1002 M->getAliasList().push_back(cast<GlobalAlias>(GA.get()));
1004 M->getIFuncList().push_back(cast<GlobalIFunc>(GA.get()));
1089 GV = cast<GlobalVariable>(GVal);
1383 Type *TyInProgAS = cast<PointerType>(Ty)->getElementType()->getPointerTo(
2726 StructType *STy = cast<StructType>(Entry.first);
3260 F = cast<Function>(GV);
3577 auto *BasePointerType = cast<PointerType>(BaseType->getScalarType());
5193 V = ConstantPointerNull::get(cast<PointerType>(Ty));
5202 if (!Ty->isArrayTy() || cast<ArrayType>(Ty)->getNumElements() != 0)
5264 C = cast<Constant>(V);
5295 BB = cast<BasicBlock>(V);
5468 Fn = cast<Function>(I->second.first);
5735 if (NUW) cast<BinaryOperator>(Inst)->setHasNoUnsignedWrap(true);
5736 if (NSW) cast<BinaryOperator>(Inst)->setHasNoSignedWrap(true);
5760 if (Exact) cast<BinaryOperator>(Inst)->setIsExact(true);
5983 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB));
6673 PHIVals.push_back(std::make_pair(Op0, cast<BasicBlock>(Op1)));
6969 if (Ty != cast<PointerType>(Val->getType())->getElementType())
7012 if (cast<PointerType>(Ptr->getType())->getElementType() != Val->getType())
7063 if (cast<PointerType>(Ptr->getType())->getElementType() != Cmp->getType())
7065 if (cast<PointerType>(Ptr->getType())->getElementType() != New->getType())
7126 if (cast<PointerType>(Ptr->getType())->getElementType() != Val->getType())
7238 cast<GetElementPtrInst>(Inst)->setIsInBounds(true);
lib/Bitcode/Reader/BitcodeReader.cpp 607 return flattenPointerTypes(cast<PointerType>(Ty)->getElementType());
614 Type *ElTy = cast<PointerType>(FullTy)->getElementType();
2100 cast<Function>(ValueList[Record[0]]), Record);
2394 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth());
2470 Type *EltTy = cast<SequentialType>(CurTy)->getElementType();
2748 cast<FunctionType>(getPointerElementFlatType(CurFullTy)), AsmStr,
2774 cast<FunctionType>(getPointerElementFlatType(CurFullTy)), AsmStr,
2927 for (const MDOperand &MDOptions : cast<MDNode>(Val)->operands())
3109 AddressSpace = cast<PointerType>(Ty)->getAddressSpace();
3220 Function::Create(cast<FunctionType>(FTy), GlobalValue::ExternalLinkage,
3225 FunctionTypes[Func] = cast<FunctionType>(FullFTy);
3240 Type *PTy = cast<FunctionType>(FullFTy)->getParamType(i);
3670 Type *ElemType = cast<PointerType>(PtrType)->getElementType();
3905 cast<BinaryOperator>(I)->setHasNoSignedWrap(true);
3907 cast<BinaryOperator>(I)->setHasNoUnsignedWrap(true);
3913 cast<BinaryOperator>(I)->setIsExact(true);
3992 cast<GetElementPtrInst>(I)->setIsInBounds(true);
4148 cast<VectorType>(Vec->getType())->getElementType(), Elt) ||
4366 unsigned ValueBitWidth = cast<IntegerType>(OpTy)->getBitWidth();
4483 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy));
4495 dyn_cast<FunctionType>(cast<PointerType>(FullTy)->getElementType());
4498 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy));
4535 cast<InvokeInst>(I)->setCallingConv(
4537 cast<InvokeInst>(I)->setAttributes(PAL);
4538 propagateByValTypes(cast<CallBase>(I), ArgsFullTys);
4570 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy));
4582 dyn_cast<FunctionType>(cast<PointerType>(FullTy)->getElementType());
4585 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy));
4622 cast<CallBrInst>(I)->setCallingConv(
4624 cast<CallBrInst>(I)->setAttributes(PAL);
4699 F->setPersonalityFn(cast<Constant>(PersFn));
4700 else if (F->getPersonalityFn() != cast<Constant>(PersFn))
4724 LP->addClause(cast<Constant>(Val));
4910 FullTy = cast<PointerType>(FullTy)->getElementType();
4934 cast<AtomicCmpXchgInst>(I)->setVolatile(Record[OpNum]);
4942 FullTy = cast<StructType>(FullTy)->getElementType(0);
4944 cast<AtomicCmpXchgInst>(I)->setWeak(Record[OpNum+4]);
4971 cast<AtomicRMWInst>(I)->setVolatile(Record[OpNum+1]);
5011 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy));
5023 dyn_cast<FunctionType>(cast<PointerType>(FullTy)->getElementType());
5026 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy));
5066 cast<CallInst>(I)->setCallingConv(
5075 cast<CallInst>(I)->setTailCallKind(TCK);
5076 cast<CallInst>(I)->setAttributes(PAL);
5077 propagateByValTypes(cast<CallBase>(I), ArgsFullTys);
lib/Bitcode/Reader/MetadataLoader.cpp 222 TempMDTuple PrevMD(cast<MDTuple>(OldMD.get()));
501 auto *CU = cast<DICompileUnit>(CUNodes->getOperand(I));
978 return cast<MDString>(MD);
990 auto *N = cast<MDNode>(MD);
1395 MetadataList.addTypeRef(*Identifier, *cast<DICompositeType>(CT));
1764 auto *MDNode = Expr ? cast<Metadata>(DGVE) : cast<Metadata>(DGV);
1764 auto *MDNode = Expr ? cast<Metadata>(DGVE) : cast<Metadata>(DGV);
lib/Bitcode/Reader/ValueList.cpp 51 cast<ConstantExpr>(V)->getOpcode() == Instruction::UserOp1;
110 return cast<Constant>(V);
181 Constant *UserC = cast<Constant>(U);
200 NewOps.push_back(cast<Constant>(NewOp));
213 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps);
lib/Bitcode/Writer/BitcodeWriter.cpp 889 TypeVals.push_back(cast<IntegerType>(T)->getBitWidth());
892 PointerType *PTy = cast<PointerType>(T);
902 FunctionType *FT = cast<FunctionType>(T);
913 StructType *ST = cast<StructType>(T);
940 ArrayType *AT = cast<ArrayType>(T);
949 VectorType *VT = cast<VectorType>(T);
1981 W.EmitVBR(cast<MDString>(MD)->getLength(), 6);
1990 Blob.append(cast<MDString>(MD)->getString());
2034 writeValueAsMetadata(cast<ValueAsMetadata>(MD), Record);
2338 const Constant *C = cast<Constant>(V);
2384 cast<ConstantDataSequential>(C)->isString()) {
2385 const ConstantDataSequential *Str = cast<ConstantDataSequential>(C);
2459 const auto *GO = cast<GEPOperator>(C);
2655 const ExtractValueInst *EVI = cast<ExtractValueInst>(&I);
2663 const InsertValueInst *IVI = cast<InsertValueInst>(&I);
2756 const InvokeInst *II = cast<InvokeInst>(&I);
2832 const CallBrInst *CBI = cast<CallBrInst>(&I);
3643 FunctionSummary *FS = cast<FunctionSummary>(Summary);
3692 GlobalVarSummary *VS = cast<GlobalVarSummary>(Summary);
3867 AliasSummary *AS = cast<AliasSummary>(Summary);
4030 auto *FS = cast<FunctionSummary>(S);
lib/CodeGen/Analysis.cpp 168 if (!GV) V = cast<ConstantPointerNull>(Init);
292 if (cast<GetElementPtrInst>(I)->hasAllZeroIndices())
300 cast<IntegerType>(Op->getType())->getBitWidth())
308 cast<IntegerType>(I->getType())->getBitWidth())
402 return Idx < cast<StructType>(T)->getNumElements();
440 CompositeType *CT = cast<CompositeType>(DeeperType);
470 indexReallyValid(cast<CompositeType>(Next), 0)) {
471 SubTypes.push_back(cast<CompositeType>(Next));
473 Next = cast<CompositeType>(Next)->getTypeAtIndex(0U);
567 AttrBuilder CalleeAttrs(cast<CallInst>(I)->getAttributes(),
637 const CallInst *Call = cast<CallInst>(I);
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 1583 if (const auto *A = cast<ConstantArray>(LU->getInitializer())) {
1585 const auto *GV = cast<GlobalValue>(Op->stripPointerCasts());
1670 cast<MCSectionXCOFF>(getObjFileLowering().SectionForGlobal(&F, TM));
1672 cast<MCSymbolXCOFF>(CurrentFnSym)->setContainingCsect(FnEntryPointSec);
1930 EmitLLVMUsedList(cast<ConstantArray>(GV->getInitializer()));
2206 cast<GEPOperator>(CE)->accumulateConstantOffset(getDataLayout(), OffsetAI);
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 771 const auto *CU = cast<DICompileUnit>(Node);
828 const auto *CU = cast<DICompileUnit>(Node);
929 MCSectionCOFF *DebugSec = cast<MCSectionCOFF>(
1086 MDTuple *Strs = cast<MDTuple>(Annot.second);
1095 StringRef Str = cast<MDString>(MD)->getString();
1305 const DILocalVariable *DIVar = cast<DILocalVariable>(IV.first);
1496 return lowerTypeArray(cast<DICompositeType>(Ty));
1498 return lowerTypeAlias(cast<DIDerivedType>(Ty));
1500 return lowerTypeBasic(cast<DIBasicType>(Ty));
1502 if (cast<DIDerivedType>(Ty)->getName() == "__vtbl_ptr_type")
1503 return lowerTypeVFTableShape(cast<DIDerivedType>(Ty));
1507 return lowerTypePointer(cast<DIDerivedType>(Ty));
1509 return lowerTypeMemberPointer(cast<DIDerivedType>(Ty));
1514 return lowerTypeModifier(cast<DIDerivedType>(Ty));
1519 return lowerTypeMemberFunction(cast<DISubroutineType>(Ty), ClassTy,
1523 return lowerTypeFunction(cast<DISubroutineType>(Ty));
1525 return lowerTypeEnum(cast<DICompositeType>(Ty));
1528 return lowerTypeClass(cast<DICompositeType>(Ty));
1530 return lowerTypeUnion(cast<DICompositeType>(Ty));
1573 const DISubrange *Subrange = cast<DISubrange>(Element);
1826 BaseTy = cast<DIDerivedType>(BaseTy)->getBaseType();
1838 return lowerTypePointer(cast<DIDerivedType>(BaseTy), PO);
1840 return lowerTypeMemberPointer(cast<DIDerivedType>(BaseTy), PO);
2148 Ty = cast<DIDerivedType>(Ty)->getBaseType();
2521 Ty = cast<DIDerivedType>(Ty)->getBaseType();
2534 const auto *CTy = cast<DICompositeType>(Ty);
2992 const auto *CU = cast<DICompileUnit>(Node);
3059 for (auto *Ty : cast<DICompileUnit>(Node)->getRetainedTypes()) {
lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp 344 const DILocalVariable *LocalVar = cast<DILocalVariable>(Var.first);
lib/CodeGen/AsmPrinter/DebugLocEntry.h 57 assert(cast<DIExpression>(Expr)->isValid());
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp 795 constructImportedEntityDIE(cast<DIImportedEntity>(IE)));
857 auto *SP = cast<DISubprogram>(Scope->getScopeNode());
1081 cast<const DILocalVariable>(Node), nullptr /* IA */);;
1082 DU->addScopeVariable(Scope, cast<DbgVariable>(Entity.get()));
1085 cast<const DILabel>(Node), nullptr /* IA */);
1086 DU->addScopeLabel(Scope, cast<DbgLabel>(Entity.get()));
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h 171 auto *LocalScope = cast<DILocalScope>(Scope)->getNonLexicalBlockFileScope();
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 519 auto *SP = cast<DISubprogram>(Scope->getScopeNode());
1014 CU.getOrCreateTypeDIE(cast<DIType>(Ty));
1147 auto *CUNode = cast<DICompileUnit>(P.first);
1250 cast<DILocalScope>(ScopeNode)));
1283 cast<DILocalVariable>(Var.first), Var.second);
1493 std::make_unique<DbgVariable>(cast<const DILocalVariable>(Node),
1496 cast<DbgVariable>(ConcreteEntities.back().get()));
1499 std::make_unique<DbgLabel>(cast<const DILabel>(Node),
1502 cast<DbgLabel>(ConcreteEntities.back().get()));
1525 const DILocalVariable *LocalVar = cast<DILocalVariable>(IV.first);
1535 DbgVariable *RegVar = cast<DbgVariable>(createConcreteEntity(TheCU,
1595 const DILabel *Label = cast<DILabel>(IL.first);
1856 auto *SP = cast<DISubprogram>(AScope->getScopeNode());
2768 auto *CUNode = cast<DICompileUnit>(P.first);
2948 CU.constructTypeDIE(RefDie, cast<DICompositeType>(CTy));
lib/CodeGen/AsmPrinter/DwarfDebug.h 167 return cast<DILocalVariable>(getEntity());
240 const DILabel *getLabel() const { return cast<DILabel>(getEntity()); }
lib/CodeGen/AsmPrinter/DwarfUnit.cpp 201 (isa<DISubprogram>(D) && !cast<DISubprogram>(D)->isDefinition())) &&
493 auto *BTy = cast<DIBasicType>(Ty);
615 addType(TT, cast<DIType>(Ty));
643 constructTypeDIE(TyDIE, cast<DICompositeType>(Ty));
674 constructTypeDIE(TyDIE, cast<DIDerivedType>(Ty));
684 auto *Ty = cast<DIType>(TyNode);
688 return getOrCreateTypeDIE(cast<DIDerivedType>(Ty)->getBaseType());
692 return getOrCreateTypeDIE(cast<DIDerivedType>(Ty)->getBaseType());
812 *getOrCreateTypeDIE(cast<DIDerivedType>(DTy)->getClassType()));
842 auto Elements = cast<DISubroutineType>(CTy)->getTypeArray();
1071 cast<MDString>(Val)->getString());
1073 addTemplateParams(ParamDIE, cast<MDTuple>(Val));
1368 const auto Subrange = cast<DISubrange>(Elements[0]);
1400 constructSubrangeDIE(Buffer, cast<DISubrange>(Element), IdxTy);
lib/CodeGen/AsmPrinter/WinException.cpp 912 cast<FuncletPadInst>(FuncletStart->getBasicBlock()->getFirstNonPHI());
985 const auto *Per = cast<Function>(F.getPersonalityFn()->stripPointerCasts());
lib/CodeGen/AtomicExpandPass.cpp 437 Type *Ty = cast<PointerType>(Addr->getType())->getElementType();
lib/CodeGen/BuiltinGCs.cpp 77 const PointerType *PT = cast<PointerType>(Ty);
109 const PointerType *PT = cast<PointerType>(Ty);
lib/CodeGen/CodeGenPrepare.cpp 761 const Instruction *UI = cast<Instruction>(U);
820 BranchInst *BI = cast<BranchInst>(BB->getTerminator());
1082 Instruction *User = cast<Instruction>(*UI);
1202 Arg1 = ConstantExpr::getNeg(cast<Constant>(Arg1));
1249 Add = cast<BinaryOperator>(U);
1318 Sub = cast<BinaryOperator>(U);
1326 Sub = cast<BinaryOperator>(U);
1366 Instruction *User = cast<Instruction>(*UI);
1440 AndI->getParent() == cast<Instruction>(*AndI->user_begin())->getParent())
1451 Instruction *User = cast<Instruction>(U);
1474 Instruction *User = cast<Instruction>(*UI);
1512 const APInt &Cimm = cast<ConstantInt>(User->getOperand(1))->getValue();
1527 auto *TruncI = cast<TruncInst>(User);
1535 Instruction *TruncUser = cast<Instruction>(*TruncUI);
1625 Instruction *User = cast<Instruction>(*UI);
1806 cast<PointerType>(Arg->getType())->getAddressSpace()),
2533 Instruction *UserI = cast<Instruction>(U.getUser());
3009 if (Value *V = SimplifyInstruction(cast<Instruction>(PI), SQ)) {
3011 WorkList.push_back(cast<Value>(U));
3390 auto *CurrentSelect = cast<SelectInst>(Current);
3399 auto *PHI = cast<PHINode>(V);
3402 Value *PV = cast<PHINode>(Current)->getIncomingValueForBlock(B);
3446 PHINode *CurrentPhi = cast<PHINode>(Current);
3523 AddrModeInsts.push_back(cast<Instruction>(ScaleReg));
3771 const auto *ExtInst = cast<const Instruction>(*Inst->user_begin());
3860 Instruction *SExtOpnd = cast<Instruction>(SExt->getOperand(0));
3909 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0));
3982 ExtForOpnd = cast<Instruction>(ValForExtOpnd);
4138 cast<ConstantInt>(AddrInst->getOperand(i))->getZExtValue();
4169 if (!cast<GEPOperator>(AddrInst)->isInBounds())
4182 auto *GEP = cast<GetElementPtrInst>(AddrInst);
4204 if (!cast<GEPOperator>(AddrInst)->isInBounds())
4441 Instruction *UserI = cast<Instruction>(U.getUser());
4811 if (cast<IntegerType>(IntPtrTy)->getBitWidth() >
4812 cast<IntegerType>(ScaledRegTy)->getBitWidth())
4867 assert(cast<IntegerType>(IntPtrTy)->getBitWidth() <
4868 cast<IntegerType>(V->getType())->getBitWidth() &&
4955 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() <
4956 cast<IntegerType>(V->getType())->getBitWidth()) {
5060 const Instruction *FirstUser = cast<Instruction>(*Val->user_begin());
5064 const Instruction *UI = cast<Instruction>(U);
5180 Instruction *MovedExt = cast<Instruction>(ExtInst);
5400 LI = cast<LoadInst>(MovedExtInst->getOperand(0));
5593 if (!isa<Instruction>(Src) || DefBB != cast<Instruction>(Src)->getParent())
5598 Instruction *UI = cast<Instruction>(U);
5611 Instruction *UI = cast<Instruction>(U);
5625 Instruction *User = cast<Instruction>(U.getUser());
5707 InsertedInsts.count(cast<Instruction>(*Load->user_begin())))
5716 WorkList.push_back(cast<Instruction>(U));
5734 WorkList.push_back(cast<Instruction>(U));
5800 auto *NewAnd = cast<Instruction>(
5815 if (cast<ConstantInt>(And->getOperand(1))->getValue() == DemandBits) {
6028 auto *TrueInst = cast<Instruction>(SI->getTrueValue());
6038 auto *FalseInst = cast<Instruction>(SI->getFalseValue());
6133 Instruction *UI = cast<Instruction>(U);
6183 auto *UI = cast<Instruction>(U->get());
6193 auto *UI = cast<Instruction>(U->get());
6205 Instruction *OldI = cast<Instruction>(U->getUser());
6234 if (RegWidth <= cast<IntegerType>(OldType)->getBitWidth())
6357 ? cast<ConstantInt>(ValIdx)->getZExtValue()
6361 StoreInst *ST = cast<StoreInst>(CombineInst);
6574 cast<Constant>(Val),
6610 Instruction *ToBePromoted = cast<Instruction>(*Inst->user_begin());
6833 ConstantInt *GEPIIdx = cast<ConstantInt>(GEPI->getOperand(1));
6842 auto *GEPIOpI = cast<Instruction>(GEPIOp);
6865 auto *UI = cast<Instruction>(Usr);
6872 auto *UGEPI = cast<GetElementPtrInst>(Usr);
6881 cast<ConstantInt>(UGEPI->getOperand(1))->getType())
6883 ConstantInt *UGEPIIdx = cast<ConstantInt>(UGEPI->getOperand(1));
6893 ConstantInt *UGEPIIdx = cast<ConstantInt>(UGEPI->getOperand(1));
6902 ConstantInt *UGEPIIdx = cast<ConstantInt>(UGEPI->getOperand(1));
6916 return cast<Instruction>(Usr)->getParent() != SrcBlock;
7050 return optimizeShiftInst(cast<BinaryOperator>(I));
7052 return optimizeCallInst(cast<CallInst>(I), ModifiedDT);
7054 return optimizeSelectInst(cast<SelectInst>(I));
7056 return optimizeShuffleVectorInst(cast<ShuffleVectorInst>(I));
7058 return optimizeSwitchInst(cast<SwitchInst>(I));
7060 return optimizeExtractElementInst(cast<ExtractElementInst>(I));
7200 auto *Br1 = cast<BranchInst>(BB.getTerminator());
lib/CodeGen/GCRootLowering.cpp 163 ConstantPointerNull::get(cast<PointerType>(Root->getAllocatedType())),
227 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts()));
lib/CodeGen/GlobalISel/CallLowering.cpp 97 Type *ElementTy = cast<PointerType>(Arg.Ty)->getElementType();
lib/CodeGen/GlobalISel/IRTranslator.cpp 229 ElementSize * cast<ConstantInt>(AI.getArraySize())->getZExtValue();
390 const BasicBlock &TrueTgt = *cast<BasicBlock>(BrInst.getSuccessor(Succ++));
395 const BasicBlock &BrTgt = *cast<BasicBlock>(BrInst.getSuccessor(Succ));
596 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue();
597 const APInt& High = cast<ConstantInt>(CB.CmpRHS)->getValue();
600 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
1067 unsigned Field = cast<Constant>(Idx)->getUniqueInteger().getZExtValue();
1133 cast<ConstantInt>(CI.getArgOperand(CI.getNumArgOperands() - 1))
1143 auto *MSI = cast<MemSetInst>(&CI);
1454 AllocaInst *Slot = cast<AllocaInst>(CI.getArgOperand(1));
1496 ConstantInt *Cst = cast<ConstantInt>(CI.getArgOperand(1));
1759 for (Type *Ty : cast<StructType>(LP.getType())->elements())
1923 .addShuffleMask(cast<Constant>(U.getOperand(2)));
lib/CodeGen/GlobalISel/LegalizerHelper.cpp 2000 *cast<ConstantFP>(ConstantFP::getZeroValueForNegation(ZeroTy));
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp 93 assert(cast<DIExpression>(Expr)->isValid() && "not an expression");
95 cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(getDL()) &&
106 assert(cast<DIExpression>(Expr)->isValid() && "not an expression");
108 cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(getDL()) &&
112 const DIExpression *DIExpr = cast<DIExpression>(Expr);
123 assert(cast<DIExpression>(Expr)->isValid() && "not an expression");
125 cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(getDL()) &&
129 const DIExpression *DIExpr = cast<DIExpression>(Expr);
142 assert(cast<DIExpression>(Expr)->isValid() && "not an expression");
144 cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(getDL()) &&
164 assert(cast<DILabel>(Label)->isValidLocationForIntrinsic(State.DL) &&
lib/CodeGen/GlobalMerge.cpp 569 const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer());
lib/CodeGen/HardwareLoops.cpp 290 auto *BI = cast<BranchInst>(Pred->getTerminator());
296 auto ICmp = cast<ICmpInst>(BI->getCondition());
342 cast<BranchInst>(BB->getTerminator())->isUnconditional())
381 cast<BranchInst>(BeginBB->getTerminator())->isConditional()) &&
383 auto *LoopGuard = cast<BranchInst>(BeginBB->getTerminator());
426 return cast<Instruction>(Call);
lib/CodeGen/IndirectBrExpandPass.cpp 135 auto *BA = cast<BlockAddress>(BlockAddressUseIt->getUser());
147 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType()));
174 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType()));
lib/CodeGen/InterleavedAccessPass.cpp 367 auto *IndexOperand = cast<ConstantInt>(Extract->getIndexOperand());
lib/CodeGen/InterleavedLoadCombinePass.cpp 970 CastInst &CI = *cast<CastInst>(&Ptr);
983 GetElementPtrInst &GEP = *cast<GetElementPtrInst>(&Ptr);
1225 MemoryUse *MSSALoad = cast<MemoryUse>(MSSAU.createMemoryAccessBefore(
lib/CodeGen/IntrinsicLowering.cpp 334 ConstantPointerNull::get(cast<PointerType>(CI->getType())));
340 ConstantPointerNull::get(cast<PointerType>(CI->getType())));
lib/CodeGen/LexicalScopes.cpp 177 assert(cast<DISubprogram>(Scope)->describes(&MF->getFunction()));
lib/CodeGen/LiveDebugValues.cpp 660 int FI = cast<FixedStackPseudoSourceValue>(PVal)->getFrameIndex();
lib/CodeGen/LiveDebugVariables.cpp 486 auto *Scope = cast<DIScope>(DL.getScope());
1304 assert(cast<DILocalVariable>(Variable)
lib/CodeGen/LowerEmuTLS.cpp 120 EmuTlsVar = cast<GlobalVariable>(
lib/CodeGen/MIRParser/MIParser.cpp 1614 Dest = MachineOperand::CreateCImm(cast<ConstantInt>(C));
1627 Dest = MachineOperand::CreateFPImm(cast<ConstantFP>(C));
lib/CodeGen/MachineFunction.cpp 676 auto *CVal = cast<Constant>(Val);
680 FilterList.push_back(cast<GlobalValue>((*II)->stripPointerCasts()));
lib/CodeGen/MachineInstr.cpp 813 return cast<DILabel>(getOperand(0).getMetadata());
818 return cast<DILocalVariable>(getOperand(2).getMetadata());
823 return cast<DIExpression>(getOperand(3).getMetadata());
1765 auto *DV = cast<DILocalVariable>(getOperand(e - 2).getMetadata());
2018 assert(cast<DIExpression>(Expr)->isValid() && "not an expression");
2019 assert(cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(DL) &&
2034 assert(cast<DIExpression>(Expr)->isValid() && "not an expression");
2035 assert(cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(DL) &&
2152 cast<FixedStackPseudoSourceValue>(A->getPseudoValue())
lib/CodeGen/MachineModuleInfo.cpp 184 Map->UpdateForDeletedBlock(cast<BasicBlock>(getValPtr()));
188 Map->UpdateForRAUWBlock(cast<BasicBlock>(getValPtr()), cast<BasicBlock>(V2));
188 Map->UpdateForRAUWBlock(cast<BasicBlock>(getValPtr()), cast<BasicBlock>(V2));
lib/CodeGen/MachineOperand.cpp 1132 int FrameIndex = cast<FixedStackPseudoSourceValue>(PVal)->getFrameIndex();
1139 cast<GlobalValuePseudoSourceValue>(PVal)->getValue()->printAsOperand(
1145 OS, cast<ExternalSymbolPseudoSourceValue>(PVal)->getSymbol());
lib/CodeGen/MachinePipeliner.cpp 1335 SwingSchedulerDAG *SDAG = cast<SwingSchedulerDAG>(DAG);
lib/CodeGen/PreISelIntrinsicLowering.cpp 79 auto *CI = cast<CallInst>(I->getUser());
lib/CodeGen/RegAllocGreedy.cpp 3173 cast<FixedStackPseudoSourceValue>(A->getPseudoValue())
lib/CodeGen/SafeStack.cpp 291 auto I = cast<const Instruction>(UI.getUser());
360 WorkList.push_back(cast<const Instruction>(I));
543 BasePointer = cast<Instruction>(IRB.CreateIntToPtr(
581 IRB.SetInsertPoint(cast<Instruction>(NewArg)->getNextNode());
599 Instruction *User = cast<Instruction>(U.getUser());
lib/CodeGen/SafeStackColoring.cpp 51 auto *II = cast<IntrinsicInst>(I);
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp 132 unsigned AlignVal = cast<ConstantInt>(Alignment)->getZExtValue();
133 VectorType *VecType = cast<VectorType>(CI->getType());
145 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) {
165 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
270 unsigned AlignVal = cast<ConstantInt>(Alignment)->getZExtValue();
271 VectorType *VecType = cast<VectorType>(Src->getType());
282 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) {
298 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
395 VectorType *VecType = cast<VectorType>(CI->getType());
402 unsigned AlignVal = cast<ConstantInt>(Alignment)->getZExtValue();
413 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
531 unsigned AlignVal = cast<ConstantInt>(Alignment)->getZExtValue();
537 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
603 VectorType *VecType = cast<VectorType>(CI->getType());
623 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
716 VectorType *VecType = cast<VectorType>(Src->getType());
733 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
857 cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
865 cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 1338 LoadSDNode *LD = cast<LoadSDNode>(N);
4729 LoadSDNode *Load = cast<LoadSDNode>(LDST);
4758 StoreSDNode *Store = cast<StoreSDNode>(LDST);
6390 auto L = cast<LoadSDNode>(Op.getNode());
8566 MaskedScatterSDNode *MSC = cast<MaskedScatterSDNode>(N);
8579 MaskedStoreSDNode *MST = cast<MaskedStoreSDNode>(N);
8592 MaskedGatherSDNode *MGT = cast<MaskedGatherSDNode>(N);
8604 MaskedLoadSDNode *MLD = cast<MaskedLoadSDNode>(N);
13570 SDValue Val = cast<StoreSDNode>(N)->getValue();
14030 LoadSDNode *LD = cast<LoadSDNode>(N);
14608 LoadSDNode *LD = cast<LoadSDNode>(N);
14839 StoreSDNode *ST = cast<StoreSDNode>(N);
14964 StoreSDNode *ST = cast<StoreSDNode>(N);
15132 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[I].MemNode);
15161 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[i].MemNode);
15204 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[Idx].MemNode);
15594 StoreSDNode *ST = cast<StoreSDNode>(StoreNodes[i].MemNode);
15779 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[i].MemNode);
15813 LoadSDNode *FirstLoad = cast<LoadSDNode>(LoadNodes[0].MemNode);
15996 LoadSDNode *Ld = cast<LoadSDNode>(LoadNodes[i].MemNode);
16124 StoreSDNode *ST = cast<StoreSDNode>(N);
16337 const auto *LifetimeEnd = cast<LifetimeSDNode>(N);
16506 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Vec.getNode());
17640 if (SDValue Splat = cast<BuildVectorSDNode>(N)->getSplatValue()) {
17659 if (SDValue V = cast<BuildVectorSDNode>(N)->getSplatValue()) {
18416 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(N);
18857 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(N);
20500 if (const auto *LN = cast<LifetimeSDNode>(N))
20611 const bool IsLoad = isa<LoadSDNode>(N) && cast<LoadSDNode>(N)->isSimple();
20629 cast<LSBaseSDNode>(C.getNode())->isSimple();
20821 S = cast<StoreSDNode>(DAG.UpdateNodeOperands(
lib/CodeGen/SelectionDAG/FastISel.cpp 359 cast<Instruction>(*I->user_begin())->getParent() == I->getParent();
389 !FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(V))))
409 Reg = fastMaterializeAlloca(cast<AllocaInst>(V));
441 !fastSelectInstruction(cast<Instruction>(Op)))
459 Reg = fastMaterializeConstant(cast<Constant>(V));
607 if (isa<Instruction>(I) && cast<Instruction>(I)->isCommutative()) {
635 cast<BinaryOperator>(I)->isExact() && isPowerOf2_64(Imm)) {
691 uint64_t Field = cast<ConstantInt>(Idx)->getZExtValue();
811 const auto *ID = cast<ConstantInt>(I->getOperand(PatchPointOpers::IDPos));
817 cast<ConstantInt>(I->getOperand(PatchPointOpers::NBytesPos));
919 cast<ConstantInt>(I->getOperand(PatchPointOpers::NArgPos));
950 const auto *ID = cast<ConstantInt>(I->getOperand(PatchPointOpers::IDPos));
956 cast<ConstantInt>(I->getOperand(PatchPointOpers::NBytesPos));
962 cast<ConstantInt>(C->getOperand(0))->getZExtValue();
967 cast<ConstantInt>(C->getOperand(0))->getZExtValue();
1176 FinalType = cast<PointerType>(Arg.Ty)->getElementType();
1207 PointerType *Ty = cast<PointerType>(Arg.Ty);
1288 const CallInst *Call = cast<CallInst>(I);
1346 const DbgDeclareInst *DI = cast<DbgDeclareInst>(II);
1383 !FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Address))))
1406 const DbgValueInst *DI = cast<DbgValueInst>(II);
1448 const DbgLabelInst *DI = cast<DbgLabelInst>(II);
1842 const BranchInst *BI = cast<BranchInst>(I);
1864 if (FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(I)))
2382 FuncInfo.MBBMap[cast<Instruction>(Add)->getParent()] != FuncInfo.MBB)
2385 return isa<ConstantInt>(cast<AddOperator>(Add)->getOperand(1));
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp 53 if (cast<Instruction>(U)->getParent() != BB || isa<PHINode>(U))
146 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize());
219 if (!isa<AllocaInst>(I) || !StaticAllocaMap.count(cast<AllocaInst>(&I)))
lib/CodeGen/SelectionDAG/InstrEmitter.cpp 682 assert(cast<DILocalVariable>(Var)->isValidLocationForIntrinsic(DL) &&
768 assert(cast<DILabel>(Label)->isValidLocationForIntrinsic(DL) &&
907 MIB.setMemRefs(cast<MachineSDNode>(Node)->memoperands());
1027 MCSymbol *S = cast<LabelSDNode>(Node)->getLabel();
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 322 LLVMC = cast<ConstantFP>(ConstantExpr::getFPTrunc(LLVMC, SType));
380 int SPFI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
483 StoreSDNode *ST = cast<StoreSDNode>(Node);
664 LoadSDNode *LD = cast<LoadSDNode>(Node);
1136 cast<MaskedScatterSDNode>(Node)->getValue().getValueType());
1140 cast<MaskedStoreSDNode>(Node)->getValue().getValueType());
1369 int FI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
1395 int FI = cast<FrameIndexSDNode>(FIPtr.getNode())->getIndex();
1457 int FI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
2734 ISD::ATOMIC_CMP_SWAP, dl, cast<AtomicSDNode>(Node)->getMemoryVT(), VTs,
2736 cast<AtomicSDNode>(Node)->getMemOperand());
2744 cast<AtomicSDNode>(Node)->getMemoryVT(),
2747 cast<AtomicSDNode>(Node)->getMemOperand());
2757 ISD::ATOMIC_CMP_SWAP, dl, cast<AtomicSDNode>(Node)->getMemoryVT(), VTs,
2759 Node->getOperand(3), cast<MemSDNode>(Node)->getMemOperand());
2765 EVT AtomicType = cast<AtomicSDNode>(Node)->getMemoryVT();
2956 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(Node)->getMask();
3160 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node);
3169 ConstantSDNode *CP = cast<ConstantSDNode>(Node);
3792 MVT VT = cast<AtomicSDNode>(Node)->getMemoryVT().getSimpleVT();
4307 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(Node)->getMask();
4558 AtomicSDNode *AM = cast<AtomicSDNode>(Node);
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp 135 ConstantFPSDNode *CN = cast<ConstantFPSDNode>(N);
718 LoadSDNode *L = cast<LoadSDNode>(N);
1020 StoreSDNode *ST = cast<StoreSDNode>(N);
1184 APInt C = cast<ConstantFPSDNode>(N)->getValueAPF().bitcastToAPInt();
1518 LoadSDNode *LD = cast<LoadSDNode>(N);
1657 case ISD::STORE: Res = ExpandFloatOp_STORE(cast<StoreSDNode>(N),
1809 StoreSDNode *ST = cast<StoreSDNode>(N);
2004 StoreSDNode *ST = cast<StoreSDNode>(N);
2122 ConstantFPSDNode *CFPNode = cast<ConstantFPSDNode>(N);
2274 LoadSDNode *L = cast<LoadSDNode>(N);
2336 AtomicSDNode *AM = cast<AtomicSDNode>(N);
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp 70 case ISD::LOAD: Res = PromoteIntRes_LOAD(cast<LoadSDNode>(N)); break;
71 case ISD::MLOAD: Res = PromoteIntRes_MLOAD(cast<MaskedLoadSDNode>(N));
73 case ISD::MGATHER: Res = PromoteIntRes_MGATHER(cast<MaskedGatherSDNode>(N));
164 Res = PromoteIntRes_Atomic0(cast<AtomicSDNode>(N)); break;
178 Res = PromoteIntRes_Atomic1(cast<AtomicSDNode>(N)); break;
182 Res = PromoteIntRes_AtomicCmpSwap(cast<AtomicSDNode>(N), ResNo);
1157 Res = PromoteIntOp_ATOMIC_STORE(cast<AtomicSDNode>(N));
1178 case ISD::STORE: Res = PromoteIntOp_STORE(cast<StoreSDNode>(N),
1180 case ISD::MSTORE: Res = PromoteIntOp_MSTORE(cast<MaskedStoreSDNode>(N),
1182 case ISD::MLOAD: Res = PromoteIntOp_MLOAD(cast<MaskedLoadSDNode>(N),
1184 case ISD::MGATHER: Res = PromoteIntOp_MGATHER(cast<MaskedGatherSDNode>(N),
1186 case ISD::MSCATTER: Res = PromoteIntOp_MSCATTER(cast<MaskedScatterSDNode>(N),
1703 case ISD::LOAD: ExpandIntRes_LOAD(cast<LoadSDNode>(N), Lo, Hi); break;
1735 AtomicSDNode *AN = cast<AtomicSDNode>(N);
1815 MVT VT = cast<AtomicSDNode>(Node)->getMemoryVT().getSimpleVT();
2461 auto Constant = cast<ConstantSDNode>(N);
3558 EVT VT = cast<AtomicSDNode>(N)->getMemoryVT();
3563 cast<AtomicSDNode>(N)->getMemoryVT(), VTs, N->getOperand(0),
3564 N->getOperand(1), Zero, Zero, cast<AtomicSDNode>(N)->getMemOperand());
3612 case ISD::STORE: Res = ExpandIntOp_STORE(cast<StoreSDNode>(N), OpNo); break;
4060 cast<AtomicSDNode>(N)->getMemoryVT(),
4063 cast<AtomicSDNode>(N)->getMemOperand());
4105 ShuffleVectorSDNode *SV = cast<ShuffleVectorSDNode>(N);
lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp 160 int SPFI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
250 LoadSDNode *LD = cast<LoadSDNode>(N);
461 StoreSDNode *St = cast<StoreSDNode>(N);
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp 246 LoadSDNode *LD = cast<LoadSDNode>(Op.getNode());
274 StoreSDNode *ST = cast<StoreSDNode>(Op.getNode());
623 LoadSDNode *LD = cast<LoadSDNode>(Op.getNode());
764 StoreSDNode *ST = cast<StoreSDNode>(Op.getNode());
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp 57 case ISD::LOAD: R = ScalarizeVecRes_LOAD(cast<LoadSDNode>(N));break;
626 Res = ScalarizeVecOp_STORE(cast<StoreSDNode>(N), OpNo);
860 SplitVecRes_LOAD(cast<LoadSDNode>(N), Lo, Hi);
863 SplitVecRes_MLOAD(cast<MaskedLoadSDNode>(N), Lo, Hi);
866 SplitVecRes_MGATHER(cast<MaskedGatherSDNode>(N), Lo, Hi);
872 SplitVecRes_VECTOR_SHUFFLE(cast<ShuffleVectorSDNode>(N), Lo, Hi);
1489 auto FrameIndex = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
1992 Res = SplitVecOp_STORE(cast<StoreSDNode>(N), OpNo);
1995 Res = SplitVecOp_MSTORE(cast<MaskedStoreSDNode>(N), OpNo);
1998 Res = SplitVecOp_MSCATTER(cast<MaskedScatterSDNode>(N), OpNo);
2001 Res = SplitVecOp_MGATHER(cast<MaskedGatherSDNode>(N), OpNo);
2257 auto FrameIndex = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
2723 Res = WidenVecRes_VECTOR_SHUFFLE(cast<ShuffleVectorSDNode>(N));
2726 Res = WidenVecRes_MLOAD(cast<MaskedLoadSDNode>(N));
2729 Res = WidenVecRes_MGATHER(cast<MaskedGatherSDNode>(N));
3710 LoadSDNode *LD = cast<LoadSDNode>(N);
4437 StoreSDNode *ST = cast<StoreSDNode>(N);
4457 MaskedStoreSDNode *MST = cast<MaskedStoreSDNode>(N);
4495 auto *MG = cast<MaskedGatherSDNode>(N);
4514 MaskedScatterSDNode *MSC = cast<MaskedScatterSDNode>(N);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 481 const ConstantSDNode *C = cast<ConstantSDNode>(N);
488 ID.AddPointer(cast<ConstantFPSDNode>(N)->getConstantFPValue());
494 const GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(N);
501 ID.AddPointer(cast<BasicBlockSDNode>(N)->getBasicBlock());
504 ID.AddInteger(cast<RegisterSDNode>(N)->getReg());
507 ID.AddPointer(cast<RegisterMaskSDNode>(N)->getRegMask());
510 ID.AddPointer(cast<SrcValueSDNode>(N)->getValue());
514 ID.AddInteger(cast<FrameIndexSDNode>(N)->getIndex());
518 if (cast<LifetimeSDNode>(N)->hasOffset()) {
519 ID.AddInteger(cast<LifetimeSDNode>(N)->getSize());
520 ID.AddInteger(cast<LifetimeSDNode>(N)->getOffset());
525 ID.AddInteger(cast<JumpTableSDNode>(N)->getIndex());
526 ID.AddInteger(cast<JumpTableSDNode>(N)->getTargetFlags());
530 const ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(N);
541 const TargetIndexSDNode *TI = cast<TargetIndexSDNode>(N);
548 const LoadSDNode *LD = cast<LoadSDNode>(N);
555 const StoreSDNode *ST = cast<StoreSDNode>(N);
562 const MaskedLoadSDNode *MLD = cast<MaskedLoadSDNode>(N);
569 const MaskedStoreSDNode *MST = cast<MaskedStoreSDNode>(N);
576 const MaskedGatherSDNode *MG = cast<MaskedGatherSDNode>(N);
583 const MaskedScatterSDNode *MS = cast<MaskedScatterSDNode>(N);
605 const AtomicSDNode *AT = cast<AtomicSDNode>(N);
612 const MemSDNode *PF = cast<MemSDNode>(N);
617 const ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(N);
625 const BlockAddressSDNode *BA = cast<BlockAddressSDNode>(N);
635 ID.AddInteger(cast<MemSDNode>(N)->getPointerInfo().getAddrSpace());
852 assert(CondCodeNodes[cast<CondCodeSDNode>(N)->get()] &&
854 Erased = CondCodeNodes[cast<CondCodeSDNode>(N)->get()] != nullptr;
855 CondCodeNodes[cast<CondCodeSDNode>(N)->get()] = nullptr;
858 Erased = ExternalSymbols.erase(cast<ExternalSymbolSDNode>(N)->getSymbol());
861 ExternalSymbolSDNode *ESN = cast<ExternalSymbolSDNode>(N);
867 auto *MCSN = cast<MCSymbolSDNode>(N);
872 EVT VT = cast<VTSDNode>(N)->getVT();
2146 auto *CV = cast<ConstantSDNode>(V.getNode());
6489 cast<AtomicSDNode>(E)->refineAlignment(MMO);
6604 cast<MemIntrinsicSDNode>(E)->refineAlignment(MMO);
6753 cast<LoadSDNode>(E)->refineAlignment(MMO);
6855 cast<StoreSDNode>(E)->refineAlignment(MMO);
6922 cast<StoreSDNode>(E)->refineAlignment(MMO);
6978 cast<MaskedLoadSDNode>(E)->refineAlignment(MMO);
7008 cast<MaskedStoreSDNode>(E)->refineAlignment(MMO);
7036 cast<MaskedGatherSDNode>(E)->refineAlignment(MMO);
7077 cast<MaskedScatterSDNode>(E)->refineAlignment(MMO);
7923 return cast<MachineSDNode>(UpdateSDLocOnMergeSDNode(E, DL));
7982 assert(cast<DILocalVariable>(Var)->isValidLocationForIntrinsic(DL) &&
7993 assert(cast<DILocalVariable>(Var)->isValidLocationForIntrinsic(DL) &&
8004 assert(cast<DILocalVariable>(Var)->isValidLocationForIntrinsic(DL) &&
8015 assert(cast<DILocalVariable>(Var)->isValidLocationForIntrinsic(DL) &&
8125 assert(cast<DILabel>(Label)->isValidLocationForIntrinsic(DL) &&
lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp 211 auto *LSBase = cast<LSBaseSDNode>(Base.getNode());
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 1234 Instruction &VAsInst = *cast<Instruction>(V);
1529 VectorType *VecTy = cast<VectorType>(V->getType());
1622 SuccessorColor = cast<Instruction>(ParentPad)->getParent();
1870 cast<PointerType>(I.getOperand(0)->getType())->getAddressSpace());
2047 const FCmpInst *FC = cast<FCmpInst>(Cond);
2212 cast<Constant>(Cases[0].CmpRHS)->isNullValue()) {
2356 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue();
2357 const APInt& High = cast<ConstantInt>(CB.CmpRHS)->getValue();
2362 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
3191 cast<PossiblyExactOperator>(&I)->isExact());
3542 Constant *MaskV = cast<Constant>(I.getOperand(2));
3745 Indices = cast<ConstantExpr>(&I)->getIndices();
3799 Indices = cast<ConstantExpr>(&I)->getIndices();
3860 unsigned Field = cast<Constant>(Idx)->getUniqueInteger().getZExtValue();
4274 Alignment = cast<ConstantInt>(I.getArgOperand(2))->getZExtValue();
4392 unsigned Alignment = (cast<ConstantInt>(I.getArgOperand(2)))->getZExtValue();
4433 Alignment = cast<ConstantInt>(I.getArgOperand(1))->getZExtValue();
4500 unsigned Alignment = (cast<ConstantInt>(I.getArgOperand(1)))->getZExtValue();
4809 DAG.getTargetConstantFP(*cast<ConstantFP>(Arg), SDLoc(), VT));
5676 DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata()));
5676 DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata()));
5689 DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata()));
5689 DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata()));
5958 cast<AllocaInst>(I.getArgOperand(0)->stripPointerCasts());
6204 ConstantInt *CI = cast<ConstantInt>(I.getArgOperand(1));
6212 ConstantInt *CI = cast<ConstantInt>(I.getArgOperand(1));
6398 AllocaInst *Slot = cast<AllocaInst>(I.getArgOperand(1));
6437 Metadata *MD = cast<MetadataAsValue>(I.getArgOperand(0))->getMetadata();
6438 MF.addCodeViewAnnotation(Label, cast<MDNode>(MD));
6445 const Function *F = cast<Function>(I.getArgOperand(1)->stripPointerCasts());
6470 const Constant *TypeMap = cast<Constant>(I.getArgOperand(1));
6472 FrameIndexSDNode *FI = cast<FrameIndexSDNode>(getValue(Alloca).getNode());
6545 unsigned rw = cast<ConstantInt>(I.getArgOperand(1))->getZExtValue();
6574 cast<ConstantInt>(I.getArgOperand(0))->getSExtValue();
6649 AllocaInst *Slot = cast<AllocaInst>(Arg);
6671 auto *Fn = cast<Function>(I.getArgOperand(0)->stripPointerCasts());
6672 auto *Idx = cast<ConstantInt>(I.getArgOperand(2));
6697 const auto *CPI = cast<CatchPadInst>(I.getArgOperand(0));
7086 EHInfo->addIPToStateRange(cast<InvokeInst>(CLI.CS.getInstruction()),
7853 cast<Constant>(OpVal), TLI.getPointerTy(DAG.getDataLayout()));
8009 const InlineAsm *IA = cast<InlineAsm>(CS.getCalledValue());
8042 const InlineAsm *IA = cast<InlineAsm>(CS.getCalledValue());
8071 (ArgNo - 1) >= (cast<CallBrInst>(I)->getNumArgOperands() -
8072 cast<CallBrInst>(I)->getNumIndirectDests())) {
8073 const auto *BA = cast<BlockAddress>(OpInfo.CallOperandVal);
8789 populateCallLoweringInfo(CLI, cast<CallBase>(CS.getInstruction()),
9081 cast<PointerType>(CLI.RetTy)->getAddressSpace());
9117 FinalType = cast<PointerType>(Args[i].Ty)->getElementType();
9136 cast<PointerType>(Args[i].Ty)->getAddressSpace());
9175 PointerType *Ty = cast<PointerType>(Args[i].Ty);
9405 if (cast<Instruction>(U)->getParent() != &Entry || isa<SwitchInst>(U))
9474 const AllocaInst *AI = cast<AllocaInst>(Dst);
9637 cast<PointerType>(Arg.getType())->getAddressSpace());
9975 FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(PHIOp)) &&
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp 115 if (cast<ConstantSDNode>(this)->isOpaque())
157 if (cast<ConstantSDNode>(this)->isOpaque())
397 switch (cast<CondCodeSDNode>(this)->get()) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 602 assert(cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(DL) &&
1203 cast<Constant>(CPI->getArgOperand(0))->isNullValue();
1212 int Index = cast<ConstantInt>(IndexArg)->getZExtValue();
1481 FastIS->tryToFoldLoad(cast<LoadInst>(BeforeInst), Inst)) {
3463 Res = cast<MachineSDNode>(MorphNode(NodeToMatch, TargetOpc, VTList,
lib/CodeGen/SelectionDAG/StatepointLowering.cpp 977 PointerType *CalleeType = cast<PointerType>(
980 cast<FunctionType>(CalleeType->getElementType())->getReturnType();
lib/CodeGen/SelectionDAG/TargetLowering.cpp 4184 const InlineAsm *IA = cast<InlineAsm>(CS.getCalledValue());
6504 auto FrameIndex = cast<FrameIndexSDNode>(StackBase.getNode())->getIndex();
6657 auto FrameIndex = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
lib/CodeGen/ShadowStackGCLowering.cpp 109 Constant *C = cast<Constant>(Roots[I].first->getArgOperand(1));
243 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts()));
lib/CodeGen/SjLjEHPrepare.cpp 160 auto *SelI = cast<Instruction>(SelVal);
270 cast<Instruction>(Inst.user_back())->getParent() == &BB &&
283 Instruction *UI = cast<Instruction>(U);
298 PHINode *PN = cast<PHINode>(U);
lib/CodeGen/StackColoring.cpp 897 << cast<DILocalVariable>(VI.Var)->getName() << "].\n");
lib/CodeGen/StackProtector.cpp 161 const auto *I = cast<Instruction>(U);
164 if (AI == cast<StoreInst>(I)->getValueOperand())
170 if (AI == cast<AtomicCmpXchgInst>(I)->getNewValOperand())
174 if (AI == cast<PtrToIntInst>(I)->getOperand(0))
180 const auto *CI = cast<CallInst>(I);
197 const auto *PN = cast<PHINode>(I);
433 AI = cast<AllocaInst>(SPCall->getArgOperand(1));
lib/CodeGen/SwiftErrorValueTracking.cpp 222 ? cast<Instruction>(SwiftErrorVal)->getDebugLoc()
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 85 Section = cast<MDString>(MFE.Val)->getString();
277 if (cast<MDNode>(Operand)->getNumOperands() != 2)
279 for (const auto &Option : cast<MDNode>(Operand)->operands()) {
294 cast<MDString>(cast<MDNode>(Operand)->getOperand(0))->getString());
321 CFGProfile = cast<MDNode>(MFE.Val);
333 const Function *F = cast<Function>(V->getValue());
372 cast<MCSymbolELF>(getContext().getOrCreateSymbol(NameData));
650 cast<GlobalVariable>(GO));
890 for (const auto &Piece : cast<MDNode>(Option)->operands())
1002 cast<GlobalVariable>(GO)) < 32)
1010 cast<GlobalVariable>(GO)) < 32)
1453 for (const auto &Piece : cast<MDNode>(Option)->operands()) {
1548 cast<MCSectionCOFF>(StaticCtorSection));
1555 cast<MCSectionCOFF>(StaticDtorSection));
1591 cast<GlobalVariable>(RHS)->hasInitializer() || RHS->hasSection())
lib/CodeGen/ValueTypes.cpp 96 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType());
101 return cast<VectorType>(LLVMTy)->getNumElements();
456 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth());
466 VectorType *VTy = cast<VectorType>(Ty);
482 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth());
484 VectorType *VTy = cast<VectorType>(Ty);
lib/CodeGen/WasmEHPrepare.cpp 185 auto *ThrowI = cast<CallInst>(U);
222 LPadContextGV = cast<GlobalVariable>(
256 auto *CPI = cast<CatchPadInst>(BB->getFirstNonPHI());
259 cast<Constant>(CPI->getArgOperand(0))->isNullValue())
280 auto *FPI = cast<FuncletPadInst>(BB->getFirstNonPHI());
329 auto *CPI = cast<CatchPadInst>(FPI);
lib/CodeGen/WinEHPrepare.cpp 148 Constant *TypeInfo = cast<Constant>(CPI->getArgOperand(0));
152 HT.TypeDescriptor = cast<GlobalVariable>(TypeInfo->stripPointerCasts());
153 HT.Adjectives = cast<ConstantInt>(CPI->getArgOperand(1))->getZExtValue();
229 auto *CleanupPad = cast<CleanupReturnInst>(TI)->getCleanupPad();
247 auto *CatchPad = cast<CatchPadInst>(CatchPadBB->getFirstNonPHI());
264 const auto *UserI = cast<Instruction>(U);
288 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI);
307 const auto *UserI = cast<Instruction>(U);
352 cast<CatchPadInst>((*CatchSwitch->handler_begin())->getFirstNonPHI());
355 cast<Constant>(CatchPad->getArgOperand(0)->stripPointerCasts());
374 const auto *UserI = cast<Instruction>(U);
390 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI);
407 const auto *UserI = cast<Instruction>(U);
549 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad);
557 const auto *Catch = cast<CatchPadInst>(CatchBlock->getFirstNonPHI());
559 cast<ConstantInt>(Catch->getArgOperand(0))->getZExtValue());
599 const auto *Cleanup = cast<CleanupPadInst>(Pad);
639 cast<CleanupPadInst>(UserUnwindPad)->getParentPad();
903 Instruction *UserI = cast<Instruction>(U.getUser());
968 auto *CI = cast<CallInst>(&*CallI);
1095 auto *UsingInst = cast<Instruction>(U.getUser());
1170 auto *UsingInst = cast<Instruction>(U.getUser());
1203 BranchInst *Goto = cast<BranchInst>(IncomingBlock->getTerminator());
lib/DebugInfo/DWARF/DWARFVerifier.cpp 1454 auto *CU = cast<DWARFCompileUnit>(U.get());
lib/DebugInfo/PDB/UDTLayout.cpp 87 return *cast<PDBSymbolData>(Symbol);
lib/DebugInfo/Symbolize/Symbolize.cpp 403 return cast<ObjectFile>(Bin);
lib/ExecutionEngine/ExecutionEngine.cpp 629 auto* VTy = cast<VectorType>(C->getType());
650 cast<GEPOperator>(CE)->accumulateConstantOffset(DL, Offset);
658 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
664 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
670 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
719 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
891 Result.FloatVal = cast<ConstantFP>(C)->getValueAPF().convertToFloat();
894 Result.DoubleVal = cast<ConstantFP>(C)->getValueAPF().convertToDouble();
899 Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt();
902 Result.IntVal = cast<ConstantInt>(C)->getValue();
928 auto* VTy = cast<VectorType>(C->getType());
948 Result.AggregateVal[i].FloatVal = cast<ConstantFP>(
970 Result.AggregateVal[i].DoubleVal = cast<ConstantFP>(
992 Result.AggregateVal[i].IntVal = cast<ConstantInt>(
1051 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy())
1053 if (cast<VectorType>(Ty)->getElementType()->isFloatTy())
1055 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) {
1079 Result.IntVal = APInt(cast<IntegerType>(Ty)->getBitWidth(), 0);
1100 auto *VT = cast<VectorType>(Ty);
1115 const unsigned elemBitWidth = cast<IntegerType>(ElemT)->getBitWidth();
1161 getDataLayout().getStructLayout(cast<StructType>(CPS->getType()));
lib/ExecutionEngine/Interpreter/Execution.cpp 77 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
80 } else if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) {
592 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
623 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
801 if (cast<VectorType>(Ty)->getElementType()->isFloatTy())
806 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy())
958 Dest = cast<BasicBlock>(Case.getCaseSuccessor());
1058 const ConstantInt *CPU = cast<ConstantInt>(I.getOperand());
1068 cast<IntegerType>(I.getOperand()->getType())->getBitWidth();
1146 IL->LowerIntrinsicCall(cast<CallInst>(CS.getInstruction()));
1276 unsigned DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth();
1283 IntegerType *DITy = cast<IntegerType>(DstTy);
1296 unsigned DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth();
1303 auto *DITy = cast<IntegerType>(DstTy);
1316 unsigned DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth();
1324 auto *DITy = cast<IntegerType>(DstTy);
1384 uint32_t DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth();
1401 uint32_t DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1422 uint32_t DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth();
1439 unsigned DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1519 uint32_t DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1834 VectorType *Ty = cast<VectorType>(I.getType());
1867 VectorType *Ty = cast<VectorType>(I.getType());
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp 77 switch (cast<IntegerType>(Ty)->getBitWidth()) {
lib/ExecutionEngine/MCJIT/MCJIT.cpp 571 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp 41 auto *F = cloneFunctionDecl(*A.getParent(), *cast<Function>(Aliasee));
47 *cast<GlobalVariable>(Aliasee));
222 cast<GlobalValue>(cast<GlobalAlias>(GV)->getAliasee()));
222 cast<GlobalValue>(cast<GlobalAlias>(GV)->getAliasee()));
227 if (Partition.count(cast<GlobalValue>(A.getAliasee())))
lib/ExecutionEngine/Orc/ExecutionUtils.cpp 71 auto *Priority = cast<ConstantInt>(CS->getOperand(0));
108 if (CtorDtor.Data && cast<GlobalValue>(CtorDtor.Data)->isDeclaration()) {
lib/ExecutionEngine/Orc/IndirectionUtils.cpp 289 Function::Create(cast<FunctionType>(F.getValueType()),
lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp 90 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 507 auto *MachO = cast<MachOObjectFile>(Obj);
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp 143 auto &O = *cast<MachOObjectFile>(RI->getObject());
lib/FuzzMutate/Operations.cpp 172 Type *Ty = cast<PointerType>(Srcs[0]->getType())->getElementType();
214 unsigned Idx = cast<ConstantInt>(Srcs[1])->getZExtValue();
226 auto *STy = cast<StructType>(Cur[0]->getType());
237 auto *STy = cast<StructType>(Cur[0]->getType());
247 auto *CTy = cast<CompositeType>(Cur[0]->getType());
257 auto *CTy = cast<CompositeType>(Cur[0]->getType());
269 unsigned Idx = cast<ConstantInt>(Srcs[2])->getZExtValue();
301 auto *FirstTy = cast<VectorType>(Cur[0]->getType());
lib/FuzzMutate/RandomIRBuilder.cpp 57 cast<PointerType>(Ptr->getType())->getElementType(), Ptr, "L", &*IP);
lib/IR/AbstractCallSite.cpp 84 MDNode *OpMD = cast<MDNode>(Op.get());
87 cast<ConstantInt>(CBCalleeIdxAsCM->getValue())->getZExtValue();
108 auto *OpAsCM = cast<ConstantAsMetadata>(OpAsM);
112 int64_t Idx = cast<ConstantInt>(OpAsCM->getValue())->getSExtValue();
124 auto *VarArgFlagAsCM = cast<ConstantAsMetadata>(VarArgFlagAsM);
lib/IR/AsmWriter.cpp 571 OS << 'i' << cast<IntegerType>(Ty)->getBitWidth();
575 FunctionType *FTy = cast<FunctionType>(Ty);
592 StructType *STy = cast<StructType>(Ty);
609 PointerType *PTy = cast<PointerType>(Ty);
617 ArrayType *ATy = cast<ArrayType>(Ty);
624 VectorType *PTy = cast<VectorType>(Ty);
2341 auto *V = cast<ValueAsMetadata>(MD);
3093 printAliasSummary(cast<AliasSummary>(&Summary));
3095 printFunctionSummary(cast<FunctionSummary>(&Summary));
3097 printGlobalVarSummary(cast<GlobalVarSummary>(&Summary));
4119 Nodes[I->second] = cast<MDNode>(I->first);
4317 W.printIndirectSymbol(cast<GlobalIndirectSymbol>(GV));
lib/IR/AutoUpgrade.cpp 857 auto Ctor = cast<Constant>(Init->getOperand(i));
939 cast<IntegerType>(Mask->getType())->getBitWidth());
989 unsigned ShiftVal = cast<llvm::ConstantInt>(Shift)->getZExtValue();
1219 Aligned ? cast<VectorType>(Data->getType())->getBitWidth() / 8 : 1;
1239 Aligned ? cast<VectorType>(Passthru->getType())->getBitWidth() / 8 : 1;
1680 Type *SrcEltTy = cast<VectorType>(Arg1->getType())->getElementType();
1709 VectorType *VTy = cast<VectorType>(Arg1->getType());
1808 cast<ConstantInt>(CI->getArgOperand(3))->getZExtValue() != 4)) {
1998 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2001 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2101 cast<ConstantInt>(CI->getArgOperand(3))->getZExtValue() != 4)) {
2179 Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2252 VectorType *SrcTy = cast<VectorType>(CI->getArgOperand(0)->getType());
2253 VectorType *DstTy = cast<VectorType>(CI->getType());
2296 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2380 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2386 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2393 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2399 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2408 unsigned Imm = cast <ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2409 VectorType *VecTy = cast<VectorType>(CI->getType());
2422 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2466 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2490 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2491 VectorType *VecTy = cast<VectorType>(CI->getType());
2513 uint8_t Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2544 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2545 VectorType *VecTy = cast<VectorType>(CI->getType());
2566 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2585 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
2604 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
2682 VectorType *FTy = cast<VectorType>(CI->getType());
2691 VectorType *FTy = cast<VectorType>(CI->getType());
2701 VectorType *FTy = cast<VectorType>(CI->getType());
2710 VectorType *FTy = cast<VectorType>(CI->getType());
3028 VectorType *VTy = cast<VectorType>(CI->getType());
3111 cast<ConstantInt>(CI->getArgOperand(4))->getZExtValue() != 4) {
3168 cast<ConstantInt>(CI->getArgOperand(4))->getZExtValue() != 4)) {
3223 cast<ConstantInt>(CI->getArgOperand(4))->getZExtValue() != 4)) {
3505 cast<Instruction>(NewCall)->copyFastMathFlags(CI);
3516 cast<Instruction>(NewCall)->copyFastMathFlags(CI);
3595 VectorType *FltIdxTy = cast<VectorType>(Args[2]->getType());
3704 auto *MemCI = cast<MemIntrinsic>(NewCall);
3706 const ConstantInt *Align = cast<ConstantInt>(CI->getArgOperand(3));
3912 NewCall->setTailCallKind(cast<CallInst>(CI)->getTailCallKind());
lib/IR/BasicBlock.cpp 75 BlockAddress *BA = cast<BlockAddress>(user_back());
lib/IR/ConstantFold.cpp 162 return ConstantPointerNull::get(cast<PointerType>(DestTy));
215 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 &&
217 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8;
315 cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth();
550 !cast<GEPOperator>(CE)->getInRangeIndex().hasValue() &&
576 VectorType *DestVecTy = cast<VectorType>(DestTy);
613 uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth();
626 return ConstantPointerNull::get(cast<PointerType>(DestTy));
647 GEPOperator *GEPO = cast<GEPOperator>(CE);
652 bool isOne = isa<ConstantInt>(Idx) && cast<ConstantInt>(Idx)->isOne();
664 ConstantInt *CI = cast<ConstantInt>(CE->getOperand(2));
694 uint32_t BitWidth = cast<IntegerType>(DestTy)->getBitWidth();
701 uint32_t BitWidth = cast<IntegerType>(DestTy)->getBitWidth();
710 uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth();
720 (cast<IntegerType>(V->getType())->getBitWidth() & 7) == 0)
749 auto *Cond = cast<Constant>(CondV->getOperand(i));
921 NumElts = cast<SequentialType>(Agg->getType())->getNumElements();
1146 GlobalValue *GV = cast<GlobalValue>(CE1->getOperand(0));
1335 if (!isa<ConstantExpr>(T) || cast<ConstantExpr>(T)->getOpcode() != Opcode)
1411 if (cast<ConstantInt>(C1)->getValue().getActiveBits() > 64 ||
1412 cast<ConstantInt>(C2)->getValue().getActiveBits() > 64)
1417 int64_t C1Val = cast<ConstantInt>(C1)->getSExtValue();
1418 int64_t C2Val = cast<ConstantInt>(C2)->getSExtValue();
1482 ConstantExpr *CE1 = cast<ConstantExpr>(V1);
1626 ConstantExpr *CE1 = cast<ConstantExpr>(V1);
1658 GEPOperator *CE1GEP = cast<GEPOperator>(CE1);
1711 ConstantExpr *CE2 = cast<ConstantExpr>(V2);
1724 GEPOperator *CE2GEP = cast<GEPOperator>(CE2);
1726 return areGlobalsPotentiallyEqual(cast<GlobalValue>(CE1Op0),
1727 cast<GlobalValue>(CE2Op0));
1862 const APInt &V1 = cast<ConstantInt>(C1)->getValue();
1863 const APInt &V2 = cast<ConstantInt>(C2)->getValue();
1878 const APFloat &C1V = cast<ConstantFP>(C1)->getValueAPF();
1879 const APFloat &C2V = cast<ConstantFP>(C2)->getValueAPF();
2127 if (cast<Constant>(Idxs[0])->isNullValue()) return true;
2135 auto *CV = cast<ConstantDataVector>(Idxs[0]);
2142 if (!cast<Constant>(Idxs[i])->isNullValue())
2176 Constant *Idx0 = cast<Constant>(Idxs[0]);
2180 cast<VectorType>(GEPTy)->getNumElements(), C)
2187 !cast<Constant>(Idxs[i])->isNullValue()) {
2192 PointerType *PtrTy = cast<PointerType>(C->getType()->getScalarType());
2290 Optional<unsigned> IRIndex = cast<GEPOperator>(CE)->getInRangeIndex();
2295 cast<GEPOperator>(CE)->getSourceElementType(), CE->getOperand(0),
2296 NewIndices, InBounds && cast<GEPOperator>(CE)->isInBounds(),
2338 Prev = Ty, Ty = cast<CompositeType>(Ty)->getTypeAtIndex(Idxs[i]), ++i) {
2357 auto *STy = cast<SequentialType>(Ty);
2373 auto *CV = cast<ConstantDataVector>(Idxs[i]);
2376 auto *CI = cast<ConstantInt>(CV->getElementAsConstant(I));
2402 Constant *CurrIdx = cast<Constant>(Idxs[i]);
2404 NewIdxs[i - 1] ? NewIdxs[i - 1] : cast<Constant>(Idxs[i - 1]);
2455 if (!NewIdxs[i]) NewIdxs[i] = cast<Constant>(Idxs[i]);
lib/IR/Constants.cpp 313 return ConstantPointerNull::get(cast<PointerType>(Ty));
354 VectorType *VTy = cast<VectorType>(Ty);
416 cast<Constant>(V)->destroyConstant();
534 cast<BlockAddress>(LHSOp0)->getFunction() ==
535 cast<BlockAddress>(RHSOp0)->getFunction())
549 Result |= cast<Constant>(getOperand(i))->needsRelocation();
654 Constant *C = get(cast<IntegerType>(Ty->getScalarType()), V, isSigned);
879 return getStructElement(cast<ConstantInt>(C)->getZExtValue());
912 return getStructElement(cast<ConstantInt>(C)->getZExtValue());
1216 return cast<InsertValueConstantExpr>(this)->Indices;
1220 return cast<CompareConstantExpr>(this)->predicate;
1277 auto *GEPO = cast<GEPOperator>(this);
1426 return cast<ConstantInt>(C)->getValue();
1509 NewF = cast<Function>(To->stripPointerCasts());
1512 NewBB = cast<BasicBlock>(To);
1823 PointerType *SrcScalarTy = cast<PointerType>(C->getType()->getScalarType());
1824 PointerType *DstScalarTy = cast<PointerType>(DstTy->getScalarType());
2012 Ty = cast<PointerType>(C->getType()->getScalarType())->getElementType();
2015 cast<PointerType>(C->getType()->getScalarType())->getElementType());
2049 Constant *Idx = cast<Constant>(Idxs[i]);
2858 Constant *ToC = cast<Constant>(To);
2872 Constant *Val = cast<Constant>(O->get());
2899 Constant *ToC = cast<Constant>(To);
2912 Constant *Val = cast<Constant>(O->get());
2935 Constant *ToC = cast<Constant>(To);
2961 Constant *To = cast<Constant>(ToV);
3019 const auto *GO = cast<GEPOperator>(this);
lib/IR/ConstantsContext.h 107 : ConstantExpr(cast<VectorType>(C1->getType())->getElementType(),
151 cast<VectorType>(C1->getType())->getElementType(),
152 cast<VectorType>(C3->getType())->getNumElements()),
196 return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
228 return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
261 return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
291 return isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V));
557 : cast<PointerType>(Ops[0]->getType()->getScalarType())
lib/IR/Core.cpp 759 return wrap(cast<SequentialType>(Ty)->getElementType());
991 cast<MDNode>(MD->getMetadata()), Index);
994 return wrap(cast<User>(V)->getOperand(Index));
999 return wrap(&cast<User>(V)->getOperandUse(Index));
1011 return cast<User>(V)->getNumOperands();
1124 auto *MD = cast<MetadataAsValue>(unwrap(V));
1127 return cast<MDNode>(MD->getMetadata())->getNumOperands();
1179 auto *MD = cast<MetadataAsValue>(unwrap(V));
1184 const auto *N = cast<MDNode>(MD->getMetadata());
1421 StructType *Ty = cast<StructType>(unwrap(StructTy));
1646 cast<PointerType>(Val->getType()->getScalarType())->getElementType();
1657 cast<PointerType>(Val->getType()->getScalarType())->getElementType();
2201 auto *PTy = cast<PointerType>(unwrap(Ty));
3048 L ? cast<MDNode>(unwrap<MetadataAsValue>(L)->getMetadata()) : nullptr;
3114 cast<FunctionType>(cast<PointerType>(V->getType())->getElementType());
3114 cast<FunctionType>(cast<PointerType>(V->getType())->getElementType());
3138 cast<Function>(unwrap(PersFn)));
3212 addClause(cast<Constant>(unwrap(ClauseVal)));
3484 PointerType *Ty = cast<PointerType>(V->getType());
3589 cast<PointerType>(Val->getType()->getScalarType())->getElementType();
3606 cast<PointerType>(Val->getType()->getScalarType())->getElementType();
3622 cast<PointerType>(Val->getType()->getScalarType())->getElementType();
3651 return cast<AtomicCmpXchgInst>(P)->isVolatile();
3662 return cast<AtomicCmpXchgInst>(P)->setVolatile(isVolatile);
3681 O = cast<AtomicRMWInst>(P)->getOrdering();
3691 return cast<StoreInst>(P)->setOrdering(O);
3843 cast<FunctionType>(cast<PointerType>(V->getType())->getElementType());
3843 cast<FunctionType>(cast<PointerType>(V->getType())->getElementType());
3944 return cast<AtomicCmpXchgInst>(P)->getSyncScopeID() ==
3954 return cast<AtomicCmpXchgInst>(P)->setSyncScopeID(SSID);
3959 return mapToLLVMOrdering(cast<AtomicCmpXchgInst>(P)->getSuccessOrdering());
3967 return cast<AtomicCmpXchgInst>(P)->setSuccessOrdering(O);
3972 return mapToLLVMOrdering(cast<AtomicCmpXchgInst>(P)->getFailureOrdering());
3980 return cast<AtomicCmpXchgInst>(P)->setFailureOrdering(O);
lib/IR/DIBuilder.cpp 112 auto *TMF = cast<DIMacroFile>(I.first);
134 return cast<DIScope>(N);
566 cast<DISubprogram>(T)->isDefinition() == false)) &&
615 Elts.push_back(cast<DIType>(Elements[i]));
797 /*IsDistinct=*/IsDefinition, VMContext, cast<DIScope>(Context), Name,
lib/IR/DataLayout.cpp 561 getTypeAllocSize(cast<VectorType>(Ty)->getElementType());
562 Alignment *= cast<VectorType>(Ty)->getNumElements();
675 return getPointerSizeInBits(cast<PointerType>(Ty)->getAddressSpace());
691 return getIndexSizeInBits(cast<PointerType>(Ty)->getAddressSpace());
711 unsigned AS = cast<PointerType>(Ty)->getAddressSpace();
716 return getAlignment(cast<ArrayType>(Ty)->getElementType(), abi_or_pref);
720 if (cast<StructType>(Ty)->isPacked() && abi_or_pref)
724 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
817 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue();
826 if (int64_t arrayIdx = cast<ConstantInt>(Idx)->getSExtValue())
lib/IR/DebugInfo.cpp 92 processSubprogram(cast<DISubprogram>(RT));
596 cast<Instruction>(DbgVal->user_back())->eraseFromParent();
634 auto *NewSP = cast<DISubprogram>(Mapper.mapNode(SP));
lib/IR/DebugInfoMetadata.cpp 583 return const_cast<DISubprogram *>(cast<DISubprogram>(this));
lib/IR/DebugLoc.cpp 94 Last = cast<DILocation>(Found);
123 auto *Scope = cast<DIScope>(getScope());
lib/IR/DiagnosticInfo.cpp 237 *cast<BasicBlock>(CodeRegion)->getParent(), Loc, CodeRegion) {}
271 *cast<BasicBlock>(CodeRegion)->getParent(), Loc, CodeRegion) {}
292 *cast<BasicBlock>(CodeRegion)->getParent(), Loc, CodeRegion) {}
306 *cast<BasicBlock>(CodeRegion)->getParent(),
325 *cast<BasicBlock>(CodeRegion)->getParent(), Loc, CodeRegion) {}
lib/IR/Dominators.cpp 231 Instruction *UserInst = cast<Instruction>(U.getUser());
249 Instruction *UserInst = cast<Instruction>(U.getUser());
lib/IR/Function.cpp 633 Result += "i" + utostr(cast<IntegerType>(Ty)->getBitWidth());
984 return IntegerType::get(Context, 2 * cast<IntegerType>(Ty)->getBitWidth());
991 IntegerType *ITy = cast<IntegerType>(Ty);
1004 return VectorType::getHalfElementsVectorType(cast<VectorType>(
1096 return cast<Function>(
1231 cast<VectorType>(ArgTys[D.getArgumentNumber()])) != Ty;
lib/IR/Globals.cpp 108 return cast<GlobalObject>(this)->getAlignment();
172 return cast<GlobalObject>(this)->getSection();
185 return cast<GlobalObject>(this)->getComdat();
lib/IR/IRBuilder.cpp 62 auto *PT = cast<PointerType>(Ptr->getType());
112 cast<MemSetInst>(CI)->setDestAlignment(Align);
142 cast<AtomicMemSetInst>(CI)->setDestAlignment(Align);
173 auto* MCI = cast<MemCpyInst>(CI);
216 auto *AMCI = cast<AtomicMemCpyInst>(CI);
253 auto *MMI = cast<MemMoveInst>(CI);
473 auto *PtrTy = cast<PointerType>(Ptr->getType());
493 auto *PtrTy = cast<PointerType>(Ptr->getType());
525 auto PtrsTy = cast<VectorType>(Ptrs->getType());
526 auto PtrTy = cast<PointerType>(PtrsTy->getElementType());
555 auto PtrsTy = cast<VectorType>(Ptrs->getType());
556 auto DataTy = cast<VectorType>(Data->getType());
560 auto PtrTy = cast<PointerType>(PtrsTy->getElementType());
607 auto *FuncPtrType = cast<PointerType>(ActualCallee->getType());
658 auto *FuncPtrType = cast<PointerType>(ActualInvokee->getType());
lib/IR/Instruction.cpp 101 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b);
105 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b);
109 cast<PossiblyExactOperator>(this)->setIsExact(b);
113 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap();
117 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap();
126 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(false);
127 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(false);
134 cast<PossiblyExactOperator>(this)->setIsExact(false);
138 cast<GetElementPtrInst>(this)->setIsInBounds(false);
146 return cast<PossiblyExactOperator>(this)->isExact();
151 cast<FPMathOperator>(this)->setFast(B);
156 cast<FPMathOperator>(this)->setHasAllowReassoc(B);
161 cast<FPMathOperator>(this)->setHasNoNaNs(B);
166 cast<FPMathOperator>(this)->setHasNoInfs(B);
171 cast<FPMathOperator>(this)->setHasNoSignedZeros(B);
176 cast<FPMathOperator>(this)->setHasAllowReciprocal(B);
181 cast<FPMathOperator>(this)->setHasApproxFunc(B);
186 cast<FPMathOperator>(this)->setFastMathFlags(FMF);
191 cast<FPMathOperator>(this)->copyFastMathFlags(FMF);
196 return cast<FPMathOperator>(this)->isFast();
201 return cast<FPMathOperator>(this)->hasAllowReassoc();
206 return cast<FPMathOperator>(this)->hasNoNaNs();
211 return cast<FPMathOperator>(this)->hasNoInfs();
216 return cast<FPMathOperator>(this)->hasNoSignedZeros();
221 return cast<FPMathOperator>(this)->hasAllowReciprocal();
226 return cast<FPMathOperator>(this)->hasAllowContract();
231 return cast<FPMathOperator>(this)->hasApproxFunc();
236 return cast<FPMathOperator>(this)->getFastMathFlags();
385 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() &&
386 (AI->getAlignment() == cast<AllocaInst>(I2)->getAlignment() ||
389 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() &&
390 (LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() ||
392 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() &&
393 LI->getSyncScopeID() == cast<LoadInst>(I2)->getSyncScopeID();
395 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() &&
396 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() ||
398 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() &&
399 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID();
401 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate();
403 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
404 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
405 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() &&
406 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2));
408 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() &&
409 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() &&
410 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2));
412 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() &&
413 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() &&
414 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2));
416 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices();
418 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices();
420 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() &&
421 FI->getSyncScopeID() == cast<FenceInst>(I2)->getSyncScopeID();
423 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() &&
424 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() &&
426 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() &&
428 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() &&
430 cast<AtomicCmpXchgInst>(I2)->getSyncScopeID();
432 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() &&
433 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() &&
434 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() &&
435 RMWI->getSyncScopeID() == cast<AtomicRMWInst>(I2)->getSyncScopeID();
461 const PHINode *otherPHI = cast<PHINode>(I);
499 const Instruction *I = cast<Instruction>(U.getUser());
527 return !cast<CallBase>(this)->doesNotReadMemory();
529 return !cast<StoreInst>(this)->isUnordered();
547 return !cast<CallBase>(this)->onlyReadsMemory();
549 return !cast<LoadInst>(this)->isUnordered();
562 return cast<LoadInst>(this)->getOrdering() != AtomicOrdering::NotAtomic;
564 return cast<StoreInst>(this)->getOrdering() != AtomicOrdering::NotAtomic;
637 return cast<FPMathOperator>(this)->hasAllowReassoc() &&
638 cast<FPMathOperator>(this)->hasNoSignedZeros();
lib/IR/Instructions.cpp 70 return cast<CallBase>(getInstruction())->op_end() - 1;
263 return cast<CallBrInst>(this)->getNumIndirectDests() + 1;
553 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize));
776 return cast<LandingPadInst>(getUnwindDest()->getFirstNonPHI());
1320 assert(Ty == cast<PointerType>(Ptr->getType())->getElementType());
1332 assert(Ty == cast<PointerType>(Ptr->getType())->getElementType());
1361 cast<PointerType>(getOperand(1)->getType())->getElementType()
1451 cast<PointerType>(getOperand(0)->getType())->getElementType()
1454 cast<PointerType>(getOperand(0)->getType())->getElementType()
1510 cast<PointerType>(getOperand(0)->getType())->getElementType()
1687 cast<GEPOperator>(this)->setIsInBounds(B);
1691 return cast<GEPOperator>(this)->isInBounds();
1697 return cast<GEPOperator>(this)->accumulateConstantOffset(DL, Offset);
1707 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1721 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1777 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType())
1792 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1793 cast<VectorType>(Mask->getType())->getElementCount()),
1809 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1810 cast<VectorType>(Mask->getType())->getElementCount()),
1859 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
1872 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
1897 return cast<ConstantInt>(C)->getZExtValue();
1912 cast<ConstantInt>(C)->getZExtValue());
2182 Agg = cast<CompositeType>(Agg)->getTypeAtIndex(Index);
2439 cast<Instruction>(this)->getMetadata(LLVMContext::MD_fpmath);
3204 cast<VectorType>(SrcTy)->getNumElements() : 0;
3206 cast<VectorType>(DstTy)->getNumElements() : 0;
3238 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
3245 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
3523 cast<FCmpInst>(this)->swapOperands();
3529 return cast<FCmpInst>(this)->isCommutative();
3535 return cast<FCmpInst>(this)->isEquality();
lib/IR/IntrinsicInst.cpp 44 auto *MD = cast<MetadataAsValue>(Op)->getMetadata();
49 assert(!cast<MDNode>(MD)->getNumOperands() && "Expected an empty MDNode");
109 cast<MetadataAsValue>(getArgOperand(NumOperands - 2))->getMetadata();
112 return StrToRoundingMode(cast<MDString>(MD)->getString());
155 cast<MetadataAsValue>(getArgOperand(NumOperands - 1))->getMetadata();
158 return StrToExceptionBehavior(cast<MDString>(MD)->getString());
lib/IR/LLVMContextImpl.h 343 cast<ConstantInt>(MD->getValue())->getSExtValue())
351 return hash_combine(cast<ConstantInt>(MD->getValue())->getSExtValue(),
lib/IR/MDBuilder.cpp 131 cast<ConstantInt>(NewCBCalleeIdxAsCM->getValue())->getZExtValue();
141 auto *OldCBCalleeIdxAsCM = cast<ConstantAsMetadata>(Ops[u]);
143 cast<ConstantInt>(OldCBCalleeIdxAsCM->getValue())->getZExtValue();
lib/IR/Mangler.cpp 102 Ty = cast<PointerType>(Ty)->getElementType();
lib/IR/Metadata.cpp 339 if (BasicBlock *BB = cast<Instruction>(V)->getParent()) {
959 cast<ConstantInt>(ConstantInt::get(Ty, Union.getLower()));
961 cast<ConstantInt>(ConstantInt::get(Ty, Union.getUpper()));
1456 auto *OffsetConst = cast<ConstantInt>(
1473 auto *GVE = cast<DIGlobalVariableExpression>(Attachment);
1509 uint64_t Val = cast<ConstantInt>(
1544 GVs.push_back(cast<DIGlobalVariableExpression>(MD));
lib/IR/Module.cpp 372 return cast<DICompileUnit>(CUs->getOperand(Idx));
375 return cast<DICompileUnit>(CUs->getOperand(Idx));
458 return cast<ConstantInt>(Val->getValue())->getZExtValue();
465 return cast<ConstantInt>(Val->getValue())->getZExtValue();
472 return cast<ConstantInt>(Val->getValue())->getZExtValue();
495 cast<ConstantInt>(Val->getValue())->getZExtValue());
509 cast<ConstantInt>(Val->getValue())->getZExtValue());
523 cast<ConstantInt>(Val->getValue())->getZExtValue());
552 return Val && (cast<ConstantInt>(Val->getValue())->getZExtValue() > 0);
605 const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
607 GlobalValue *G = cast<GlobalValue>(Op->stripPointerCasts());
lib/IR/ModuleSummaryIndex.cpp 208 F = cast<FunctionSummary>(V.getSummaryList().front().get());
lib/IR/Operator.cpp 25 return cast<GetElementPtrConstantExpr>(this)->getSourceElementType();
31 return cast<GetElementPtrConstantExpr>(this)->getResultElementType();
lib/IR/ProfileSummary.cpp 95 Val = cast<ConstantInt>(ValMD->getValue())->getZExtValue();
135 Summary.emplace_back(cast<ConstantInt>(Op0->getValue())->getZExtValue(),
136 cast<ConstantInt>(Op1->getValue())->getZExtValue(),
137 cast<ConstantInt>(Op2->getValue())->getZExtValue());
lib/IR/SafepointIRVerifier.cpp 105 assert(cast<Instruction>(U->getUser())->isTerminator() &&
109 assert(!isDeadBlock(cast<Instruction>(U->getUser())->getParent()) &&
lib/IR/Type.cpp 58 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth;
125 return TypeSize::Fixed(cast<IntegerType>(this)->getBitWidth());
127 const VectorType *VTy = cast<VectorType>(this);
158 return cast<StructType>(this)->isSized(Visited);
250 case 1: return cast<IntegerType>(Type::getInt1Ty(C));
251 case 8: return cast<IntegerType>(Type::getInt8Ty(C));
252 case 16: return cast<IntegerType>(Type::getInt16Ty(C));
253 case 32: return cast<IntegerType>(Type::getInt32Ty(C));
254 case 64: return cast<IntegerType>(Type::getInt64Ty(C));
255 case 128: return cast<IntegerType>(Type::getInt128Ty(C));
539 (unsigned)cast<Constant>(V)->getUniqueInteger().getZExtValue();
544 return cast<SequentialType>(this)->getElementType();
553 return cast<SequentialType>(this)->getElementType();
lib/IR/TypeFinder.cpp 143 const User *U = cast<User>(V);
lib/IR/Value.cpp 426 BB->replaceSuccessorsPhiUsesWith(cast<BasicBlock>(New));
496 V = cast<Operator>(V)->getOperand(0);
501 V = cast<Operator>(V)->getOperand(0);
503 V = cast<GlobalAlias>(V)->getAliasee();
590 V = cast<Operator>(V)->getOperand(0);
617 Type *PT = cast<PointerType>(A->getType())->getElementType();
707 Type *EltTy = cast<PointerType>(A->getType())->getElementType();
lib/IR/Verifier.cpp 658 cast<PointerType>(ETy)->getElementType()->isIntegerTy(8),
1074 !cast<DISubprogram>(Op)->isDefinition())),
1115 AssertDI(isa<DISubprogram>(S) && !cast<DISubprogram>(S)->isDefinition(),
1652 Assert(Attrs.getByValType() == cast<PointerType>(Ty)->getElementType(),
1814 const GlobalValue *GV = cast<GlobalValue>(V);
1926 !DL.isNonIntegralPointerType(cast<PointerType>(PtrTy->getScalarType())),
1950 cast<ConstantInt>(Call.getArgOperand(1))->getSExtValue();
1961 FunctionType *TargetFuncType = cast<FunctionType>(PT->getElementType());
1963 const int NumCallArgs = cast<ConstantInt>(Call.getArgOperand(3))->getZExtValue();
1983 = cast<ConstantInt>(Call.getArgOperand(4))->getZExtValue();
2014 cast<ConstantInt>(NumTransitionArgsV)->getZExtValue();
2024 const int NumDeoptArgs = cast<ConstantInt>(NumDeoptArgsV)->getZExtValue();
2086 UnwindDest = cast<CleanupReturnInst>(Terminator)->getUnwindDest();
2252 !cast<DISubprogram>(I.second)->isDistinct(),
2292 auto *SP = cast<DISubprogram>(I.second);
2643 Assert(cast<VectorType>(SrcTy)->getNumElements() ==
2644 cast<VectorType>(DestTy)->getNumElements(),
2666 Assert(cast<VectorType>(SrcTy)->getNumElements() ==
2667 cast<VectorType>(DestTy)->getNumElements(),
2689 Assert(cast<VectorType>(SrcTy)->getNumElements() ==
2690 cast<VectorType>(DestTy)->getNumElements(),
2712 Assert(cast<VectorType>(SrcTy)->getNumElements() ==
2713 cast<VectorType>(DestTy)->getNumElements(),
2735 VectorType *VSrc = cast<VectorType>(SrcTy);
2736 VectorType *VDest = cast<VectorType>(DestTy);
2760 VectorType *VSrc = cast<VectorType>(SrcTy);
2761 VectorType *VDest = cast<VectorType>(DestTy);
2820 PointerType *FPTy = cast<PointerType>(Call.getCalledValue()->getType());
3583 return cast<CatchSwitchInst>(EHPad)->getParentPad();
3809 if (!cast<Instruction>(UnwindPad)->isEHPad())
3861 SiblingFuncletInfo[&FPI] = cast<Instruction>(U);
3982 Instruction *Op = cast<Instruction>(I.getOperand(i));
4351 const auto *MI = cast<MemIntrinsic>(&Call);
4369 const auto *AMI = cast<AtomicMemIntrinsic>(&Call);
4372 cast<ConstantInt>(AMI->getRawElementSizeInBytes());
4427 Assert(cast<ConstantInt>(Call.getArgOperand(1))->getZExtValue() < 2 &&
4428 cast<ConstantInt>(Call.getArgOperand(2))->getZExtValue() < 4,
4459 auto *IdxArg = cast<ConstantInt>(Call.getArgOperand(2));
4490 auto *PT = cast<PointerType>(Target->getType());
4491 auto *TargetFuncType = cast<FunctionType>(PT->getElementType());
4524 Assert(isa<Instruction>(Token) && isStatepoint(cast<Instruction>(Token)),
4530 *cast<CallBase>(cast<GCRelocateInst>(Call).getStatepoint());
4541 const int BaseIndex = cast<ConstantInt>(Base)->getZExtValue();
4542 const int DerivedIndex = cast<ConstantInt>(Derived)->getZExtValue();
4556 cast<ConstantInt>(StatepointCall.getArgOperand(3))->getZExtValue();
4563 cast<ConstantInt>(StatepointCall.getArgOperand(NumCallArgs + 5))
4570 cast<ConstantInt>(StatepointCall.getArgOperand(DeoptArgsStart))
4614 ConstantInt *Alignment = cast<ConstantInt>(Call.getArgOperand(1));
4623 Type *DataTy = cast<PointerType>(Ptr->getType())->getElementType();
4636 ConstantInt *Alignment = cast<ConstantInt>(Call.getArgOperand(2));
4644 Type *DataTy = cast<PointerType>(Ptr->getType())->getElementType();
4710 auto *Op3 = cast<ConstantInt>(Call.getArgOperand(2));
4879 auto *OperandVecTy = cast<VectorType>(OperandTy);
4880 auto *ResultVecTy = cast<VectorType>(ResultTy);
4917 auto *MD = cast<MetadataAsValue>(DII.getArgOperand(0))->getMetadata();
4919 (isa<MDNode>(MD) && !cast<MDNode>(MD)->getNumOperands()),
lib/LTO/LTO.cpp 736 !AliasedGlobals.count(cast<GlobalObject>(GV))) {
746 cast<GlobalObject>(GV)->setComdat(nullptr);
lib/LTO/LTOModule.cpp 405 const Function *F = cast<Function>(Sym.get<GlobalValue *>());
507 addDefinedFunctionSymbol(info.name, cast<Function>(info.symbol));
lib/LTO/SummaryBasedOptimizations.cpp 38 auto *F = cast<FunctionSummary>(S);
56 auto *F = cast<FunctionSummary>(S);
67 auto *F = cast<FunctionSummary>(S);
lib/LTO/UpdateCompilerUsed.cpp 105 auto *A = cast<GlobalAlias>(&GV);
lib/Linker/IRMover.cpp 70 return cast<FunctionType>(get((Type *)T));
146 if (cast<StructType>(DstTy)->isOpaque()) {
148 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second)
152 SpeculativeDstOpaqueTypes.push_back(cast<StructType>(DstTy));
166 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace())
169 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg())
172 StructType *SSTy = cast<StructType>(SrcTy);
178 cast<SequentialType>(SrcTy)->getNumElements())
199 StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]);
240 bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral();
243 StructType *STy = cast<StructType>(Ty);
287 auto *STy = cast<StructType>(Ty);
305 cast<ArrayType>(Ty)->getNumElements());
308 cast<VectorType>(Ty)->getNumElements());
311 cast<PointerType>(Ty)->getAddressSpace());
315 cast<FunctionType>(Ty)->isVarArg());
317 auto *STy = cast<StructType>(Ty);
598 auto *IS = cast<GlobalIndirectSymbol>(New);
694 NewGV = copyGlobalIndirectSymbolProto(cast<GlobalIndirectSymbol>(SGV));
697 Function::Create(cast<FunctionType>(TypeMap.get(SGV->getValueType())),
716 NewGO->copyMetadata(cast<GlobalObject>(SGV), 0);
755 ArrayType *DAT = cast<ArrayType>(DGV->getValueType());
756 ArrayType *SAT = cast<ArrayType>(SGV.getValueType());
832 unsigned NumElements = cast<ArrayType>(C->getType())->getNumElements();
842 Type *EltTy = cast<ArrayType>(TypeMap.get(SrcGV->getValueType()))
853 if (cast<StructType>(EltTy)->getNumElements() == 3)
861 auto &ST = *cast<StructType>(EltTy);
868 ArrayType *DstTy = cast<ArrayType>(DstGV->getValueType());
986 cast<GlobalVariable>(SGV));
1120 auto *CU = cast<DICompileUnit>(SrcCompileUnits->getOperand(I));
lib/Linker/LinkModules.cpp 441 PointerType &Ty = *cast<PointerType>(Alias.getType());
lib/MC/ELFObjectWriter.cpp 671 MSD.Symbol = cast<MCSymbolELF>(&Symbol);
1028 sh_info = SectionIndexMap.lookup(cast<MCSectionELF>(InfoSection));
1051 const MCSectionELF *Sec = cast<MCSectionELF>(&Sym->getSection());
1293 cast<MCSymbolELF>(Asm.getContext().getOrCreateSymbol(Prefix + Tail));
1326 if (const MCSymbol *R = Renames.lookup(cast<MCSymbolELF>(Sym)))
1479 const auto *SymA = RefA ? cast<MCSymbolELF>(&RefA->getSymbol()) : nullptr;
1486 SymA = cast<MCSymbolELF>(&Inner->getSymbol());
1493 ? cast<MCSectionELF>(&SymA->getSection())
1512 SecA ? cast<MCSymbolELF>(SecA->getBeginSymbol()) : nullptr;
lib/MC/MCAssembler.cpp 437 MCEncodedFragment *EF = cast<MCEncodedFragment>(F);
1002 const MCBinaryExpr *ABE = cast<MCBinaryExpr>(&DF.getAddrDelta());
lib/MC/MCContext.cpp 343 R = cast<MCSymbolELF>(Sym);
375 true, cast<MCSymbolELF>(RelInfoSection->getBeginSymbol()));
391 GroupSym = cast<MCSymbolELF>(getOrCreateSymbol(Group));
500 GroupSym = cast<MCSymbolWasm>(getOrCreateSymbol(Group));
524 cast<MCSymbolWasm>(Begin)->setType(wasm::WASM_SYMBOL_TYPE_SECTION);
lib/MC/MCELFStreamer.cpp 100 auto *Symbol = cast<MCSymbolELF>(S);
110 auto *Symbol = cast<MCSymbolELF>(S);
190 auto *Symbol = cast<MCSymbolELF>(S);
290 auto *Symbol = cast<MCSymbolELF>(S);
321 cast<MCSymbolELF>(Symbol)
326 cast<MCSymbolELF>(Symbol)->setSize(Value);
336 auto *Symbol = cast<MCSymbolELF>(S);
385 cast<MCTargetExpr>(expr)->fixELFSymbolsInTLSFixups(getAssembler());
391 const MCBinaryExpr *be = cast<MCBinaryExpr>(expr);
398 const MCSymbolRefExpr &symRef = *cast<MCSymbolRefExpr>(expr);
461 fixSymbolsInTLSFixups(cast<MCUnaryExpr>(expr)->getSubExpr());
485 cast<MCSymbolELF>(S)->setBinding(ELF::STB_WEAK);
486 cast<MCSymbolELF>(S)->setExternal(true);
500 MCRelaxableFragment &F = *cast<MCRelaxableFragment>(getCurrentFragment());
559 DF = cast<MCDataFragment>(getCurrentFragment());
lib/MC/MCExpr.cpp 45 return cast<MCTargetExpr>(this)->printImpl(OS, MAI);
705 return cast<MCTargetExpr>(this)->evaluateAsRelocatableImpl(Res, Layout,
709 Res = MCValue::get(cast<MCConstantExpr>(this)->getValue());
713 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(this);
747 const MCUnaryExpr *AUE = cast<MCUnaryExpr>(this);
783 const MCBinaryExpr *ABE = cast<MCBinaryExpr>(this);
792 if (const MCTargetExpr *R = cast<MCTargetExpr>(ABE->getRHS())) {
893 return cast<MCTargetExpr>(this)->findAssociatedFragment();
899 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(this);
905 return cast<MCUnaryExpr>(this)->getSubExpr()->findAssociatedFragment();
908 const MCBinaryExpr *BE = cast<MCBinaryExpr>(this);
lib/MC/MCFragment.cpp 254 delete cast<MCAlignFragment>(this);
257 delete cast<MCDataFragment>(this);
260 delete cast<MCCompactEncodedInstFragment>(this);
263 delete cast<MCFillFragment>(this);
266 delete cast<MCRelaxableFragment>(this);
269 delete cast<MCOrgFragment>(this);
272 delete cast<MCDwarfLineAddrFragment>(this);
275 delete cast<MCDwarfCallFrameFragment>(this);
278 delete cast<MCLEBFragment>(this);
281 delete cast<MCPaddingFragment>(this);
284 delete cast<MCSymbolIdFragment>(this);
287 delete cast<MCCVInlineLineTableFragment>(this);
290 delete cast<MCCVDefRangeFragment>(this);
293 delete cast<MCDummyFragment>(this);
342 const MCAlignFragment *AF = cast<MCAlignFragment>(this);
352 const MCDataFragment *DF = cast<MCDataFragment>(this);
376 cast<MCCompactEncodedInstFragment>(this);
388 const MCFillFragment *FF = cast<MCFillFragment>(this);
395 const MCRelaxableFragment *F = cast<MCRelaxableFragment>(this);
402 const MCOrgFragment *OF = cast<MCOrgFragment>(this);
409 const MCDwarfLineAddrFragment *OF = cast<MCDwarfLineAddrFragment>(this);
416 const MCDwarfCallFrameFragment *CF = cast<MCDwarfCallFrameFragment>(this);
422 const MCLEBFragment *LF = cast<MCLEBFragment>(this);
428 const MCPaddingFragment *F = cast<MCPaddingFragment>(this);
441 const MCSymbolIdFragment *F = cast<MCSymbolIdFragment>(this);
447 const auto *F = cast<MCCVInlineLineTableFragment>(this);
453 const auto *F = cast<MCCVDefRangeFragment>(this);
lib/MC/MCInst.cpp 53 cast<MCSymbolRefExpr>(Expr)->getKind() == MCSymbolRefExpr::VK_None;
lib/MC/MCMachOStreamer.cpp 153 const MCSectionMachO &MSec = *cast<MCSectionMachO>(Section);
175 if (cast<MCSymbolMachO>(Symbol)->isWeakDefinition())
196 cast<MCSymbolMachO>(Symbol)->clearReferenceType();
206 cast<MCSymbolMachO>(Symbol)->setAltEntry();
288 cast<MCSymbolMachO>(Symbol)->setThumbFunc();
293 MCSymbolMachO *Symbol = cast<MCSymbolMachO>(Sym);
402 cast<MCSymbolMachO>(Symbol)->setDesc(DescValue);
lib/MC/MCObjectFileInfo.cpp 874 GroupName, UniqueID, cast<MCSymbolELF>(Link));
lib/MC/MCObjectStreamer.cpp 548 cast<MCAlignFragment>(getCurrentFragment())->setEmitNops(true);
lib/MC/MCParser/AsmParser.cpp 1321 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(E);
1333 const MCUnaryExpr *UE = cast<MCUnaryExpr>(E);
1341 const MCBinaryExpr *BE = cast<MCBinaryExpr>(E);
lib/MC/MCParser/ELFAsmParser.cpp 221 MCSymbolELF *Sym = cast<MCSymbolELF>(getContext().getOrCreateSymbol(Name));
lib/MC/MCParser/WasmAsmParser.cpp 182 auto WasmSym = cast<MCSymbolWasm>(
lib/MC/MCStreamer.cpp 773 const auto *TextSecCOFF = cast<MCSectionCOFF>(TextSec);
774 auto *MainCFISecCOFF = cast<MCSectionCOFF>(MainCFISec);
lib/MC/MCWasmStreamer.cpp 63 auto *SectionWasm = cast<MCSectionWasm>(Section);
83 auto *Symbol = cast<MCSymbolWasm>(S);
143 cast<MCSymbolWasm>(Symbol)->setSize(Value);
lib/MC/MCWinCOFFStreamer.cpp 86 auto *Symbol = cast<MCSymbolCOFF>(S);
112 auto *Symbol = cast<MCSymbolCOFF>(S);
137 auto *Symbol = cast<MCSymbolCOFF>(S);
157 cast<MCSymbolCOFF>(CurSymbol)->setClass((uint16_t)StorageClass);
172 cast<MCSymbolCOFF>(CurSymbol)->setType((uint16_t)Type);
188 const MCSymbolCOFF *CSymbol = cast<MCSymbolCOFF>(Symbol);
267 auto *Symbol = cast<MCSymbolCOFF>(S);
299 auto *Symbol = cast<MCSymbolCOFF>(S);
lib/MC/MCXCOFFStreamer.cpp 32 auto *Symbol = cast<MCSymbolXCOFF>(Sym);
49 Symbol->setExternal(cast<MCSymbolXCOFF>(Symbol)->getStorageClass() !=
lib/MC/MachObjectWriter.cpp 400 W.write<uint16_t>(cast<MCSymbolMachO>(Symbol)->getEncodedFlags(EncodeAsAltEntry));
536 cast<MCSymbolMachO>(it->Symbol)->setReferenceTypeUndefinedLazy(true);
lib/MC/WasmObjectWriter.cpp 457 const auto *SymA = cast<MCSymbolWasm>(&RefA->getSymbol());
461 const auto *Inner = cast<MCSymbolRefExpr>(Expr);
492 SymA = cast<MCSymbolWasm>(SectionSymbol);
526 auto *Inner = cast<MCSymbolRefExpr>(Expr);
527 Ret = cast<MCSymbolWasm>(&Inner->getSymbol());
1262 WasmIndices[cast<MCSymbolWasm>(Begin)] = CustomSections.size();
lib/MC/WinCOFFObjectWriter.cpp 1023 const auto *AssocMCSec = cast<MCSectionCOFF>(&AssocMCSym->getSection());
lib/MC/XCOFFObjectWriter.cpp 276 const auto *MCSec = cast<const MCSectionXCOFF>(&S);
298 const MCSymbolXCOFF *XSym = cast<MCSymbolXCOFF>(&S);
lib/Object/IRSymtab.cpp 140 for (const MDOperand &MDOption : cast<MDNode>(MDOptions)->operands())
151 cast<MDString>(cast<MDNode>(MDOptions)->getOperand(0))->getString();
289 cast<GlobalAlias>(GV)->getAliasee()->stripPointerCasts());
lib/Object/Object.cpp 139 auto universal = cast<MachOUniversalBinary>(unwrap(BR));
150 auto OF = cast<ObjectFile>(unwrap(BR));
159 auto OF = cast<ObjectFile>(unwrap(BR));
164 auto OF = cast<ObjectFile>(unwrap(BR));
173 auto OF = cast<ObjectFile>(unwrap(BR));
lib/Object/ObjectFile.cpp 109 const auto COFFObj = cast<COFFObjectFile>(this);
lib/ObjectYAML/ELFYAML.cpp 1130 sectionMapping(IO, *cast<ELFYAML::DynamicSection>(Section.get()));
1136 sectionMapping(IO, *cast<ELFYAML::RelocationSection>(Section.get()));
1141 groupSectionMapping(IO, *cast<ELFYAML::Group>(Section.get()));
1146 sectionMapping(IO, *cast<ELFYAML::NoBitsSection>(Section.get()));
1151 sectionMapping(IO, *cast<ELFYAML::HashSection>(Section.get()));
1156 sectionMapping(IO, *cast<ELFYAML::NoteSection>(Section.get()));
1161 sectionMapping(IO, *cast<ELFYAML::MipsABIFlags>(Section.get()));
1166 sectionMapping(IO, *cast<ELFYAML::VerdefSection>(Section.get()));
1171 sectionMapping(IO, *cast<ELFYAML::SymverSection>(Section.get()));
1176 sectionMapping(IO, *cast<ELFYAML::VerneedSection>(Section.get()));
1181 sectionMapping(IO, *cast<ELFYAML::SymtabShndxSection>(Section.get()));
1186 sectionMapping(IO, *cast<ELFYAML::AddrsigSection>(Section.get()));
1203 sectionMapping(IO, *cast<ELFYAML::StackSizesSection>(Section.get()));
lib/ObjectYAML/WasmEmitter.cpp 518 auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec);
lib/ObjectYAML/WasmYAML.cpp 173 auto CustomSection = cast<WasmYAML::CustomSection>(Section.get());
181 sectionMapping(IO, *cast<WasmYAML::DylinkSection>(Section.get()));
185 sectionMapping(IO, *cast<WasmYAML::LinkingSection>(Section.get()));
189 sectionMapping(IO, *cast<WasmYAML::NameSection>(Section.get()));
193 sectionMapping(IO, *cast<WasmYAML::ProducersSection>(Section.get()));
197 sectionMapping(IO, *cast<WasmYAML::TargetFeaturesSection>(Section.get()));
201 sectionMapping(IO, *cast<WasmYAML::CustomSection>(Section.get()));
208 sectionMapping(IO, *cast<WasmYAML::TypeSection>(Section.get()));
213 sectionMapping(IO, *cast<WasmYAML::ImportSection>(Section.get()));
218 sectionMapping(IO, *cast<WasmYAML::FunctionSection>(Section.get()));
223 sectionMapping(IO, *cast<WasmYAML::TableSection>(Section.get()));
228 sectionMapping(IO, *cast<WasmYAML::MemorySection>(Section.get()));
233 sectionMapping(IO, *cast<WasmYAML::GlobalSection>(Section.get()));
238 sectionMapping(IO, *cast<WasmYAML::EventSection>(Section.get()));
243 sectionMapping(IO, *cast<WasmYAML::ExportSection>(Section.get()));
248 sectionMapping(IO, *cast<WasmYAML::StartSection>(Section.get()));
253 sectionMapping(IO, *cast<WasmYAML::ElemSection>(Section.get()));
258 sectionMapping(IO, *cast<WasmYAML::CodeSection>(Section.get()));
263 sectionMapping(IO, *cast<WasmYAML::DataSection>(Section.get()));
268 sectionMapping(IO, *cast<WasmYAML::DataCountSection>(Section.get()));
lib/ProfileData/Coverage/CoverageMappingReader.cpp 691 OF.reset(cast<ObjectFile>(Bin.release()));
lib/ProfileData/InstrProf.cpp 420 auto *Arr = cast<ConstantDataArray>(NameVar->getInitializer());
lib/Support/VirtualFileSystem.cpp 756 Dir = cast<detail::InMemoryDirectory>(Dir->addChild(
777 return cast<detail::InMemoryFile>(Node)->getBuffer()->getBuffer() ==
844 Dir = cast<detail::InMemoryDirectory>(Node);
859 cast<detail::InMemoryFile>(*ToNode));
1096 auto *D = cast<RedirectingFileSystem::RedirectingDirectoryEntry>(*E);
1251 cast<RedirectingFileSystem::RedirectingDirectoryEntry>(ParentEntry);
1262 auto *DE = cast<RedirectingFileSystem::RedirectingDirectoryEntry>(SrcE);
1275 auto *FE = cast<RedirectingFileSystem::RedirectingFileEntry>(SrcE);
1277 cast<RedirectingFileSystem::RedirectingDirectoryEntry>(NewParentE);
1721 auto *DE = cast<RedirectingFileSystem::RedirectingDirectoryEntry>(E);
lib/TableGen/Record.cpp 100 return cast<BitsRecTy>(RHS)->Size == Size;
581 cast<TypedInit>(Range[0])->getType()->typeIsConvertibleTo(EltTy));
593 RecTy *EltTy = cast<ListRecTy>(getType())->getElementType();
1122 return ListInit::get(NewList, cast<ListRecTy>(Type)->getElementType());
1410 cast<BitsRecTy>(Ty)->getNumBits() == 1)
1439 cast<TypedInit>(Converted)->getType()->typeIsA(Ty));
1484 StringInit *NameString = cast<StringInit>(getNameInit());
1549 return VarListElementInit::get(cast<TypedInit>(NewTI), getElementNum());
1993 return cast<StringInit>(getNameInit())->getValue();
2001 cast<TypedInit>(Value)->getType()->typeIsA(getType()));
2036 const TypedInit *TypedName = cast<const TypedInit>(Name);
lib/TableGen/SetTheory.cpp 214 cast<DefInit>(Expr->getOperator())->getDef()->getRecords();
lib/TableGen/TGParser.cpp 72 BitsInit *BV = cast<BitsInit>(RV.getValue());
1150 RecTy *ListType = cast<TypedInit>(InitList.back())->getType();
1174 cast<ListRecTy>(ItemType)
1231 Type = cast<TypedInit>(InitList.front())->getType()->getListTy();
2474 IterType = cast<ListRecTy>(TI->getType())->getElementType();
2731 Defset.EltTy = cast<ListRecTy>(Type)->getElementType();
lib/Target/AArch64/AArch64AsmPrinter.cpp 672 OS << cast<DILocalVariable>(MI->getOperand(NOps - 2).getMetadata())
lib/Target/AArch64/AArch64FastISel.cpp 441 unsigned CPI = MCP.getConstantPoolIndex(cast<Constant>(CFP), Align);
633 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue();
646 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
646 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
649 Op = cast<AddOperator>(Op)->getOperand(0);
670 const AllocaInst *AI = cast<AllocaInst>(Obj);
802 const auto *C = cast<ConstantInt>(RHS);
1020 const auto *I = cast<Instruction>(V);
1254 const Value *MulLHS = cast<MulOperator>(RHS)->getOperand(0);
1255 const Value *MulRHS = cast<MulOperator>(RHS)->getOperand(1);
1262 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2();
1640 const Value *MulLHS = cast<MulOperator>(RHS)->getOperand(0);
1641 const Value *MulRHS = cast<MulOperator>(RHS)->getOperand(1);
1648 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2();
1983 cast<LoadInst>(I)->isAtomic())
2222 auto *SI = cast<StoreInst>(I);
2302 const CmpInst *CI = cast<CmpInst>(BI->getCondition());
2332 if (isa<Constant>(LHS) && cast<Constant>(LHS)->isNullValue())
2335 if (!isa<Constant>(RHS) || !cast<Constant>(RHS)->isNullValue())
2361 if (!isa<Constant>(RHS) || !cast<Constant>(RHS)->isNullValue())
2372 if (cast<ConstantInt>(RHS)->getValue() != APInt(BW, -1, true))
2421 const BranchInst *BI = cast<BranchInst>(I);
2551 const IndirectBrInst *BI = cast<IndirectBrInst>(I);
2569 const CmpInst *CI = cast<CmpInst>(I);
2741 const SelectInst *SI = cast<SelectInst>(I);
2755 } else if (isa<CmpInst>(Cond) && cast<CmpInst>(Cond)->hasOneUse() &&
2757 const auto *Cmp = cast<CmpInst>(Cond);
3387 const auto *EV = cast<ExtractValueInst>(Cond);
3391 const auto *II = cast<IntrinsicInst>(EV->getAggregateOperand());
3395 cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U);
3489 unsigned Depth = cast<ConstantInt>(II->getOperand(0))->getZExtValue();
3517 const auto *MTI = cast<MemTransferInst>(II);
3528 uint64_t Len = cast<ConstantInt>(MTI->getLength())->getZExtValue();
3553 const MemSetInst *MSI = cast<MemSetInst>(II);
3685 auto *Ty = cast<StructType>(Callee->getReturnType());
3835 const ReturnInst *Ret = cast<ReturnInst>(I);
4927 const APInt &C = cast<ConstantInt>(I->getOperand(1))->getValue();
4938 if (cast<BinaryOperator>(I)->isExact()) {
5027 unsigned Field = cast<ConstantInt>(Idx)->getZExtValue();
5040 DL.getTypeAllocSize(Ty) * cast<ConstantInt>(CI)->getSExtValue();
5086 auto *RetPairTy = cast<StructType>(I->getType());
5223 return selectAtomicCmpXchg(cast<AtomicCmpXchgInst>(I));
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 306 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue();
337 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue();
516 ConstantSDNode *DLidx = cast<ConstantSDNode>(DL->getOperand(1).getNode());
517 ConstantSDNode *EVidx = cast<ConstantSDNode>(EV.getOperand(1).getNode());
706 if (isStrongerThanMonotonic(cast<MemSDNode>(Use)->getOrdering()))
1150 LoadSDNode *LD = cast<LoadSDNode>(N);
1263 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
1264 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Ld), {MemOp});
1315 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
1316 CurDAG->setNodeMemRefs(cast<MachineSDNode>(St), {MemOp});
1494 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
1495 CurDAG->setNodeMemRefs(cast<MachineSDNode>(St), {MemOp});
1528 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
1529 CurDAG->setNodeMemRefs(cast<MachineSDNode>(St), {MemOp});
1829 Immr = cast<ConstantSDNode>(N->getOperand(1).getNode())->getZExtValue();
1830 Imms = cast<ConstantSDNode>(N->getOperand(2).getNode())->getZExtValue();
1902 cast<const ConstantSDNode>(Op.getOperand(1).getNode())->getZExtValue();
1938 cast<const ConstantSDNode>(Op.getOperand(1).getNode())->getZExtValue();
1940 cast<const ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1948 cast<const ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1976 cast<const ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1978 cast<const ConstantSDNode>(Op.getOperand(3).getNode())->getZExtValue();
2609 FVal = cast<ConstantFP>(CN->getConstVal())->getValueAPF();
2784 EVT MemTy = cast<MemSDNode>(N)->getMemoryVT();
2807 MachineMemOperand *MemOp = cast<MemSDNode>(N)->getMemOperand();
2808 CurDAG->setNodeMemRefs(cast<MachineSDNode>(CmpSwap), {MemOp});
2940 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node);
2959 int FI = cast<FrameIndexSDNode>(Node)->getIndex();
2988 cast<MemIntrinsicSDNode>(Node)->getMemOperand();
2989 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Ld), {MemOp});
3009 cast<MemIntrinsicSDNode>(Node)->getMemOperand();
3010 CurDAG->setNodeMemRefs(cast<MachineSDNode>(St), {MemOp});
lib/Target/AArch64/AArch64ISelLowering.cpp 5275 int JTI = cast<JumpTableSDNode>(JT.getNode())->getIndex();
6929 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op.getNode());
7505 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode());
7552 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode());
8260 AtomicSDNode *AN = cast<AtomicSDNode>(Op.getNode());
8277 AtomicSDNode *AN = cast<AtomicSDNode>(Op.getNode());
8417 PointerType *PtrTy = cast<PointerType>(I.getArgOperand(0)->getType());
8428 PointerType *PtrTy = cast<PointerType>(I.getArgOperand(1)->getType());
8581 const Instruction *Instr = cast<Instruction>(U.getUser());
8626 auto *FullVT = cast<VectorType>(FullV->getType());
8627 auto *HalfVT = cast<VectorType>(HalfV->getType());
8632 auto *FullVT = cast<VectorType>(FullV->getType());
8633 auto *HalfVT = cast<VectorType>(HalfV->getType());
8653 int NumElements = cast<VectorType>(Op1->getType())->getNumElements() * 2;
8672 !areExtDoubled(cast<Instruction>(Ext1)) ||
8673 !areExtDoubled(cast<Instruction>(Ext2)))
8708 auto Ext1 = cast<Instruction>(I->getOperand(0));
8709 auto Ext2 = cast<Instruction>(I->getOperand(1));
10799 StoreSDNode *S = cast<StoreSDNode>(N);
10891 LoadSDNode *LoadSDN = cast<LoadSDNode>(LD);
11120 MemIntrinsicSDNode *MemInt = cast<MemIntrinsicSDNode>(N);
11148 LoadSDNode *LoadNode = cast<LoadSDNode>(V.getNode());
11176 return std::abs(cast<ConstantSDNode>(V.getNode())->getSExtValue()) <
11378 cast<ConstantSDNode>(AddInputValue2.getNode())->getSExtValue(),
11379 cast<ConstantSDNode>(SubsInputValue.getNode())->getSExtValue()))
11668 auto *GN = cast<GlobalAddressSDNode>(N);
12002 MachineMemOperand *MemOp = cast<MemSDNode>(N)->getMemOperand();
12046 MachineMemOperand *MemOp = cast<MemSDNode>(N)->getMemOperand();
12047 DAG.setNodeMemRefs(cast<MachineSDNode>(CmpSwap), {MemOp});
12172 Type *ValTy = cast<PointerType>(Addr->getType())->getElementType();
12199 Type *EltTy = cast<PointerType>(Addr->getType())->getElementType();
lib/Target/AArch64/AArch64InstrInfo.cpp 1503 cast<GlobalValue>((*MI.memoperands_begin())->getValue());
lib/Target/AArch64/AArch64InstructionSelector.cpp 1140 MF, MachineOperand::CreateBA(cast<BlockAddress>(V),
lib/Target/AArch64/AArch64SelectionDAGInfo.cpp 133 DAG.setNodeMemRefs(cast<MachineSDNode>(St1), {BaseMemOperand});
144 DAG.setNodeMemRefs(cast<MachineSDNode>(St), {BaseMemOperand});
lib/Target/AArch64/AArch64StackTagging.cpp 117 uint64_t StoreSize = cast<ConstantInt>(MSI->getLength())->getZExtValue();
122 cast<ConstantInt>(MSI->getValue()));
476 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue())
lib/Target/AArch64/AArch64TargetTransformInfo.cpp 236 auto *Extend = cast<CastInst>(Args[1]);
270 auto *SingleUser = cast<Instruction>(*I->user_begin());
282 cast<CastInst>(I)->getSrcTy() == Cast->getSrcTy())
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 1593 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1600 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1607 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1616 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1624 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1773 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
1782 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
1789 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1795 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
3457 cast<MCConstantExpr>(ImmVal)->getValue() != 0) {
3686 uint64_t Imm = (cast<MCConstantExpr>(SubExprVal))->getValue();
4717 cast<MCConstantExpr>(Op3.getImm())->getValue() == 0) {
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp 171 auto *Symbol = cast<MCSymbolELF>(getContext().getOrCreateSymbol(
lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp 572 const AArch64MCExpr *A64E = cast<AArch64MCExpr>(UImm16MO.getExpr());
lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp 122 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Expr);
131 const MCSymbolRefExpr &SymRef = *cast<MCSymbolRefExpr>(Expr);
137 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm);
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp 859 const Function *Callee = cast<Function>(CalleeOp->getGlobal());
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 207 return cast<VectorType>(T)->getElementType()->getIntegerBitWidth();
215 return VectorType::get(B.getInt32Ty(), cast<VectorType>(T)->getNumElements());
225 cast<ICmpInst>(I.getOperand(0))->isSigned() : false;
553 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv);
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp 189 auto VecTy = cast<VectorType>(Ty);
630 auto VecTy = cast<VectorType>(Ty);
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp 611 unsigned AS = cast<MemSDNode>(N)->getAddressSpace();
820 ConstantSDNode *C = cast<ConstantSDNode>(N);
1500 const MachinePointerInfo &PtrInfo = cast<MemSDNode>(Parent)->getPointerInfo();
1561 const MachinePointerInfo &PtrInfo = cast<MemSDNode>(Parent)->getPointerInfo();
2133 MemSDNode *Mem = cast<MemSDNode>(N);
2203 MemIntrinsicSDNode *M = cast<MemIntrinsicSDNode>(N);
2232 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Selected), {MMO});
2269 MemIntrinsicSDNode *M = cast<MemIntrinsicSDNode>(N);
2320 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Selected), {MMO});
2682 auto Ld = cast<LoadSDNode>(N);
lib/Target/AMDGPU/AMDGPUISelLowering.cpp 654 MemSDNode *MN = cast<MemSDNode>(N);
730 if (cast<LoadSDNode>(N)->getMemOperand()->getAddrSpace() ==
2849 LoadSDNode *LN = cast<LoadSDNode>(N);
2901 StoreSDNode *SN = cast<StoreSDNode>(N);
4508 auto GA = cast<GlobalAddressSDNode>(Op.getOperand(0).getNode());
lib/Target/AMDGPU/AMDGPULibCalls.cpp 595 unsigned Size = cast<ConstantInt>(PacketSize)->getZExtValue();
596 unsigned Align = cast<ConstantInt>(PacketAlign)->getZExtValue();
lib/Target/AMDGPU/AMDGPULibFunc.cpp 1038 Id, *cast<AMDGPUMangledLibFunc>(CopyFrom.Impl.get())));
1050 return cast<AMDGPUMangledLibFunc>(Impl.get())->Leads;
1054 return cast<const AMDGPUMangledLibFunc>(Impl.get())->Leads;
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp 68 Instruction *Inst = cast<Instruction>(*I);
73 auto *Memcpy = cast<MemCpyInst>(Inst);
86 auto *Memmove = cast<MemMoveInst>(Inst);
96 auto *Memset = cast<MemSetInst>(Inst);
lib/Target/AMDGPU/AMDGPULowerKernelAttributes.cpp 250 CallInst *CI = cast<CallInst>(U);
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp 134 auto *BitCast = cast<ConstantExpr>(UU);
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 144 IntegerType *ElemIType = cast<IntegerType>(ElemType);
399 BufferIdx = cast<GetElementPtrInst>(GetElementPtrInst::Create(
482 uint32_t EleCount = cast<VectorType>(ArgType)->getNumElements();
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 306 GetElementPtrInst *GEP = cast<GetElementPtrInst>(Ptr);
333 LoadInst *LI = cast<LoadInst>(Inst);
346 StoreInst *SI = cast<StoreInst>(Inst);
387 if (!canVectorizeInst(cast<Instruction>(AllocaUser), Alloca))
406 if (!canVectorizeInst(cast<Instruction>(GEPUser), AllocaUser))
415 VectorTy = arrayTypeToVecType(cast<ArrayType>(AllocaTy));
421 Instruction *Inst = cast<Instruction>(V);
429 Value *Ptr = cast<LoadInst>(Inst)->getPointerOperand();
440 StoreInst *SI = cast<StoreInst>(Inst);
538 Instruction *UseInst = cast<Instruction>(User);
875 IntrinsicInst *Intr = cast<IntrinsicInst>(Call);
884 MemCpyInst *MemCpy = cast<MemCpyInst>(Intr);
892 MemMoveInst *MemMove = cast<MemMoveInst>(Intr);
900 MemSetInst *MemSet = cast<MemSetInst>(Intr);
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp 452 PointerType *ArgType = cast<PointerType>(Arg.getType());
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp 498 = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
619 const ConstantInt *IsVolatile = cast<ConstantInt>(II->getArgOperand(4));
651 VectorType *VT = cast<VectorType>(Tp);
810 = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp 671 const MCSymbolRefExpr *S = cast<MCSymbolRefExpr>(Expr);
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp 503 MCSymbolELF *Symbol = cast<MCSymbolELF>(
512 MCSymbolELF *SymbolELF = cast<MCSymbolELF>(Symbol);
619 MCSymbolELF *KernelCodeSymbol = cast<MCSymbolELF>(
621 MCSymbolELF *KernelDescriptorSymbol = cast<MCSymbolELF>(
lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp 431 auto *SE = cast<MCSymbolRefExpr>(Expr);
437 auto *BE = cast<MCBinaryExpr>(Expr);
443 return needsPCRel(cast<MCUnaryExpr>(Expr)->getSubExpr());
lib/Target/AMDGPU/R600ISelLowering.cpp 2067 LoadSDNode *LoadNode = cast<LoadSDNode>(N);
lib/Target/AMDGPU/SIISelLowering.cpp 871 VectorType *VecComponent = cast<VectorType>(Ty->getContainedType(0));
888 ElementSize = cast<IntegerType>(ElementType)->getBitWidth();
970 const ConstantInt *Vol = cast<ConstantInt>(CI.getOperand(4));
1011 const ConstantInt *Vol = cast<ConstantInt>(CI.getOperand(1));
1335 const MemSDNode *MemNode = cast<MemSDNode>(N);
1352 const MemSDNode *MemNode = cast<MemSDNode>(N);
4472 cast<CondCodeSDNode>(SetCC->getOperand(2).getNode())->get() ==
5194 auto CachePolicyConst = cast<ConstantSDNode>(CachePolicy.getNode());
5299 auto TexFailCtrlConst = cast<ConstantSDNode>(TexFailCtrl.getNode());
9967 if (SDValue Widended = widenLoad(cast<LoadSDNode>(N), DCI))
9994 return performMemSDNodeCombine(cast<MemSDNode>(N), DCI);
10859 const LoadSDNode *L = cast<LoadSDNode>(N);
lib/Target/ARC/ARCISelDAGToDAG.cpp 172 uint64_t CVal = cast<ConstantSDNode>(N)->getZExtValue();
lib/Target/ARM/ARMAsmPrinter.cpp 875 auto *ACPC = cast<ARMConstantPoolConstant>(ACPV);
891 cast<ARMConstantPoolConstant>(ACPV)->getBlockAddress();
894 const GlobalValue *GV = cast<ARMConstantPoolConstant>(ACPV)->getGV();
901 const MachineBasicBlock *MBB = cast<ARMConstantPoolMBB>(ACPV)->getMBB();
905 auto Sym = cast<ARMConstantPoolSymbol>(ACPV)->getSymbol();
1199 Offset = -cast<ConstantInt>(CPE.Val.ConstVal)->getSExtValue();
lib/Target/ARM/ARMBaseInstrInfo.cpp 1261 cast<FixedStackPseudoSourceValue>(Accesses.front()->getPseudoValue())
1504 cast<FixedStackPseudoSourceValue>(Accesses.front()->getPseudoValue())
1669 cast<ARMConstantPoolConstant>(ACPV)->getGV(), PCLabelId, ARMCP::CPValue,
1674 cast<ARMConstantPoolSymbol>(ACPV)->getSymbol(), PCLabelId, 4);
1677 Create(cast<ARMConstantPoolConstant>(ACPV)->getBlockAddress(), PCLabelId,
1685 cast<ARMConstantPoolMBB>(ACPV)->getMBB(), PCLabelId, 4);
4372 auto *DefMN = cast<MachineSDNode>(DefNode);
4375 auto *UseMN = cast<MachineSDNode>(UseNode);
4777 cast<GlobalValue>((*MI->memoperands_begin())->getValue());
lib/Target/ARM/ARMCallLowering.cpp 63 auto StructT = cast<StructType>(T);
lib/Target/ARM/ARMCodeGenPrepare.cpp 185 unsigned Opc = cast<Instruction>(V)->getOpcode();
218 Ty = cast<PointerType>(Ld->getPointerOperandType())->getElementType();
221 cast<IntegerType>(V->getType())->getBitWidth() == 1)
350 ConstantInt *OverflowConst = cast<ConstantInt>(I->getOperand(1));
358 auto *CI = cast<ICmpInst>(*I->user_begin());
422 return cast<Instruction>(V)->hasNoUnsignedWrap();
454 auto *User = cast<Instruction>(U.getUser());
484 cast<ConstantInt>(I->getOperand(1))->isNegative()) &&
487 auto Const = cast<ConstantInt>(I->getOperand(1));
552 auto *I = cast<Instruction>(V);
617 Builder.SetInsertPoint(cast<Instruction>(V));
671 auto ZExt = cast<ZExtInst>(V);
688 auto *Trunc = cast<TruncInst>(Src);
717 auto *Trunc = cast<TruncInst>(V);
719 IntegerType *SrcTy = cast<IntegerType>(Trunc->getOperand(0)->getType());
720 IntegerType *DestTy = cast<IntegerType>(TruncTysMap[Trunc][0]);
744 this->OrigTy = cast<IntegerType>(OrigTy);
771 auto *Trunc = cast<TruncInst>(V);
836 auto *Call = cast<CallInst>(I);
957 Sinks.insert(cast<Instruction>(V));
990 if (Sinks.count(cast<Instruction>(V)))
lib/Target/ARM/ARMConstantPoolValue.cpp 198 auto *Constant = cast<ARMConstantPoolConstant>(CPV);
lib/Target/ARM/ARMConstantPoolValue.h 89 if (cast<Derived>(this)->equals(APC))
lib/Target/ARM/ARMFastISel.cpp 452 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Align);
470 const ConstantInt *CI = cast<ConstantInt>(C);
765 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue();
778 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
778 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
781 Op = cast<AddOperator>(Op)->getOperand(0);
801 const AllocaInst *AI = cast<AllocaInst>(Obj);
1021 if (cast<LoadInst>(I)->isAtomic())
1049 if (!ARMEmitLoad(VT, ResultReg, Addr, cast<LoadInst>(I)->getAlignment()))
1153 if (cast<StoreInst>(I)->isAtomic())
1185 if (!ARMEmitStore(VT, SrcReg, Addr, cast<StoreInst>(I)->getAlignment()))
1238 const BranchInst *BI = cast<BranchInst>(I);
1343 const IndirectBrInst *IB = cast<IndirectBrInst>(I);
1470 const CmpInst *CI = cast<CmpInst>(I);
2091 const ReturnInst *Ret = cast<ReturnInst>(I);
2295 const CallInst *CI = cast<CallInst>(I);
2508 unsigned Depth = cast<ConstantInt>(I.getOperand(0))->getZExtValue();
2532 uint64_t Len = cast<ConstantInt>(MTI.getLength())->getZExtValue();
lib/Target/ARM/ARMISelDAGToDAG.cpp 304 Imm = cast<ConstantSDNode>(N)->getZExtValue();
765 ? cast<LoadSDNode>(Op)->getAddressingMode()
766 : cast<StoreSDNode>(Op)->getAddressingMode();
801 ? cast<LoadSDNode>(Op)->getAddressingMode()
802 : cast<StoreSDNode>(Op)->getAddressingMode();
821 ? cast<LoadSDNode>(Op)->getAddressingMode()
822 : cast<StoreSDNode>(Op)->getAddressingMode();
900 ? cast<LoadSDNode>(Op)->getAddressingMode()
901 : cast<StoreSDNode>(Op)->getAddressingMode();
993 MemSDNode *MemN = cast<MemSDNode>(Parent);
1018 LSBaseSDNode *LdSt = cast<LSBaseSDNode>(Op);
1302 ? cast<LoadSDNode>(Op)->getAddressingMode()
1303 : cast<StoreSDNode>(Op)->getAddressingMode();
1354 ? cast<LoadSDNode>(Op)->getAddressingMode()
1355 : cast<StoreSDNode>(Op)->getAddressingMode();
1465 MachineMemOperand *MemOp = cast<MemSDNode>(N)->getMemOperand();
1466 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Result), {MemOp});
1470 LoadSDNode *LD = cast<LoadSDNode>(N);
1549 LoadSDNode *LD = cast<LoadSDNode>(N);
1576 LoadSDNode *LD = cast<LoadSDNode>(N);
1627 LoadSDNode *LD = cast<LoadSDNode>(N);
2037 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
2038 CurDAG->setNodeMemRefs(cast<MachineSDNode>(VLd), {MemOp});
2075 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
2164 CurDAG->setNodeMemRefs(cast<MachineSDNode>(VSt), {MemOp});
2188 CurDAG->setNodeMemRefs(cast<MachineSDNode>(VStA), {MemOp});
2207 CurDAG->setNodeMemRefs(cast<MachineSDNode>(VStB), {MemOp});
2226 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
2317 CurDAG->setNodeMemRefs(cast<MachineSDNode>(VLdLn), {MemOp});
2612 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
2613 CurDAG->setNodeMemRefs(cast<MachineSDNode>(VLdDup), {MemOp});
2812 EVT MemTy = cast<MemSDNode>(N)->getMemoryVT();
2828 MachineMemOperand *MemOp = cast<MemSDNode>(N)->getMemOperand();
2829 CurDAG->setNodeMemRefs(cast<MachineSDNode>(CmpSwap), {MemOp});
2938 StoreSDNode *ST = cast<StoreSDNode>(N);
2958 CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {MemOp});
2985 unsigned Val = cast<ConstantSDNode>(N)->getZExtValue();
3021 CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {MemOp});
3032 int FI = cast<FrameIndexSDNode>(N)->getIndex();
3860 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
3861 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Ld), {MemOp});
3927 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
3928 CurDAG->setNodeMemRefs(cast<MachineSDNode>(St), {MemOp});
lib/Target/ARM/ARMISelLowering.cpp 2085 cast<Instruction>(U)->getParent() == BB;
4254 auto *RHSC = cast<ConstantSDNode>(RHS.getNode());
7095 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode());
7761 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op.getNode());
7804 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op.getNode());
8929 LoadSDNode *LD = cast<LoadSDNode>(Op.getNode());
8959 StoreSDNode *ST = cast<StoreSDNode>(Op.getNode());
8988 MaskedLoadSDNode *N = cast<MaskedLoadSDNode>(Op.getNode());
9082 MachineMemOperand *MemOp = cast<MemSDNode>(N)->getMemOperand();
9083 DAG.setNodeMemRefs(cast<MachineSDNode>(CmpSwap), {MemOp});
12585 !cast<LoadSDNode>(InNode)->isVolatile()) {
12587 LoadSDNode *LD = cast<LoadSDNode>(InNode);
12640 if (ISD::isNormalLoad(Elt) && !cast<LoadSDNode>(Elt)->isVolatile())
12798 !ISD::isNormalLoad(Elt) || cast<LoadSDNode>(Elt)->isVolatile())
12853 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(N);
12880 MemSDNode *MemN = cast<MemSDNode>(N);
13150 MemIntrinsicSDNode *VLDMemInt = cast<MemIntrinsicSDNode>(VLD);
13394 StoreSDNode *St = cast<StoreSDNode>(N);
13833 LoadSDNode *LD = cast<LoadSDNode>(N0.getNode());
14741 !areExtDoubled(cast<Instruction>(Ext1)) ||
14742 !areExtDoubled(cast<Instruction>(Ext2)))
14796 Instruction *Shuffle = cast<Instruction>(I->getOperand(Op));
14800 Instruction *Insn = cast<Instruction>(U.getUser());
15447 ConstantSDNode *Pos = cast<ConstantSDNode>(Op.getOperand(1).getNode());
15564 InlineAsm *IA = cast<InlineAsm>(CI->getCalledValue());
16263 Info.align = MaybeAlign(cast<ConstantInt>(AlignArg)->getZExtValue());
16304 Info.align = MaybeAlign(cast<ConstantInt>(AlignArg)->getZExtValue());
16333 PointerType *PtrTy = cast<PointerType>(I.getArgOperand(0)->getType());
16345 PointerType *PtrTy = cast<PointerType>(I.getArgOperand(1)->getType());
16584 unsigned BitWidth = cast<VectorType>(VectorTy)->getBitWidth();
16609 Type *ValTy = cast<PointerType>(Addr->getType())->getElementType();
16639 cast<PointerType>(Addr->getType())->getElementType());
lib/Target/ARM/ARMInstrInfo.cpp 111 cast<GlobalValue>((*MI->memoperands_begin())->getValue());
lib/Target/ARM/ARMParallelDSP.cpp 114 Value *LHS = cast<Instruction>(I->getOperand(0))->getOperand(0);
115 Value *RHS = cast<Instruction>(I->getOperand(1))->getOperand(0);
661 V = DT->dominates(cast<Instruction>(A), cast<Instruction>(B)) ? B : A;
661 V = DT->dominates(cast<Instruction>(A), cast<Instruction>(B)) ? B : A;
663 return &*++BasicBlock::iterator(cast<Instruction>(V));
676 Instruction *Mul = cast<Instruction>(MulCand->Root);
682 Mul = cast<Instruction>(Builder.CreateSExt(Mul, R.getRoot()->getType()));
729 R.UpdateRoot(cast<Instruction>(Acc));
750 auto *Source = cast<Instruction>(A);
751 auto *Sink = cast<Instruction>(B);
788 IntegerType *OffsetTy = cast<IntegerType>(Offset->getType());
lib/Target/ARM/AsmParser/ARMAsmParser.cpp 2490 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2497 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2504 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2511 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2534 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2540 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2546 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2555 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2563 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2569 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2575 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2581 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2587 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2595 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2603 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2611 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2619 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2627 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2635 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2644 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2653 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2661 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2669 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2678 const MCSymbolRefExpr *SR = cast<MCSymbolRefExpr>(Imm.Val);
2690 const MCSymbolRefExpr *SR = cast<MCSymbolRefExpr>(Imm.Val);
2752 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3132 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3227 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3234 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3243 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3252 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3261 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3269 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3300 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3312 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3329 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3336 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3351 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3362 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3368 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3374 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
8366 (int64_t) (cast<MCConstantExpr>(SubExprVal))->getValue();
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp 890 unsigned Type = cast<MCSymbolELF>(Sym)->getType();
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp 647 auto *Symbol = cast<MCSymbolELF>(getContext().getOrCreateSymbol(
658 auto *Symbol = cast<MCSymbolELF>(getContext().getOrCreateSymbol(
1142 unsigned Type = cast<MCSymbolELF>(Symbol)->getType();
lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp 330 const MCConstantExpr *Constant = cast<MCConstantExpr>(Expr);
lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp 1208 const ARMMCExpr *ARM16Expr = cast<ARMMCExpr>(E);
lib/Target/ARM/MVETailPredication.cpp 143 return cast<IntrinsicInst>(&I);
165 Decrement = cast<IntrinsicInst>(&I);
274 unsigned Lanes = cast<VectorType>(Insert->getType())->getNumElements();
285 auto *PtrTy = cast<PointerType>(I->getOperand(TypeOp)->getType());
286 return cast<VectorType>(PtrTy->getElementType());
296 VectorType *VecTy = getVectorType(cast<IntrinsicInst>(&I));
304 MaskedInsts.push_back(cast<IntrinsicInst>(&I));
320 ConstantInt *VF = ConstantInt::get(cast<IntegerType>(TripCount->getType()),
481 Builder.SetInsertPoint(cast<Instruction>(Predicate));
483 ConstantInt::get(cast<IntegerType>(Ty), VecTy->getNumElements());
496 NewPredicates[Predicate] = cast<Instruction>(TailPredicate);
lib/Target/AVR/AVR.h 44 return cast<PointerType>(V->getType())->getAddressSpace() == ProgramMemory;
lib/Target/AVR/AVRISelDAGToDAG.cpp 107 MVT VT = cast<MemSDNode>(Op)->getMemoryVT().getSimpleVT();
122 const LoadSDNode *LD = cast<LoadSDNode>(N);
313 int FI = cast<FrameIndexSDNode>(N)->getIndex();
326 const StoreSDNode *ST = cast<StoreSDNode>(N);
352 CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {ST->getMemOperand()});
361 const LoadSDNode *LD = cast<LoadSDNode>(N);
407 CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {LD->getMemOperand()});
lib/Target/AVR/AVRISelLowering.cpp 1175 F = cast<Function>(GV);
lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp 234 AVRMCExpr const *AVRExpr = cast<AVRMCExpr>(Expr);
lib/Target/BPF/BPFAbstractMemberAccess.cpp 221 const DISubrange *SR = cast<DISubrange>(Element);
354 const DIType *PType = stripQualifiers(cast<DIType>(ParentType));
355 const DIType *CType = stripQualifiers(cast<DIType>(ChildType));
527 auto Member = cast<DIDerivedType>(CTy->getElements()[Index]);
556 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]);
573 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]);
595 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]);
627 MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]);
658 MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]);
730 DIType *Ty = stripQualifiers(cast<DIType>(CInfo.Metadata));
760 auto *DTy = cast<DIDerivedType>(Ty);
826 auto *CTy = cast<DICompositeType>(stripQualifiers(cast<DIType>(MDN)));
826 auto *CTy = cast<DICompositeType>(stripQualifiers(cast<DIType>(MDN)));
lib/Target/BPF/BPFISelDAGToDAG.cpp 226 int FI = cast<FrameIndexSDNode>(Node)->getIndex();
253 const LoadSDNode *LD = cast<LoadSDNode>(Node);
358 DL.getStructLayout(cast<StructType>(CS->getType()))->getSizeInBytes();
lib/Target/BPF/BTFDebug.cpp 169 const auto *Enum = cast<DIEnumerator>(Element);
237 const auto *DDTy = cast<DIDerivedType>(Element);
457 auto E = cast<DIDerivedType>(Element);
471 visitTypeEntry(cast<DIDerivedType>(Element));
485 const DISubrange *SR = cast<DISubrange>(Element);
642 auto E = cast<DIDerivedType>(Element);
656 const auto *MemberType = cast<DIDerivedType>(Element);
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp 391 const_cast<HexagonMCExpr *>(cast<HexagonMCExpr>(getImm()));
540 if (I.isExpr() && cast<HexagonMCExpr>(I.getExpr())->signMismatch() &&
705 auto *MCE = cast<MCConstantExpr>(Value);
lib/Target/Hexagon/HexagonAsmPrinter.cpp 257 int32_t V = cast<MCConstantExpr>(HE->getExpr())->getValue();
lib/Target/Hexagon/HexagonCommonGEP.cpp 208 Type *NexTy = cast<SequentialType>(Ty)->getElementType();
215 Type *NextTy = cast<StructType>(Ty)->getElementType(i);
258 StructType *STy = cast<StructType>(GN.PTy);
370 GetElementPtrInst *UserG = cast<GetElementPtrInst>(*UI);
382 Type *PtrTy = cast<PointerType>(PtrOp->getType())->getElementType();
419 BasicBlock *B = cast<BasicBlock>(*I);
676 BasicBlock *B = cast<BasicBlock>(*I);
686 BasicBlock *Dom = cast<BasicBlock>(*I);
707 BasicBlock *DomB = cast<BasicBlock>(*I);
711 BasicBlock *B = cast<BasicBlock>(*I);
740 Instruction *In = cast<Instruction>(V);
779 ? cast<PHINode>(R)->getIncomingBlock(*U)
780 : cast<Instruction>(R)->getParent();
939 BasicBlock *B = cast<BasicBlock>(I->second);
957 BasicBlock *PB = cast<Instruction>(R)->getParent();
1127 Type *ElTy = cast<PointerType>(InpTy->getScalarType())->getElementType();
1188 BasicBlock *LastB = cast<BasicBlock>(LocV);
1249 BasicBlock *B = cast<BasicBlock>(BO[i]);
1255 BasicBlock *B = cast<BasicBlock>(BO[i-1]);
1264 Instruction *In = cast<Instruction>(*I);
lib/Target/Hexagon/HexagonConstPropagation.cpp 423 const ConstantInt *CI = cast<ConstantInt>(C);
433 const ConstantFP *CF = cast<ConstantFP>(C);
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp 70 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
345 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(IntN)->getMemOperand();
447 LoadSDNode *LD = cast<LoadSDNode>(N);
469 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
556 StoreSDNode *ST = cast<StoreSDNode>(N);
700 auto *CN = cast<ConstantFPSDNode>(N);
721 assert(!(cast<ConstantSDNode>(N)->getZExtValue() >> 1));
722 unsigned Opc = (cast<ConstantSDNode>(N)->getSExtValue() != 0)
735 int FX = cast<FrameIndexSDNode>(N)->getIndex();
812 int Mask = -cast<ConstantSDNode>(A.getNode())->getSExtValue();
966 SDValue LDBasePtr = cast<MemSDNode>(SYNode)->getBasePtr();
967 SDValue STBasePtr = cast<MemSDNode>(UUse)->getBasePtr();
1863 cast<Instruction>(U)->getParent()->getParent() == &CurF)
2238 SDValue BasePtr = cast<MemSDNode>(N)->getBasePtr();
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp 948 SDValue Addr = cast<LoadSDNode>(N)->getBasePtr();
2010 auto *SN = cast<ShuffleVectorSDNode>(N);
2155 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
2156 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Result), {MemOp});
2192 MachineMemOperand *MemOp = cast<MemIntrinsicSDNode>(N)->getMemOperand();
2193 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Result), {MemOp});
lib/Target/Hexagon/HexagonISelLowering.cpp 570 int32_t V = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
1700 unsigned ID = cast<IntrinsicInst>(Inst)->getIntrinsicID();
1715 V = cast<Operator>(V)->getOperand(0);
1717 V = cast<Instruction>(V)->getOperand(0);
2631 LoadSDNode *LN = cast<LoadSDNode>(Op.getNode());
2641 StoreSDNode *SN = cast<StoreSDNode>(Op.getNode());
2657 LoadSDNode *LN = cast<LoadSDNode>(Op.getNode());
3226 auto *L = cast<LoadSDNode>(Load);
3243 auto PT = cast<PointerType>(Addr->getType());
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp 765 unsigned Idx = cast<ConstantSDNode>(IdxV.getNode())->getZExtValue();
813 unsigned Idx = cast<ConstantSDNode>(IdxV.getNode())->getZExtValue();
1168 unsigned Idx = cast<ConstantSDNode>(IdxV.getNode())->getZExtValue();
1476 LSBaseSDNode *BN = cast<LSBaseSDNode>(Op.getNode());
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 333 Instruction *U = cast<Instruction>(P.second);
366 if (!isa<Instruction>(V) || cast<Instruction>(V)->getParent() != nullptr)
440 Instruction *U = cast<Instruction>(V);
446 Instruction *U = cast<Instruction>(V);
632 if (!isa<ConstantInt>(InitV) || !cast<ConstantInt>(InitV)->isZero())
991 if (CmpInst *CI = cast<CmpInst>(In))
1018 IntegerType *Ty = cast<IntegerType>(InV->getType());
1036 IntegerType *TruncTy = cast<IntegerType>(OrigTy);
1106 cast<Instruction>(T)->setOperand(0, P);
1119 auto *BB = cast<Instruction>(Out)->getParent();
1329 auto *R = cast<Instruction>(V);
1335 auto *T = cast<Instruction>(*I);
1412 if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero())
1423 auto *VTy = cast<IntegerType>(ShVal->getType());
1424 auto *ATy = cast<IntegerType>(ShAmt->getType());
1462 cast<User>(S)->replaceUsesOfWith(S, PN);
1603 return B.CreateBinOp(cast<BinaryOperator>(T)->getOpcode(),
1819 SelectInst *SelI = (T && isa<SelectInst>(T)) ? cast<SelectInst>(T) : SI;
2014 auto *StoreEv = cast<SCEVAddRecExpr>(SE->getSCEV(StorePtr));
2023 auto *LI = cast<LoadInst>(SI->getValueOperand());
2024 auto *LoadEv = cast<SCEVAddRecExpr>(SE->getSCEV(LI->getPointerOperand()));
lib/Target/Hexagon/HexagonTargetObjectFile.cpp 299 const StructType *STy = cast<const StructType>(Ty);
308 const ArrayType *ATy = cast<const ArrayType>(Ty);
312 const VectorType *PTy = cast<const VectorType>(Ty);
lib/Target/Hexagon/HexagonTargetTransformInfo.cpp 48 if (cast<VectorType>(VecTy)->isScalable())
51 if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy())
163 VectorType *VecTy = cast<VectorType>(Src);
267 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType()
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp 458 PHINode *PN = cast<PHINode>(D->front());
468 Instruction *User = cast<Instruction>(U.getUser());
498 Instruction *BEUser = cast<Instruction>(U.getUser());
lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp 616 MCBinaryExpr const *Binary = cast<MCBinaryExpr>(ME);
lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.cpp 94 auto ELFSymbol = cast<MCSymbolELF>(Symbol);
144 auto ELFSymbol = cast<MCSymbolELF>(Symbol);
lib/Target/Hexagon/MCTargetDesc/HexagonMCExpr.cpp 49 const MCBinaryExpr *be = cast<MCBinaryExpr>(Expr);
55 const MCSymbolRefExpr &symRef = *cast<MCSymbolRefExpr>(Expr);
72 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm);
lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp 795 const_cast<HexagonMCExpr &>(*cast<HexagonMCExpr>(&Expr));
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp 480 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() ==
511 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() ==
550 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() ==
lib/Target/Lanai/LanaiISelDAGToDAG.cpp 287 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node);
318 int FI = cast<FrameIndexSDNode>(Node)->getIndex();
lib/Target/Lanai/LanaiInstrInfo.cpp 738 cast<FixedStackPseudoSourceValue>(Accesses.front()->getPseudoValue())
lib/Target/MSP430/MSP430ISelDAGToDAG.cpp 329 LoadSDNode *LD = cast<LoadSDNode>(N);
368 CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {MemRef});
395 int FI = cast<FrameIndexSDNode>(Node)->getIndex();
lib/Target/MSP430/MSP430ISelLowering.cpp 1329 LoadSDNode *LD = cast<LoadSDNode>(N);
lib/Target/Mips/AsmParser/MipsAsmParser.cpp 6056 return (cast<MCSymbolRefExpr>(Expr)->getKind() != MCSymbolRefExpr::VK_None);
6058 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Expr);
6064 return isEvaluated(cast<MCUnaryExpr>(Expr)->getSubExpr());
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp 79 auto *Label = cast<MCSymbolELF>(L);
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp 599 return cast<MCConstantExpr>(Expr)->getValue();
603 unsigned Res = getExprOpValue(cast<MCBinaryExpr>(Expr)->getLHS(), Fixups, STI);
604 Res += getExprOpValue(cast<MCBinaryExpr>(Expr)->getRHS(), Fixups, STI);
609 const MipsMCExpr *MipsExpr = cast<MipsMCExpr>(Expr);
728 switch(cast<MCSymbolRefExpr>(Expr)->getKind()) {
lib/Target/Mips/MCTargetDesc/MipsMCExpr.cpp 139 cast<MipsMCExpr>(cast<MipsMCExpr>(getSubExpr())->getSubExpr())
139 cast<MipsMCExpr>(cast<MipsMCExpr>(getSubExpr())->getSubExpr())
226 fixELFSymbolsInTLSFixupsImpl(cast<MipsMCExpr>(Expr)->getSubExpr(), Asm);
231 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Expr);
239 const MCSymbolRefExpr &SymRef = *cast<MCSymbolRefExpr>(Expr);
244 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm);
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp 882 auto *Symbol = cast<MCSymbolELF>(S);
967 auto *Symbol = cast<MCSymbolELF>(S);
lib/Target/Mips/Mips16HardFloat.cpp 77 StructType *ST = cast<StructType>(T);
lib/Target/Mips/MipsAsmPrinter.cpp 1066 cast<MCSymbolELF>(OutContext.getOrCreateSymbol(StringRef(x)));
lib/Target/Mips/MipsFastISel.cpp 360 const ConstantInt *CI = cast<ConstantInt>(C);
497 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue();
510 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
510 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
513 Op = cast<AddOperator>(Op)->getOperand(0);
531 const AllocaInst *AI = cast<AllocaInst>(Obj);
894 if (cast<LoadInst>(I)->isAtomic())
908 if (!emitLoad(VT, ResultReg, Addr, cast<LoadInst>(I)->getAlignment()))
919 if (cast<StoreInst>(I)->isAtomic())
937 if (!emitStore(VT, SrcReg, Addr, cast<StoreInst>(I)->getAlignment()))
945 const BranchInst *BI = cast<BranchInst>(I);
987 const CmpInst *CI = cast<CmpInst>(I);
1045 const SelectInst *SI = cast<SelectInst>(I);
1659 const auto *MTI = cast<MemTransferInst>(II);
1669 const MemSetInst *MSI = cast<MemSetInst>(II);
1683 const ReturnInst *Ret = cast<ReturnInst>(I);
lib/Target/Mips/MipsISelDAGToDAG.cpp 299 cast<MemSDNode>(Node)->getMemoryVT().getSizeInBits() / 8 <=
300 cast<MemSDNode>(Node)->getAlignment()) &&
lib/Target/Mips/MipsISelLowering.cpp 3816 cast<VectorType>(type)->getBitWidth() == 128)
4363 cast<StoreSDNode>(Store.getNode())->getMemOperand()->setValue(
lib/Target/Mips/MipsSEISelDAGToDAG.cpp 768 auto *CN = cast<ConstantFPSDNode>(Node);
792 auto *CN = cast<ConstantSDNode>(Node);
981 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Node);
lib/Target/NVPTX/MCTargetDesc/NVPTXInstPrinter.cpp 307 const MCSymbol &Sym = cast<MCSymbolRefExpr>(Expr)->getSymbol();
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 738 const Instruction *instr = cast<Instruction>(U);
969 const GlobalVariable *GVar = cast<GlobalVariable>(V);
1288 unsigned NumBits = cast<IntegerType>(Ty)->getBitWidth();
1532 sz = cast<IntegerType>(Ty)->getBitWidth();
1804 unsigned char c = (unsigned char)cast<ConstantInt>(CPV)->getZExtValue();
1808 short int16 = (short)cast<ConstantInt>(CPV)->getZExtValue();
1862 const auto *CFP = cast<ConstantFP>(CPV);
1934 bufferLEByte(cast<Constant>(CPV->getOperand(i)), 0, aggBuffer);
1942 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0,
1949 StructType *ST = cast<StructType>(CPV->getType());
1958 bufferLEByte(cast<Constant>(CPV->getOperand(i)), Bytes, aggBuffer);
2016 PointerType *DstTy = cast<PointerType>(CE->getType());
2018 return lowerConstantForGV(cast<const Constant>(CE->getOperand(0)), true);
2033 cast<GEPOperator>(CE)->accumulateConstantOffset(DL, OffsetAI);
2105 return cast<MCTargetExpr>(&Expr)->printImpl(OS, MAI);
lib/Target/NVPTX/NVPTXAsmPrinter.h 177 AP.lowerConstantForGV(cast<Constant>(CExpr), false);
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp 115 i, remapConstant(&M, &*I, cast<Constant>(Operand), Builder));
172 GVMapTy::iterator I = GVMap.find(cast<GlobalVariable>(C));
188 NewValue = remapConstantExpr(M, F, cast<ConstantExpr>(C), Builder);
205 Value *NewOperand = remapConstant(M, F, cast<Constant>(Operand), Builder);
244 Value *NewOperand = remapConstant(M, F, cast<Constant>(Operand), Builder);
286 return cast<GEPOperator>(C)->isInBounds()
288 cast<GEPOperator>(C)->getSourceElementType(),
292 cast<GEPOperator>(C)->getSourceElementType(),
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp 527 cast<ConstantFPSDNode>(N)->getValueAPF(), SDLoc(N), MVT::f16);
739 AddrSpaceCastSDNode *CastN = cast<AddrSpaceCastSDNode>(N);
840 MemSDNode *LD = cast<MemSDNode>(N);
984 MachineMemOperand *MemRef = cast<MemSDNode>(N)->getMemOperand();
985 CurDAG->setNodeMemRefs(cast<MachineSDNode>(NVPTXLD), {MemRef});
999 MemSDNode *MemSD = cast<MemSDNode>(N);
1223 MachineMemOperand *MemRef = cast<MemSDNode>(N)->getMemOperand();
1224 CurDAG->setNodeMemRefs(cast<MachineSDNode>(LD), {MemRef});
1241 Mem = cast<MemIntrinsicSDNode>(N);
1259 Mem = cast<MemSDNode>(N);
1661 CurDAG->setNodeMemRefs(cast<MachineSDNode>(LD), {MemRef});
1705 MemSDNode *ST = cast<MemSDNode>(N);
1864 MachineMemOperand *MemRef = cast<MemSDNode>(N)->getMemOperand();
1865 CurDAG->setNodeMemRefs(cast<MachineSDNode>(NVPTXST), {MemRef});
1878 MemSDNode *MemSD = cast<MemSDNode>(N);
2087 MachineMemOperand *MemRef = cast<MemSDNode>(N)->getMemOperand();
2088 CurDAG->setNodeMemRefs(cast<MachineSDNode>(ST), {MemRef});
2099 MemSDNode *Mem = cast<MemSDNode>(Node);
2176 MemSDNode *Mem = cast<MemSDNode>(N);
2234 MachineMemOperand *MemRef = cast<MemSDNode>(N)->getMemOperand();
2235 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Ret), {MemRef});
2248 MemSDNode *Mem = cast<MemSDNode>(N);
2338 MachineMemOperand *MemRef = cast<MemSDNode>(N)->getMemOperand();
2339 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Ret), {MemRef});
lib/Target/NVPTX/NVPTXISelLowering.cpp 1318 const CallInst *CallI = cast<CallInst>(CS.getInstruction());
1340 sz = cast<IntegerType>(Ty)->getBitWidth();
1391 if (getAlign(*cast<CallInst>(CalleeI), Idx, Align))
1394 const Value *CalleeV = cast<CallInst>(CalleeI)->getCalledValue();
1397 const ConstantExpr *CE = cast<ConstantExpr>(CalleeV);
1401 CalleeV = cast<ConstantExpr>(CalleeV)->getOperand(0);
1414 if (getAlign(*cast<Function>(DirectCallee), Idx, Align))
2250 LoadSDNode *LD = cast<LoadSDNode>(Node);
2319 MemSDNode *MemSD = cast<MemSDNode>(N);
2413 StoreSDNode *ST = cast<StoreSDNode>(Node);
3802 MaybeAlign(cast<ConstantInt>(I.getArgOperand(1))->getZExtValue());
3822 MaybeAlign(cast<ConstantInt>(I.getArgOperand(1))->getZExtValue());
4810 LoadSDNode *LD = cast<LoadSDNode>(N);
4916 unsigned IntrinNo = cast<ConstantSDNode>(Intrin.getNode())->getZExtValue();
4997 MemIntrinsicSDNode *MemSD = cast<MemIntrinsicSDNode>(N);
5031 MemIntrinsicSDNode *MemSD = cast<MemIntrinsicSDNode>(N);
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp 106 auto *SI = cast<StoreInst>(*LI->user_begin());
lib/Target/NVPTX/NVPTXLowerArgs.cpp 189 InsertPt = ++cast<Instruction>(Ptr)->getIterator();
lib/Target/NVPTX/NVVMReflect.cpp 136 const ConstantExpr *GEP = cast<ConstantExpr>(Str);
142 const Value *Operand = cast<Constant>(Sym)->getOperand(0);
154 assert(cast<ConstantDataSequential>(Operand)->isCString() &&
157 StringRef ReflectArg = cast<ConstantDataSequential>(Operand)->getAsString();
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 45 int64_t Res = cast<MCConstantExpr>(E)->getValue();
50 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(E);
75 const MCBinaryExpr *BE = cast<MCBinaryExpr>(E);
1241 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(E);
1279 const MCUnaryExpr *UE = cast<MCUnaryExpr>(E);
1287 const MCBinaryExpr *BE = cast<MCBinaryExpr>(E);
1328 const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(E);
1345 const MCUnaryExpr *UE = cast<MCUnaryExpr>(E);
1353 const MCBinaryExpr *BE = cast<MCBinaryExpr>(E);
1770 MCSymbolELF *Sym = cast<MCSymbolELF>(getContext().getOrCreateSymbol(Name));
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp 48 switch (cast<PPCMCExpr>(Expr)->getKind()) {
lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp 475 RefExp = cast<MCSymbolRefExpr>(BinExpr->getLHS());
476 ConstExp = cast<MCConstantExpr>(BinExpr->getRHS());
478 RefExp = cast<MCSymbolRefExpr>(Op.getExpr());
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp 188 auto *Symbol = cast<MCSymbolELF>(S);
lib/Target/PowerPC/PPCAsmPrinter.cpp 1560 TS->emitLocalEntry(cast<MCSymbolELF>(CurrentFnSym), LocalOffsetExp);
1733 cast<MCSymbolXCOFF>(CurrentFnDescSym)->setContainingCsect(FnDescSec);
1755 MCSectionXCOFF *CSect = cast<MCSectionXCOFF>(
1760 MCSymbolXCOFF *GVSym = cast<MCSymbolXCOFF>(getSymbol(GV));
1794 cast<MCSymbolXCOFF>(CurrentFnDescSym)->getContainingCsect());
1820 cast<MCSymbolXCOFF>(TOCBaseSym)->setContainingCsect(TOCBaseSection);
lib/Target/PowerPC/PPCBoolRetToInt.cpp 264 auto *I = cast<Instruction>(U.getUser());
lib/Target/PowerPC/PPCFastISel.cpp 304 const auto *I = cast<Instruction>(V);
355 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue();
368 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
368 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
371 Op = cast<AddOperator>(Op)->getOperand(0);
391 const AllocaInst *AI = cast<AllocaInst>(Obj);
595 if (cast<LoadInst>(I)->isAtomic())
744 if (cast<StoreInst>(I)->isAtomic())
770 const BranchInst *BI = cast<BranchInst>(I);
1694 const ReturnInst *Ret = cast<ReturnInst>(I);
1865 const IndirectBrInst *IB = cast<IndirectBrInst>(I);
2001 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Align);
lib/Target/PowerPC/PPCISelDAGToDAG.cpp 487 Imm = cast<ConstantSDNode>(N)->getZExtValue();
497 Imm = cast<ConstantSDNode>(N)->getZExtValue();
575 int FI = cast<FrameIndexSDNode>(N)->getIndex();
1052 StoreSDNode *STN = cast<StoreSDNode>(*Use);
1093 int64_t Imm = cast<ConstantSDNode>(N)->getZExtValue();
4203 MachineMemOperand *MemOp = cast<MemSDNode>(N)->getMemOperand();
4204 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Result), {MemOp});
4464 StoreSDNode *ST = cast<StoreSDNode>(N);
4473 LoadSDNode *LD = cast<LoadSDNode>(N);
4937 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(N);
4964 CurDAG->setNodeMemRefs(cast<MachineSDNode>(NewN), {MemOp});
lib/Target/PowerPC/PPCISelLowering.cpp 1753 ShuffleVectorSDNode *SVOp = cast<ShuffleVectorSDNode>(N);
2092 ShuffleVectorSDNode *SVOp = cast<ShuffleVectorSDNode>(N);
2211 ShuffleVectorSDNode *SVOp = cast<ShuffleVectorSDNode>(N);
2246 Imm = (int16_t)cast<ConstantSDNode>(N)->getZExtValue();
2248 return Imm == (int32_t)cast<ConstantSDNode>(N)->getZExtValue();
2250 return Imm == (int64_t)cast<ConstantSDNode>(N)->getZExtValue();
2593 SDValue Val = cast<StoreSDNode>(N)->getValue();
7578 MachineMemOperand *MMO = cast<LoadSDNode>(Origin)->getMemOperand();
9577 auto *AtomicNode = cast<AtomicSDNode>(Op.getNode());
9714 LoadSDNode *LN = cast<LoadSDNode>(Op.getNode());
9802 StoreSDNode *SN = cast<StoreSDNode>(Op.getNode());
11928 cast<MemSDNode>(*UI)->getChain().getNode() == LoadRoot) ||
13047 LoadSDNode *LDN = cast<LoadSDNode>(FirstOperand.getNode());
13131 LoadSDNode *LD = cast<LoadSDNode>(N);
13143 MemIntrinsicSDNode *Intrin = cast<MemIntrinsicSDNode>(N);
13200 StoreSDNode *ST = cast<StoreSDNode>(N);
13213 MemIntrinsicSDNode *Intrin = cast<MemIntrinsicSDNode>(N);
13276 cast<StoreSDNode>(N)->isTruncatingStore() || !ValidTypeForStoreFltAsInt)
13302 cast<StoreSDNode>(N)->getMemoryVT(),
13303 cast<StoreSDNode>(N)->getMemOperand());
13413 return combineVReverseMemOP(cast<ShuffleVectorSDNode>(N), LSBase, DCI);
13429 SDValue Val= combineVReverseMemOP(SVN, cast<LSBaseSDNode>(N), DCI);
13435 if (cast<StoreSDNode>(N)->isUnindexed() && Opcode == ISD::BSWAP &&
13442 EVT mVT = cast<StoreSDNode>(N)->getMemoryVT();
13467 Ops, cast<StoreSDNode>(N)->getMemoryVT(),
13468 cast<StoreSDNode>(N)->getMemOperand());
13476 EVT MemVT = cast<StoreSDNode>(N)->getMemoryVT();
13486 cast<StoreSDNode>(N)->setTruncatingStore(true);
13502 LoadSDNode *LD = cast<LoadSDNode>(N);
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp 315 E.Offset = cast<SCEVConstant>(SE->getMinusSCEV(E.Offset, Offset));
317 E.Offset = cast<SCEVConstant>(SE->getNegativeSCEV(Offset));
330 cast<SCEVAddRecExpr>(BucketChain.BaseSCEV);
429 cast<Instruction>(NewBasePtr)->getParent() == PtrIP->getParent())
440 NewPtr->insertAfter(cast<Instruction>(PtrInc));
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp 701 auto SE = cast<MCSymbolRefExpr>(getImm());
726 auto SE = cast<MCSymbolRefExpr>(getImm());
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp 51 const MCFixup *T = cast<RISCVMCExpr>(Fixup.getValue())->getPCRelHiFixup();
lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp 93 cast<RISCVMCExpr>(Expr)->getKind() == RISCVMCExpr::VK_RISCV_32_PCREL)
lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp 265 const RISCVMCExpr *RVExpr = cast<RISCVMCExpr>(Expr);
339 cast<MCSymbolRefExpr>(Expr)->getKind() == MCSymbolRefExpr::VK_None) {
lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp 235 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Expr);
244 const MCSymbolRefExpr &SymRef = *cast<MCSymbolRefExpr>(Expr);
250 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm);
lib/Target/RISCV/RISCVISelDAGToDAG.cpp 115 auto ConstNode = cast<ConstantSDNode>(Node);
131 int FI = cast<FrameIndexSDNode>(Node)->getIndex();
148 uint64_t ShAmt = cast<ConstantSDNode>(Op1.getNode())->getZExtValue();
lib/Target/RISCV/RISCVISelLowering.cpp 240 PointerType *PtrTy = cast<PointerType>(I.getArgOperand(0)->getType());
1990 cast<StoreSDNode>(Store.getNode())
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp 1245 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Expr);
1250 const MCSymbolRefExpr &SymRef = *cast<MCSymbolRefExpr>(Expr);
1255 return hasGOTReference(cast<MCUnaryExpr>(Expr)->getSubExpr());
lib/Target/Sparc/MCTargetDesc/SparcMCCodeEmitter.cpp 165 const MCSymbolRefExpr *SymExpr = cast<MCSymbolRefExpr>(SExpr->getSubExpr());
lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp 178 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Expr);
185 const MCSymbolRefExpr &SymRef = *cast<MCSymbolRefExpr>(Expr);
191 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm);
207 auto ELFSymbol = cast<MCSymbolELF>(Symbol);
lib/Target/Sparc/SparcISelLowering.cpp 830 PointerType *Ty = cast<PointerType>(CLI.getArgs()[0].Ty);
2770 LoadSDNode *LdNode = cast<LoadSDNode>(Op.getNode());
2819 StoreSDNode *St = cast<StoreSDNode>(Op.getNode());
3388 LoadSDNode *Ld = cast<LoadSDNode>(N);
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp 674 OS << "Mem:" << *cast<MCConstantExpr>(Op.Disp);
678 OS << *cast<MCConstantExpr>(Op.Length.Imm) << ",";
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp 1330 StoreSDNode *StoreNode = cast<StoreSDNode>(Node);
1433 auto *Store = cast<StoreSDNode>(N);
1453 auto *StoreA = cast<StoreSDNode>(N);
1530 uint64_t Val = cast<ConstantSDNode>(Node)->getZExtValue();
1554 cast<ConstantSDNode>(CCValid.getNode())->getZExtValue();
1556 cast<ConstantSDNode>(CCMask.getNode())->getZExtValue();
1586 auto *BVN = cast<BuildVectorSDNode>(Node);
1596 APFloat Imm = cast<ConstantFPSDNode>(Node)->getValueAPF();
1609 auto *Store = cast<StoreSDNode>(Node);
lib/Target/SystemZ/SystemZISelLowering.cpp 850 auto *SingleUser = cast<Instruction>(*I->user_begin());
3644 auto *Node = cast<AtomicSDNode>(Op.getNode());
3653 auto *Node = cast<AtomicSDNode>(Op.getNode());
3670 auto *Node = cast<AtomicSDNode>(Op.getNode());
3743 auto *Node = cast<AtomicSDNode>(Op.getNode());
3778 auto *Node = cast<AtomicSDNode>(Op.getNode());
3902 auto *Node = cast<MemIntrinsicSDNode>(Op.getNode());
4724 auto *BVN = cast<BuildVectorSDNode>(Op.getNode());
4754 auto *VSN = cast<ShuffleVectorSDNode>(Op.getNode());
5075 MachineMemOperand *MMO = cast<AtomicSDNode>(N)->getMemOperand();
5088 MachineMemOperand *MMO = cast<AtomicSDNode>(N)->getMemOperand();
5093 if (cast<AtomicSDNode>(N)->getOrdering() ==
5106 MachineMemOperand *MMO = cast<AtomicSDNode>(N)->getMemOperand();
5587 auto *SN = cast<StoreSDNode>(N);
5629 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op1.getNode());
5652 ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(N);
lib/Target/SystemZ/SystemZTDC.cpp 290 std::tie(Op0, Mask0, Worthy0) = ConvertedInsts[cast<Instruction>(I.getOperand(0))];
291 std::tie(Op1, Mask1, Worthy1) = ConvertedInsts[cast<Instruction>(I.getOperand(1))];
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp 819 switch (cast<CmpInst>(I)->getPredicate()) {
914 const Instruction *UserI = cast<Instruction>(*Ld->user_begin());
930 UserI = cast<Instruction>(*UserI->user_begin());
1005 if (isFoldableLoad(cast<LoadInst>(I), FoldedValue)) {
1006 const Instruction *UserI = cast<Instruction>(*FoldedValue->user_begin());
1037 const Instruction *LdUser = cast<Instruction>(*I->user_begin());
lib/Target/TargetLoweringObjectFile.cpp 64 if (!isNullOrUndef(cast<Constant>(Operand)))
111 return cast<ArrayType>(C->getType())->getNumElements() == 1;
153 const auto *GVar = cast<GlobalVariable>(GO);
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp 516 auto *WasmSym = cast<MCSymbolWasm>(Sym);
636 auto WS = cast<MCSectionWasm>(getStreamer().getCurrentSection().first);
677 auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName));
695 auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName));
719 auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName));
840 auto CWS = cast<MCSectionWasm>(getStreamer().getCurrentSection().first);
lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp 234 auto *WasmSym = cast<MCSymbolWasm>(Sym);
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp 281 auto Expr = cast<MCSymbolRefExpr>(Op.getExpr());
282 auto *Sym = cast<MCSymbolWasm>(&Expr->getSymbol());
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp 91 auto Sym = cast<MCSymbolWasm>(It.getValue());
104 auto *Sym = cast<MCSymbolWasm>(getSymbol(&F));
174 const auto *CU = cast<DICompileUnit>(Debug->getOperand(I));
238 if (auto *MD = cast<ConstantAsMetadata>(Policy))
239 if (auto *I = cast<ConstantInt>(MD->getValue()))
285 auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym);
lib/Target/WebAssembly/WebAssemblyFastISel.cpp 266 if (!cast<GEPOperator>(U)->isInBounds())
275 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue();
295 auto *CI = cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
295 auto *CI = cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
298 Op = cast<AddOperator>(Op)->getOperand(0);
319 const auto *AI = cast<AllocaInst>(Obj);
450 if (V != nullptr && isa<Argument>(V) && cast<Argument>(V)->hasZExtAttr())
746 const auto *Call = cast<CallInst>(I);
888 const auto *Select = cast<SelectInst>(I);
947 const auto *Trunc = cast<TruncInst>(I);
966 const auto *ZExt = cast<ZExtInst>(I);
983 const auto *SExt = cast<SExtInst>(I);
1000 const auto *ICmp = cast<ICmpInst>(I);
1061 const auto *FCmp = cast<FCmpInst>(I);
1157 const auto *Load = cast<LoadInst>(I);
1214 const auto *Store = cast<StoreInst>(I);
1270 const auto *Br = cast<BranchInst>(I);
1301 const auto *Ret = cast<ReturnInst>(I);
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp 86 auto C = ConstantBCs.insert(cast<Constant>(U.get()));
279 auto *PTy = cast<PointerType>(U->get()->getType());
307 cast<Function>(CallMain->getCalledValue()->stripPointerCasts());
lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp 96 cast<ConstantSDNode>(Node->getOperand(2).getNode())->getZExtValue();
130 const auto *GA = cast<GlobalAddressSDNode>(Node);
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp 391 .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, CmpVal)));
401 .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, 0.0)));
1231 int Tag = cast<ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1452 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(Op.getNode())->getMask();
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 454 auto *CalleeTy = cast<PointerType>(Callee->getType())->getElementType();
611 auto *User = cast<Instruction>(U.getUser());
713 auto *UI = cast<Instruction>(U);
845 auto *ATy = cast<ArrayType>(Clause->getType());
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp 97 Associated = cast<Constant>(Associated->stripPointerCasts());
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp 50 auto *WasmSym = cast<MCSymbolWasm>(Printer.getSymbol(Global));
73 auto *WasmSym = cast<MCSymbolWasm>(Printer.GetExternalSymbolSymbol(Name));
149 const auto *WasmSym = cast<MCSymbolWasm>(Sym);
172 auto *WasmSym = cast<MCSymbolWasm>(Sym);
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp 114 auto *Val = cast<ConstantFP>(Constant::getNullValue(
119 auto *Val = cast<ConstantFP>(Constant::getNullValue(
lib/Target/X86/AsmParser/X86AsmParser.cpp 2247 BaseReg = cast<X86MCExpr>(E)->getRegNo();
2275 IndexReg = cast<X86MCExpr>(E)->getRegNo();
2315 isa<MCConstantExpr>(Disp) && cast<MCConstantExpr>(Disp)->getValue() == 0)
2835 cast<MCConstantExpr>(Op1.getImm())->getValue() == 1)
2840 cast<MCConstantExpr>(Op1.getImm())->getValue() == 1)
lib/Target/X86/AsmParser/X86Operand.h 102 if (auto Imm = cast<MCConstantExpr>(Val)->getValue())
379 cast<MCConstantExpr>(getMemDisp())->getValue() == 0;
399 cast<MCConstantExpr>(getMemDisp())->getValue() == 0;
lib/Target/X86/X86FastISel.cpp 242 const auto *EV = cast<ExtractValueInst>(Cond);
246 const auto *II = cast<IntrinsicInst>(EV->getAggregateOperand());
250 cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U);
874 const AllocaInst *A = cast<AllocaInst>(V);
913 Disp += SL->getElementOffset(cast<ConstantInt>(Op)->getZExtValue());
929 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
929 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1));
932 Op = cast<AddOperator>(Op)->getOperand(0);
1103 const StoreInst *S = cast<StoreInst>(I);
1145 const ReturnInst *Ret = cast<ReturnInst>(I);
1293 const LoadInst *LI = cast<LoadInst>(I);
1426 const CmpInst *CI = cast<CmpInst>(I);
1627 const BranchInst *BI = cast<BranchInst>(I);
2712 unsigned Depth = cast<ConstantInt>(II->getOperand(0))->getZExtValue();
2724 const MemCpyInst *MCI = cast<MemCpyInst>(II);
2732 uint64_t Len = cast<ConstantInt>(MCI->getLength())->getZExtValue();
2753 const MemSetInst *MSI = cast<MemSetInst>(II);
2772 const AllocaInst *Slot = cast<AllocaInst>(II->getArgOperand(1));
2783 const DbgDeclareInst *DI = cast<DbgDeclareInst>(II);
2867 auto *Ty = cast<StructType>(Callee->getReturnType());
3034 unsigned Idx = cast<ConstantInt>(Index)->getZExtValue();
lib/Target/X86/X86ISelDAGToDAG.cpp 778 cast<MemSDNode>(Chain.getNode())->writeMem())
2222 auto *Mgs = cast<X86MaskedGatherScatterSDNode>(Parent);
2226 unsigned AddrSpace = cast<MemSDNode>(Parent)->getPointerInfo().getAddrSpace();
2269 cast<MemSDNode>(Parent)->getPointerInfo().getAddrSpace();
2940 StoreSDNode *StoreNode = cast<StoreSDNode>(Node);
lib/Target/X86/X86ISelLowering.cpp 4862 assert(cast<LoadSDNode>(Load)->isSimple() && "illegal to narrow");
4866 SDValue BasePtr = cast<LoadSDNode>(Load)->getBasePtr();
9597 BuildVectorSDNode *BV = cast<BuildVectorSDNode>(Op.getNode());
21832 StoreSDNode *St = cast<StoreSDNode>(Op.getNode());
21915 LoadSDNode *Ld = cast<LoadSDNode>(Op.getNode());
23553 auto *Fn = cast<Function>(cast<GlobalAddressSDNode>(Op1)->getGlobal());
24435 cast<Function>(cast<SrcValueSDNode>(Op.getOperand(5))->getValue());
27137 AtomicSDNode *AN = cast<AtomicSDNode>(N.getNode());
27201 auto *Node = cast<AtomicSDNode>(Op.getNode());
27389 MaskedScatterSDNode *N = cast<MaskedScatterSDNode>(Op.getNode());
27453 MaskedLoadSDNode *N = cast<MaskedLoadSDNode>(Op.getNode());
27521 MaskedStoreSDNode *N = cast<MaskedStoreSDNode>(Op.getNode());
27565 MaskedGatherSDNode *N = cast<MaskedGatherSDNode>(Op.getNode());
28313 MachineMemOperand *MMO = cast<AtomicSDNode>(N)->getMemOperand();
28367 auto *Node = cast<AtomicSDNode>(N);
28398 int SPFI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex();
28482 auto *Gather = cast<MaskedGatherSDNode>(N);
28522 auto *Ld = cast<LoadSDNode>(N);
33880 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(N)->getMask();
33923 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(N)->getMask();
34006 ShuffleVectorSDNode *SVOp = cast<ShuffleVectorSDNode>(N);
34083 ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(N)->getMask();
37303 auto *AN = cast<AtomicSDNode>(CmpLHS.getNode());
40205 LoadSDNode *Ld = cast<LoadSDNode>(N);
40405 MaskedLoadSDNode *Mld = cast<MaskedLoadSDNode>(N);
40453 MaskedStoreSDNode *Mst = cast<MaskedStoreSDNode>(N);
40491 StoreSDNode *St = cast<StoreSDNode>(N);
40670 LoadSDNode *Ld = cast<LoadSDNode>(St->getValue().getNode());
42946 SDValue Mask = cast<X86MaskedGatherScatterSDNode>(N)->getMask();
42960 auto *GorS = cast<MaskedGatherScatterSDNode>(N);
42991 auto *Scatter = cast<MaskedScatterSDNode>(GorS);
43020 auto *Scatter = cast<MaskedScatterSDNode>(GorS);
43047 auto *Scatter = cast<MaskedScatterSDNode>(GorS);
43263 LoadSDNode *Ld = cast<LoadSDNode>(Op0.getNode());
45120 auto *St = cast<StoreSDNode>(User);
45133 auto *St = cast<AtomicSDNode>(User);
45243 InlineAsm *IA = cast<InlineAsm>(CI->getCalledValue());
lib/Target/X86/X86InstrInfo.cpp 422 cast<FixedStackPseudoSourceValue>(Accesses.front()->getPseudoValue())
457 cast<FixedStackPseudoSourceValue>(Accesses.front()->getPseudoValue())
3988 cast<GlobalValue>((*MIB->memoperands_begin())->getValue());
5636 auto MMOs = extractLoadMMOs(cast<MachineSDNode>(N)->memoperands(), MF);
5657 DAG.setNodeMemRefs(cast<MachineSDNode>(Load), MMOs);
5707 auto MMOs = extractStoreMMOs(cast<MachineSDNode>(N)->memoperands(), MF);
5722 DAG.setNodeMemRefs(cast<MachineSDNode>(Store), MMOs);
lib/Target/X86/X86InterleavedAccess.cpp 145 if (cast<LoadInst>(Inst)->getPointerAddressSpace())
187 cast<ShuffleVectorInst>(Builder.CreateShuffleVector(
195 LoadInst *LI = cast<LoadInst>(VecInst);
795 StoreInst *SI = cast<StoreInst>(Inst);
lib/Target/X86/X86ShuffleDecodeConstantPool.cpp 70 auto *Elt = cast<ConstantInt>(COp);
91 MaskBits.insertBits(cast<ConstantInt>(COp)->getValue(), BitOffset);
lib/Target/X86/X86TargetTransformInfo.cpp 1711 switch (cast<CmpInst>(I)->getPredicate()) {
lib/Target/X86/X86WinEHState.cpp 304 cast<Function>(CxxLongjmpUnwind.getCallee()->stripPointerCasts())
360 cast<Function>(SehLongjmpUnwind.getCallee()->stripPointerCasts())
445 GEP = cast<GetElementPtrInst>(GEP->clone());
495 auto *CI = cast<CallInst>(Inst);
500 auto *II = cast<InvokeInst>(Inst);
lib/Target/XCore/XCoreISelDAGToDAG.cpp 53 ConstantSDNode *N = cast<ConstantSDNode>(inN);
136 uint64_t Val = cast<ConstantSDNode>(N)->getZExtValue();
155 CurDAG->setNodeMemRefs(cast<MachineSDNode>(node), {MemOp});
lib/Target/XCore/XCoreISelLowering.cpp 1781 StoreSDNode *ST = cast<StoreSDNode>(N);
lib/Target/XCore/XCoreLowerThreadLocal.cpp 85 cast<GEPOperator>(CE)->getSourceElementType(), CEOps[0],
206 Instruction *Inst = cast<Instruction>(U);
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp 234 if (!matchAndOrChain(cast<BinaryOperator>(&I), MOps) || !MOps.FoundAnd1)
237 if (!matchAndOrChain(cast<BinaryOperator>(&I)->getOperand(0), MOps))
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp 151 InstInfoMap[cast<Instruction>(Src)].ValidBitWidth = TruncBitWidth;
162 auto *I = cast<Instruction>(Curr);
201 unsigned MinBitWidth = InstInfoMap.lookup(cast<Instruction>(Src)).MinBitWidth;
294 auto *I = cast<Instruction>(V);
lib/Transforms/CFGuard/CFGuard.cpp 212 InvokeInst *II = cast<InvokeInst>(CB);
lib/Transforms/Coroutines/CoroCleanup.cpp 81 lowerSubFn(Builder, cast<CoroSubFnInst>(II));
lib/Transforms/Coroutines/CoroEarly.cpp 164 CoroFrees.push_back(cast<CoroFreeInst>(&I));
169 if (cast<CoroSuspendInst>(&I)->isFinal())
175 if (cast<CoroEndInst>(&I)->isFallthrough())
179 lowerCoroNoop(cast<IntrinsicInst>(&I));
184 if (auto *CII = cast<CoroIdInst>(&I)) {
189 CoroId = cast<CoroIdInst>(&I);
204 lowerCoroPromise(cast<CoroPromiseInst>(&I));
207 lowerCoroDone(cast<IntrinsicInst>(&I));
lib/Transforms/Coroutines/CoroElide.cpp 95 return cast<PointerType>(ArgType)->getElementType();
246 auto *FrameTy = getFrameType(cast<Function>(ResumeAddrConstant));
lib/Transforms/Coroutines/CoroFrame.cpp 116 auto *I = cast<Instruction>(U);
295 Spill(Value *Def, llvm::User *U) : Def(Def), User(cast<Instruction>(U)) {}
593 cast<Instruction>(Builder.CreateBitCast(CB, FramePtrTy, "FramePtr"));
691 BasicBlock *DefBlock = cast<Instruction>(E.def())->getParent();
701 auto *I = cast<Instruction>(E.def());
759 auto *I = cast<Instruction>(U);
906 auto *PN = cast<PHINode>(&BB.front());
964 CurrentDef = cast<Instruction>(E.def());
972 CurrentMaterialization = cast<Instruction>(CurrentDef)->clone();
1120 auto FI = cast<CoroAllocaFreeInst>(U);
1128 DeadInsts.push_back(cast<Instruction>(U));
1148 auto FI = cast<CoroAllocaFreeInst>(U);
1152 DeadInsts.push_back(cast<Instruction>(U));
1159 return cast<Instruction>(Alloc);
1213 auto Invoke = cast<InvokeInst>(Call);
1241 auto Call = cast<Instruction>(User);
1262 auto ArgTy = cast<PointerType>(Arg.getType());
lib/Transforms/Coroutines/CoroInstr.h 57 return cast<ConstantInt>(getArgOperand(IndexArg));
65 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
77 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
108 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
121 : cast<AllocaInst>(Arg->stripPointerCasts());
134 auto *Inst = cast<Instruction>(Arg);
173 Result.Resumers = cast<ConstantArray>(Initializer);
177 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts());
183 return cast<Function>(getArgOperand(CoroutineArg)->stripPointerCasts());
198 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
211 return cast<ConstantInt>(getArgOperand(SizeArg))->getZExtValue();
215 return cast<ConstantInt>(getArgOperand(AlignArg))->getZExtValue();
226 return cast<Function>(getArgOperand(PrototypeArg)->stripPointerCasts());
231 return cast<Function>(getArgOperand(AllocArg)->stripPointerCasts());
236 return cast<Function>(getArgOperand(DeallocArg)->stripPointerCasts());
246 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
259 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
272 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
284 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
300 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
310 return cast<AnyCoroIdInst>(getArgOperand(IdArg));
320 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
332 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
342 return cast<Constant>(getArgOperand(FromArg))->isOneValue();
345 return cast<ConstantInt>(getArgOperand(AlignArg))->getZExtValue();
353 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
367 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
385 return cast<Constant>(getArgOperand(FinalArg))->isOneValue();
393 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
424 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
436 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
447 return cast<Constant>(getArgOperand(UnwindArg))->isOneValue();
455 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
467 return cast<ConstantInt>(getArgOperand(AlignArg))->getZExtValue();
475 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
484 return cast<CoroAllocaAllocInst>(getArgOperand(AllocArg));
492 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
501 return cast<CoroAllocaAllocInst>(getArgOperand(AllocArg));
509 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
lib/Transforms/Coroutines/CoroInternal.h 134 return cast<CoroIdInst>(CoroBegin->getId());
140 return cast<AnyCoroIdRetconInst>(CoroBegin->getId());
146 return cast<IntegerType>(FrameTy->getElementType(SwitchFieldIndex::Index));
155 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume));
162 return cast<FunctionType>(FnPtrTy->getPointerElementType());
lib/Transforms/Coroutines/CoroSplit.cpp 202 cast<PointerType>(RetStructTy ? RetStructTy->getElementType(0) : RetTy);
292 auto *S = cast<CoroSuspendInst>(AnyS);
305 auto *NullPtr = ConstantPointerNull::get(cast<PointerType>(
306 cast<PointerType>(GepIndex->getType())->getElementType()));
346 cast<BranchInst>(SuspendBB->getTerminator())->setSuccessor(0, LandingBB);
574 auto BranchToEntry = cast<BranchInst>(Entry->user_back());
601 auto Branch = cast<BranchInst>(MappedCS->getNextNode());
978 auto SwitchId = cast<CoroIdInst>(CoroId);
1144 if (simplifySuspendPoint(cast<CoroSuspendInst>(S[I]), Shape.CoroBegin)) {
1201 auto *Id = cast<AnyCoroIdRetconInst>(Shape.CoroBegin->getId());
1242 auto Suspend = cast<CoroSuspendRetconInst>(Shape.CoroSuspends[i]);
1253 auto Branch = cast<BranchInst>(SuspendBB->getTerminator());
1501 auto *Prepare = cast<CallInst>((PI++)->getUser());
lib/Transforms/Coroutines/Coroutines.cpp 241 cast<CoroSaveInst>(CallInst::Create(Fn, CoroBegin, "", SuspendInst));
261 CoroSizes.push_back(cast<CoroSizeInst>(II));
264 CoroFrames.push_back(cast<CoroFrameInst>(II));
270 UnusedCoroSaves.push_back(cast<CoroSaveInst>(II));
273 auto Suspend = cast<CoroSuspendRetconInst>(II);
278 auto Suspend = cast<CoroSuspendInst>(II);
290 auto CB = cast<CoroBeginInst>(II);
308 CoroEnds.push_back(cast<CoroEndInst>(II));
353 auto SwitchId = cast<CoroIdInst>(Id);
377 auto ContinuationId = cast<AnyCoroIdRetconInst>(Id);
lib/Transforms/IPO/ArgumentPromotion.cpp 143 Type *AgTy = cast<PointerType>(I->getType())->getElementType();
144 StructType *STy = cast<StructType>(AgTy);
168 Instruction *UI = cast<Instruction>(U);
173 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType();
191 OrigLoad = cast<LoadInst>(UI->user_back());
199 cast<PointerType>(I->getType()->getScalarType())->getElementType(),
260 Type *AgTy = cast<PointerType>(I->getType())->getElementType();
261 StructType *STy = cast<StructType>(AgTy);
297 ElTy = cast<CompositeType>(ElTy)->getTypeAtIndex(II);
333 NewCall->setTailCallKind(cast<CallInst>(Call)->getTailCallKind());
388 Type *AgTy = cast<PointerType>(I->getType())->getElementType();
392 StructType *STy = cast<StructType>(AgTy);
438 GetElementPtrInst *GEP = cast<GetElementPtrInst>(I->user_back());
468 LoadInst *L = cast<LoadInst>(GEP->user_back());
795 StructType *StructTy = cast<StructType>(type);
935 Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType();
1142 CallerNode->replaceCallEdge(*cast<CallBase>(OldCS.getInstruction()),
1143 *cast<CallBase>(NewCS.getInstruction()),
lib/Transforms/IPO/Attributor.cpp 476 assert(cast<Argument>(AnchorVal)->getArgNo() == unsigned(getArgNo()) &&
478 assert(cast<Argument>(AnchorVal) == &getAssociatedValue() &&
890 ReturnInstSet.insert(cast<ReturnInst>(RI));
1297 Ordering = cast<AtomicRMWInst>(I)->getOrdering();
1300 Ordering = cast<StoreInst>(I)->getOrdering();
1303 Ordering = cast<LoadInst>(I)->getOrdering();
1306 auto *FI = cast<FenceInst>(I);
1313 AtomicOrdering Success = cast<AtomicCmpXchgInst>(I)->getSuccessOrdering();
1314 AtomicOrdering Failure = cast<AtomicCmpXchgInst>(I)->getFailureOrdering();
1351 if (!cast<MemIntrinsic>(II)->isVolatile())
1367 return cast<AtomicRMWInst>(I)->isVolatile();
1369 return cast<StoreInst>(I)->isVolatile();
1371 return cast<LoadInst>(I)->isVolatile();
1373 return cast<AtomicCmpXchgInst>(I)->isVolatile();
3058 Instruction *UInst = cast<Instruction>(U->getUser());
3115 return !IsDeadAA.isAssumedDead(cast<Instruction>(U->getUser()));
3574 auto *Num = cast<ConstantInt>(MallocCall->getOperand(0));
3580 Size = cast<ConstantInt>(MallocCall->getOperand(0));
3583 unsigned AS = cast<PointerType>(MallocCall->getType())->getAddressSpace();
3675 cast<Instruction>(const_cast<User *>(UserI)));
4108 Instruction *UserI = cast<Instruction>(U->getUser());
4171 if (cast<StoreInst>(UserI)->getPointerOperand() == U->get())
lib/Transforms/IPO/BlockExtractor.cpp 140 InvokeInst *II = cast<InvokeInst>(&I);
lib/Transforms/IPO/CalledValuePropagation.cpp 139 } else if (auto *F = cast<Function>(Key.getPointer()))
174 return visitCallSite(cast<CallInst>(&I), ChangedValues, SS);
176 return visitCallSite(cast<InvokeInst>(&I), ChangedValues, SS);
178 return visitLoad(*cast<LoadInst>(&I), ChangedValues, SS);
180 return visitReturn(*cast<ReturnInst>(&I), ChangedValues, SS);
182 return visitSelect(*cast<SelectInst>(&I), ChangedValues, SS);
184 return visitStore(*cast<StoreInst>(&I), ChangedValues, SS);
lib/Transforms/IPO/ConstantMerge.cpp 48 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer());
52 GlobalValue *GV = cast<GlobalValue>(Operand);
lib/Transforms/IPO/CrossDSOCFI.cpp 98 extractNumericTypeId(cast<MDNode>(Func->getOperand(I).get())))
107 Function *F = cast<Function>(C.getCallee());
lib/Transforms/IPO/DeadArgumentElimination.cpp 204 cast<CallInst>(NewCS.getInstruction())
205 ->setTailCallKind(cast<CallInst>(Call)->getTailCallKind());
942 cast<CallInst>(NewCS.getInstruction())
943 ->setTailCallKind(cast<CallInst>(Call)->getTailCallKind());
lib/Transforms/IPO/FunctionAttrs.cpp 464 Instruction *I = cast<Instruction>(U->getUser());
553 if (cast<LoadInst>(I)->isVolatile())
611 auto *A = cast<Argument>(RetArg);
889 SelectInst *SI = cast<SelectInst>(RVI);
895 PHINode *PN = cast<PHINode>(RVI);
1002 SelectInst *SI = cast<SelectInst>(RVI);
1008 PHINode *PN = cast<PHINode>(RVI);
lib/Transforms/IPO/FunctionImport.cpp 214 auto *Summary = cast<FunctionSummary>(GVSummary->getBaseObject());
257 return cast<GlobalValueSummary>(It->get());
417 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary);
463 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary);
926 Function::Create(cast<FunctionType>(GV.getValueType()),
1049 Function *Fn = cast<Function>(GA->getBaseObject());
lib/Transforms/IPO/GlobalDCE.cpp 166 (cast<ConstantInt>(LTOPostLinkMD->getValue())->getZExtValue() != 0);
181 cast<ConstantInt>(
246 auto *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata();
lib/Transforms/IPO/GlobalOpt.cpp 133 SequentialType *STy = cast<SequentialType>(Ty);
138 StructType *STy = cast<StructType>(Ty);
171 Instruction *I = cast<Instruction>(V);
289 User *U = cast<User>(UV);
371 !cast<Constant>(U->getOperand(1))->isNullValue())
424 cast<ConstantExpr>(U)->getOpcode() != Instruction::GetElementPtr))
555 cast<ConstantExpr>(GEP)->getOpcode()==Instruction::GetElementPtr)||
561 unsigned Val = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue();
575 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs);
577 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP);
591 cast<ConstantExpr>(GEP)->destroyConstant();
682 Instruction *I = cast<Instruction>(*UI++);
862 Instruction *User = cast<Instruction>(CI->user_back());
900 LoadInst *LI = cast<LoadInst>(GV->user_back());
943 cast<StoreInst>(InitBool->user_back())->eraseFromParent();
969 const Instruction *Inst = cast<Instruction>(U);
1015 Instruction *U = cast<Instruction>(*Alloc->user_begin());
1062 const Instruction *UI = cast<Instruction>(U);
1176 PHINode *PN = cast<PHINode>(V);
1180 PointerType *PTy = cast<PointerType>(PN->getType());
1181 StructType *ST = cast<StructType>(PTy->getElementType());
1222 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue();
1244 PHINode *PN = cast<PHINode>(LoadUser);
1252 Instruction *User = cast<Instruction>(*UI++);
1264 Instruction *User = cast<Instruction>(*UI++);
1282 StructType *STy = cast<StructType>(MAT);
1365 new LoadInst(cast<GlobalVariable>(FieldGlobals[i])->getValueType(),
1401 Instruction *User = cast<Instruction>(*UI++);
1409 StoreInst *SI = cast<StoreInst>(User);
1415 Type *ValTy = cast<GlobalValue>(FieldGlobals[i])->getValueType();
1428 PHINode *FieldPN = cast<PHINode>(InsertedScalarizedValues[PN][FieldNo]);
1464 return cast<GlobalVariable>(FieldGlobals[0]);
1552 CI = cast<CallInst>(BCI->getOperand(0));
1554 CI = cast<CallInst>(Malloc);
1697 Instruction *UI = cast<Instruction>(GV->user_back());
1710 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0));
1734 LoadInst *LI = cast<LoadInst>(UI);
1894 Users.push_back(cast<ConstantExpr>(U));
1909 Instruction *UI = cast<Instruction>(UU);
2107 CallSite CS(cast<Instruction>(U));
2125 CallSite CS(cast<Instruction>(U));
2190 CallSite CS(cast<Instruction>(U));
2206 CallSite CS(cast<Instruction>(U));
2220 CallSite CS(cast<Instruction>(CI));
2403 ConstantInt *CU = cast<ConstantInt>(Addr->getOperand(OpNo));
2412 ConstantInt *CI = cast<ConstantInt>(Addr->getOperand(OpNo));
2413 SequentialType *InitTy = cast<SequentialType>(Init->getType());
2425 return ConstantArray::get(cast<ArrayType>(InitTy), Elts);
2438 ConstantExpr *CE = cast<ConstantExpr>(Addr);
2439 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2494 ConstantExpr *GEP = cast<ConstantExpr>(I.first);
2548 NumElts = cast<SequentialType>(Ty)->getNumElements();
2558 GlobalVariable *GV = cast<GlobalVariable>(GEP->getOperand(0));
2560 ConstantInt *CI = cast<ConstantInt>(GEP->getOperand(2));
2737 GlobalValue *Target = cast<GlobalValue>(Aliasee->stripPointerCasts());
lib/Transforms/IPO/GlobalSplit.cpp 62 !cast<ConstantInt>(GEP->getOperand(1))->isZero() ||
92 uint64_t ByteOffset = cast<ConstantInt>(
116 auto *GEP = cast<GEPOperator>(U);
117 unsigned I = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue();
lib/Transforms/IPO/HotColdSplitting.cpp 320 CallInst *CI = cast<CallInst>(U);
lib/Transforms/IPO/IPConstantPropagation.cpp 249 Instruction *Ins = cast<Instruction>(*I);
lib/Transforms/IPO/Inliner.cpp 564 CallSite CS(cast<Value>(&I));
676 CG[Caller]->removeCallEdgeFor(*cast<CallBase>(CS.getInstruction()));
lib/Transforms/IPO/LoopExtractor.cpp 111 !cast<BranchInst>(EntryTI)->isUnconditional() ||
lib/Transforms/IPO/LowerTypeTests.cpp 564 cast<ConstantInt>(
578 auto BitsType = cast<IntegerType>(Bits->getType());
696 cast<ConstantInt>(
829 auto *GV = cast<GlobalVariable>(G->getGlobal());
863 StructType *NewTy = cast<StructType>(NewInit->getType());
870 GlobalVariable *GV = cast<GlobalVariable>(Globals[I]->getGlobal());
918 Storage = cast<ConstantInt>(C)->getZExtValue();
930 uint64_t BitSize = cast<ConstantInt>(TIL.SizeM1)->getZExtValue() + 1;
983 auto *GV = cast<GlobalVariable>(C->stripPointerCasts());
1153 uint8_t *MaskPtr = exportTypeId(cast<MDString>(TypeId)->getString(), TIL);
1298 Function::Create(cast<FunctionType>(F->getValueType()),
1345 Function *F = cast<Function>(GTM->getGlobal());
1363 cast<Function>(Functions[I]->getGlobal()));
1507 Function *F = cast<Function>(Functions[I]->getGlobal());
1567 Function *F = cast<Function>(GTM->getGlobal());
1773 auto *CI = cast<CallInst>((*UI++).getUser());
1935 *cast<MDNode>(FuncMD->getOperand(I).get()));
2000 auto CI = cast<CallInst>(U.getUser());
2016 auto CI = cast<CallInst>(U.getUser());
lib/Transforms/IPO/PartialInlining.cpp 861 if (cast<GetElementPtrInst>(&I)->hasAllZeroIndices())
lib/Transforms/IPO/StripSymbols.cpp 145 Operands.insert(cast<Constant>(Op));
165 if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasLocalLinkage()) {
195 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer());
258 CallInst *CI = cast<CallInst>(Declare->user_back());
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 90 cast<MetadataAsValue>(CI->getArgOperand(ArgNo))->getMetadata();
92 if (isa<MDNode>(MD) && cast<MDNode>(MD)->isDistinct()) {
107 auto CI = cast<CallInst>(U.getUser());
115 auto CI = cast<CallInst>(U.getUser());
193 forEachVirtualFunction(cast<Constant>(Op), Fn);
320 Function &F = *cast<Function>(V);
351 auto *F = cast<Function>(A.getAliasee());
lib/Transforms/IPO/WholeProgramDevirt.cpp 803 cast<ConstantInt>(
853 const auto *VS = cast<GlobalVarSummary>(P.VTableVI.getSummaryList()[0].get());
1129 cast<InvokeInst>(CS.getInstruction())->getNormalDest(),
1130 cast<InvokeInst>(CS.getInstruction())->getUnwindDest(), Args);
1186 Target.RetVal = cast<ConstantInt>(RetVal)->getZExtValue();
1196 ConstantInt::get(cast<IntegerType>(Call.CS.getType()), TheRetVal));
1227 OS << cast<MDString>(Slot.TypeID)->getString() << '_' << Slot.ByteOffset;
1276 auto *GV = cast<GlobalVariable>(C->stripPointerCasts());
1370 auto *RetType = cast<IntegerType>(Call.CS.getType());
1575 cast<MetadataAsValue>(CI->getArgOperand(1))->getMetadata();
1612 Metadata *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata();
1696 cast<Constant>(M.getOrInsertFunction(Res.SingleImplName,
1742 Constant *JT = cast<Constant>(
1869 cast<MDString>(S.first.TypeID)->getString())
1892 GlobalValue::getGUID(cast<MDString>(S.first.TypeID)->getString());
lib/Transforms/InstCombine/InstCombineAddSub.cpp 666 Value *Zero = cast<Value>(ConstantFP::getZeroValueForNegation(V->getType()));
1696 if (cast<Constant>(Op1)->isNotMinSignedValue() && I.hasNoSignedWrap())
1788 Value *ShAmtOp = cast<Instruction>(Op1Wide)->getOperand(1);
1800 Value *ShAmtOp = cast<Instruction>(Op1Wide)->getOperand(1);
1815 cast<SelectInst>(Op1)->swapValues();
1905 BO->setIsExact(cast<BinaryOperator>(Op1)->isExact());
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 476 ECst = cast<ConstantInt>(ConstantExpr::getXor(DCst, ECst));
729 CCst = cast<ConstantInt>(ConstantExpr::getXor(BCst, CCst));
731 ECst = cast<ConstantInt>(ConstantExpr::getXor(DCst, ECst));
1707 Instruction::BinaryOps Opc = cast<BinaryOperator>(Op0)->getOpcode();
1791 BinaryOperator::BinaryOps BinOp = cast<BinaryOperator>(Op0)->getOpcode();
3093 cast<CmpInst>(Op0)->setPredicate(CmpInst::getInversePredicate(Pred));
3117 Worklist.Add(cast<Instruction>(Op0));
3144 cast<Instruction>(Opnd0)->setDebugLoc(I.getDebugLoc());
3233 auto *Add = cast<BinaryOperator>(Op0);
lib/Transforms/InstCombine/InstCombineCalls.cpp 103 ? cast<ConstantInt>(Elt)->isNegative()
104 : cast<ConstantFP>(Elt)->isNegative();
159 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace();
161 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace();
266 unsigned DstAddrSp = cast<PointerType>(Dest->getType())->getAddressSpace();
368 auto VT = cast<VectorType>(CDV->getType());
376 auto SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx));
385 auto VT = cast<VectorType>(Vec->getType());
472 auto VT = cast<VectorType>(II.getType());
630 Type *IntegerVecTy = VectorType::getInteger(cast<VectorType>(ArgTy));
673 VectorType *VecTy = cast<VectorType>(II.getType());
921 auto *VecTy = cast<VectorType>(II.getType());
942 int8_t Index = cast<ConstantInt>(COp)->getValue().getZExtValue();
968 auto *VecTy = cast<VectorType>(II.getType());
989 APInt Index = cast<ConstantInt>(COp)->getValue();
1018 auto *VecTy = cast<VectorType>(II.getType());
1037 uint32_t Index = cast<ConstantInt>(COp)->getZExtValue();
1052 unsigned Alignment = cast<ConstantInt>(II.getArgOperand(1))->getZExtValue();
1089 cast<ConstantInt>(II.getArgOperand(2))->getZExtValue());
1179 return cast<Instruction>(Result);
1317 unsigned AddrSpace = cast<PointerType>(Ptr->getType())->getAddressSpace();
1360 unsigned AddrSpace = cast<PointerType>(Ptr->getType())->getAddressSpace();
1407 auto *VecTy = cast<VectorType>(II.getType());
1422 Indexes[I] = cast<ConstantInt>(COp)->getLimitedValue();
1770 WithOverflowInst *WO = cast<WithOverflowInst>(II);
2080 SaturatingInst *SI = cast<SaturatingInst>(II);
2459 auto ArgType = cast<VectorType>(Arg->getType());
2460 auto RetType = cast<VectorType>(II->getType());
2614 cast<Instruction>(Arg0)->getFastMathFlags().noInfs())) {
2711 cast<IntegerType>(Mask->getType())->getBitWidth());
3194 cast<ConstantInt>(Mask->getAggregateElement(i))->getZExtValue();
3271 VectorType *NewVT = cast<VectorType>(II->getType());
3573 ConstantInt *En = cast<ConstantInt>(II->getArgOperand(1));
3663 const ConstantInt *CC = cast<ConstantInt>(II->getArgOperand(2));
3815 auto BC = cast<ConstantInt>(II->getArgOperand(5));
3816 auto RM = cast<ConstantInt>(II->getArgOperand(3));
3817 auto BM = cast<ConstantInt>(II->getArgOperand(4));
3979 auto &GCR = *cast<GCRelocateInst>(II);
4111 cast<PointerType>(CI->getOperand(0)->getType())->getElementType();
4114 : cast<PointerType>(CI->getType())->getElementType();
4331 cast<CallBase>(OldCall)->setCalledFunction(
4359 PointerType *PTy = cast<PointerType>(Callee->getType());
4360 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
4527 PointerType *APTy = cast<PointerType>(Call.getCalledValue()->getType());
4528 if (FT->isVarArg()!=cast<FunctionType>(APTy->getElementType())->isVarArg())
4535 cast<FunctionType>(APTy->getElementType())->isVarArg() &&
4537 cast<FunctionType>(APTy->getElementType())->getNumParams())
4636 cast<CallInst>(NewCall)->setTailCallKind(
4637 cast<CallInst>(Caller)->getTailCallKind());
4705 Function *NestF = cast<Function>(Tramp.getArgOperand(1)->stripPointerCasts());
4811 cast<InvokeInst>(NewCaller)->setCallingConv(II->getCallingConv());
4812 cast<InvokeInst>(NewCaller)->setAttributes(NewPAL);
4817 cast<CallBrInst>(NewCaller)->setCallingConv(CBI->getCallingConv());
4818 cast<CallBrInst>(NewCaller)->setAttributes(NewPAL);
4821 cast<CallInst>(NewCaller)->setTailCallKind(
4823 cast<CallInst>(NewCaller)->setCallingConv(
4825 cast<CallInst>(NewCaller)->setAttributes(NewPAL);
lib/Transforms/InstCombine/InstCombineCasts.cpp 85 PointerType *PTy = cast<PointerType>(CI.getType());
172 Instruction *I = cast<Instruction>(V);
213 PHINode *OPN = cast<PHINode>(I);
348 auto *I = cast<Instruction>(V);
428 SelectInst *SI = cast<SelectInst>(I);
436 PHINode *PN = cast<PHINode>(I);
470 VectorType *VecType = cast<VectorType>(VecInput->getType());
518 auto ShiftOpcode0 = cast<BinaryOperator>(Or0)->getOpcode();
519 auto ShiftOpcode1 = cast<BinaryOperator>(Or1)->getOpcode();
788 Value *SExt = cast<Instruction>(Src)->getOperand(0);
990 auto *I = cast<Instruction>(V);
1071 PHINode *PN = cast<PHINode>(I);
1320 auto *I = cast<Instruction>(V);
1347 PHINode *PN = cast<PHINode>(I);
1690 Instruction *OpI = cast<Instruction>(FI.getOperand(0));
1832 VectorType *SrcTy = cast<VectorType>(InVal->getType());
2008 VectorType *DestVecTy = cast<VectorType>(CI.getType());
2126 auto *Sel = cast<Instruction>(BitCast.getOperand(0));
2267 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy));
2302 PointerType *SrcPTy = cast<PointerType>(SrcTy);
2323 cast<PointerType>(Src->getType()->getScalarType())->getElementType();
2334 SrcElTy = cast<CompositeType>(SrcElTy)->getTypeAtIndex(0U);
2374 CastInst *SrcCast = cast<CastInst>(Src);
2378 cast<VectorType>(DestTy), *this))
2476 PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType());
2477 PointerType *DestTy = cast<PointerType>(CI.getType()->getScalarType());
lib/Transforms/InstCombine/InstCombineCompares.cpp 164 !cast<ConstantInt>(GEP->getOperand(1))->isZero() ||
222 Constant *CompareRHS = cast<Constant>(ICI.getOperand(1));
254 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero();
698 if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero())
878 isa<Constant>(RHS) && cast<Constant>(RHS)->isNullValue() &&
905 cast<Constant>(RHS), Base->getType()));
1265 Instruction *AddWithCst = cast<Instruction>(I.getOperand(0));
1296 Instruction *OrigAdd = cast<Instruction>(AddWithCst->getOperand(0));
1379 cast<BinaryOperator>(Val), SQ.getWithInstruction(Val),
1750 ConstantExpr::getNeg(cast<Constant>(And->getOperand(1)));
1789 Constant *One = cast<Constant>(And->getOperand(1));
1841 ConstantInt *C2 = cast<ConstantInt>(Y);
1855 return new ICmpInst(NewPred, X, SubOne(cast<Constant>(Cmp.getOperand(1))));
2610 ConstantExpr::getNeg(cast<Constant>(Y)));
2617 ConstantExpr::getNeg(cast<Constant>(Y)));
2662 getFlippedStrictnessPredicateAndConstant(PredB, cast<Constant>(RHS2));
2800 auto *VecTy = cast<VectorType>(BCSrcOp->getType());
2801 auto *EltTy = cast<IntegerType>(VecTy->getElementType());
2914 Constant *RHS = cast<Constant>(Cmp.getOperand(1));
2934 Constant *SubC = ConstantExpr::getSub(RHS, cast<Constant>(BOp1));
2969 Constant *SubC = ConstantExpr::getSub(cast<Constant>(BOp0), RHS);
2983 Constant *NotBOC = ConstantExpr::getNot(cast<Constant>(BOp1));
3179 cast<GetElementPtrInst>(LHSI)->hasAllZeroIndices())
3189 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI)))
3227 replacedSelectWithOperand(cast<SelectInst>(LHSI), &I, Op1 ? 2 : 1);
3255 !cast<LoadInst>(LHSI)->isVolatile())
4203 Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth())
4247 unsigned ASize = cast<IntegerType>(A->getType())->getPrimitiveSizeInBits();
4301 auto *CastOp0 = cast<CastInst>(ICmp.getOperand(0));
4406 SrcTy = cast<VectorType>(SrcTy)->getElementType();
4407 DestTy = cast<VectorType>(DestTy)->getElementType();
4541 auto *LHS = cast<ZExtOperator>(MulInstr->getOperand(0)),
4542 *RHS = cast<ZExtOperator>(MulInstr->getOperand(1));
4706 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1));
4710 cast<Instruction>(Builder.CreateZExt(ShortAnd, BO->getType()));
4716 IC.Worklist.Add(cast<Instruction>(U));
4720 IC.Worklist.Add(cast<Instruction>(OtherVal));
4836 auto *Usr = cast<Instruction>(U);
5607 const APFloat &RHS = cast<ConstantFP>(RHSC)->getValueAPF();
5614 IntegerType *IntTy = cast<IntegerType>(LHSI->getOperand(0)->getType());
6046 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI)))
6062 !cast<LoadInst>(LHSI)->isVolatile())
lib/Transforms/InstCombine/InstCombineInternal.h 224 auto *I = cast<Instruction>(U);
685 StructType *ST = cast<StructType>(II->getType());
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 71 auto *I = cast<Instruction>(U.getUser());
332 auto *PT = cast<PointerType>(I.getType());
333 auto *NT = cast<PointerType>(V->getType());
412 Constant *TheSrc = cast<Constant>(Copy->getSource());
604 auto *SI = cast<StoreInst>(*UI++);
985 combineMetadataForCSE(cast<LoadInst>(AvailableVal), &LI, false);
1095 auto *UT = cast<VectorType>(U->getType());
1106 auto *ST = cast<StructType>(VT);
1303 if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI))
1322 auto *LI = cast<LoadInst>(SI.getValueOperand());
1341 auto *USI = cast<StoreInst>(UI);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp 204 BinaryOperator *Mul = cast<BinaryOperator>(I.getOperand(0));
287 cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap() &&
288 cast<OverflowingBinaryOperator>(Op1)->hasNoSignedWrap())
343 ShlNSW = cast<ShlOperator>(Op0)->hasNoSignedWrap();
346 ShlNSW = cast<ShlOperator>(Op1)->hasNoSignedWrap();
557 Log2 = cast<IntrinsicInst>(Op0);
562 Log2 = cast<IntrinsicInst>(Op1);
726 auto *OBO = cast<OverflowingBinaryOperator>(Op0);
752 auto *OBO = cast<OverflowingBinaryOperator>(Op0);
800 bool HasNSW = cast<OverflowingBinaryOperator>(Op1)->hasNoSignedWrap();
801 bool HasNUW = cast<OverflowingBinaryOperator>(Op1)->hasNoUnsignedWrap();
848 Constant *C1 = getLogBase2(Op0->getType(), cast<Constant>(Op1));
1031 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(),
1092 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType());
1260 cast<CallBase>(Op0)->getCalledFunction()->getAttributes();
1433 Constant *C = cast<Constant>(Op1);
1456 Elts[i] = cast<ConstantInt>(ConstantExpr::getNeg(RHS));
lib/Transforms/InstCombine/InstCombinePHI.cpp 33 auto *FirstInst = cast<Instruction>(PN.getIncomingValue(0));
40 auto *I = cast<Instruction>(PN.getIncomingValue(i));
144 (DT.dominates(cast<Instruction>(U), PN.getIncomingBlock(i)) ||
145 cast<Instruction>(U)->getParent() == PN.getIncomingBlock(i))) {
284 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0));
305 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate())
344 Instruction *InInst = cast<Instruction>(PN.getIncomingValue(i));
363 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst);
377 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0));
467 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i));
532 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0));
619 LoadInst *LI = cast<LoadInst>(PN.getIncomingValue(i));
641 cast<LoadInst>(IncValue)->setVolatile(false);
731 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0));
788 Value *NewInVal = cast<Instruction>(PN.getIncomingValue(i))->getOperand(0);
824 CmpInst *CIOp = cast<CmpInst>(FirstInst);
885 return ConstantInt::get(cast<IntegerType>(PN.getType()), 1);
986 Instruction *UserI = cast<Instruction>(U);
1009 if (cast<ConstantInt>(UserI->getOperand(1))->getValue().uge(SizeInBits))
1012 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue();
1102 cast<Instruction>(Res)));
1138 cast<Instruction>(PN.getIncomingValue(0))->getOpcode() ==
1139 cast<Instruction>(PN.getIncomingValue(1))->getOpcode() &&
1153 Instruction *PHIUser = cast<Instruction>(PN.user_back());
lib/Transforms/InstCombine/InstCombineSelect.cpp 344 return BinaryOperator::CreateFNegFMF(NewSel, cast<BinaryOperator>(TI));
405 auto *FGEP = cast<GetElementPtrInst>(FI);
565 const auto *Ashr = cast<Instruction>(FalseVal);
567 bool IsExact = Ashr->isExact() && cast<Instruction>(TrueVal)->isExact();
780 BinaryOperator *BO = cast<BinaryOperator>(FVal);
821 auto *II = cast<IntrinsicInst>(TrueVal);
869 IntrinsicInst *II = cast<IntrinsicInst>(Count);
876 IntrinsicInst *NewI = cast<IntrinsicInst>(II->clone());
1517 const PHINode *CondPHI = cast<PHINode>(SI.getCondition());
1606 SelectInst *SI = cast<SelectInst>(Inner);
1766 Value *TruncCVal = cast<Value>(TruncC);
2152 auto ShiftOpcode0 = cast<BinaryOperator>(Or0)->getOpcode();
2153 auto ShiftOpcode1 = cast<BinaryOperator>(Or1)->getOpcode();
2230 CmpInst *Cond = cast<CmpInst>(CondVal);
2424 if (Instruction *R = foldSPFofSPF(cast<Instruction>(LHS), SPF2, LHS2,
2428 if (Instruction *R = foldSPFofSPF(cast<Instruction>(RHS), SPF2, LHS2,
2441 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0);
2442 Value *CmpRHS = cast<CmpInst>(CondVal)->getOperand(1);
2455 cast<FPMathOperator>(SI.getCondition())->getFastMathFlags();
2483 cast<SelectInst>(NewMinMax)->setMetadata(LLVMContext::MD_prof, MD);
2486 cast<SelectInst>(NewMinMax)->swapProfMetadata();
lib/Transforms/InstCombine/InstCombineShifts.cpp 447 SelectInst *SI = cast<SelectInst>(I);
457 PHINode *PN = cast<PHINode>(I);
547 Instruction *I = cast<Instruction>(V);
564 return foldShiftedShift(cast<BinaryOperator>(I), NumBits, isLeftShift,
577 PHINode *PN = cast<PHINode>(I);
645 ConstantExpr::getZExt(cast<Constant>(Op1), TrOp->getType());
768 cast<Constant>(Op0BO->getOperand(1)), Op1);
785 cast<Constant>(Op0BO->getOperand(0)), Op1);
812 cast<Constant>(TBO->getOperand(1)), Op1);
831 cast<Constant>(FBO->getOperand(1)), Op1);
902 cast<BinaryOperator>(Op0)->getOpcode(), X, ShiftDiff);
1004 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) {
1018 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) {
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 295 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1));
296 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1));
441 BinaryOperator &BinOP = *cast<BinaryOperator>(I);
460 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap();
479 ShlOperator *IOp = cast<ShlOperator>(I);
506 if (cast<LShrOperator>(I)->isExact())
549 if (cast<AShrOperator>(I)->isExact())
571 LShr->setIsExact(cast<BinaryOperator>(I)->isExact());
584 if (cast<UDivOperator>(I)->isExact())
729 auto ArgType = cast<VectorType>(Arg->getType());
950 BinaryOperator *Orig = cast<BinaryOperator>(Shl);
957 if (cast<BinaryOperator>(Shr)->isExact())
992 ConstantInt *DMask = cast<ConstantInt>(II->getArgOperand(DMaskIdx));
1116 Type *EltTy = cast<VectorType>(V->getType())->getElementType();
1250 ShuffleVectorInst *Shuffle = cast<ShuffleVectorInst>(I);
1358 SelectInst *Sel = cast<SelectInst>(I);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp 98 PHIUser = cast<Instruction>(U);
116 PHINode *scalarPHI = cast<PHINode>(InsertNewInstWith(
128 BinaryOperator *B0 = cast<BinaryOperator>(PHIUser);
265 ExtractElementInst *EEI = cast<ExtractElementInst>(UserInstr);
274 ShuffleVectorInst *Shuffle = cast<ShuffleVectorInst>(UserInstr);
392 return CmpInst::Create(cast<CmpInst>(SrcVec)->getOpcode(), Pred, E0, E1);
477 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue();
490 cast<ConstantInt>(EI->getOperand(1))->getZExtValue();
633 cast<ConstantInt>(EI->getOperand(1))->getZExtValue();
634 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue();
753 auto *VecTy = cast<VectorType>(InsElt.getType());
802 if (!cast<ConstantInt>(FirstIE->getOperand(2))->isZero())
1235 BinaryOperator *BO = cast<BinaryOperator>(I);
1238 BinaryOperator::Create(cast<BinaryOperator>(I)->getOpcode(),
1253 return new ICmpInst(I, cast<ICmpInst>(I)->getPredicate(),
1257 return new FCmpInst(I, cast<FCmpInst>(I)->getPredicate(),
1274 return CastInst::Create(cast<CastInst>(I)->getOpcode(), NewOps[0], DestTy,
1281 cast<GetElementPtrInst>(I)->getSourceElementType(), Ptr, Idx, "", I);
1282 GEP->setIsInBounds(cast<GetElementPtrInst>(I)->isInBounds());
1313 Instruction *I = cast<Instruction>(V);
1366 int Element = cast<ConstantInt>(I->getOperand(2))->getLimitedValue();
1487 auto *BO = cast<BinaryOperator>(Op0IsBinop ? Op0 : Op1);
1605 C0 = cast<Constant>(AltB0.Op1);
1609 C1 = cast<Constant>(AltB1.Op1);
1705 !cast<ShuffleVectorInst>(Cond)->isIdentityWithPadding())
1999 VectorType *SrcTy = cast<VectorType>(V->getType());
lib/Transforms/InstCombine/InstructionCombining.cpp 836 Constant *ConstOperand = cast<Constant>(I.getOperand(ConstIsRHS));
848 auto *BO = cast<BinaryOperator>(&I);
910 Constant *C = cast<Constant>(I->getOperand(ConstIsRHS));
940 Instruction *UI = cast<Instruction>(U);
966 if (cast<Instruction>(InVal)->getParent() == NonConstBB)
1032 Constant *C = cast<Constant>(I.getOperand(1));
1052 CastInst *CI = cast<CastInst>(&I);
1066 Instruction *User = cast<Instruction>(*UI++);
1164 assert(cast<IntegerType>(Val->getType())->getBitWidth() ==
1271 int32_t Amt = cast<ConstantInt>(BO->getOperand(1))->
1406 unsigned NumElts = cast<VectorType>(Inst.getType())->getNumElements();
1408 assert(cast<VectorType>(LHS->getType())->getNumElements() == NumElts);
1409 assert(cast<VectorType>(RHS->getType())->getNumElements() == NumElts);
1419 cast<ShuffleVectorInst>(LHS)->isConcat() &&
1420 cast<ShuffleVectorInst>(RHS)->isConcat()) {
1465 auto *LShuf = cast<ShuffleVectorInst>(LHS);
1466 auto *RShuf = cast<ShuffleVectorInst>(RHS);
1584 cast<Operator>(Op1)->getOpcode() == CastOpc &&
1761 auto *NewGEP = cast<GetElementPtrInst>(Op1->clone());
1797 if (!shouldMergeGEPs(*cast<GEPOperator>(&GEP), *Src))
1838 Builder.SetInsertPoint(cast<Instruction>(PtrOp));
1839 auto *NewSrc = cast<GetElementPtrInst>(
1941 Operator *Index = cast<Operator>(V);
1962 PointerType *StrippedPtrTy = cast<PointerType>(StrippedPtr->getType());
2150 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy());
2281 Instruction *I = cast<Instruction>(U);
2295 ICmpInst *ICI = cast<ICmpInst>(I);
2318 MemIntrinsic *MI = cast<MemIntrinsic>(II);
2340 StoreInst *SI = cast<StoreInst>(I);
2382 Instruction *I = cast<Instruction>(&*Users[i]);
2398 Instruction *I = cast<Instruction>(&*Users[i]);
2582 CmpInst *Cond = cast<CmpInst>(BI.getCondition());
2602 Case.setValue(cast<ConstantInt>(NewCase));
2800 cast<ArrayType>(LHS->getType())->getNumElements()
2802 cast<ArrayType>(RHS->getType())->getNumElements();
2854 ArrayType *FilterType = cast<ArrayType>(FilterClause->getType());
2888 ConstantArray *Filter = cast<ConstantArray>(FilterClause);
2925 NewFilterElts.push_back(cast<Constant>(Elt));
3044 ConstantArray *LArray = cast<ConstantArray>(LFilter);
3063 ConstantArray *FArray = cast<ConstantArray>(Filter);
3184 cast<DbgVariableIntrinsic>(DII->clone())};
3263 Instruction *UserInst = cast<Instruction>(*I->user_begin());
3448 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue();
3522 AC.registerAssumption(cast<CallInst>(I));
lib/Transforms/Instrumentation/AddressSanitizer.cpp 1051 auto *Size = cast<ConstantInt>(II.getArgOperand(0));
1399 auto Ty = cast<PointerType>(BasePtr->getType())->getElementType();
1415 Type *PtrTy = cast<PointerType>(PtrOperand->getType()->getScalarType());
1515 auto *VTy = cast<PointerType>(Addr->getType())->getElementType();
1690 assert(cast<BranchInst>(TagCheckTerm)->isUnconditional());
1712 assert(cast<BranchInst>(CheckTerm)->isUnconditional());
1793 auto *Priority = cast<ConstantInt>(CS->getOperand(0));
2718 instrumentMemIntrinsic(cast<MemIntrinsic>(Inst));
2923 BasicBlock *CondBlock = cast<Instruction>(Cond)->getParent();
lib/Transforms/Instrumentation/ControlHeightReduction.cpp 892 cast<BranchInst>(EntryBB->getTerminator()) : nullptr;
1043 auto *BI = cast<BranchInst>(RI.R->getEntry()->getTerminator());
1406 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
1506 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
1529 if (isa<BranchInst>(U) && cast<BranchInst>(U)->isConditional())
1531 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == ICmp)
1668 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
1819 BranchInst *OldBR = cast<BranchInst>(PreEntryBlock->getTerminator());
1889 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 520 cast<PointerType>(param_type)->getElementType()))) {
709 return cast<Constant>(C.getCallee());
985 BranchInst *BI = cast<BranchInst>(SplitBlockAndInsertIfThen(
1036 : cast<Instruction>(ArgTLSPtr)->getNextNode();
1129 BranchInst *BI = cast<BranchInst>(SplitBlockAndInsertIfThen(
1200 if (isa<GlobalVariable>(Obj) && cast<GlobalVariable>(Obj)->isConstant())
1500 auto *MTI = cast<MemTransferInst>(
1597 cast<PointerType>(T)->getElementType()))) {
1672 FunctionType *FT = cast<FunctionType>(
lib/Transforms/Instrumentation/GCOVProfiling.cpp 673 auto *CU = cast<DICompileUnit>(CU_Nodes->getOperand(i));
989 auto *CU = cast<DICompileUnit>(CUNodes->getOperand(i));
1018 unsigned Arcs = cast<ArrayType>(GV->getValueType())->getNumElements();
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 430 ThreadPtrGlobal = cast<GlobalVariable>(C);
549 Type *PtrTy = cast<PointerType>(PtrOperand->getType()->getScalarType());
698 cast<BranchInst>(CheckFailTerm)->setSuccessor(0, CheckTerm->getParent());
727 instrumentMemIntrinsic(cast<MemIntrinsic>(I));
943 auto *Br = cast<BranchInst>(SplitBlockAndInsertIfThen(
944 ThreadLongEqZero, cast<Instruction>(ThreadLongEqZero)->getNextNode(),
1192 cast<ConstantInt>(AI->getArraySize())->getZExtValue();
1470 cast<GlobalValue>(P.first)->hasLocalLinkage());
lib/Transforms/Instrumentation/InstrProfiling.cpp 202 Value *Addr = cast<StoreInst>(Store)->getPointerOperand();
652 PromotionCandidates.emplace_back(cast<Instruction>(Load), Store);
659 cast<ConstantArray>(CoverageNamesVar->getInitializer());
664 GlobalVariable *Name = cast<GlobalVariable>(V);
lib/Transforms/Instrumentation/MemorySanitizer.cpp 1293 PHINode *PNS = cast<PHINode>(getShadow(PN));
1294 PHINode *PNO = MS.TrackOrigins ? cast<PHINode>(getOrigin(PN)) : nullptr;
2910 unsigned Align = cast<ConstantInt>(I.getArgOperand(2))->getZExtValue();
2939 unsigned Align = cast<ConstantInt>(I.getArgOperand(1))->getZExtValue();
3258 if (CS.isCallBr() || (CS.isCall() && cast<CallInst>(&I)->isInlineAsm())) {
3270 CallInst *Call = cast<CallInst>(&I);
3354 if (CS.isCall() && cast<CallInst>(&I)->isMustTailCall()) return;
3364 BasicBlock *NormalDest = cast<InvokeInst>(&I)->getNormalDest();
3653 Type *RetTy = cast<Value>(CB)->getType();
3693 CallBase *CB = cast<CallBase>(&I);
3695 InlineAsm *IA = cast<InlineAsm>(CB->getCalledValue());
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp 377 auto *MemI = cast<MemIntrinsic>(NewInst);
lib/Transforms/Instrumentation/PoisonChecking.cpp 263 auto *OldPHI = cast<PHINode>(&*I);
277 IRBuilder<> B(cast<Instruction>(&I));
303 auto *OldPHI = cast<PHINode>(&*I);
306 auto *NewPHI = cast<PHINode>(ValToPoison[OldPHI]);
lib/Transforms/Instrumentation/SanitizerCoverage.cpp 769 return cast<ConstantInt>(A)->getLimitedValue() <
770 cast<ConstantInt>(B)->getLimitedValue();
lib/Transforms/Instrumentation/ThreadSanitizer.cpp 330 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType());
383 LoadInst *Load = cast<LoadInst>(I);
398 ? cast<StoreInst>(I)->getPointerOperand()
399 : cast<LoadInst>(I)->getPointerOperand();
523 ? cast<StoreInst>(I)->getPointerOperand()
524 : cast<LoadInst>(I)->getPointerOperand();
537 Value *StoredValue = cast<StoreInst>(I)->getValueOperand();
560 ? cast<StoreInst>(I)->getAlignment()
561 : cast<LoadInst>(I)->getAlignment();
562 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType();
641 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType();
723 Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType();
lib/Transforms/ObjCARC/DependencyAnalysis.cpp 47 const auto *Call = cast<CallBase>(Inst);
lib/Transforms/ObjCARC/ObjCARC.h 52 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0);
lib/Transforms/ObjCARC/ObjCARCAPElim.cpp 103 if (Push && cast<CallInst>(Inst)->getArgOperand(0) == Push) {
155 ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
161 Function *F = dyn_cast<Function>(cast<ConstantStruct>(Op)->getOperand(1));
lib/Transforms/ObjCARC/ObjCARCContract.cpp 147 cast<CallInst>(Retain)->setCalledFunction(Decl);
507 CallInst *CI = cast<CallInst>(Inst);
509 Value *Null = ConstantPointerNull::get(cast<PointerType>(CI->getType()));
634 if (Inst->getParent() == cast<Instruction>(U.getUser())->getParent() &&
684 cast<Instruction>(U.getUser()));
691 Value *Arg = cast<CallInst>(Inst)->getArgOperand(0);
702 cast<GEPOperator>(Arg)->hasAllZeroIndices())
703 Arg = cast<GEPOperator>(Arg)->getPointerOperand();
705 !cast<GlobalAlias>(Arg)->isInterposable())
706 Arg = cast<GlobalAlias>(Arg)->getAliasee();
lib/Transforms/ObjCARC/ObjCARCExpand.cpp 113 Value *Value = cast<CallInst>(Inst)->getArgOperand(0);
lib/Transforms/ObjCARC/ObjCARCOpts.cpp 100 cast<CallInst>(Arg)->getArgOperand(0));
662 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl);
709 CallInst *AutoreleaseRVCI = cast<CallInst>(AutoreleaseRV);
800 CallInst *CI = cast<CallInst>(Inst);
804 new StoreInst(UndefValue::get(cast<PointerType>(Ty)->getElementType()),
820 CallInst *CI = cast<CallInst>(Inst);
825 new StoreInst(UndefValue::get(cast<PointerType>(Ty)->getElementType()),
852 CallInst *Call = cast<CallInst>(Inst);
881 if (IsAlwaysTail(Class) && !cast<CallInst>(Inst)->isNoTailCall()) {
887 cast<CallInst>(Inst)->setTailCall();
896 cast<CallInst>(Inst)->setTailCall(false);
904 cast<CallInst>(Inst)->setDoesNotThrow();
1005 CallInst *CInst = cast<CallInst>(Inst);
1013 CallInst *Clone = cast<CallInst>(CloneCallInstForBB(
1836 Instruction *Retain = cast<Instruction>(V);
1920 CallInst *Call = cast<CallInst>(Inst);
1921 CallInst *EarlierCall = cast<CallInst>(EarlierInst);
1949 CallInst *Call = cast<CallInst>(Inst);
1950 CallInst *EarlierCall = cast<CallInst>(EarlierInst);
2001 CallInst *Call = cast<CallInst>(Inst);
2005 const Instruction *UserInst = cast<Instruction>(U);
2017 CallInst *UserInst = cast<CallInst>(*UI++);
lib/Transforms/ObjCARC/PtrState.cpp 198 SetTailCallRelease(cast<CallInst>(I)->isTailCall());
368 SetTailCallRelease(cast<CallInst>(Release)->isTailCall());
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp 110 cast<SCEVConstant>(AlignSCEV)->getValue()->getSExtValue();
364 Instruction *K = cast<Instruction>(UJ);
lib/Transforms/Scalar/CallSiteSplitting.cpp 141 ICmpInst *Cmp = cast<ICmpInst>(Cond);
169 Constant *ConstVal = cast<Constant>(Cond.first->getOperand(1));
523 CallSite CS(cast<Value>(I));
lib/Transforms/Scalar/ConstantHoisting.cpp 188 return cast<PHINode>(Inst)->getIncomingBlock(Idx)->getTerminator();
404 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType());
407 auto *GEPO = cast<GEPOperator>(ConstExpr);
744 cast<PointerType>(Ty)->getAddressSpace());
lib/Transforms/Scalar/ConstantProp.cpp 101 if (WorkList.insert(cast<Instruction>(U)).second)
102 NewWorkListVec.push_back(cast<Instruction>(U));
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp 286 Pointer = cast<StoreInst>(I)->getPointerOperand();
344 if (isa<Instruction>(Cond) && cast<Instruction>(Cond)->getParent() == BB)
504 StructType *ST = cast<StructType>(WO->getType());
843 BBChanged |= processSelect(cast<SelectInst>(II), LVI);
846 BBChanged |= processPHI(cast<PHINode>(II), LVI, DT, SQ);
850 BBChanged |= processCmp(cast<CmpInst>(II), LVI);
861 BBChanged |= processSRem(cast<BinaryOperator>(II), LVI);
864 BBChanged |= processSDiv(cast<BinaryOperator>(II), LVI);
868 BBChanged |= processUDivOrURem(cast<BinaryOperator>(II), LVI);
871 BBChanged |= processAShr(cast<BinaryOperator>(II), LVI);
874 BBChanged |= processSExt(cast<SExtInst>(II), LVI);
880 BBChanged |= processBinOp(cast<BinaryOperator>(II), LVI);
883 BBChanged |= processAnd(cast<BinaryOperator>(II), LVI);
891 BBChanged |= processSwitch(cast<SwitchInst>(Term), LVI, DT);
894 auto *RI = cast<ReturnInst>(Term);
lib/Transforms/Scalar/DeadStoreElimination.cpp 207 uint64_t Len = cast<ConstantInt>(II->getArgOperand(0))->getZExtValue();
253 return !cast<MemIntrinsic>(II)->isVolatile();
913 auto *EarlierIntrinsic = cast<AnyMemIntrinsic>(EarlierWrite);
1231 cast<ConstantInt>(Earlier->getValueOperand())->getValue();
1233 cast<ConstantInt>(Later->getValueOperand())->getValue();
lib/Transforms/Scalar/EarlyCSE.cpp 283 BinaryOperator *RHSBinOp = cast<BinaryOperator>(RHSI);
292 CmpInst *RHSCmp = cast<CmpInst>(RHSI);
707 return TTI.getOrCreateResultFromMemIntrinsic(cast<IntrinsicInst>(Inst),
854 for (auto &Op : cast<BinaryOperator>(Curr)->operands())
924 dyn_cast<Instruction>(cast<CallInst>(Inst)->getArgOperand(0));
957 auto *CI = cast<CallInst>(Inst);
967 dyn_cast<Instruction>(cast<CallInst>(Inst)->getArgOperand(0))) {
973 cast<ConstantInt>(KnownCond)->isOne()) {
982 cast<CallInst>(Inst)->setArgOperand(0, KnownCond);
lib/Transforms/Scalar/Float2Int.cpp 139 if (mapFCmpPred(cast<CmpInst>(&I)->getPredicate()) !=
475 CmpInst::Predicate P = mapFCmpPred(cast<CmpInst>(I)->getPredicate());
lib/Transforms/Scalar/GVN.cpp 222 return cast<LoadInst>(Val.getPointer());
227 return cast<MemIntrinsic>(Val.getPointer());
397 CallInst* local_cdep = cast<CallInst>(local_dep.getInst());
491 Instruction* I = cast<Instruction>(V);
495 return lookupOrAddCall(cast<CallInst>(I));
539 exp = createExtractvalueExpr(cast<ExtractValueInst>(I));
543 NumberingPhi[nextValueNumber] = cast<PHINode>(V);
840 DT->dominates(cast<Instruction>(U), LI)) {
1393 cast<Instruction>(U)->getParent() == BB)
1487 (!isa<ConstantFP>(CmpRHS) || cast<ConstantFP>(CmpRHS)->isZero()))
1895 if (isa<ConstantFP>(Op1) && !cast<ConstantFP>(Op1)->isZero())
lib/Transforms/Scalar/GVNHoist.cpp 542 if (hasEHOrLoadsOnPath(NewPt, cast<MemoryDef>(U), NBBsOnAllPaths))
879 OtherGep = cast<GetElementPtrInst>(OtherLd->getPointerOperand());
881 OtherGep = cast<GetElementPtrInst>(
882 cast<StoreInst>(OtherInst)->getPointerOperand());
893 ReplacementLoad->getAlignment(), cast<LoadInst>(I)->getAlignment())));
898 cast<StoreInst>(I)->getAlignment())));
903 cast<AllocaInst>(I)->getAlignment())));
lib/Transforms/Scalar/GVNSink.cpp 102 (isa<InvokeInst>(I) && !cast<InvokeInst>(I)->doesNotAccessMemory()) ||
103 (isa<CallInst>(I) && !cast<CallInst>(I)->doesNotAccessMemory());
433 Instruction *I = cast<Instruction>(V);
437 exp = createMemoryExpr(cast<LoadInst>(I));
440 exp = createMemoryExpr(cast<StoreInst>(I));
lib/Transforms/Scalar/GuardWidening.cpp 101 auto *Cond = cast<BranchInst>(I)->getCondition();
102 return cast<BinaryOperator>(Cond)->getOperand(0);
104 return cast<BranchInst>(I)->getCondition();
116 cast<BranchInst>(I)->setCondition(NewCond);
278 auto *Cond = cast<BranchInst>(ToWiden)->getCondition();
279 WidenableCondition = cast<BinaryOperator>(Cond)->getOperand(1);
329 CurrentList.push_back(cast<Instruction>(&I));
481 DominatingBlock = cast<BranchInst>(DominatingGuard)->getSuccessor(0);
643 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())),
lib/Transforms/Scalar/IndVarSimplify.cpp 334 Instruction *U1 = cast<Instruction>(*IncrUse++);
336 Instruction *U2 = cast<Instruction>(*IncrUse++);
348 BranchInst *TheBr = cast<BranchInst>(Compare->user_back());
566 auto *UI = cast<Instruction>(U);
633 Instruction *Inst = cast<Instruction>(InVal);
718 Instruction *Inst = cast<Instruction>(PN->getIncomingValue(Phi.Ith));
1130 auto *NarrowBO = cast<BinaryOperator>(NarrowUse);
1221 auto *NarrowBO = cast<BinaryOperator>(NarrowUse);
1270 cast<OverflowingBinaryOperator>(DU.NarrowUse);
1434 cast<OverflowingBinaryOperator>(NarrowUse);
1503 auto *NarrowBO = cast<BinaryOperator>(NarrowUse);
1699 Instruction *NarrowUser = cast<Instruction>(U);
1770 WidePhi = cast<PHINode>(Rewriter.expandCodeFor(AddRec, WideType, InsertPt));
1778 cast<Instruction>(WidePhi->getIncomingValueForBlock(LatchBlock));
1783 cast<Instruction>(OrigPhi->getIncomingValueForBlock(LatchBlock));
1909 auto *NarrowUser = cast<Instruction>(U.getUser());
2059 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
2078 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
2152 Worklist.push_back(cast<Instruction>(User));
2252 Value *Cond = cast<BranchInst>(ExitingBB->getTerminator())->getCondition();
2270 const auto *AR = cast<SCEVAddRecExpr>(SE->getSCEV(Phi));
2335 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar));
2362 cast<PointerType>(IndVar->getType())
2367 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
2411 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
2428 cast<Instruction>(IndVar->getIncomingValueForBlock(L->getLoopLatch()));
2465 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IncVar));
2479 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
2610 Instruction *User = cast<Instruction>(U.getUser());
2738 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
2942 auto *BI = cast<BranchInst>(ExitingBB->getTerminator());
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 345 extractRangeChecksFromCond(L, SE, cast<User>(Condition)->getOperandUse(0),
347 extractRangeChecksFromCond(L, SE, cast<User>(Condition)->getOperandUse(1),
377 unsigned BitWidth = cast<IntegerType>(IndexAddRec->getType())->getBitWidth();
476 Result.Header = cast<BasicBlock>(Map(Header));
477 Result.Latch = cast<BasicBlock>(Map(Latch));
478 Result.LatchBr = cast<BranchInst>(Map(LatchBr));
479 Result.LatchExit = cast<BasicBlock>(Map(LatchExit));
677 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth();
725 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth();
797 IntegerType *IndVarTy = cast<IntegerType>(LeftValue->getType());
818 IntegerType *Ty = cast<IntegerType>(AR->getType());
843 const SCEVAddRecExpr *IndVarBase = cast<SCEVAddRecExpr>(LeftSCEV);
853 ConstantInt *StepCI = cast<SCEVConstant>(StepRec)->getValue();
1048 IntegerType *Ty = cast<IntegerType>(LatchTakenCount->getType());
1050 auto *RTy = cast<IntegerType>(Range.getType());
1145 cast<BasicBlock>(GetClonedValue(OriginalLoop.getLoopLatch()));
1260 BranchInst *PreheaderJump = cast<BranchInst>(Preheader->getTerminator());
1406 cast<IntegerType>(Range.getBegin()->getType());
1423 cast<SCEVConstant>(SE.getConstant(IVTy, -1, true /* isSigned */));
1571 auto *IVType = cast<IntegerType>(IndVar->getType());
1572 auto *RCType = cast<IntegerType>(getBegin()->getType());
1831 cast<SCEVAddRecExpr>(SE.getMinusSCEV(SE.getSCEV(LS.IndVarBase), SE.getSCEV(LS.IndVarStep)));
lib/Transforms/Scalar/InferAddressSpaces.cpp 327 Operator *Op = cast<Operator>(V);
474 PHINode *PHI = cast<PHINode>(I);
484 GetElementPtrInst *GEP = cast<GetElementPtrInst>(I);
520 return ConstantExpr::getBitCast(cast<Constant>(NewOperand), TargetType);
548 NewOperands.push_back(cast<Constant>(NewOperand));
555 NewOperands.push_back(cast<Constant>(NewOperand));
604 cast<ConstantExpr>(V), NewAddrSpace, ValueWithNewAddrSpace);
851 return isSafeToCastConstAddrSpace(cast<Constant>(Op->getOperand(0)), NewAS);
915 Constant *Replace = ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV),
1011 U.set(ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV),
lib/Transforms/Scalar/InstSimplifyPass.cpp 58 Next->insert(cast<Instruction>(U));
lib/Transforms/Scalar/JumpThreading.cpp 732 cast<ConstantInt>(I->getOperand(1))->isOne()) {
808 cast<Constant>(RHS), PredBB, BB,
825 Constant *CmpConst = cast<Constant>(CmpRHS);
828 cast<Instruction>(CmpLHS)->getParent() != BB) {
860 cast<Instruction>(AddLHS)->getParent() != BB) {
870 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS));
876 Pred, cast<ConstantInt>(CmpConst)->getValue());
1232 return ProcessBranchOnXOR(cast<BinaryOperator>(CondInst));
1326 LoadInst *NLoadI = cast<LoadInst>(AvailableVal);
1403 CSELoads.push_back(cast<LoadInst>(PredAvailable));
1638 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero());
1641 DestBB = SI->findCaseValue(cast<ConstantInt>(Val))->getCaseSuccessor();
1646 DestBB = cast<BlockAddress>(Val)->getBasicBlock();
1853 if (cast<ConstantInt>(XorOpValue.first)->isZero())
2060 Instruction *User = cast<Instruction>(U.getUser());
2313 OldPredBranch = cast<BranchInst>(PredBB->getTerminator());
2363 BranchInst *BBBranch = cast<BranchInst>(BB->getTerminator());
2379 Instruction *User = cast<Instruction>(U.getUser());
2436 BranchInst *PredTerm = cast<BranchInst>(Pred->getTerminator());
2500 Constant *CondRHS = cast<Constant>(CondCmp->getOperand(1));
2677 if (isGuard(&I) && ThreadGuard(BB, cast<IntrinsicInst>(&I), BI))
lib/Transforms/Scalar/LICM.cpp 1016 cast<ConstantInt>(II->getArgOperand(0))->getSExtValue() * 8;
1071 const auto *MUD = cast<MemoryUseOrDef>(&Acc);
1119 MSSA, cast<MemoryUse>(MSSA->getMemoryAccess(LI)), CurLoop, *Flags);
1164 MSSA, cast<MemoryUse>(MSSA->getMemoryAccess(CI)), CurLoop,
1309 const Instruction *UI = cast<Instruction>(U);
1332 const Instruction *UI = cast<Instruction>(U);
1404 auto *MemUse = cast<MemoryUse>(NewMemAcc);
1581 auto *User = cast<Instruction>(*UI);
1595 PHINode *PN = cast<PHINode>(User);
1642 auto *User = cast<Instruction>(UI);
1647 PHINode *PN = cast<PHINode>(User);
1785 Ptr = cast<StoreInst>(I)->getPointerOperand();
1819 MSSAU->insertDef(cast<MemoryDef>(NewMemAcc), true);
2131 MemoryUse *NewMemUse = cast<MemoryUse>(PreheaderLoadMemoryAccess);
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 423 const SCEVConstant *ConstStride = cast<SCEVConstant>(StoreEv->getOperand(1));
678 cast<SCEVAddRecExpr>(SE->getSCEV(FirstStorePtr));
714 cast<SCEVAddRecExpr>(SE->getSCEV(SecondStorePtr));
784 const SCEVAddRecExpr *StoreEv = cast<SCEVAddRecExpr>(SE->getSCEV(StorePtr));
826 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue();
1060 const SCEVAddRecExpr *StoreEv = cast<SCEVAddRecExpr>(SE->getSCEV(StorePtr));
1066 LoadInst *LI = cast<LoadInst>(SI->getValueOperand());
1073 cast<SCEVAddRecExpr>(SE->getSCEV(LI->getPointerOperand()));
1359 if ((cast<Instruction>(U))->getParent() != LoopEntry) {
1514 if (!CurLoop->contains(cast<Instruction>(U))) {
1520 if (!CurLoop->contains(cast<Instruction>(U))) {
1696 BranchInst *PreheaderBr = cast<BranchInst>(Preheader->getTerminator());
1734 cast<IntegerType>(CntInst->getType()));
1751 auto *LbBr = cast<BranchInst>(Body->getTerminator());
1752 ICmpInst *LbCond = cast<ICmpInst>(LbBr->getCondition());
1758 Instruction *TcDec = cast<Instruction>(
1787 auto *PreCondBr = cast<BranchInst>(PreCondBB->getTerminator());
1800 Builder.CreateZExtOrTrunc(PopCnt, cast<IntegerType>(CntPhi->getType()));
1803 (cast<Instruction>(NewCount))->setDebugLoc(DL);
1813 (cast<Instruction>(NewCount))->setDebugLoc(DL);
1822 ICmpInst *PreCond = cast<ICmpInst>(PreCondBr->getCondition());
1829 ICmpInst *NewPreCond = cast<ICmpInst>(
1858 auto *LbBr = cast<BranchInst>(Body->getTerminator());
1859 ICmpInst *LbCond = cast<ICmpInst>(LbBr->getCondition());
1865 Instruction *TcDec = cast<Instruction>(
2057 cast<SCEVConstant>(RecStepForA)->getAPInt() != BCmpTyBytes) {
2150 BCmpInst = cast<ICmpInst>(CmpLoop.BCmpValue); // FIXME: is there no
2151 LatchCmpInst = cast<CmpInst>(CmpLoop.LatchCmpValue); // way to combine
2152 LoadA = cast<LoadInst>(CmpOfLoads.LoadA); // these cast with
2153 LoadB = cast<LoadInst>(CmpOfLoads.LoadB); // m_Value() matcher?
2264 assert(cast<BranchInst>(PreheaderBB->getTerminator())->isUnconditional() &&
2549 BranchInst *OldTerminator = cast<BranchInst>(BB->getTerminator());
2649 cast<CallInst>(HasBCmp ? emitBCmp(PtrA, PtrB, Len, Builder, *DL, TLI)
2656 auto *ComparedEqual = cast<ICmpInst>(Builder.CreateICmpEQ(
lib/Transforms/Scalar/LoopInstSimplify.cpp 110 auto *UserI = cast<Instruction>(U.getUser());
lib/Transforms/Scalar/LoopInterchange.cpp 117 Instruction *Src = cast<Instruction>(*I);
118 Instruction *Dst = cast<Instruction>(*J);
1265 Instruction *UserI = cast<Instruction>(U.getUser());
1285 cast<BranchInst>(InnerLoop->getLoopLatch()->getTerminator())
1290 WorkList.insert(cast<Instruction>(InnerIndexVar));
1356 auto IncI = cast<Instruction>(P.getIncomingValueForBlock(InnerLatch));
1364 return (cast<PHINode>(U)->getParent() == OuterHeader &&
1366 cast<PHINode>(U)->getParent() == OuterExit;
1531 InnerLoopPHIs.push_back(cast<PHINode>(&PHI));
1533 OuterLoopPHIs.push_back(cast<PHINode>(&PHI));
1570 cast<BranchInst>(InnerLoopPreHeader->getTerminator());
lib/Transforms/Scalar/LoopLoadElimination.cpp 119 auto *LoadPtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(LoadPtr));
120 auto *StorePtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(StorePtr));
124 auto *Dist = cast<SCEVConstant>(
432 auto *PtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(Ptr));
lib/Transforms/Scalar/LoopPredication.cpp 1000 Guards.push_back(cast<IntrinsicInst>(&I));
1004 cast<BranchInst>(BB->getTerminator()));
lib/Transforms/Scalar/LoopRerollPass.cpp 502 if (!L->contains(cast<Instruction>(U)))
521 bool IsCompInst = isCompareUsedByBranch(cast<Instruction>(User));
620 C = cast<Instruction>(*C->user_begin());
641 if (L->contains(cast<Instruction>(U)))
642 if (cast<Instruction>(U) != Instructions.front())
695 Instruction *User = cast<Instruction>(U.getUser());
785 LoopIncs.push_back(cast<Instruction>(I));
815 Roots[V] = cast<Instruction>(I);
866 Instruction *I = cast<Instruction>(V);
972 LoopIncs.push_back(cast<Instruction>(IVU));
1185 if (BI == cast<BranchInst>(Header->getTerminator()))
1429 cast<SCEVAddRecExpr>(SE->getSCEV(DRS.BaseInst));
1453 BranchInst *BI = cast<BranchInst>(Header->getTerminator());
1563 Users.push_back(cast<Instruction>(U));
lib/Transforms/Scalar/LoopSink.cpp 182 Instruction *UI = cast<Instruction>(U.getUser());
234 return cast<Instruction>(U.getUser())->getParent() == N;
lib/Transforms/Scalar/LoopStrengthReduce.cpp 485 (cast<SCEVAddRecExpr>(S)->getLoop() == &L);
518 (cast<SCEVAddRecExpr>(S)->getLoop() == &L);
912 return isHighCostExpansion(cast<SCEVTruncateExpr>(S)->getOperand(),
915 return isHighCostExpansion(cast<SCEVZeroExtendExpr>(S)->getOperand(),
918 return isHighCostExpansion(cast<SCEVSignExtendExpr>(S)->getOperand(),
2348 Instruction *Cmp = cast<Instruction>(Sel->getOperand(0));
2400 ICmpInst *Cond = cast<ICmpInst>(TermBr->getCondition());
2481 Cond = cast<ICmpInst>(Cond->clone());
2772 return getExprBase(cast<SCEVTruncateExpr>(S)->getOperand());
2774 return getExprBase(cast<SCEVZeroExtendExpr>(S)->getOperand());
2776 return getExprBase(cast<SCEVSignExtendExpr>(S)->getOperand());
2781 const SCEVAddExpr *Add = cast<SCEVAddExpr>(S);
2794 return getExprBase(cast<SCEVAddRecExpr>(S)->getStart());
3427 cast<PHINode>(UserInst)->getIncomingBlock(
3530 C = C ? cast<SCEVConstant>(SE.getMulExpr(C, Op0)) : Op0;
5075 dyn_cast<Instruction>(cast<ICmpInst>(LF.UserInst)->getOperand(1)))
5269 ICmpInst *CI = cast<ICmpInst>(LF.UserInst);
lib/Transforms/Scalar/LoopUnswitch.cpp 767 auto *AllZero = cast<ConstantInt>(Constant::getNullValue(SC->getType()));
775 auto *AllOne = cast<ConstantInt>(Constant::getAllOnesValue(SC->getType()));
1353 BranchInst *OldBR = cast<BranchInst>(loopPreheader->getTerminator());
1427 Worklist.push_back(cast<Instruction>(U));
1468 !cast<ConstantInt>(Val)->getZExtValue());
1520 *SI->findCaseValue(cast<ConstantInt>(Val));
1635 Worklist.push_back(cast<Instruction>(U));
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp 149 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue();
164 auto *PhiDef = cast<PHINode>(V);
lib/Transforms/Scalar/LowerGuardIntrinsic.cpp 53 ToLower.push_back(cast<CallInst>(&I));
lib/Transforms/Scalar/LowerWidenableCondition.cpp 54 ToLower.push_back(cast<CallInst>(&I));
lib/Transforms/Scalar/MakeGuardsExplicit.cpp 61 BranchInst *ExplicitGuard = cast<BranchInst>(BB->getTerminator());
90 GuardIntrinsics.push_back(cast<CallInst>(&I));
lib/Transforms/Scalar/MemCpyOptimizer.cpp 169 addMemSet(OffsetFromFirst, cast<MemSetInst>(Inst));
180 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
393 cast<PointerType>(StartPtr->getType())->getElementType();
789 Type *StructTy = cast<PointerType>(A->getType())->getElementType();
902 cast<AllocaInst>(cpyDest)->setAlignment(MaybeAlign(srcAlign));
1112 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength());
1262 Type *ByValTy = cast<PointerType>(ByValArg->getType())->getElementType();
lib/Transforms/Scalar/MergeICmps.cpp 825 cast<ICmpInst>(Phi.getIncomingValue(I))->getParent() !=
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp 257 StoreInst *SNew = cast<StoreInst>(S0->clone());
lib/Transforms/Scalar/NaryReassociate.cpp 289 return tryReassociateBinaryOp(cast<BinaryOperator>(I));
291 return tryReassociateGEP(cast<GetElementPtrInst>(I));
327 return cast<IntegerType>(Index->getType())->getBitWidth() < PointerSizeInBits;
386 const SCEV *CandidateExpr = SE->getGEPExpr(cast<GEPOperator>(GEP),
429 GetElementPtrInst *NewGEP = cast<GetElementPtrInst>(
540 Instruction *CandidateInstruction = cast<Instruction>(Candidate);
lib/Transforms/Scalar/NewGVN.cpp 856 ? InstrToDFSNum(cast<MemoryUseOrDef>(MA)->getMemoryInst())
936 auto *BE = cast<BasicExpression>(E);
1191 C.emplace_back(cast<Constant>(Arg));
1283 if (DT->dominates(cast<Instruction>(CC->getLeader()), U))
1286 DT->dominates(cast<Instruction>(CC->getNextLeader().first), U))
1290 DT->dominates(cast<Instruction>(Member), U);
1366 auto *SI = cast<StoreInst>(I);
1491 auto *LI = cast<LoadInst>(I);
1560 return createConstantExpression(cast<Constant>(PSwitch->CaseValue));
1617 isa<ConstantFP>(FirstOp) && !cast<ConstantFP>(FirstOp)->isZero()) {
1621 return createConstantExpression(cast<Constant>(FirstOp));
1629 auto *CI = cast<CallInst>(I);
1748 auto *E = cast<PHIExpression>(createPHIExpression(
1837 auto *CI = cast<CmpInst>(I);
1967 auto *I = cast<Instruction>(V);
1975 auto *PN = cast<PHINode>(I);
2157 return getMemoryAccess(cast<StoreInst>(V));
2509 auto *CondVal = cast<ConstantInt>(CondEvaluated);
2605 auto *OrigI = cast<Instruction>(V);
2620 Worklist.push_back(cast<Instruction>(Op));
2728 OpPHI = cast<PHINode>(Op);
2885 const MemoryPhi *MP = cast<MemoryPhi>(&Def);
3145 auto *MP = cast<MemoryPhi>(EndDef);
3155 return singleReachablePHIPath(Visited, cast<MemoryAccess>(OperandList[0]),
3589 Instruction *Def = cast<Instruction>(D);
3886 markInstructionForDeletion(cast<Instruction>(M));
3887 assert((!ReachableBlocks.count(cast<Instruction>(M)->getParent()) ||
3888 InstructionsToErase.count(cast<Instruction>(M))) &&
3914 auto *I = cast<Instruction>(Member);
3946 auto *PN = cast<PHINode>(DefInst);
4014 markInstructionForDeletion(cast<Instruction>(Def));
4029 Instruction *InstUse = cast<Instruction>(U->getUser());
4033 ProbablyDead.insert(cast<Instruction>(U->get()));
4059 auto *ReplacedInst = cast<Instruction>(U->get());
4069 ProbablyDead.erase(cast<Instruction>(DominatingLeader));
4093 !InstructionsToErase.count(cast<Instruction>(Member)))
4105 Instruction *Member = cast<Instruction>(VD.Def.getPointer());
4119 Instruction *Leader = cast<Instruction>(EliminationStack.back());
lib/Transforms/Scalar/Reassociate.cpp 151 return cast<BinaryOperator>(I);
161 return cast<BinaryOperator>(I);
229 cast<BinaryOperator>(I)->swapOperands();
239 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags());
251 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags());
262 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags());
573 cast<Instruction>(Op)->getOpcode() != Opcode
575 !cast<Instruction>(Op)->isFast())) &&
800 ExpressionChanged = cast<BinaryOperator>(*ExpressionChanged->user_begin());
864 Instruction *TheNeg = cast<Instruction>(U);
977 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1)));
991 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap();
992 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap();
1840 Constant *C = cast<Constant>(Ops.pop_back_val().Op);
2169 BinaryOperator *BO = cast<BinaryOperator>(I);
2187 cast<Instruction>(BO->user_back())->getOpcode() == Instruction::Sub)
2190 cast<Instruction>(BO->user_back())->getOpcode() == Instruction::FSub)
2243 cast<Instruction>(I->user_back())->getOpcode() == Instruction::Add &&
2245 cast<ConstantInt>(Ops.back().Op)->isMinusOne()) {
2249 cast<Instruction>(I->user_back())->getOpcode() ==
2252 cast<ConstantFP>(Ops.back().Op)->isExactlyValue(-1.0)) {
lib/Transforms/Scalar/Reg2Mem.cpp 52 const Instruction *UI = cast<Instruction>(U);
118 DemotePHIToStack(cast<PHINode>(ilb), AllocaInsertionPoint);
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 516 ConstantPointerNull::get(cast<PointerType>(I->getType())), true);
523 assert(cast<PointerType>(Def->getType())->getAddressSpace() ==
524 cast<PointerType>(CI->getType())->getAddressSpace() &&
645 cast<Instruction>(V)->getMetadata("is_base_value")) {
905 auto *SV = cast<ShuffleVectorInst>(BDV);
931 Instruction *I = cast<Instruction>(Pair.first);
942 auto *EE = cast<ExtractElementInst>(I);
986 auto *SV = cast<ShuffleVectorInst>(I);
1028 Instruction *BDV = cast<Instruction>(Pair.first);
1037 PHINode *PN = cast<PHINode>(BDV);
1080 SelectInst *SI = cast<SelectInst>(BDV);
1088 Value *InVal = cast<ExtractElementInst>(BDV)->getVectorOperand();
1093 auto *BdvIE = cast<InsertElementInst>(BDV);
1102 auto *BaseSV = cast<ShuffleVectorInst>(State.getBaseValue());
1103 auto *BdvSV = cast<ShuffleVectorInst>(BDV);
1167 DT->dominates(cast<Instruction>(base)->getParent(),
1168 cast<Instruction>(ptr)->getParent())) &&
1358 auto *F = cast<CallInst>(Old)->getCalledFunction();
1386 auto *RI = cast<ReturnInst>(OldI->getParent()->getTerminator());
1510 auto *II = cast<InvokeInst>(Call);
1650 cast<AllocaInst>(Alloca)->getAllocatedType(),
1654 Store->insertAfter(cast<Instruction>(CastedRelocatedValue));
1780 auto PT = cast<PointerType>(AI->getAllocatedType());
1793 InsertClobbersAt(cast<Instruction>(Statepoint)->getNextNode());
1816 Uses.push_back(cast<Instruction>(U));
1826 PHINode *Phi = cast<PHINode>(Use);
1860 Store->insertAfter(cast<Instruction>(Alloca));
1908 auto *II = cast<InvokeInst>(Call);
2148 auto *Invoke = cast<InvokeInst>(Call);
2360 auto *LiveInst = cast<Instruction>(V);
2550 ParsePointNeeded.push_back(cast<CallBase>(&I));
lib/Transforms/Scalar/SCCP.cpp 526 assert(i < cast<StructType>(V->getType())->getNumElements() &&
1137 GlobalVariable *GV = cast<GlobalVariable>(SI.getOperand(1));
1272 canConstantFoldCallTo(cast<CallBase>(CS.getInstruction()), F)) {
1293 if (Constant *C = ConstantFoldCall(cast<CallBase>(CS.getInstruction()), F,
1652 cast<ICmpInst>(&I)->isEquality())
1760 auto *ST = cast<StructType>(V->getType());
1938 !Solver.isBlockExecutable(cast<Instruction>(U)->getParent()))
2152 BranchInst *BI = cast<BranchInst>(InstBB->getTerminator());
2202 StructType *STy = cast<StructType>(F->getReturnType());
2224 StoreInst *SI = cast<StoreInst>(GV->user_back());
lib/Transforms/Scalar/SROA.cpp 934 ConstantInt *Length = cast<ConstantInt>(II.getArgOperand(0));
984 if (Visited.insert(cast<Instruction>(U)).second)
985 Uses.push_back(std::make_pair(I, cast<Instruction>(U)));
1265 LoadInst *SomeLoad = cast<LoadInst>(PN.user_back());
1279 LoadInst *LI = cast<LoadInst>(PN.user_back());
1362 LoadInst *LI = cast<LoadInst>(SI.user_back());
1404 if (Indices.size() == 1 && cast<ConstantInt>(Indices.back())->isZero())
1542 PointerType *Ty = cast<PointerType>(Ptr->getType());
1597 PointerType *TargetPtrTy = cast<PointerType>(PointerTy);
1603 auto AS = cast<PointerType>(Ptr->getType())->getAddressSpace();
1645 Ptr = cast<Operator>(Ptr)->getOperand(0);
1673 if (cast<PointerType>(Ptr->getType()) != TargetPtrTy) {
1717 assert(cast<IntegerType>(OldTy)->getBitWidth() !=
1718 cast<IntegerType>(NewTy)->getBitWidth() &&
1734 return cast<PointerType>(NewTy)->getPointerAddressSpace() ==
1735 cast<PointerType>(OldTy)->getPointerAddressSpace();
2134 IntegerType *IntTy = cast<IntegerType>(V->getType());
2155 IntegerType *IntTy = cast<IntegerType>(Old->getType());
2156 IntegerType *Ty = cast<IntegerType>(V->getType());
2186 VectorType *VecTy = cast<VectorType>(V->getType());
2212 VectorType *VecTy = cast<VectorType>(Old->getType());
2369 OldPtr = cast<Instruction>(OldUse->get());
2371 Instruction *OldUserI = cast<Instruction>(OldUse->getUser());
2376 CanSROA &= visit(cast<Instruction>(OldUse->getUser()));
2454 Instruction *I = cast<Instruction>(V);
2486 assert(cast<IntegerType>(LI.getType())->getBitWidth() >= SliceSize * 8 &&
2488 if (cast<IntegerType>(LI.getType())->getBitWidth() > SliceSize * 8)
2732 IntegerType *VTy = cast<IntegerType>(V->getType());
2786 auto *C = cast<ConstantInt>(II.getLength());
3062 StoreInst *Store = cast<StoreInst>(
3090 ConstantInt::get(cast<IntegerType>(II.getArgOperand(0)->getType()),
3140 if (Visited.insert(cast<Instruction>(U)).second)
3141 Uses.push_back(cast<Instruction>(U));
3163 std::replace(PN.op_begin(), PN.op_end(), cast<Value>(OldPtr), NewPtr);
3241 Changed |= visit(cast<Instruction>(U->getUser()));
3664 Instruction *I = cast<Instruction>(S.getUse()->getUser());
3728 SplitOffsetsMap.find(cast<Instruction>(S->getUse()->getUser()));
3756 auto *LI = cast<LoadInst>(SI->getValueOperand());
3797 cast<LoadInst>(SI->getValueOperand());
3839 IntegerType *Ty = cast<IntegerType>(LI->getType());
3850 Instruction *BasePtr = cast<Instruction>(LI->getPointerOperand());
3899 StoreInst *SI = cast<StoreInst>(LU);
3961 auto *LI = cast<LoadInst>(SI->getValueOperand());
3962 IntegerType *Ty = cast<IntegerType>(LI->getType());
3974 Instruction *StoreBasePtr = cast<Instruction>(SI->getPointerOperand());
lib/Transforms/Scalar/Scalarizer.cpp 375 Instruction *Old = cast<Instruction>(V);
760 cast<PHINode>(Res[J])->addIncoming(Op[J], IncomingBlock);
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp 575 unsigned BitWidth = cast<IntegerType>(V->getType())->getBitWidth();
653 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U));
666 BinaryOperator *BO = cast<BinaryOperator>(U);
689 BinaryOperator *BO = cast<BinaryOperator>(UserChain[ChainIndex]);
801 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue();
1078 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds);
1103 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds);
1301 cast<PointerType>(First->getType())->getAddressSpace()),
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp 396 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or)
399 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::And)
476 assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
480 assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
931 BI = cast<BranchInst>(CurrentBB->getTerminator());
1908 SwitchInst *SI = BI ? nullptr : cast<SwitchInst>(&TI);
1934 if (cast<Instruction>(BI->getCondition())->getOpcode() != Instruction::Or) {
1935 assert(cast<Instruction>(BI->getCondition())->getOpcode() ==
2113 SwitchInst *NewSI = cast<SwitchInst>(NewTI);
2394 BranchInst *CheckBI = cast<BranchInst>(CheckBB->getTerminator());
2428 MemoryDef *MD = cast<MemoryDef>(MSSAU->getMemorySSA()->getMemoryAccess(GI));
2549 auto *Cond = cast<IntrinsicInst>(&I)->getArgOperand(0);
2574 Instruction &CondI = *cast<Instruction>(BI->getCondition());
2688 if (cast<Instruction>(BI.getCondition())->getOpcode() ==
2693 assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
2769 BestUnswitchTI = turnGuardIntoBranch(cast<IntrinsicInst>(BestUnswitchTI), L,
lib/Transforms/Scalar/SimplifyCFGPass.cpp 114 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) {
123 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0);
lib/Transforms/Scalar/Sink.cpp 44 Instruction *UseInst = cast<Instruction>(U.getUser());
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp 58 auto *UI = cast<Instruction>(U.getUser());
254 auto *UserI = cast<Instruction>(U.getUser());
349 auto *UI = cast<Instruction>(U.getUser());
436 UserSet.insert(cast<Instruction>(U.getUser()));
496 SpecCostMap.find(cast<Instruction>(U.getUser()))->second;
517 auto *UI = cast<Instruction>(U.getUser());
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp 296 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI);
323 hasOnlyOneNonZeroIndex(cast<GetElementPtrInst>(C.Ins)));
381 allocateCandidatesAndFindBasisForGEP(cast<GetElementPtrInst>(I));
413 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1);
447 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0);
476 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType()));
488 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1),
537 const SCEV *BaseExpr = SE->getGEPExpr(cast<GEPOperator>(GEP), IndexExprs);
584 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType()));
668 bool InBounds = cast<GetElementPtrInst>(C.Ins)->isInBounds();
686 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType(),
690 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType(),
lib/Transforms/Scalar/StructurizeCFG.cpp 348 RegionNode *RN = cast<RegionNode>(*I);
361 if (getAdjustedLoop(cast<RegionNode>(*LoopI)) == CurrentLoop) {
394 BranchInst *Term = cast<BranchInst>(BB->getTerminator());
463 BranchInst *Term = cast<BranchInst>(P->getTerminator());
916 Instruction *User = cast<Instruction>(U.getUser());
lib/Transforms/Scalar/TailRecursionElimination.cpp 123 Instruction *I = cast<Instruction>(U->getUser());
439 return getCommonReturnValue(cast<ReturnInst>(I->user_back()), CI);
lib/Transforms/Utils/BasicBlockUtils.cpp 221 cast<PHINode>(PN.getIncomingValue(0))->getParent() != BB)
807 return cast<ReturnInst>(NewRet);
lib/Transforms/Utils/BypassSlowDivision.cpp 206 C = dyn_cast<ConstantInt>(cast<BitCastInst>(Op1)->getOperand(0));
219 return llvm::all_of(cast<PHINode>(I)->incoming_values(), [&](Value *V) {
lib/Transforms/Utils/CallPromotionUtils.cpp 292 auto *NewInvoke = cast<InvokeInst>(NewInst);
371 cast<CallBase>(CS.getInstruction())->setCalledOperand(Callee);
421 NewTy ? NewTy : cast<PointerType>(FormalTy)->getElementType());
lib/Transforms/Utils/CloneFunction.cpp 635 Worklist.insert(cast<Instruction>(U));
lib/Transforms/Utils/CloneModule.cpp 77 Function::Create(cast<FunctionType>(I.getValueType()), I.getLinkage(),
93 GV = Function::Create(cast<FunctionType>(I->getValueType()),
lib/Transforms/Utils/CodeExtractor.cpp 107 if (isa<Instruction>(Curr) && cast<Instruction>(Curr)->getParent() != &BB)
326 StoreInst *SI = cast<StoreInst>(&II);
329 LoadInst *LI = cast<LoadInst>(&II);
373 AllocaInst *AI = cast<AllocaInst>(Addr->stripInBoundsConstantOffsets());
534 Instruction *Bitcast = cast<Instruction>(U);
1024 assert((!isa<Instruction>(Mem) || cast<Instruction>(Mem)->getFunction() ==
1172 Instruction *inst = cast<Instruction>(Users[u]);
1414 AC->unregisterAssumption(cast<CallInst>(&I));
1493 cast<Instruction>(II)->moveAfter(FirstSunkAlloca);
1501 cast<Instruction>(II)->moveBefore(TI);
lib/Transforms/Utils/CtorUtils.cpp 29 ConstantArray *OldCA = cast<ConstantArray>(GCL->getInitializer());
68 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
92 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
106 ConstantInt *CI = cast<ConstantInt>(CS->getOperand(0));
lib/Transforms/Utils/DemoteRegToStack.cpp 58 Instruction *U = cast<Instruction>(I.user_back());
lib/Transforms/Utils/EscapeEnumerator.cpp 72 F.setPersonalityFn(cast<Constant>(PersFn.getCallee()));
88 CallInst *CI = cast<CallInst>(Calls[--I]);
lib/Transforms/Utils/Evaluator.cpp 76 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL))
84 ConstantExpr *CE = cast<ConstantExpr>(C);
134 if (!cast<PointerType>(C->getType())->getElementType()->isSingleValueType())
145 cast<GEPOperator>(CE)->isInBounds()) {
146 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
170 return cast<GlobalVariable>(CE->getOperand(0))->hasUniqueInitializer();
190 Type *Ty = cast<PointerType>(Ptr->getType())->getElementType();
376 Type *Ty = cast<PointerType>(P->getType())->getElementType();
441 cast<GEPOperator>(GEP)->isInBounds());
526 ConstantInt *Size = cast<ConstantInt>(II->getArgOperand(0));
570 if (Constant *C = ConstantFoldCall(cast<CallBase>(CS.getInstruction()),
707 ReturnInst *RI = cast<ReturnInst>(CurBB->getTerminator());
lib/Transforms/Utils/FlattenCFG.cpp 254 auto *BI = cast<BranchInst>(CurrBlock->getTerminator());
281 BranchInst *PBI = cast<BranchInst>(FirstCondBlock->getTerminator());
292 PBI = cast<BranchInst>(FirstCondBlock->getTerminator());
447 BranchInst *PBI = cast<BranchInst>(FirstEntryBlock->getTerminator());
lib/Transforms/Utils/FunctionComparator.cpp 277 const auto *SeqR = cast<ConstantDataSequential>(R);
291 const APInt &LInt = cast<ConstantInt>(L)->getValue();
292 const APInt &RInt = cast<ConstantInt>(R)->getValue();
296 const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF();
297 const APFloat &RAPF = cast<ConstantFP>(R)->getValueAPF();
301 const ConstantArray *LA = cast<ConstantArray>(L);
302 const ConstantArray *RA = cast<ConstantArray>(R);
303 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements();
304 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements();
308 if (int Res = cmpConstants(cast<Constant>(LA->getOperand(i)),
309 cast<Constant>(RA->getOperand(i))))
315 const ConstantStruct *LS = cast<ConstantStruct>(L);
316 const ConstantStruct *RS = cast<ConstantStruct>(R);
317 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements();
318 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements();
322 if (int Res = cmpConstants(cast<Constant>(LS->getOperand(i)),
323 cast<Constant>(RS->getOperand(i))))
329 const ConstantVector *LV = cast<ConstantVector>(L);
330 const ConstantVector *RV = cast<ConstantVector>(R);
331 unsigned NumElementsL = cast<VectorType>(TyL)->getNumElements();
332 unsigned NumElementsR = cast<VectorType>(TyR)->getNumElements();
336 if (int Res = cmpConstants(cast<Constant>(LV->getOperand(i)),
337 cast<Constant>(RV->getOperand(i))))
343 const ConstantExpr *LE = cast<ConstantExpr>(L);
344 const ConstantExpr *RE = cast<ConstantExpr>(R);
350 if (int Res = cmpConstants(cast<Constant>(LE->getOperand(i)),
351 cast<Constant>(RE->getOperand(i))))
357 const BlockAddress *LBA = cast<BlockAddress>(L);
358 const BlockAddress *RBA = cast<BlockAddress>(R);
426 return cmpNumbers(cast<IntegerType>(TyL)->getBitWidth(),
427 cast<IntegerType>(TyR)->getBitWidth());
445 StructType *STyL = cast<StructType>(TyL);
446 StructType *STyR = cast<StructType>(TyR);
461 FunctionType *FTyL = cast<FunctionType>(TyL);
462 FunctionType *FTyR = cast<FunctionType>(TyR);
481 auto *STyL = cast<SequentialType>(TyL);
482 auto *STyR = cast<SequentialType>(TyR);
510 const GetElementPtrInst *GEPR = cast<GetElementPtrInst>(R);
538 cast<AllocaInst>(R)->getAllocatedType()))
540 return cmpNumbers(AI->getAlignment(), cast<AllocaInst>(R)->getAlignment());
543 if (int Res = cmpNumbers(LI->isVolatile(), cast<LoadInst>(R)->isVolatile()))
546 cmpNumbers(LI->getAlignment(), cast<LoadInst>(R)->getAlignment()))
549 cmpOrderings(LI->getOrdering(), cast<LoadInst>(R)->getOrdering()))
552 cast<LoadInst>(R)->getSyncScopeID()))
555 cast<LoadInst>(R)->getMetadata(LLVMContext::MD_range));
559 cmpNumbers(SI->isVolatile(), cast<StoreInst>(R)->isVolatile()))
562 cmpNumbers(SI->getAlignment(), cast<StoreInst>(R)->getAlignment()))
565 cmpOrderings(SI->getOrdering(), cast<StoreInst>(R)->getOrdering()))
568 cast<StoreInst>(R)->getSyncScopeID());
571 return cmpNumbers(CI->getPredicate(), cast<CmpInst>(R)->getPredicate());
582 cast<CallInst>(R)->getTailCallKind()))
589 ArrayRef<unsigned> RIndices = cast<InsertValueInst>(R)->getIndices();
600 ArrayRef<unsigned> RIndices = cast<ExtractValueInst>(R)->getIndices();
610 cmpOrderings(FI->getOrdering(), cast<FenceInst>(R)->getOrdering()))
613 cast<FenceInst>(R)->getSyncScopeID());
617 cast<AtomicCmpXchgInst>(R)->isVolatile()))
620 cast<AtomicCmpXchgInst>(R)->isWeak()))
624 cast<AtomicCmpXchgInst>(R)->getSuccessOrdering()))
628 cast<AtomicCmpXchgInst>(R)->getFailureOrdering()))
631 cast<AtomicCmpXchgInst>(R)->getSyncScopeID());
635 cast<AtomicRMWInst>(R)->getOperation()))
638 cast<AtomicRMWInst>(R)->isVolatile()))
641 cast<AtomicRMWInst>(R)->getOrdering()))
644 cast<AtomicRMWInst>(R)->getSyncScopeID());
647 const PHINode *PNR = cast<PHINode>(R);
lib/Transforms/Utils/FunctionImportUtils.cpp 213 auto *FS = cast<FunctionSummary>(S->getBaseObject());
lib/Transforms/Utils/GlobalStatus.cpp 124 cast<LoadInst>(StoredVal)->getOperand(0) == GV) {
lib/Transforms/Utils/GuardUtils.cpp 35 auto *CheckBI = cast<BranchInst>(CheckBB->getTerminator());
lib/Transforms/Utils/InlineFunction.cpp 221 return cast<CatchSwitchInst>(EHPad)->getParentPad();
254 auto *CatchPad = cast<CatchPadInst>(HandlerBlock->getFirstNonPHI());
263 Instruction *ChildPad = cast<Instruction>(Child);
288 auto *CleanupPad = cast<CleanupPadInst>(CurrentPad);
301 Instruction *ChildPad = cast<Instruction>(U);
493 cast<InvokeInst>(U)->getUnwindDest()->getFirstNonPHI()) ==
497 Worklist.push_back(cast<Instruction>(U));
506 cast<InvokeInst>(U)->getUnwindDest()->getFirstNonPHI()) ==
510 Worklist.push_back(cast<Instruction>(U));
837 const MDNode *M = cast<MDNode>(Queue.pop_back_val());
1243 CallerNode->removeCallEdgeFor(*cast<CallBase>(CS.getInstruction()));
1249 Type *AggTy = cast<PointerType>(Src->getType())->getElementType();
1266 PointerType *ArgTy = cast<PointerType>(Arg->getType());
1306 IFI.StaticAllocas.push_back(cast<AllocaInst>(NewAlloca));
1459 auto *OrigBB = cast<BasicBlock>(Entry.first);
1773 NewI = CallInst::Create(cast<CallInst>(I), OpDefs, I);
1775 NewI = CallBrInst::Create(cast<CallBrInst>(I), OpDefs, I);
1777 NewI = InvokeInst::Create(cast<InvokeInst>(I), OpDefs, I);
2077 NewInst = CallInst::Create(cast<CallInst>(I), OpBundles, I);
2079 NewInst = CallBrInst::Create(cast<CallBrInst>(I), OpBundles, I);
2081 NewInst = InvokeInst::Create(cast<InvokeInst>(I), OpBundles, I);
2105 auto *FPI = cast<FuncletPadInst>(I);
2390 assert(cast<BranchInst>(Br)->isUnconditional() && "splitBasicBlock broken!");
2391 BasicBlock *CalleeEntry = cast<BranchInst>(Br)->getSuccessor(0);
lib/Transforms/Utils/IntegerDivision.cpp 157 IntegerType *DivTy = cast<IntegerType>(Dividend->getType());
526 return expandRemainder(cast<BinaryOperator>(ExtRem));
574 return expandRemainder(cast<BinaryOperator>(ExtRem));
623 return expandDivision(cast<BinaryOperator>(ExtDiv));
672 return expandDivision(cast<BinaryOperator>(ExtDiv));
lib/Transforms/Utils/LCSSA.cpp 105 Instruction *User = cast<Instruction>(U.getUser());
189 Instruction *User = cast<Instruction>(UseToRewrite->getUser());
lib/Transforms/Utils/Local.cpp 527 I = cast<Instruction>(*I->user_begin())) {
578 WorkList.insert(cast<Instruction>(U));
915 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) {
916 PHINode *OldValPN = cast<PHINode>(OldVal);
955 BasicBlock *Succ = cast<BranchInst>(BB->getTerminator())->getSuccessor(0);
2157 auto *CatchPad = cast<CatchPadInst>(HandlerBB->getFirstNonPHI());
2487 auto *I = cast<Instruction>(U.getUser());
2509 auto *I = cast<Instruction>(U.getUser())->getParent();
2558 auto *ITy = cast<IntegerType>(NewTy);
2560 ConstantPointerNull::get(cast<PointerType>(Ptr->getType())), ITy);
2684 auto BitWidth = cast<IntegerType>(V->getType())->getBitWidth();
2725 cast<ConstantInt>(I->getOperand(1))->getLimitedValue(~0U);
2754 const APInt &AndMask = cast<ConstantInt>(I->getOperand(1))->getValue();
2784 cast<IntegerType>(cast<ZExtInst>(I)->getSrcTy())->getBitWidth();
2784 cast<IntegerType>(cast<ZExtInst>(I)->getSrcTy())->getBitWidth();
2833 DemandedTy = cast<IntegerType>(Trunc->getType());
2866 IntegerType *ProviderTy = cast<IntegerType>(Provider->getType());
2943 return !cast<AllocaInst>(I)->isStaticAlloca();
lib/Transforms/Utils/LoopRotationUtils.cpp 123 Instruction *UserInst = cast<Instruction>(U.getUser());
185 return cast<Instruction>(U)->getParent() != HeaderExit;
444 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator());
447 PHBI->getSuccessor(cast<ConstantInt>(PHBI->getCondition())->isZero()) !=
566 auto *UserInst = cast<Instruction>(UseI);
lib/Transforms/Utils/LoopUnroll.cpp 557 auto *Term = cast<BranchInst>(Header->getTerminator());
678 New, cast<BasicBlock>(LastValueMap[cast<Value>(OriginalBBIDom)]));
716 auto *Term = cast<BranchInst>(Src->getTerminator());
807 BranchInst *Term = cast<BranchInst>(Latches[i]->getTerminator());
853 if (isa<BranchInst>(Term) && cast<BranchInst>(Term)->isConditional()) {
lib/Transforms/Utils/LoopUnrollAndJam.cpp 374 assert(LastValueMap[cast<Value>(OriginalBBIDom)]);
376 New, cast<BasicBlock>(LastValueMap[cast<Value>(OriginalBBIDom)]));
448 cast<BranchInst>(ForeBlocksLast.back()->getTerminator());
466 cast<BranchInst>(ForeBlocksLast[It - 1]->getTerminator());
473 cast<BranchInst>(SubLoopBlocksLast.back()->getTerminator());
485 cast<BranchInst>(SubLoopBlocksLast[It - 1]->getTerminator());
497 BranchInst *Term = cast<BranchInst>(AftBlocksLast.back()->getTerminator());
511 cast<BranchInst>(AftBlocksLast[It - 1]->getTerminator());
619 Instruction *Src = cast<Instruction>(I);
620 Instruction *Dst = cast<Instruction>(J);
lib/Transforms/Utils/LoopUnrollPeel.cpp 212 const SCEVAddRecExpr *LeftAR = cast<SCEVAddRecExpr>(LeftSCEV);
312 PHINode *Phi = cast<PHINode>(&*BI);
518 BranchInst *LatchBR = cast<BranchInst>(NewLatch->getTerminator());
686 cast<BranchInst>(cast<BasicBlock>(Latch)->getTerminator());
686 cast<BranchInst>(cast<BasicBlock>(Latch)->getTerminator());
lib/Transforms/Utils/LoopUnrollRuntime.cpp 219 PHINode *EpilogPN = cast<PHINode>(PN.use_begin()->getUser());
352 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator());
567 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator());
624 unsigned BEWidth = cast<IntegerType>(BECountSC->getType())->getBitWidth();
635 BranchInst *PreHeaderBR = cast<BranchInst>(PreHeader->getTerminator());
712 PreHeaderBR = cast<BranchInst>(PreHeader->getTerminator());
809 PHINode *Phi = cast<PHINode>(&II);
896 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator());
lib/Transforms/Utils/LoopUtils.cpp 129 auto *Use = cast<Instruction>(U);
322 MDNode *Op = cast<MDNode>(Existing.get());
335 StringRef AttrName = cast<MDString>(NameMD)->getString();
1014 unsigned BitWidth = cast<IntegerType>(S->getType())->getBitWidth();
1025 unsigned BitWidth = cast<IntegerType>(S->getType())->getBitWidth();
lib/Transforms/Utils/LoopVersioning.cpp 144 if (!VersionedLoop->contains(cast<Instruction>(U)->getParent()))
229 ? cast<LoadInst>(OrigInst)->getPointerOperand()
230 : cast<StoreInst>(OrigInst)->getPointerOperand();
lib/Transforms/Utils/LowerMemIntrinsics.cpp 46 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace();
47 unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace();
154 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace();
155 unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace();
295 Type *EltTy = cast<PointerType>(SrcAddr->getType())->getElementType();
382 unsigned dstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace();
lib/Transforms/Utils/LowerSwitch.cpp 121 const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low);
122 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High);
lib/Transforms/Utils/ModuleUtils.cpp 37 CurrentCtors.push_back(cast<Constant>(Init->getOperand(i)));
76 auto *CA = cast<ConstantArray>(GV->getInitializer());
179 cast<Function>(M.getOrInsertFunction(Name, AttributeList(),
lib/Transforms/Utils/PredicateInfo.cpp 62 return cast<PredicateWithEdge>(PB)->From;
70 return cast<PredicateWithEdge>(PB)->From->getTerminator();
79 const auto *PEdge = cast<PredicateWithEdge>(PB);
121 return OI.dfsBefore(cast<Instruction>(A), cast<Instruction>(B));
121 return OI.dfsBefore(cast<Instruction>(A), cast<Instruction>(B));
164 auto *PHI = cast<PHINode>(VD.U->getUser());
219 return cast<PredicateAssume>(VD.PInfo)->AssumeInst;
228 return cast<Instruction>(Def);
229 return cast<Instruction>(U->getUser());
361 ConditionsToProcess.push_back(cast<BinaryOperator>(Operand)->getOperand(0));
362 ConditionsToProcess.push_back(cast<BinaryOperator>(Operand)->getOperand(1));
428 auto *BinOp = cast<BinaryOperator>(BI->getCondition());
524 return cast<Function>(
714 assert(DT.dominates(cast<Instruction>(Result.Def), *VD.U) &&
lib/Transforms/Utils/PromoteMemoryToRegister.cpp 136 Instruction *User = cast<Instruction>(*UI++);
143 LoadInst *LI = cast<LoadInst>(User);
320 Instruction *I = cast<Instruction>(*UI);
330 Instruction *Inst = cast<Instruction>(*UUI);
359 Instruction *UserInst = cast<Instruction>(*UI++);
362 LoadInst *LI = cast<LoadInst>(UserInst);
511 StoreInst *SI = cast<StoreInst>(AI->user_back());
lib/Transforms/Utils/SSAUpdater.cpp 190 Instruction *User = cast<Instruction>(U.getUser());
207 Instruction *User = cast<Instruction>(U.getUser());
345 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0);
383 LiveInLoads.push_back(cast<LoadInst>(User));
402 LiveInLoads.push_back(cast<LoadInst>(I));
481 replaceLoadWithValue(cast<LoadInst>(User), NewVal);
lib/Transforms/Utils/SSAUpdaterBulk.cpp 30 auto *User = cast<Instruction>(U->getUser());
lib/Transforms/Utils/SimplifyCFG.cpp 417 IntegerType *PtrTy = cast<IntegerType>(DL.getIntPtrType(V->getType()));
431 return cast<ConstantInt>(
635 bool isEQ = (cast<Instruction>(V)->getOpcode() == Instruction::Or);
736 BranchInst *BI = cast<BranchInst>(TI);
737 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
869 SwitchInstProfUpdateWrapper SI = *cast<SwitchInst>(TI);
982 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
1407 SI = cast<SelectInst>(
1485 auto *U = cast<Instruction>(*I->user_begin());
1567 auto *U = cast<Instruction>(*I->user_begin());
1626 auto *PN = cast<PHINode>(*I0->user_begin());
1750 if (isa<BranchInst>(T) && cast<BranchInst>(T)->isUnconditional())
2015 SpeculatedStore = cast<StoreInst>(I);
2160 Instruction *UI = cast<Instruction>(U);
2378 if (cast<BranchInst>(IfBlock1->getTerminator())->isConditional()) {
2391 if (cast<BranchInst>(IfBlock2->getTerminator())->isConditional()) {
2450 ReturnInst *TrueRet = cast<ReturnInst>(TrueSucc->getTerminator());
2451 ReturnInst *FalseRet = cast<ReturnInst>(FalseSucc->getTerminator());
2713 CmpInst *CI = cast<CmpInst>(NewCond);
2761 Instruction *NewCond = cast<Instruction>(
2815 ConstantInt *PBI_C = cast<ConstantInt>(
2823 Instruction *NotCond = cast<Instruction>(
2825 MergedCond = cast<Instruction>(
2829 MergedCond = cast<Instruction>(Builder.CreateBinOp(
2835 MergedCond = cast<Instruction>(Builder.CreateBinOp(
2838 Instruction *NotCond = cast<Instruction>(
2840 MergedCond = cast<Instruction>(Builder.CreateBinOp(
2933 (!isa<Instruction>(V) || cast<Instruction>(V)->getParent() != BB))
3048 Value *PCond = cast<BranchInst>(PFB->getSinglePredecessor()->getTerminator())
3050 Value *QCond = cast<BranchInst>(QFB->getSinglePredecessor()->getTerminator())
3072 StoreInst *SI = cast<StoreInst>(QB.CreateStore(QPHI, Address));
3421 SelectInst *NV = cast<SelectInst>(
3600 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
3609 SwitchInst *SI = cast<SwitchInst>(Pred->getTerminator());
3824 BasicBlock::iterator I = cast<Instruction>(RI->getValue())->getIterator(),
3831 auto *PhiLPInst = cast<PHINode>(RI->getValue());
3900 auto *LPInst = cast<LandingPadInst>(BB->getFirstNonPHI());
5051 LinearOffset = cast<ConstantInt>(TableContents[0]);
5061 IntegerType *IT = cast<IntegerType>(ValueType);
5067 ConstantInt *Val = cast<ConstantInt>(TableContents[I - 1]);
5128 IntegerType *IT = cast<IntegerType>(Index->getType());
5140 cast<ArrayType>(Array->getValueType())->getElementType(), GEP,
5553 auto *CondTy = cast<IntegerType>(SI->getCondition()->getType());
5615 auto *Ty = cast<IntegerType>(SI->getCondition()->getType());
5628 cast<ConstantInt>(ConstantInt::get(Ty, Sub.lshr(ShiftC->getValue()))));
5770 InvokeInst *II = cast<InvokeInst>(Pred->getTerminator());
5881 } else if (&*I == cast<Instruction>(BI->getCondition())) {
lib/Transforms/Utils/SimplifyIndVar.cpp 134 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1));
137 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth();
428 auto *NarrowTy = cast<IntegerType>(LHS->getType());
542 !DT->isReachableFromEntry(cast<Instruction>(U)->getParent()))
777 BinaryOperator *Shr = cast<BinaryOperator>(U);
797 Instruction *UI = cast<Instruction>(U);
lib/Transforms/Utils/SimplifyLibCalls.cpp 688 cast<ArrayType>(GEP->getSourceElementType())->getNumElements();
851 ICmpInst *Old = cast<ICmpInst>(*UI++);
1413 Value *Op = cast<Instruction>(I2F)->getOperand(0);
1999 if (OtherMul0 == OtherMul1 && cast<Instruction>(Op0)->isFast()) {
2392 CallInst *New = cast<CallInst>(CI->clone());
2405 CallInst *New = cast<CallInst>(CI->clone());
2487 CallInst *New = cast<CallInst>(CI->clone());
2500 CallInst *New = cast<CallInst>(CI->clone());
2660 CallInst *New = cast<CallInst>(CI->clone());
2673 CallInst *New = cast<CallInst>(CI->clone());
lib/Transforms/Utils/SplitModule.cpp 70 GVtoClusterMap.unionSets(GV, cast<GlobalValue>(U));
lib/Transforms/Utils/VNCoercion.cpp 295 auto *CI = dyn_cast<ConstantInt>(cast<MemSetInst>(MI)->getValue());
306 MemTransferInst *MTI = cast<MemTransferInst>(MI);
353 cast<PointerType>(SrcVal->getType())->getAddressSpace() ==
354 cast<PointerType>(LoadTy)->getAddressSpace()) {
474 T *Val = cast<T>(MSI->getValue());
501 MemTransferInst *MTI = cast<MemTransferInst>(SrcInst);
502 Constant *Src = cast<Constant>(MTI->getSource());
lib/Transforms/Utils/ValueMapper.cpp 368 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy));
454 Ops.push_back(cast<Constant>(C->getOperand(j)));
458 Ops.push_back(cast<Constant>(Mapped));
465 Ops.push_back(cast<Constant>(Mapped));
476 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops);
478 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops);
487 return getVM()[V] = ConstantPointerNull::get(cast<PointerType>(NewTy));
491 Function *F = cast<Function>(mapValue(BA.getFunction()));
533 const MDNode &N = *cast<MDNode>(Op);
553 cast<MDNode>((M.Flags & RF_MoveDistinctMDs)
668 MDNode &OpN = *cast<MDNode>(Op);
718 return &G.getFwdReference(*cast<MDNode>(Old));
750 return mapTopLevelUniquedNode(*cast<MDNode>(Old));
810 return MDNodeMapper(*this).map(*cast<MDNode>(MD));
870 PN->setIncomingBlock(i, cast<BasicBlock>(V));
932 GO.addMetadata(I.first, *cast<MDNode>(mapMetadata(I.second)));
961 cast<ArrayType>(InitPrefix->getType())->getNumElements();
972 auto &ST = *cast<StructType>(NewMembers.front()->getType());
980 auto *S = cast<ConstantStruct>(V);
981 auto *E1 = cast<Constant>(mapValue(S->getOperand(0)));
982 auto *E2 = cast<Constant>(mapValue(S->getOperand(1)));
984 NewV = ConstantStruct::get(cast<StructType>(EltTy), E1, E2, Null);
992 cast<ArrayType>(GV.getType()->getElementType()), Elements));
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 453 IdxDiff.sle(cast<ConstantInt>(OpB->getOperand(1))->getSExtValue())) {
455 Safe = cast<BinaryOperator>(OpB)->hasNoSignedWrap();
457 Safe = cast<BinaryOperator>(OpB)->hasNoUnsignedWrap();
625 cast<IntrinsicInst>(&I)->getIntrinsicID() ==
941 StoreInst *S0 = cast<StoreInst>(Chain[0]);
946 StoreTy = cast<StoreInst>(I)->getValueOperand()->getType();
1050 StoreInst *Store = cast<StoreInst>(Chain[I]);
1065 StoreInst *Store = cast<StoreInst>(Chain[I]);
1092 LoadInst *L0 = cast<LoadInst>(Chain[0]);
1097 LoadTy = cast<LoadInst>(V)->getType();
1207 Instruction *UI = cast<Instruction>(Use);
1208 unsigned Idx = cast<ConstantInt>(UI->getOperand(1))->getZExtValue();
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp 398 Instruction *UI = cast<Instruction>(U);
519 cast<Constant>(ID.getStartValue())->isNullValue()) {
1210 Instruction *UI = cast<Instruction>(U);
lib/Transforms/Vectorize/LoopVectorize.cpp 312 return cast<StoreInst>(I)->getValueOperand()->getType();
342 cast<Instruction>(V)->setFastMathFlags(FastMathFlags::getFast());
348 cast<Instruction>(V)->setFastMathFlags(FMF);
1160 Type *SrcTy = ToVectorTy(cast<CastInst>(I)->getSrcTy(), VF);
1161 Type *DestTy = ToVectorTy(cast<CastInst>(I)->getDestTy(), VF);
1686 auto *TruncType = cast<IntegerType>(EntryVal->getType());
1717 ? ConstantVector::getSplat(VF, cast<Constant>(Mul))
1734 LastInduction = cast<Instruction>(addFastMathFlag(
1742 auto *Br = cast<BranchInst>(LoopVectorLatch->getTerminator());
1743 auto *ICmp = cast<Instruction>(Br->getCondition());
1760 auto *I = cast<Instruction>(U);
1810 Instruction *EntryVal = Trunc ? cast<Instruction>(Trunc) : IV;
1831 Step = cast<SCEVUnknown>(ID.getStep())->getValue();
1858 auto *TruncType = cast<IntegerType>(Trunc->getType());
1939 cast<Instruction>(MulOp)->setFastMathFlags(Flags);
1943 cast<Instruction>(BOp)->setFastMathFlags(Flags);
1974 Cost->isUniformAfterVectorization(cast<Instruction>(EntryVal), VF) ? 1
2009 auto *I = cast<Instruction>(V);
2023 auto *LastInst = cast<Instruction>(
2070 ? !Cost->isUniformAfterVectorization(cast<Instruction>(V), VF)
2220 cast<GetElementPtrInst>(NewPtr)->setIsInBounds(true);
2308 cast<StoreInst>(Member)->getValueOperand(), Part);
2404 PartPtr = cast<GetElementPtrInst>(
2407 PartPtr = cast<GetElementPtrInst>(
2413 PartPtr = cast<GetElementPtrInst>(
2651 VectorType *SrcVecTy = cast<VectorType>(V->getType());
2859 Value *StepValue = cast<SCEVUnknown>(Step)->getValue();
2868 cast<Instruction>(MulExp)->setFastMathFlags(Flags);
2873 cast<Instruction>(BOp)->setFastMathFlags(Flags);
3045 cast<BranchInst>(OrigLoop->getLoopLatch()->getTerminator());
3061 cast<Instruction>(CmpN)->setDebugLoc(ScalarLatchBr->getDebugLoc());
3122 Instruction *UI = cast<Instruction>(U);
3133 auto *UI = cast<Instruction>(U);
3155 PHINode *PHI = cast<PHINode>(I.first);
3278 auto *I1 = cast<IntegerType>(T1->getVectorElementType());
3279 auto *I2 = cast<IntegerType>(T2->getVectorElementType());
3283 auto *I1 = cast<IntegerType>(T1->getVectorElementType());
3284 auto *I2 = cast<IntegerType>(T2->getVectorElementType());
3312 IRBuilder<> B(cast<Instruction>(I));
3330 cast<BinaryOperator>(NewI)->copyIRFlags(I, /*IncludeWrapFlags=*/false);
3386 NewI->takeName(cast<Instruction>(I));
3389 cast<Instruction>(I)->eraseFromParent();
3543 cast<Instruction>(VectorLoopValueMap.getVectorValue(Phi, 0)));
3564 &*++BasicBlock::iterator(cast<Instruction>(PreviousLastPart)));
3586 cast<Instruction>(PhiPart)->eraseFromParent();
3709 cast<PHINode>(VecRdxPhi)->addIncoming(StartVal, LoopVectorPreHeader);
3710 cast<PHINode>(VecRdxPhi)
3851 cast<Instruction>(IncomingValue), VF)
3879 auto *I = cast<Instruction>(U.getUser());
3931 cast<PHINode>(VectorLoopValueMap.getVectorValue(OrigPhi, 0));
3966 PHINode *P = cast<PHINode>(PN);
4073 auto *GEP = cast<GetElementPtrInst>(&I);
4208 auto *Cmp = cast<CmpInst>(&I);
4241 auto *CI = cast<CastInst>(&I);
4264 auto *CI = cast<CallInst>(&I);
4409 auto *I = cast<Instruction>(Ptr);
4462 auto *IndUpdate = cast<Instruction>(Ind->getIncomingValueForBlock(Latch));
4489 auto *Src = cast<Instruction>(Dst->getOperand(0));
4491 auto *J = cast<Instruction>(U);
4505 auto *IndUpdate = cast<Instruction>(Ind->getIncomingValueForBlock(Latch));
4518 auto *I = cast<Instruction>(U);
4528 auto *I = cast<Instruction>(U);
4760 auto *OI = cast<Instruction>(OV);
4762 auto *J = cast<Instruction>(U);
4787 auto *IndUpdate = cast<Instruction>(Ind->getIncomingValueForBlock(Latch));
4792 auto *I = cast<Instruction>(U);
4803 auto *I = cast<Instruction>(U);
5805 StoreInst *SI = cast<StoreInst>(I);
6112 BranchInst *BI = cast<BranchInst>(I);
6137 auto *Phi = cast<PHINode>(I);
6227 SelectInst *SI = cast<SelectInst>(I);
6274 auto *Trunc = cast<TruncInst>(I);
6306 CallInst *CI = cast<CallInst>(I);
6538 auto *IndUpdate = cast<Instruction>(Ind->getIncomingValueForBlock(Latch));
6540 return U == Ind || DeadInstructions.find(cast<Instruction>(U)) !=
6803 return new VPWidenIntOrFpInductionRecipe(cast<PHINode>(I->getOperand(0)),
6804 cast<TruncInst>(I));
7192 VPBasicBlock *PreEntry = cast<VPBasicBlock>(Plan->getEntry());
7400 Instruction *ScalarPredInst = cast<Instruction>(
7415 InsertElementInst *IEI = cast<InsertElementInst>(VectorValue);
lib/Transforms/Vectorize/SLPVectorizer.cpp 266 auto *EI0 = cast<ExtractElementInst>(VL[0]);
273 auto *EI = cast<ExtractElementInst>(VL[I]);
371 unsigned Opcode = cast<Instruction>(VL[BaseIndex])->getOpcode();
378 unsigned InstOpcode = cast<Instruction>(VL[Cnt])->getOpcode();
388 Type *Ty0 = cast<Instruction>(VL[BaseIndex])->getOperand(0)->getType();
389 Type *Ty1 = cast<Instruction>(VL[Cnt])->getOperand(0)->getType();
404 return InstructionsState(VL[BaseIndex], cast<Instruction>(VL[BaseIndex]),
405 cast<Instruction>(VL[AltIndex]));
431 ExtractValueInst *EI = cast<ExtractValueInst>(E);
444 LoadInst *LI = cast<LoadInst>(UserInst);
448 StoreInst *SI = cast<StoreInst>(UserInst);
452 CallInst *CI = cast<CallInst>(UserInst);
803 if (isConsecutiveAccess(cast<LoadInst>(OpLeft),
804 cast<LoadInst>(OpRight), DL, SE))
811 cast<Instruction>(Op)->getOpcode() ==
812 cast<Instruction>(OpLastLane)->getOpcode()) ||
891 unsigned NumOperands = cast<Instruction>(VL[0])->getNumOperands();
908 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane]));
910 OpsVec[OpIdx][Lane] = {cast<Instruction>(VL[Lane])->getOperand(OpIdx),
1261 auto *I0 = cast<Instruction>(Scalars[0]);
1268 auto *I = cast<Instruction>(Scalars[Lane]);
2259 auto *VL0 = cast<Instruction>(S.OpValue);
2316 auto *PH = cast<PHINode>(VL0);
2322 cast<PHINode>(VL[j])->getIncomingValueForBlock(
2344 Operands.push_back(cast<PHINode>(j)->getIncomingValueForBlock(
2421 auto *L = cast<LoadInst>(V);
2493 Type *Ty = cast<Instruction>(V)->getOperand(0)->getType();
2512 Operands.push_back(cast<Instruction>(V)->getOperand(i));
2521 CmpInst::Predicate P0 = cast<CmpInst>(VL0)->getPredicate();
2525 CmpInst *Cmp = cast<CmpInst>(V);
2542 if (cast<CmpInst>(VL0)->isCommutative()) {
2550 auto *Cmp = cast<CmpInst>(V);
2606 Operands.push_back(cast<Instruction>(j)->getOperand(i));
2615 if (cast<Instruction>(V)->getNumOperands() != 2) {
2628 Type *CurTy = cast<Instruction>(V)->getOperand(0)->getType();
2641 auto Op = cast<Instruction>(V)->getOperand(1);
2660 Operands.push_back(cast<Instruction>(V)->getOperand(i));
2683 Operands.push_back(cast<Instruction>(V)->getOperand(0));
2690 CallInst *CI = cast<CallInst>(VL0);
2756 auto *CI2 = cast<CallInst>(V);
2793 Operands.push_back(cast<Instruction>(V)->getOperand(i));
2816 N = cast<ArrayType>(T)->getNumElements();
2817 EltTy = cast<ArrayType>(T)->getElementType();
2835 Instruction *E0 = cast<Instruction>(OpValue);
2874 auto *Inst = cast<Instruction>(VL[I]);
2947 if (areAllUsersVectorized(cast<Instruction>(V)) &&
2949 auto *IO = cast<ConstantInt>(
2950 cast<ExtractElementInst>(V)->getIndexOperand());
2974 auto *IO = cast<ConstantInt>(
2975 cast<ExtractElementInst>(VL[I])->getIndexOperand());
2988 auto *IO = cast<ConstantInt>(
2989 cast<ExtractElementInst>(V)->getIndexOperand());
3006 Instruction *E = cast<Instruction>(VL[i]);
3117 const Instruction *I = cast<Instruction>(VL[i]);
3165 MaybeAlign alignment(cast<LoadInst>(VL0)->getAlignment());
3183 MaybeAlign alignment(cast<StoreInst>(VL0)->getAlignment());
3195 CallInst *CI = cast<CallInst>(VL0);
3234 Instruction *I = cast<Instruction>(VL[Idx]);
3239 Instruction *I = cast<Instruction>(V);
3245 Instruction *I = cast<Instruction>(V);
3309 ZextLoad = cast<BinaryOperator>(ZextLoad)->getOperand(0);
3328 << *(cast<Instruction>(FirstReduced)) << "\n");
3378 LiveValues.insert(cast<Instruction>(&*J));
3511 for (unsigned i = 0, e = cast<VectorType>(Ty)->getNumElements(); i < e; ++i)
3561 auto *I = cast<Instruction>(V);
3757 auto *PH = cast<PHINode>(VL0);
3827 LoadInst *LI = cast<LoadInst>(E->getSingleOperand(0));
3881 auto *CI = cast<CastInst>(VL0);
3903 CmpInst::Predicate P0 = cast<CmpInst>(VL0)->getPredicate();
4017 LoadInst *LI = cast<LoadInst>(VL0);
4029 ExternalUses.push_back(ExternalUser(PO, cast<User>(VecPtr), 0));
4053 StoreInst *SI = cast<StoreInst>(VL0);
4068 ExternalUses.push_back(ExternalUser(ScalarPtr, cast<User>(VecPtr), 0));
4089 for (int j = 1, e = cast<GetElementPtrInst>(VL0)->getNumOperands(); j < e;
4096 cast<GetElementPtrInst>(VL0)->getSourceElementType(), Op0, OpVecs);
4110 CallInst *CI = cast<CallInst>(VL0);
4124 CallInst *CEI = cast<CallInst>(VL0);
4147 ExternalUses.push_back(ExternalUser(ScalarArg, cast<User>(V), 0));
4201 auto *OpInst = cast<Instruction>(E->Scalars[i]);
4308 CSEBlocks.insert(cast<Instruction>(Scalar)->getParent());
4338 Builder.SetInsertPoint(cast<Instruction>(User));
4341 CSEBlocks.insert(cast<Instruction>(User)->getParent());
4382 eraseInstruction(cast<Instruction>(Scalar));
4699 cast<IntrinsicInst>(I)->getIntrinsicID() != Intrinsic::sideeffect)) {
5026 SelectInst *SI = cast<SelectInst>(I);
5036 PHINode *PN = cast<PHINode>(I);
5107 auto Mask = DB->getDemandedBits(cast<Instruction>(Root));
5376 cast<StoreInst>(Chain[i]))
5516 Instruction *I0 = cast<Instruction>(S.OpValue);
5604 cast<Instruction>(Ops[0]))
5888 auto *Cmp = cast<Instruction>(cast<SelectInst>(I)->getCondition());
5888 auto *Cmp = cast<Instruction>(cast<SelectInst>(I)->getCondition());
5909 cast<SelectInst>(I)->getCondition()->hasOneUse());
5946 ReductionOps[0].emplace_back(cast<SelectInst>(I)->getCondition());
5964 cast<Instruction>(I->getOperand(0))->isFast();
6063 cast<SelectInst>(I)->getCondition());
6141 return OperationData(cast<BinaryOperator>(V)->getOpcode(), LHS, RHS,
6154 cast<Instruction>(Select->getCondition())->hasNoNaNs());
6163 cast<Instruction>(Select->getCondition())->hasNoNaNs());
6187 !L2->isIdenticalTo(cast<Instruction>(RHS)))
6191 !L1->isIdenticalTo(cast<Instruction>(LHS)))
6197 !L1->isIdenticalTo(cast<Instruction>(LHS)) ||
6198 !L2->isIdenticalTo(cast<Instruction>(RHS)))
6218 cast<Instruction>(Cond)->hasNoNaNs());
6233 cast<Instruction>(Cond)->hasNoNaNs());
6435 SV_NAME, "HorSLPNotBeneficial", cast<Instruction>(VL[0]))
6448 SV_NAME, "VectorizedHorizontalReduction", cast<Instruction>(VL[0]))
6455 DebugLoc Loc = cast<Instruction>(ReducedVals[i])->getDebugLoc();
6478 auto *I = cast<Instruction>(ReducedVals[i]);
6685 DT->dominates(P->getParent(), cast<Instruction>(R)->getParent());
7054 [&R](Value *I) { return R.isDeleted(cast<Instruction>(I)); });
7089 auto *GEP = cast<GetElementPtrInst>(V);
lib/Transforms/Vectorize/VPlan.cpp 63 return cast<VPBasicBlock>(Block);
70 return cast<VPBasicBlock>(Block);
78 return cast<VPBasicBlock>(Block);
85 return cast<VPBasicBlock>(Block);
736 auto *VPInst = cast<VPInstruction>(&VPI);
737 auto *Inst = cast<Instruction>(VPInst->getUnderlyingValue());
765 visitRegion(cast<VPRegionBlock>(Plan.getEntry()), Old2New, IAI);
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp 98 auto *VPPhi = cast<VPInstruction>(VPVal);
218 NewVPInst = cast<VPInstruction>(VPIRBuilder.createNaryOp(
230 NewVPInst = cast<VPInstruction>(
290 auto *Br = cast<BranchInst>(TI);
lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp 24 auto *TopRegion = cast<VPRegionBlock>(Plan->getEntry());
49 VPInstruction *VPInst = cast<VPInstruction>(Ingredient);
50 Instruction *Inst = cast<Instruction>(VPInst->getUnderlyingValue());
lib/Transforms/Vectorize/VPlanPredicator.cpp 147 VPBasicBlock *CurrBB = cast<VPBasicBlock>(CurrBlock->getEntryBasicBlock());
171 getOrCreateNotPredicate(cast<VPBasicBlock>(PredBlock), CurrBB);
188 VPBasicBlock *EntryBlock = cast<VPBasicBlock>(Region->getEntry());
236 predicateRegionRec(cast<VPRegionBlock>(Plan.getEntry()));
239 linearizeRegionRec(cast<VPRegionBlock>(Plan.getEntry()));
247 VPDomTree.recalculate(*(cast<VPRegionBlock>(Plan.getEntry())));
lib/Transforms/Vectorize/VPlanSLP.cpp 59 return cast<VPInstruction>(V)->getUnderlyingInstr();
63 Type *T = cast<VPInstruction>(V)->getUnderlyingInstr()->getType();
80 cast<VPInstruction>(Op)->getUnderlyingInstr();
91 cast<VPInstruction>(Operands[0])->getUnderlyingInstr();
95 const Instruction *I = cast<VPInstruction>(Op)->getUnderlyingInstr();
105 return cast<VPInstruction>(Op)->getParent() != &this->BB;
123 VPBasicBlock *Parent = cast<VPInstruction>(Operands[0])->getParent();
125 auto *VPI = cast<VPInstruction>(&I);
140 return cast<LoadInst>(cast<VPInstruction>(Op)->getUnderlyingInstr())
140 return cast<LoadInst>(cast<VPInstruction>(Op)->getUnderlyingInstr())
150 return cast<StoreInst>(cast<VPInstruction>(Op)->getUnderlyingInstr())
150 return cast<StoreInst>(cast<VPInstruction>(Op)->getUnderlyingInstr())
164 auto *U = cast<VPUser>(V);
172 cast<VPInstruction>(Values[0])->getOpcode());
178 auto *VPI = cast<VPInstruction>(Values[0]);
197 unsigned Opcode = cast<VPInstruction>(Values[0])->getOpcode();
199 return cast<VPInstruction>(V)->getOpcode() != Opcode;
229 return (unsigned)areConsecutiveOrMatch(cast<VPInstruction>(V1),
230 cast<VPInstruction>(V2), IAI);
233 for (unsigned I = 0, EV1 = cast<VPUser>(V1)->getNumOperands(); I < EV1; ++I)
234 for (unsigned J = 0, EV2 = cast<VPUser>(V2)->getNumOperands(); J < EV2; ++J)
235 Score += getLAScore(cast<VPUser>(V1)->getOperand(I),
236 cast<VPUser>(V2)->getOperand(J), MaxLevel - 1, IAI);
250 << *cast<VPInstruction>(Last)->getUnderlyingInstr() << " ");
252 auto *LastI = cast<VPInstruction>(Last);
253 auto *CandidateI = cast<VPInstruction>(Candidate);
255 LLVM_DEBUG(dbgs() << *cast<VPInstruction>(Candidate)->getUnderlyingInstr()
292 << *cast<VPInstruction>(Best)->getUnderlyingInstr()
309 if (cast<VPInstruction>(Operands.second[0])->getOpcode() ==
322 dbgs() << *cast<VPInstruction>(Ops.second[Lane])->getUnderlyingInstr()
440 CombinedOperands.push_back(cast<VPInstruction>(V)->getOperand(0));
464 VPI->setUnderlyingInstr(cast<VPInstruction>(Values[0])->getUnderlyingInstr());
467 cast<VPInstruction>(Values[0])->print(dbgs()); dbgs() << "\n");
lib/XRay/FDRRecordProducer.cpp 133 auto BE = cast<BufferExtents>(R.get());
tools/bugpoint/CrashDebugger.cpp 220 auto *OldUsedVal = cast<ConstantArray>(UsedVar->getInitializer());
223 Constant *Op = cast<Constant>(V->stripPointerCasts());
225 Used.push_back(cast<Constant>(V));
281 PointerType *Ty = cast<PointerType>(Alias.getType());
289 PointerType *Ty = cast<PointerType>(I.getType());
521 Function *F = cast<Function>(GST.lookup(BI.first));
524 BBs.push_back(cast<BasicBlock>(V));
628 auto *F = cast<Function>(GST.lookup(BI.first));
631 BBs.push_back(cast<BasicBlock>(V));
720 auto *F = cast<Function>(GST.lookup(BI.first));
723 BBs.push_back(cast<BasicBlock>(V));
925 NewNamedMDNode->addOperand(cast<MDNode>(MapMetadata(op, VMap)));
939 NamedMDOps.push_back(cast<MDNode>(*VMap.getMappedMD(Node)));
tools/clang/include/clang/AST/ASTContext.h 991 MergedDefModules.find(cast<NamedDecl>(Def->getCanonicalDecl()));
tools/clang/include/clang/AST/ASTLambda.h 35 return isLambdaCallOperator(cast<CXXMethodDecl>(DC));
tools/clang/include/clang/AST/ASTTypeTraits.h 401 return *cast<T>(static_cast<const BaseT *>(
tools/clang/include/clang/AST/AttrIterator.h 68 return cast<SpecificAttr>(*Current);
72 return cast<SpecificAttr>(*Current);
tools/clang/include/clang/AST/CanonicalType.h 83 const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
tools/clang/include/clang/AST/Decl.h 455 return cast<NamedDecl>(static_cast<Decl *>(this)->getMostRecentDecl());
2840 return cast<RecordDecl>(getDeclContext());
2844 return cast<RecordDecl>(getDeclContext());
2933 return cast<FieldDecl>(chain().back());
3482 return cast<EnumDecl>(TagDecl::getCanonicalDecl());
3497 return cast<EnumDecl>(static_cast<TagDecl *>(this)->getMostRecentDecl());
3717 return cast<RecordDecl>(static_cast<TagDecl *>(this)->getMostRecentDecl());
4407 RedeclLink = PreviousDeclLink(cast<decl_type>(MostRecent));
4423 cast<NamedDecl>(static_cast<decl_type*>(this))->isLinkageValid());
tools/clang/include/clang/AST/DeclBase.h 360 auto *D = cast<Decl>(DC);
1780 return cast<Decl>(this)->getDeclContext();
1796 return cast<Decl>(this)->getLexicalDeclContext();
1809 return cast<Decl>(this)->getASTContext();
2086 value_type operator*() const { return cast<SpecificDecl>(*Current); }
2136 (Acceptable && !(cast<SpecificDecl>(*Current)->*Acceptable)())))
2164 value_type operator*() const { return cast<SpecificDecl>(*Current); }
tools/clang/include/clang/AST/DeclCXX.h 495 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl());
512 return cast<CXXRecordDecl>(
1990 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl());
1997 return cast<CXXMethodDecl>(
2009 DeclAsWritten = cast<CXXMethodDecl>(Pattern);
2029 return cast<CXXRecordDecl>(FunctionDecl::getParent());
2036 cast<CXXRecordDecl>(FunctionDecl::getParent()));
2608 return cast<CXXConstructorDecl>(FunctionDecl::getCanonicalDecl());
2669 return cast<CXXDestructorDecl>(FunctionDecl::getCanonicalDecl());
2736 return cast<CXXConversionDecl>(FunctionDecl::getCanonicalDecl());
3026 return cast<NamespaceDecl>(Namespace);
3226 return cast<CXXRecordDecl>(getDeclContext());
3229 return cast<CXXRecordDecl>(getDeclContext());
3253 return cast<CXXRecordDecl>((ConstructedBaseClassShadowDecl
tools/clang/include/clang/AST/DeclTemplate.h 1032 return cast<FunctionTemplateDecl>(
1036 return cast<FunctionTemplateDecl>(
1052 return cast<FunctionTemplateDecl>(
1719 return cast<ClassTemplateSpecializationDecl>(
1955 return cast<ClassTemplatePartialSpecializationDecl>(
2006 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2016 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2038 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2044 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2055 return cast<InjectedClassNameType>(getTypeForDecl())
2147 return cast<ClassTemplateDecl>(
2151 return cast<ClassTemplateDecl>(
2168 return cast<ClassTemplateDecl>(
2368 return cast<TypeAliasTemplateDecl>(
2372 return cast<TypeAliasTemplateDecl>(
2568 return cast<VarTemplateSpecializationDecl>(Recent);
2792 return cast<VarTemplatePartialSpecializationDecl>(
2843 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2849 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2871 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2877 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2967 return cast<VarTemplateDecl>(RedeclarableTemplateDecl::getCanonicalDecl());
2970 return cast<VarTemplateDecl>(RedeclarableTemplateDecl::getCanonicalDecl());
2986 return cast<VarTemplateDecl>(
tools/clang/include/clang/AST/Expr.h 938 const Expr *getSubExpr() const { return cast<Expr>(SubExpr); }
939 Expr *getSubExpr() { return cast<Expr>(SubExpr); }
1649 const Expr *getSubExpr() const { return cast<Expr>(Val); }
1650 Expr *getSubExpr() { return cast<Expr>(Val); }
1985 const Expr *getSubExpr() const { return cast<Expr>(Val); }
1986 Expr *getSubExpr() { return cast<Expr>(Val); }
2051 Expr *getSubExpr() const { return cast<Expr>(Val); }
2472 Expr *getLHS() { return cast<Expr>(SubExprs[LHS]); }
2473 const Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); }
2476 Expr *getRHS() { return cast<Expr>(SubExprs[RHS]); }
2477 const Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
2638 Expr *getCallee() { return cast<Expr>(getTrailingStmts()[FN]); }
2639 const Expr *getCallee() const { return cast<Expr>(getTrailingStmts()[FN]); }
2888 Expr *getBase() const { return cast<Expr>(Base); }
3078 const Expr *getInitializer() const { return cast<Expr>(Init); }
3079 Expr *getInitializer() { return cast<Expr>(Init); }
3177 Expr *getSubExpr() { return cast<Expr>(Op); }
3178 const Expr *getSubExpr() const { return cast<Expr>(Op); }
3449 Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); }
3451 Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
3741 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); }
3745 Expr *getTrueExpr() const { return cast<Expr>(SubExprs[LHS]); }
3750 Expr *getFalseExpr() const { return cast<Expr>(SubExprs[RHS]); }
3752 Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); }
3753 Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
3820 Expr *getCommon() const { return cast<Expr>(SubExprs[COMMON]); }
3827 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); }
3833 return cast<Expr>(SubExprs[LHS]);
3840 return cast<Expr>(SubExprs[RHS]);
3866 return cast<BinaryConditionalOperator>(this)->getCond();
3872 return cast<BinaryConditionalOperator>(this)->getTrueExpr();
3878 return cast<BinaryConditionalOperator>(this)->getFalseExpr();
3942 CompoundStmt *getSubStmt() { return cast<CompoundStmt>(SubStmt); }
3943 const CompoundStmt *getSubStmt() const { return cast<CompoundStmt>(SubStmt); }
4013 return cast<Expr>(SubExprs[Index]);
4017 return cast<Expr>(SubExprs[Index]);
4063 Expr *getSrcExpr() const { return cast<Expr>(SrcExpr); }
4147 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); }
4149 Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); }
4151 Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
4234 const Expr *getSubExpr() const { return cast<Expr>(Val); }
4235 Expr *getSubExpr() { return cast<Expr>(Val); }
4850 return cast<Expr>(*const_cast<DesignatedInitExpr*>(this)->child_begin());
4865 return cast<Expr>(getTrailingObjects<Stmt *>()[Idx]);
4964 Expr *getBase() const { return cast<Expr>(BaseAndUpdaterExprs[0]); }
4968 return cast<InitListExpr>(BaseAndUpdaterExprs[1]);
5017 return cast<OpaqueValueExpr>(SubExprs[0]);
5021 Expr *getSubExpr() const { return cast<Expr>(SubExprs[1]); }
5024 return cast<ConstantArrayType>(getType()->castAsArrayTypeUnsafe())
5311 return AssociationTy<Const>(cast<Expr>(*E), *TSI,
5390 return cast<Expr>(getTrailingObjects<Stmt *>()[ControllingIndex]);
5393 return cast<Expr>(getTrailingObjects<Stmt *>()[ControllingIndex]);
5399 return cast<Expr>(
5403 return cast<Expr>(
5422 cast<Expr>(getTrailingObjects<Stmt *>()[AssocExprStartIndex + I]),
5430 cast<Expr>(getTrailingObjects<Stmt *>()[AssocExprStartIndex + I]),
5508 const Expr *getBase() const { return cast<Expr>(Base); }
5509 Expr *getBase() { return cast<Expr>(Base); }
5623 Expr *getSrcExpr() const { return cast<Expr>(SrcExpr); }
5840 return cast<Expr>(SubExprs[PTR]);
5843 return cast<Expr>(SubExprs[ORDER]);
5847 return cast<Expr>(SubExprs[NumSubExprs - 1]);
5851 return cast<Expr>(SubExprs[ORDER]);
5853 return cast<Expr>(SubExprs[VAL1]);
5857 return cast<Expr>(SubExprs[ORDER_FAIL]);
5861 return cast<Expr>(SubExprs[ORDER_FAIL]);
5863 return cast<Expr>(SubExprs[VAL2]);
5867 return cast<Expr>(SubExprs[WEAK]);
tools/clang/include/clang/AST/ExprCXX.h 293 Expr *getSemanticForm() { return cast<Expr>(SemanticForm); }
294 const Expr *getSemanticForm() const { return cast<Expr>(SemanticForm); }
963 Expr *getBase() { return cast<Expr>(SubExprs[BASE_EXPR]); }
964 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE_EXPR]); }
966 Expr *getIdx() { return cast<Expr>(SubExprs[IDX_EXPR]); }
967 const Expr *getIdx() const { return cast<Expr>(SubExprs[IDX_EXPR]); }
1396 const Expr *getSubExpr() const { return cast<Expr>(SubExpr); }
1397 Expr *getSubExpr() { return cast<Expr>(SubExpr); }
2277 ? cast<Expr>(getTrailingObjects<Stmt *>()[initExprOffset()])
2282 ? cast<Expr>(getTrailingObjects<Stmt *>()[initExprOffset()])
2401 Expr *getArgument() { return cast<Expr>(Argument); }
2402 const Expr *getArgument() const { return cast<Expr>(Argument); }
2522 Expr *getBase() const { return cast<Expr>(Base); }
2911 assert(cast<UnaryOperator>(E)->getOpcode() == UO_AddrOf);
2912 E = cast<UnaryOperator>(E)->getSubExpr();
2913 auto *Ovl = cast<OverloadExpr>(E->IgnoreParens());
2921 Result.Expression = cast<OverloadExpr>(E);
3604 return cast<Expr>(Base)->isImplicitCXXThis();
3611 return cast<Expr>(Base);
3850 return cast<Expr>(Base);
3854 return cast<Expr>(Base);
3928 return cast<UnresolvedMemberExpr>(this)->getTrailingObjects<DeclAccessPair>();
3937 return cast<UnresolvedMemberExpr>(this)
3944 return cast<UnresolvedMemberExpr>(this)
3951 return cast<UnresolvedMemberExpr>(this)->getNamingClass();
4241 Expr *getReplacement() const { return cast<Expr>(Replacement); }
4474 return cast<VarDecl>(ExtendingDecl)->getStorageDuration();
4766 Expr *getOperand() const { return cast<Expr>(SubExprs[0]); }
4769 return cast<UnresolvedLookupExpr>(SubExprs[1]);
tools/clang/include/clang/AST/ExprObjC.h 62 StringLiteral *getString() { return cast<StringLiteral>(String); }
63 const StringLiteral *getString() const { return cast<StringLiteral>(String); }
142 Expr *getSubExpr() { return cast<Expr>(SubExpr); }
143 const Expr *getSubExpr() const { return cast<Expr>(SubExpr); }
580 const Expr *getBase() const { return cast<Expr>(Base); }
581 Expr *getBase() { return cast<Expr>(Base); }
709 return cast<ObjCPropertyDecl>(PropertyOrGetter.getPointer());
757 return cast<Expr>(Receiver.get<Stmt*>());
760 return cast<Expr>(Receiver.get<Stmt*>());
890 Expr *getBaseExpr() const { return cast<Expr>(SubExprs[BASE]); }
893 Expr *getKeyExpr() const { return cast<Expr>(SubExprs[KEY]); }
1518 Expr *getBase() const { return cast<Expr>(Base); }
1602 Expr *getSubExpr() { return cast<Expr>(Operand); }
1603 const Expr *getSubExpr() const { return cast<Expr>(Operand); }
tools/clang/include/clang/AST/ExprOpenMP.h 81 Expr *getBase() { return cast<Expr>(SubExprs[BASE]); }
82 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE]); }
tools/clang/include/clang/AST/GlobalDecl.h 91 cast<VarDecl>(getDecl())->hasGlobalStorage() &&
tools/clang/include/clang/AST/OpenMPClause.h 4101 Expr *getDevice() { return cast<Expr>(Device); }
4104 Expr *getDevice() const { return cast<Expr>(Device); }
4227 ? cast<ValueDecl>(AssociatedDeclaration->getCanonicalDecl())
5102 Expr *getNumTeams() { return cast<Expr>(NumTeams); }
5105 Expr *getNumTeams() const { return cast<Expr>(NumTeams); }
5178 Expr *getThreadLimit() { return cast<Expr>(ThreadLimit); }
5181 Expr *getThreadLimit() const { return cast<Expr>(ThreadLimit); }
5253 Expr *getPriority() { return cast<Expr>(Priority); }
5256 Expr *getPriority() const { return cast<Expr>(Priority); }
tools/clang/include/clang/AST/RecursiveASTVisitor.h 1662 if (cast<CXXRecordDecl>(RD)->isInjectedClassName())
1666 cast<ClassTemplateSpecializationDecl>(RD)->getSpecializationKind()) {
1693 cast<VarTemplateSpecializationDecl>(RD)->getSpecializationKind()) {
tools/clang/include/clang/AST/Redeclarable.h 322 return cast<decl_type>(getPrimaryMergedDecl(const_cast<decl_type*>(D)));
331 return cast<decl_type>(getPrimaryMergedDecl(const_cast<decl_type*>(D)));
tools/clang/include/clang/AST/Stmt.h 3217 return cast<CompoundStmt>(Children[BLOCK]);
3253 CompoundStmt *getBlock() const { return cast<CompoundStmt>(Block); }
3298 return cast<CompoundStmt>(Children[TRY]);
tools/clang/include/clang/AST/StmtCXX.h 100 return cast<CompoundStmt>(getStmts()[0]);
103 return cast<CompoundStmt>(getStmts()[0]);
108 return cast<CXXCatchStmt>(getStmts()[i + 1]);
111 return cast<CXXCatchStmt>(getStmts()[i + 1]);
161 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); }
168 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); }
172 return cast<DeclStmt>(SubExprs[RANGE]);
187 return cast<DeclStmt>(SubExprs[LOOPVAR]);
386 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl());
386 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl());
410 return cast<Expr>(getStoredStmts()[SubStmt::ReturnValue]);
tools/clang/include/clang/AST/StmtOpenMP.h 174 return cast<SpecificClause>(*this->I);
273 auto *CS = cast<CapturedStmt>(getAssociatedStmt());
277 CS = cast<CapturedStmt>(CS->getCapturedStmt());
290 auto *CS = cast<CapturedStmt>(getAssociatedStmt());
292 CS = cast<CapturedStmt>(CS->getCapturedStmt());
1096 Body = cast<CXXForRangeStmt>(Body)->getBody();
1105 Body = cast<CXXForRangeStmt>(Body)->getBody();
tools/clang/include/clang/AST/Type.h 5089 return cast<TemplateSpecializationType>(InjectedType.getTypePtr());
6872 return cast<T>(getUnqualifiedDesugaredType());
6920 return cast<ArrayType>(getUnqualifiedDesugaredType());
6929 return cast<T>(getUnqualifiedDesugaredType());
6935 return cast<ArrayType>(getUnqualifiedDesugaredType());
tools/clang/include/clang/AST/TypeLoc.h 406 return cast<TypeClass>(Base::getTypePtr());
499 return cast<TypeClass>(Base::getTypePtr());
1440 return cast<FunctionProtoType>(getTypePtr())->getNumParams();
tools/clang/include/clang/AST/VTableBuilder.h 330 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl());
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 2644 const auto *InterfaceDecl = cast<ObjCInterfaceDecl>(&Node);
2662 const auto *InterfaceDecl = cast<ObjCInterfaceDecl>(&Node);
2677 const auto *InterfaceDecl = cast<ObjCInterfaceDecl>(&Node);
2695 const auto *InterfaceDecl = cast<ObjCInterfaceDecl>(&Node);
2729 const auto *InterfaceDecl = cast<ObjCInterfaceDecl>(&Node);
2746 const auto *InterfaceDecl = cast<ObjCInterfaceDecl>(&Node);
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h 1486 case COP_Goto: return cast<Goto>(this)->successors();
1487 case COP_Branch: return cast<Branch>(this)->successors();
1488 case COP_Return: return cast<Return>(this)->successors();
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h 654 self()->printFunction(cast<Function>(B), SS, 2);
685 printApply(cast<Apply>(F), SS, true);
734 self()->printApply(cast<Apply>(T), SS, true);
826 const auto *V = cast<Variable>(E);
tools/clang/include/clang/Analysis/AnyCall.h 160 return cast<CallExpr>(E)->getCallReturnType(Ctx);
161 return cast<FunctionDecl>(D)->getReturnType();
164 return cast<ObjCMessageExpr>(E)->getCallReturnType(Ctx);
165 return cast<ObjCMethodDecl>(D)->getReturnType();
169 return cast<CallExpr>(E)->getCallReturnType(Ctx);
174 return cast<FunctionDecl>(D)->getReturnType();
tools/clang/include/clang/CodeGen/CGFunctionInfo.h 310 return cast<llvm::StructType>(TypeData);
tools/clang/include/clang/Parse/Parser.h 954 P.Actions.ActOnObjCTemporaryExitContainerContext(cast<DeclContext>(DC));
958 P.Actions.ActOnObjCReenterContainerContext(cast<DeclContext>(DC));
tools/clang/include/clang/Sema/DelayedDiagnostic.h 90 assert(!IsMember); return cast<CXXRecordDecl>(Target);
tools/clang/include/clang/Sema/Lookup.h 815 Decls.erase(cast<NamedDecl>(D->getCanonicalDecl()));
tools/clang/include/clang/Sema/Sema.h 845 Ctx.Entity = cast<Decl>(S.CurContext);
3443 if (cast<Decl>(CurContext)
tools/clang/include/clang/Sema/SemaInternal.h 32 cast<ParmVarDecl>(FTI.Params[0].Param)->getType()->isVoidType();
72 const auto *TTP = cast<TemplateTemplateParmDecl>(ND);
tools/clang/include/clang/StaticAnalyzer/Core/Checker.h 33 ((const CHECKER *)checker)->checkASTDecl(cast<DECL>(D), mgr, BR);
85 ((const CHECKER *)checker)->checkPreStmt(cast<STMT>(S), C);
104 ((const CHECKER *)checker)->checkPostStmt(cast<STMT>(S), C);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 475 return cast<FunctionDecl>(CallEvent::getDecl());
511 return cast<CallExpr>(AnyFunctionCall::getOriginExpr());
548 return cast<CallExpr>(CallEvent::getOriginExpr());
687 return cast<CXXMemberCallExpr>(CXXInstanceCall::getOriginExpr());
730 return cast<CXXOperatorCallExpr>(CXXInstanceCall::getOriginExpr());
843 return cast<CXXConstructExpr>(AnyFunctionCall::getOriginExpr());
885 return cast<CXXNewExpr>(AnyFunctionCall::getOriginExpr());
963 return cast<ObjCMessageExpr>(CallEvent::getOriginExpr());
1249 return cast<T>(this);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h 501 return cast<LabelStmt>((*I)->getLabel())->getDecl();
549 return cast<CaseStmt>((*I)->getLabel());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h 714 return cast<VarRegion>(*R);
718 return cast<VarRegion>(*OriginalR);
950 const VarDecl *getDecl() const { return cast<VarDecl>(D); }
1017 const FieldDecl *getDecl() const { return cast<FieldDecl>(D); }
1237 return cast<RegionTy>(this);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h 745 Base = SM.getLValueField(cast<FieldDecl>(I), Base);
tools/clang/lib/ARCMigrate/ObjCMT.cpp 184 return canModify(cast<Decl>(MD->getDeclContext()));
1461 migrateAddMethodAnnotation(Ctx, cast<ObjCMethodDecl>(Decl));
tools/clang/lib/ARCMigrate/TransARCAssign.cpp 54 VarDecl *var = cast<VarDecl>(declRef->getDecl());
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp 402 return cast<Expr>(getEssential((Stmt*)E));
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp 141 return isMigratable(cast<Decl>(D->getDeclContext()));
264 cast<Decl>(IndProps.front()->getDeclContext()))) {
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 183 base = cast<MemberExpr>(base)->getBase()->IgnoreParenImpCasts();
315 if (tryRemoving(cast<Expr>(StmtMap->getParentIgnoreParenCasts(E))))
tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp 210 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr());
tools/clang/lib/AST/APValue.cpp 610 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember);
658 const CXXRecordDecl *CD = cast<CXXRecordDecl>(RD);
691 Out << '&' << *cast<CXXRecordDecl>(VD->getDeclContext()) << "::" << *VD;
tools/clang/lib/AST/ASTContext.cpp 669 auto *TTP = cast<TemplateTemplateParmDecl>(*P);
738 cast<TemplateTemplateParmDecl>(*P)));
1041 MergedDefModules[cast<NamedDecl>(ND->getCanonicalDecl())].push_back(M);
1045 auto It = MergedDefModules.find(cast<NamedDecl>(ND->getCanonicalDecl()));
1613 cast<FieldDecl>(D)->getParent()->hasAttr<PackedAttr>();
1621 cast<FieldDecl>(D)->getParent()->hasAttr<PackedAttr>();
1647 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType)))
1825 Align = getTypeAlign(cast<ArrayType>(T)->getElementType());
1829 const auto *CAT = cast<ConstantArrayType>(T);
1844 const auto *VT = cast<VectorType>(T);
1862 switch (cast<BuiltinType>(T)->getKind()) {
2057 AS = getTargetAddressSpace(cast<BlockPointerType>(T)->getPointeeType());
2065 AS = getTargetAddressSpace(cast<ReferenceType>(T)->getPointeeType());
2070 AS = getTargetAddressSpace(cast<PointerType>(T)->getPointeeType());
2075 const auto *MPT = cast<MemberPointerType>(T);
2084 TypeInfo EltInfo = getTypeInfo(cast<ComplexType>(T)->getElementType());
2090 return getTypeInfo(cast<ObjCObjectType>(T)->getBaseType().getTypePtr());
2093 return getTypeInfo(cast<AdjustedType>(T)->getAdjustedType().getTypePtr());
2095 const auto *ObjCI = cast<ObjCInterfaceType>(T);
2103 const auto *TT = cast<TagType>(T);
2122 const auto *RT = cast<RecordType>(TT);
2132 return getTypeInfo(cast<SubstTemplateTypeParmType>(T)->
2137 const auto *A = cast<DeducedType>(T);
2144 return getTypeInfo(cast<ParenType>(T)->getInnerType().getTypePtr());
2148 cast<MacroQualifiedType>(T)->getUnderlyingType().getTypePtr());
2151 return getTypeInfo(cast<ObjCTypeParamType>(T)->desugar().getTypePtr());
2154 const TypedefNameDecl *Typedef = cast<TypedefType>(T)->getDecl();
2171 return getTypeInfo(cast<ElaboratedType>(T)->getNamedType().getTypePtr());
2175 cast<AttributedType>(T)->getEquivalentType().getTypePtr());
2179 TypeInfo Info = getTypeInfo(cast<AtomicType>(T)->getValueType());
2604 return cast<ObjCImplementationDecl>(I->second);
2614 return cast<ObjCCategoryImplDecl>(I->second);
2821 const auto *FPT = cast<FunctionProtoType>(T);
2827 return cast<FunctionType>(Result.getTypePtr());
3282 cast<PointerType>(ty)->getPointeeType()));
3286 const auto *lv = cast<LValueReferenceType>(ty);
3294 const auto *lv = cast<RValueReferenceType>(ty);
3301 const auto *at = cast<AtomicType>(ty);
3307 const auto *cat = cast<ConstantArrayType>(ty);
3318 const auto *dat = cast<DependentSizedArrayType>(ty);
3330 const auto *iat = cast<IncompleteArrayType>(ty);
3342 const auto *vat = cast<VariableArrayType>(ty);
3939 const auto *RD = cast<CXXRecordDecl>(D);
4456 auto *TTP = cast<TemplateTemplateParmDecl>(Param);
5219 const auto *DSAT = cast<DependentSizedArrayType>(AT);
5397 return TemplateName(cast<TemplateDecl>(Template->getCanonicalDecl()));
5446 auto *D = cast<ValueDecl>(Arg.getAsDecl()->getCanonicalDecl());
5593 const auto *VAT = cast<VariableArrayType>(ATy);
5758 switch (cast<BuiltinType>(T)->getKind()) {
6068 CFConstantStringTypeDecl = cast<TypedefDecl>(TD->getDecl());
6498 const auto *OID = cast<ObjCImplementationDecl>(Container);
7254 const auto *field = cast<FieldDecl>(dcl);
9233 cast<FunctionType>(RHSCan.getTypePtr())->getReturnType();
9235 cast<FunctionType>(LHSCan.getTypePtr())->getReturnType();
9244 if (const auto *FPT = cast<FunctionProtoType>(F)) {
9889 Context.GetGVALinkageForFunction(cast<FunctionDecl>(LexicalContext));
9999 cast<FunctionDecl>(D)->getTemplateSpecializationKind() ==
10007 cast<CXXMethodDecl>(D)->getParent()->getTemplateSpecializationKind() ==
10056 const auto *VD = cast<VarDecl>(D);
10287 cast<CXXRecordDecl>(RD->getFirstDecl()));
10293 cast<CXXRecordDecl>(RD->getFirstDecl()),
10294 cast<CXXConstructorDecl>(CD->getFirstDecl()));
tools/clang/lib/AST/ASTDiagnostic.cpp 444 NamedDecl *ND = cast<NamedDecl>(DC);
1330 cast<NonTypeTemplateParmDecl>(FromParamND);
1332 cast<NonTypeTemplateParmDecl>(ToParamND);
tools/clang/lib/AST/ASTDumper.cpp 28 NodeDumper.dumpBareDeclRef(cast<Decl>(DC));
33 NodeDumper.dumpPointer(cast<Decl>(Primary));
217 ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext();
tools/clang/lib/AST/ASTImporter.cpp 1389 cast<TemplateTypeParmType>((*ReplacedOrErr).getTypePtr());
1597 if (RecordDecl *ToRecord = cast<RecordDecl>(ToD)) {
1608 if (EnumDecl *ToEnum = cast<EnumDecl>(ToD)) {
1785 To->setTypedefNameForAnonDecl(cast<TypedefNameDecl>(*ToTypedefOrErr));
2196 MergeWithNamespace = cast<NamespaceDecl>(DC)->getAnonymousNamespace();
2245 cast<NamespaceDecl>(DC)->setAnonymousNamespace(ToNamespace);
2374 TypeAliasDecl *FromAlias = IsAlias ? cast<TypeAliasDecl>(D) : nullptr;
2752 auto *RI = cast<CXXRecordDecl>(R);
2857 ToEnumerator, D, Importer.getToContext(), cast<EnumDecl>(DC), Loc,
3166 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
3187 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
3192 CXXDestructorDecl *ToDtor = cast<CXXDestructorDecl>(ToFunction);
3205 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
3213 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
3292 auto *ToCtor = cast<CXXConstructorDecl>(ToFunction);
3330 if (Error Err = ImportOverriddenMethods(cast<CXXMethodDecl>(ToFunction),
3523 auto *RD = cast<CXXRecordDecl>(DC);
3630 ToIvar, D, Importer.getToContext(), cast<ObjCContainerDecl>(DC),
4876 auto *InImpl = cast<ObjCImplDecl>(LexicalDC);
5252 cast<ClassTemplatePartialSpecializationDecl>(D2), InsertPos);
6760 auto *CCE = cast<CStyleCastExpr>(E);
6774 auto *FCE = cast<CXXFunctionalCastExpr>(E);
6788 auto *OCE = cast<ObjCBridgedCastExpr>(E);
7397 ToDecls.addDecl(cast<NamedDecl>(*ToDOrErr));
7448 ToDecls.addDecl(cast<NamedDecl>(*ToDOrErr));
7770 ToMethod->getCanonicalDecl()->addOverriddenMethod(cast<CXXMethodDecl>(
8062 ExpectedDecl ToDCOrErr = Import(cast<Decl>(FromDC));
8065 auto *ToDC = cast<DeclContext>(*ToDCOrErr);
8070 auto *FromRecord = cast<RecordDecl>(FromDC);
8081 auto *FromEnum = cast<EnumDecl>(FromDC);
8092 auto *FromClass = cast<ObjCInterfaceDecl>(FromDC);
8103 auto *FromProto = cast<ObjCProtocolDecl>(FromDC);
8141 auto *FromE = cast<Expr>(FromS);
8176 cast<NamespaceDecl>(*NSOrErr));
8183 cast<NamespaceAliasDecl>(*NSADOrErr));
8193 cast<CXXRecordDecl>(*RDOrErr));
8297 return TemplateName(cast<TemplateDecl>(*ToTemplateOrErr));
8306 ToTemplates.addDecl(cast<NamedDecl>(*ToOrErr));
8331 cast<TemplateDecl>(*ToTemplateOrErr));
8363 cast<TemplateTemplateParmDecl>(*ParamOrErr), *ReplacementOrErr);
8380 cast<TemplateTemplateParmDecl>(*ParamOrErr), *ArgPackOrErr);
8588 auto *FromDC = cast<DeclContext>(From);
8594 cast<RecordDecl>(FromDC), ToRecord,
8602 cast<EnumDecl>(FromDC), ToEnum, ASTNodeImporter::IDK_Everything);
8609 cast<ObjCInterfaceDecl>(FromDC), ToIFace,
8617 cast<ObjCProtocolDecl>(FromDC), ToProto,
8660 cast<TemplateDecl>(*ToTemplateOrErr));
tools/clang/lib/AST/ASTImporterLookupTable.cpp 136 llvm::errs() << "== DC:" << cast<Decl>(DC) << Primary << "\n";
tools/clang/lib/AST/ASTStructuralEquivalence.cpp 946 const auto *Owner2 = cast<RecordDecl>(Field2->getDeclContext());
1057 auto *Constructor2 = cast<CXXConstructorDecl>(Method2);
1064 auto *Conversion2 = cast<CXXConversionDecl>(Method2);
tools/clang/lib/AST/CXXInheritance.cpp 287 BaseRecord = cast<CXXRecordDecl>(RT->getDecl());
303 BaseRecord = cast<CXXRecordDecl>(
370 VBase = cast<CXXRecordDecl>(Record->getDecl());
382 HidingClass = cast<CXXRecordDecl>(Record->getDecl());
607 = ++SubobjectCount[cast<CXXRecordDecl>(RD->getCanonicalDecl())];
611 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl());
781 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
803 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/Comment.cpp 233 const FunctionDecl *FD = cast<FunctionDecl>(CommentDecl);
246 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CommentDecl);
253 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(CommentDecl);
263 const FunctionTemplateDecl *FTD = cast<FunctionTemplateDecl>(CommentDecl);
273 const ClassTemplateDecl *CTD = cast<ClassTemplateDecl>(CommentDecl);
281 cast<ClassTemplatePartialSpecializationDecl>(CommentDecl);
329 ? cast<TypedefDecl>(CommentDecl)->getTypeSourceInfo()
330 : cast<TypeAliasDecl>(CommentDecl)->getTypeSourceInfo();
343 const TypeAliasTemplateDecl *TAT = cast<TypeAliasTemplateDecl>(CommentDecl);
tools/clang/lib/AST/CommentParser.cpp 387 Paragraph = cast<ParagraphComment>(Block);
tools/clang/lib/AST/ComparisonCategories.cpp 64 Objects.emplace_back(ValueKind, cast<VarDecl>(Lookup.front()));
tools/clang/lib/AST/Decl.cpp 281 const auto *TTP = cast<TemplateTemplateParmDecl>(P);
306 Ret = cast<Decl>(DC);
607 cast<NamedDecl>(D->getCanonicalDecl())))
862 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()),
952 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation);
1192 Owner = cast<NamedDecl>(ContextDecl);
1283 const auto *FD = cast<FunctionDecl>(OuterD);
1294 assert(cast<VarDecl>(D)->isStaticLocal());
1360 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computation);
1367 if (!cast<TypedefNameDecl>(D)
1386 const auto *Record = cast<CXXRecordDecl>(D);
1485 auto *T = cast<NamedDecl>(I);
1661 OS << *cast<NamedDecl>(DC);
1725 cast<UsingDecl>(OldD)->getQualifier());
1731 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier());
1791 D = cast<UsingShadowDecl>(D)->getTargetDecl();
1877 QT = cast<PointerType>(T)->getPointeeType();
1880 QT = cast<BlockPointerType>(T)->getPointeeType();
1883 QT = cast<MemberPointerType>(T)->getPointeeType();
1887 QT = cast<ReferenceType>(T)->getPointeeType();
1890 QT = cast<PackExpansionType>(T)->getPattern();
2224 return cast<Expr>(S);
2356 const auto *Init = cast<Expr>(Eval->Value);
2424 const auto *Init = cast<Expr>(Eval->Value);
2529 return cast<VarDecl>(MSI->getInstantiatedFrom());
2833 if (isa<CompoundStmt>(S) && cast<CompoundStmt>(S)->body_empty())
2928 cast<TranslationUnitDecl>(getDeclContext()->getRedeclContext())
3043 if (const auto *Namespace = cast<NamespaceDecl>(DC)) {
3463 return cast<FunctionDecl>(Info->getInstantiatedFrom());
3559 return getDefinitionOrSelf(cast<FunctionDecl>(Info->getInstantiatedFrom()));
3677 TsArray[I] = cast<FunctionTemplateDecl>(Ts[I]->getUnderlyingDecl());
3984 const auto *CXXRD = cast<CXXRecordDecl>(RD);
4082 cast<CXXRecordDecl>(I)->DefinitionData = Data;
4088 cast<CXXRecordDecl>(this)->hasDefinition()) &&
4261 return cast<EnumDecl>(SpecializationInfo->getInstantiatedFrom());
4329 cast<RecordDecl>(getDeclContext())->getDeclName() == getDeclName();
tools/clang/lib/AST/DeclBase.cpp 108 Parent ? cast<Decl>(Parent)->getOwningModule() : nullptr;
134 assert(!isa<TagDecl>(this) || !cast<TagDecl>(this)->isCompleteDefinition());
314 setLocalOwningModule(cast<Decl>(DC)->getOwningModule());
374 return cast<TranslationUnitDecl>(DC);
975 auto *MD = cast<CXXMethodDecl>(D);
1061 return cast<BlockDecl>(Ctx);
1070 cast<NamespaceDecl>(this)->isInline();
1077 const auto *ND = cast<NamespaceDecl>(this);
1110 if (cast<Decl>(this)->getFriendObjectKind())
1123 return !cast<EnumDecl>(this)->isScoped();
1134 return cast<LinkageSpecDecl>(DC)->getLanguage() == ID;
1148 cast<LinkageSpecDecl>(DC)->getLanguage() == LinkageSpecDecl::lang_c)
1149 return cast<LinkageSpecDecl>(DC);
1212 auto *Tag = cast<TagDecl>(this);
1469 auto *ND = cast<NamedDecl>(D);
1623 (void)cast<Decl>(this)->getMostRecentDecl();
1775 OutermostRD = cast<RecordDecl>(DC);
1849 auto *DCAsDecl = cast<Decl>(this);
1851 if (!(isa<TagDecl>(DCAsDecl) && cast<TagDecl>(DCAsDecl)->isBeingDefined()))
1903 return cast<UsingDirectiveDecl>(*I);
tools/clang/lib/AST/DeclCXX.cpp 68 I.setDecl(cast<NamedDecl>(Source->GetExternalDecl(
222 cast<CXXRecordDecl>(BaseType->castAs<RecordType>()->getDecl());
675 (!isa<TagDecl>(D) || cast<TagDecl>(D)->getTagKind() == TTK_Class ||
676 cast<TagDecl>(D)->getTagKind() == TTK_Interface))
845 FunTmpl ? cast<NamedDecl>(FunTmpl) : cast<NamedDecl>(Conversion);
845 FunTmpl ? cast<NamedDecl>(FunTmpl) : cast<NamedDecl>(Conversion);
847 Conversions.replace(cast<NamedDecl>(Primary->getPreviousDecl()),
1099 auto *FieldRec = cast<CXXRecordDecl>(RecordTy->getDecl());
1427 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl());
1429 return cast<CXXMethodDecl>(CallOp);
1442 return cast<CXXMethodDecl>(InvokerTemplate->getTemplatedDecl());
1444 return cast<CXXMethodDecl>(InvokerFun);
1497 cast<CXXConversionDecl>(Conv->getUnderlyingDecl()->getAsFunction())
1545 HiddenVBaseCs.insert(cast<NamedDecl>(I.getDecl()->getCanonicalDecl()));
1569 auto *Base = cast<CXXRecordDecl>(RT->getDecl());
1607 CollectVisibleConversions(Context, cast<CXXRecordDecl>(RT->getDecl()),
1615 if (!HiddenVBaseCs.count(cast<NamedDecl>(I.getDecl()->getCanonicalDecl())))
1668 return cast<CXXRecordDecl>(MSInfo->getInstantiatedFrom());
1913 cast<CXXRecordDecl>(B.getType()->castAs<RecordType>()->getDecl());
1941 return cast<CXXConstructorDecl>(Function)->getExplicitSpecifier();
1943 return cast<CXXConversionDecl>(Function)->getExplicitSpecifier();
1945 return cast<CXXDeductionGuideDecl>(Function)->getExplicitSpecifier();
2030 const auto *Base = cast<CXXRecordDecl>(RT->getDecl());
2619 auto *First = cast<CXXDestructorDecl>(getFirstDecl());
2805 redeclarable_base(C), UsingOrNextShadow(cast<NamedDecl>(Using)) {
2825 return cast<UsingDecl>(Shadow->UsingOrNextShadow);
2875 Prev = cast<UsingShadowDecl>(Prev->UsingOrNextShadow);
tools/clang/lib/AST/DeclFriend.cpp 50 (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind()));
61 cast<CXXRecordDecl>(DC)->pushFriendDecl(FD);
75 return First ? cast<FriendDecl>(First) : nullptr;
tools/clang/lib/AST/DeclObjC.cpp 255 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(this), PropertyId,
263 const auto *PID = cast<ObjCProtocolDecl>(this);
271 const auto *OID = cast<ObjCInterfaceDecl>(this);
292 const auto *OCD = cast<ObjCCategoryDecl>(this);
379 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(this), PropertyId,
607 cast<ObjCInterfaceType>(TypeForDecl)->Decl = this;
913 auto *CtxD = cast<Decl>(getDeclContext());
941 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl())
946 return cast<ObjCContainerDecl>(CtxD)->getMethod(getSelector(),
954 auto *CtxD = cast<Decl>(getDeclContext());
971 cast<ObjCContainerDecl>(CtxD)->getMethod(getSelector(),
1289 Method = cast<ObjCContainerDecl>(Method->getDeclContext())->
1308 const auto *Container = cast<ObjCContainerDecl>(getParent());
1774 ID = cast<ObjCCategoryDecl>(DC)->getClassInterface();
1790 const auto *DC = cast<ObjCContainerDecl>(getDeclContext());
1800 const auto *CD = cast<ObjCCategoryDecl>(DC);
1806 return cast<ObjCImplementationDecl>(DC)->getClassInterface();
1809 return cast<ObjCInterfaceDecl>(DC);
tools/clang/lib/AST/DeclPrinter.cpp 216 ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext();
422 if (isa<TagDecl>(*D) && !cast<TagDecl>(*D)->isFreeStanding()) {
445 else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->hasBody())
476 cast<FunctionDecl>(*D)->doesThisDeclarationHaveABody()) ||
478 cast<FunctionTemplateDecl>(*D)->getTemplatedDecl()->doesThisDeclarationHaveABody())))
1096 auto P = cast<TemplateTypeParmDecl>(Params->getParam(T->getIndex()));
1103 auto P = cast<TemplateTemplateParmDecl>(
1112 auto P = cast<NonTypeTemplateParmDecl>(
1615 NamedDecl *ND = cast<DeclRefExpr>(*I)->getDecl();
1629 NamedDecl *ND = cast<DeclRefExpr>(*I)->getDecl();
tools/clang/lib/AST/DeclTemplate.cpp 109 } else if (cast<TemplateTemplateParmDecl>(P)->hasDefaultArgument())
128 return cast<TemplateTemplateParmDecl>(FirstParm)->getDepth();
271 L->AddedCXXTemplateSpecialization(cast<Derived>(this),
285 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
384 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
830 auto *ctpsd = const_cast<CTPSDecl *>(cast<CTPSDecl>(this));
tools/clang/lib/AST/DeclarationName.cpp 283 Template = cast<TemplateDecl>(Template->getCanonicalDecl());
tools/clang/lib/AST/Expr.cpp 73 return cast<CXXRecordDecl>(D);
89 cast<CXXRecordDecl>(E->getType()->castAs<RecordType>()->getDecl());
844 cast<CXXMethodDecl>(FD)->getParent()->isLambda())
1530 return cast<CXXOperatorCallExpr>(this)->getBeginLoc();
1539 return cast<CXXOperatorCallExpr>(this)->getEndLoc();
1914 skipImplicitTemporary(cast<CXXConstructExpr>(SubExpr)->getArg(0));
1937 return cast<CXXConstructExpr>(SubExpr)->getConstructor();
2400 return cast<ParenExpr>(this)->getSubExpr()->
2403 return cast<GenericSelectionExpr>(this)->getResultExpr()->
2407 return cast<CoroutineSuspendExpr>(this)->getResumeExpr()->
2410 return cast<ChooseExpr>(this)->getChosenSubExpr()->
2413 const UnaryOperator *UO = cast<UnaryOperator>(this);
2447 const BinaryOperator *BO = cast<BinaryOperator>(this);
2486 const auto *Exp = cast<ConditionalOperator>(this);
2491 const auto *Exp = cast<BinaryConditionalOperator>(this);
2497 Loc = cast<MemberExpr>(this)->getMemberLoc();
2499 R2 = cast<MemberExpr>(this)->getBase()->getSourceRange();
2504 Loc = cast<ArraySubscriptExpr>(this)->getRBracketLoc();
2505 R1 = cast<ArraySubscriptExpr>(this)->getLHS()->getSourceRange();
2506 R2 = cast<ArraySubscriptExpr>(this)->getRHS()->getSourceRange();
2516 const CXXOperatorCallExpr *Op = cast<CXXOperatorCallExpr>(this);
2542 const CallExpr *CE = cast<CallExpr>(this);
2582 const auto *CE = cast<CXXConstructExpr>(this);
2601 const ObjCMessageExpr *ME = cast<ObjCMessageExpr>(this);
2629 const PseudoObjectExpr *PO = cast<PseudoObjectExpr>(this);
2648 const CompoundStmt *CS = cast<StmtExpr>(this)->getSubStmt();
2660 Loc = cast<StmtExpr>(this)->getLParenLoc();
2668 const CastExpr *CE = cast<CastExpr>(this);
2675 cast<VarDecl>(DRE->getDecl())->hasLocalStorage()) &&
2695 const CStyleCastExpr *CStyleCE = cast<CStyleCastExpr>(this);
2702 const CastExpr *ICE = cast<ImplicitCastExpr>(this);
2712 return (cast<CXXDefaultArgExpr>(this)
2715 return (cast<CXXDefaultInitExpr>(this)
2724 return cast<MaterializeTemporaryExpr>(this)->GetTemporaryExpr()
2727 return cast<CXXBindTemporaryExpr>(this)->getSubExpr()
2730 return cast<ExprWithCleanups>(this)->getSubExpr()
2745 return cast<UnaryOperator>(E)->getSubExpr()->isOBJCGCCandidate(Ctx);
2747 return cast<ImplicitCastExpr>(E)->getSubExpr()->isOBJCGCCandidate(Ctx);
2749 return cast<MaterializeTemporaryExpr>(E)->GetTemporaryExpr()
2752 return cast<CStyleCastExpr>(E)->getSubExpr()->isOBJCGCCandidate(Ctx);
2754 const Decl *D = cast<DeclRefExpr>(E)->getDecl();
2768 const MemberExpr *M = cast<MemberExpr>(E);
2772 return cast<ArraySubscriptExpr>(E)->getBase()->isOBJCGCCandidate(Ctx);
3056 switch (cast<ImplicitCastExpr>(E)->getCastKind()) {
3162 const CXXConstructExpr *CE = cast<CXXConstructExpr>(this);
3179 const Expr *Exp = cast<ConstantExpr>(this)->getSubExpr();
3186 const Expr *Exp = cast<CompoundLiteralExpr>(this)->getInitializer();
3190 const DesignatedInitUpdateExpr *DIUE = cast<DesignatedInitUpdateExpr>(this);
3195 const InitListExpr *ILE = cast<InitListExpr>(this);
3244 return cast<ParenExpr>(this)->getSubExpr()
3247 return cast<GenericSelectionExpr>(this)->getResultExpr()
3250 if (cast<ChooseExpr>(this)->isConditionDependent()) {
3255 return cast<ChooseExpr>(this)->getChosenSubExpr()
3258 const UnaryOperator* Exp = cast<UnaryOperator>(this);
3271 const CastExpr *CE = cast<CastExpr>(this);
3286 return cast<MaterializeTemporaryExpr>(this)->GetTemporaryExpr()
3290 return cast<SubstNonTypeTemplateParmExpr>(this)->getReplacement()
3293 return cast<CXXDefaultArgExpr>(this)->getExpr()
3296 return cast<CXXDefaultInitExpr>(this)->getExpr()
3412 return cast<ConstantExpr>(this)->getSubExpr()->HasSideEffects(
3423 const Decl *FD = cast<CallExpr>(this)->getCalleeDecl();
3453 Finder.Visit(cast<StmtExpr>(this)->getSubStmt());
3459 if (cast<ExprWithCleanups>(this)->cleanupsHaveSideEffects())
3487 if (cast<UnaryOperator>(this)->isIncrementDecrementOp())
3492 if (cast<BinaryOperator>(this)->isAssignmentOp())
3498 if (const Expr *E = cast<InitListExpr>(this)->getArrayFiller())
3504 return cast<GenericSelectionExpr>(this)->getResultExpr()->
3508 return cast<ChooseExpr>(this)->getChosenSubExpr()->HasSideEffects(
3512 return cast<CXXDefaultArgExpr>(this)->getExpr()->HasSideEffects(
3516 const FieldDecl *FD = cast<CXXDefaultInitExpr>(this)->getField();
3525 const CXXDynamicCastExpr *DCE = cast<CXXDynamicCastExpr>(this);
3545 const CastExpr *CE = cast<CastExpr>(this);
3555 return cast<CXXTypeidExpr>(this)->isPotentiallyEvaluated();
3559 const CXXConstructExpr *CE = cast<CXXConstructExpr>(this);
3568 const auto *ICIE = cast<CXXInheritedCtorInitExpr>(this);
3575 const LambdaExpr *LE = cast<LambdaExpr>(this);
3585 const PseudoObjectExpr *PO = cast<PseudoObjectExpr>(this);
3618 cast<Expr>(SubStmt)->HasSideEffects(Ctx, IncludePossibleEffects))
3820 return cast<ObjCPropertyRefExpr>(E);
3941 const auto *DRE1 = cast<DeclRefExpr>(E1);
3942 const auto *DRE2 = cast<DeclRefExpr>(E2);
4001 const auto *ME1 = cast<MemberExpr>(E1);
4002 const auto *ME2 = cast<MemberExpr>(E2);
4464 e = cast<CXXConstructExpr>(e)->getArg(0);
4467 return cast<OpaqueValueExpr>(e);
4530 assert(cast<OpaqueValueExpr>(E)->getSourceExpr() != nullptr &&
tools/clang/lib/AST/ExprCXX.cpp 588 return cast<CXXTemporaryObjectExpr>(this)->getBeginLoc();
594 return cast<CXXTemporaryObjectExpr>(this)->getEndLoc();
739 return cast<CXXMethodDecl>(MemExpr->getMemberDecl());
845 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl());
851 cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl());
967 cast<FunctionDecl>(getCalleeDecl())->getParamDecl(0)->getType();
989 return cast<FunctionDecl>(getCalleeDecl())->getLiteralIdentifier();
1489 if (cast<CXXMethodDecl>(decl->getUnderlyingDecl()->getAsFunction())
1534 return cast<Expr>(Base)->isImplicitCXXThis();
tools/clang/lib/AST/ExprClassification.cpp 199 return ClassifyInternal(Ctx, cast<ConstantExpr>(E)->getSubExpr());
204 cast<SubstNonTypeTemplateParmExpr>(E)->getReplacement());
211 if (cast<ArraySubscriptExpr>(E)->getBase()->getType()->isVectorType())
212 return ClassifyInternal(Ctx, cast<ArraySubscriptExpr>(E)->getBase());
216 auto *Base = cast<ArraySubscriptExpr>(E)->getBase()->IgnoreImpCasts();
226 return isa<FunctionDecl>(cast<DeclRefExpr>(E)->getDecl())
228 return ClassifyDecl(Ctx, cast<DeclRefExpr>(E)->getDecl());
232 return ClassifyMemberExpr(Ctx, cast<MemberExpr>(E));
235 switch (cast<UnaryOperator>(E)->getOpcode()) {
244 return ClassifyInternal(Ctx, cast<UnaryOperator>(E)->getSubExpr());
250 const Expr *Op = cast<UnaryOperator>(E)->getSubExpr()->IgnoreParens();
276 cast<PseudoObjectExpr>(E)->getValueKind());
286 return ClassifyInternal(Ctx, cast<ParenExpr>(E)->getSubExpr());
292 if (cast<GenericSelectionExpr>(E)->isResultDependent())
294 return ClassifyInternal(Ctx,cast<GenericSelectionExpr>(E)->getResultExpr());
300 return ClassifyBinaryOp(Ctx, cast<BinaryOperator>(E));
308 return ClassifyUnnamed(Ctx, cast<CallExpr>(E)->getCallReturnType(Ctx));
312 Ctx, cast<CXXRewrittenBinaryOperator>(E)->getSemanticForm());
316 return ClassifyInternal(Ctx, cast<ChooseExpr>(E)->getChosenSubExpr());
321 if (cast<ExtVectorElementExpr>(E)->containsDuplicateElements())
323 if (cast<ExtVectorElementExpr>(E)->isArrow())
325 return ClassifyInternal(Ctx, cast<ExtVectorElementExpr>(E)->getBase());
329 return ClassifyInternal(Ctx, cast<CXXDefaultArgExpr>(E)->getExpr());
333 return ClassifyInternal(Ctx, cast<CXXDefaultInitExpr>(E)->getExpr());
337 return ClassifyInternal(Ctx, cast<CXXBindTemporaryExpr>(E)->getSubExpr());
341 return ClassifyInternal(Ctx, cast<ExprWithCleanups>(E)->getSubExpr());
354 return ClassifyUnnamed(Ctx, cast<ExplicitCastExpr>(E)->getTypeAsWritten());
358 cast<CXXUnresolvedConstructExpr>(E)->getTypeAsWritten());
362 const auto *co = cast<BinaryConditionalOperator>(E);
369 const auto *co = cast<ConditionalOperator>(E);
377 cast<ObjCMessageExpr>(E)->getMethodDecl()) {
395 return ClassifyInternal(Ctx, cast<DesignatedInitExpr>(E)->getInit());
398 const CompoundStmt *S = cast<StmtExpr>(E)->getSubStmt();
408 return ClassifyInternal(Ctx, cast<PackExpansionExpr>(E)->getPattern());
411 return cast<MaterializeTemporaryExpr>(E)->isBoundToLvalueReference()
422 assert(cast<InitListExpr>(E)->getNumInits() == 1 &&
424 return ClassifyInternal(Ctx, cast<InitListExpr>(E)->getInit(0));
428 return ClassifyInternal(Ctx, cast<CoroutineSuspendExpr>(E)->getResumeExpr());
444 if (isa<CXXMethodDecl>(D) && cast<CXXMethodDecl>(D)->isInstance())
tools/clang/lib/AST/ExprConstant.cpp 87 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl;
1640 return cast<CXXRecordDecl>(
1807 cast<CXXMethodDecl>(Callee)->isInstance();
1880 const CompoundLiteralExpr *CLE = cast<CompoundLiteralExpr>(E);
1886 return cast<MaterializeTemporaryExpr>(E)->getStorageDuration() == SD_Static;
1895 return cast<ObjCBoxedExpr>(E)->isExpressibleAsConstantInitializer();
1897 return IsStringLiteralCall(cast<CallExpr>(E));
1904 return !cast<BlockExpr>(E)->getBlockDecl()->hasCaptures();
2741 if (!HandleLValueMember(Info, E, LVal, cast<FieldDecl>(C)))
2944 const StringLiteral *S = cast<StringLiteral>(Lit);
4064 IncDecSubobjectHandler Handler = {Info, cast<UnaryOperator>(E), AK, Old};
4427 const CaseStmt *CS = cast<CaseStmt>(SC);
4491 const IfStmt *IS = cast<IfStmt>(S);
4530 EvaluateLoopBody(Result, Info, cast<WhileStmt>(S)->getBody(), Case);
4537 const ForStmt *FS = cast<ForStmt>(S);
4565 const DeclStmt *DS = cast<DeclStmt>(S);
4604 const DeclStmt *DS = cast<DeclStmt>(S);
4617 const Expr *RetExpr = cast<ReturnStmt>(S)->getRetValue();
4630 const CompoundStmt *CS = cast<CompoundStmt>(S);
4647 const IfStmt *IS = cast<IfStmt>(S);
4675 const WhileStmt *WS = cast<WhileStmt>(S);
4698 const DoStmt *DS = cast<DoStmt>(S);
4715 const ForStmt *FS = cast<ForStmt>(S);
4754 const CXXForRangeStmt *FS = cast<CXXForRangeStmt>(S);
4829 return EvaluateSwitch(Result, Info, cast<SwitchStmt>(S));
4838 return EvaluateStmt(Result, Info, cast<LabelStmt>(S)->getSubStmt(), Case);
4843 return EvaluateStmt(Result, Info, cast<AttributedStmt>(S)->getSubStmt(),
4848 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case);
4851 return EvaluateStmt(Result, Info, cast<CXXTryStmt>(S)->getTryBlock(), Case);
4906 cast<CXXMethodDecl>(Declaration)->isVirtual())
5661 FD = cast<FieldDecl>(C);
5662 CXXRecordDecl *CD = cast<CXXRecordDecl>(FD->getParent());
6945 FD = cast<CXXMethodDecl>(CorrespondingCallOpSpecialization);
7365 return HandleDynamicCast(Info, cast<ExplicitCastExpr>(E), Result);
7402 cast<DeclRefExpr>(E)->refersToEnclosingVariableOrCapture()) {
7995 return HandleDynamicCast(Info, cast<ExplicitCastExpr>(E), Result);
8579 ResizedArrayILE = cast<InitListExpr>(Init);
8654 Result.addArray(Info, E, cast<ConstantArrayType>(AT));
8743 return Success(cast<DeclRefExpr>(E->getSubExpr())->getDecl());
8855 if (isa<CXXRecordDecl>(RD) && cast<CXXRecordDecl>(RD)->getNumVBases()) {
9038 cast<CXXConstructorDecl>(Definition), Info,
9060 cast<CXXConstructorDecl>(Definition), Info,
9568 auto *CAT = cast<ConstantArrayType>(E->getType()->castAsArrayTypeUnsafe());
10255 if (!IsLastOrInvalidFieldDecl(cast<FieldDecl>(FD), Invalid))
10280 const auto *CAT = cast<ConstantArrayType>(Ctx.getAsArrayType(BaseType));
11381 const BinaryOperator *Bop = cast<BinaryOperator>(job.E);
11396 const BinaryOperator *Bop = cast<BinaryOperator>(job.E);
12012 Result += RL.getBaseClassOffset(cast<CXXRecordDecl>(BaseRT->getDecl()));
13916 if (cast<InitListExpr>(E)->getNumInits() == 1)
13917 return CheckICE(cast<InitListExpr>(E)->getInit(0), Ctx);
13928 CheckICE(cast<SubstNonTypeTemplateParmExpr>(E)->getReplacement(), Ctx);
13931 return CheckICE(cast<ConstantExpr>(E)->getSubExpr(), Ctx);
13934 return CheckICE(cast<ParenExpr>(E)->getSubExpr(), Ctx);
13936 return CheckICE(cast<GenericSelectionExpr>(E)->getResultExpr(), Ctx);
13954 const CallExpr *CE = cast<CallExpr>(E);
13960 return CheckICE(cast<CXXRewrittenBinaryOperator>(E)->getSemanticForm(),
13963 if (isa<EnumConstantDecl>(cast<DeclRefExpr>(E)->getDecl()))
13965 const ValueDecl *D = cast<DeclRefExpr>(E)->getDecl();
13972 return ICEDiag(IK_NotICE, cast<DeclRefExpr>(E)->getLocation());
13979 return ICEDiag(IK_NotICE, cast<DeclRefExpr>(E)->getLocation());
13987 return ICEDiag(IK_NotICE, cast<DeclRefExpr>(E)->getLocation());
13993 const UnaryOperator *Exp = cast<UnaryOperator>(E);
14027 const UnaryExprOrTypeTraitExpr *Exp = cast<UnaryExprOrTypeTraitExpr>(E);
14034 const BinaryOperator *Exp = cast<BinaryOperator>(E);
14128 const Expr *SubExpr = cast<CastExpr>(E)->getSubExpr();
14146 switch (cast<CastExpr>(E)->getCastKind()) {
14159 const BinaryConditionalOperator *Exp = cast<BinaryConditionalOperator>(E);
14170 const ConditionalOperator *Exp = cast<ConditionalOperator>(E);
14202 return CheckICE(cast<CXXDefaultArgExpr>(E)->getExpr(), Ctx);
14204 return CheckICE(cast<CXXDefaultInitExpr>(E)->getExpr(), Ctx);
14206 return CheckICE(cast<ChooseExpr>(E)->getChosenSubExpr(), Ctx);
14209 if (!checkBitCastConstexprEligibility(nullptr, Ctx, cast<CastExpr>(E)))
14211 return CheckICE(cast<CastExpr>(E)->getSubExpr(), Ctx);
tools/clang/lib/AST/ExternalASTMerger.cpp 57 auto *ND = cast<NamedDecl>(DC);
83 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext();
207 << " from (DeclContext*)" << (void*)llvm::cast<DeclContext>(From)
211 cast<DeclContext>(From)->getPrimaryContext());
312 auto *SourceTag = const_cast<TagDecl *>(cast<TagDecl>(SourceDC.get()));
331 cast<ObjCInterfaceDecl>(SourceDC.get()));
394 Importer.ASTImporter::MapImported(cast<Decl>(Origin.DC), const_cast<Decl*>(cast<Decl>(ToDC)));
394 Importer.ASTImporter::MapImported(cast<Decl>(Origin.DC), const_cast<Decl*>(cast<Decl>(ToDC)));
tools/clang/lib/AST/Interp/ByteCodeStmtGen.cpp 118 return visitCompoundStmt(cast<CompoundStmt>(S));
120 return visitDeclStmt(cast<DeclStmt>(S));
122 return visitReturnStmt(cast<ReturnStmt>(S));
124 return visitIfStmt(cast<IfStmt>(S));
tools/clang/lib/AST/ItaniumCXXABI.cpp 253 cast<ItaniumMangleContext>(Mangler.get()));
tools/clang/lib/AST/ItaniumMangle.cpp 65 return getEffectiveDeclContext(cast<Decl>(DC));
80 return getEffectiveDeclContext(cast<Decl>(DC));
92 D = cast<Decl>(DC);
292 ND = cast<NamedDecl>(ND->getCanonicalDecl());
443 ND = cast<NamedDecl>(ND->getCanonicalDecl());
654 mangleName(cast<FieldDecl>(D));
786 return isStd(cast<NamespaceDecl>(DC));
1363 const TagDecl *TD = cast<TagDecl>(ND);
1426 cast<CXXConstructorDecl>(ND)->getInheritedConstructor()) {
1464 Arity = cast<FunctionDecl>(ND)->getNumParams();
1567 mangleFunctionEncoding(cast<FunctionDecl>(DC));
1609 const NamedDecl *ND = cast<NamedDecl>(D);
1631 mangleUnqualifiedName(cast<NamedDecl>(D), AdditionalAbiTags);
1663 const auto *ND = cast<NamedDecl>(Context);
1749 = cast<NamedDecl>(Context)->getIdentifier()) {
1752 if (isTemplate(cast<NamedDecl>(Context), TemplateArgs))
1836 const NamedDecl *ND = cast<NamedDecl>(DC);
3539 const ExplicitCastExpr *ECE = cast<ExplicitCastExpr>(E);
3562 mangleFunctionParam(cast<ParmVarDecl>(D));
3566 const EnumConstantDecl *ED = cast<EnumConstantDecl>(D);
3572 const NonTypeTemplateParmDecl *PD = cast<NonTypeTemplateParmDecl>(D);
3632 E = cast<ConstantExpr>(E)->getSubExpr();
3684 const CXXUuidofExpr *UE = cast<CXXUuidofExpr>(E);
3714 mangleInitListElements(cast<InitListExpr>(E));
3720 auto *DIE = cast<DesignatedInitExpr>(E);
3741 mangleExpression(cast<CXXDefaultArgExpr>(E)->getExpr(), Arity);
3745 mangleExpression(cast<CXXDefaultInitExpr>(E)->getExpr(), Arity);
3749 mangleExpression(cast<CXXStdInitializerListExpr>(E)->getSubExpr(), Arity);
3753 mangleExpression(cast<SubstNonTypeTemplateParmExpr>(E)->getReplacement(),
3762 const CallExpr *CE = cast<CallExpr>(E);
3792 const CXXNewExpr *New = cast<CXXNewExpr>(E);
3818 mangleInitListElements(cast<InitListExpr>(Init));
3827 const auto *PDE = cast<CXXPseudoDestructorExpr>(E);
3853 const MemberExpr *ME = cast<MemberExpr>(E);
3863 const UnresolvedMemberExpr *ME = cast<UnresolvedMemberExpr>(E);
3874 = cast<CXXDependentScopeMemberExpr>(E);
3885 const UnresolvedLookupExpr *ULE = cast<UnresolvedLookupExpr>(E);
3893 const CXXUnresolvedConstructExpr *CE = cast<CXXUnresolvedConstructExpr>(E);
3898 auto *IL = cast<InitListExpr>(CE->getArg(0));
3915 const auto *CE = cast<CXXConstructExpr>(E);
3921 return mangleExpression(cast<CXXConstructExpr>(E)->getArg(0));
3931 const auto *CE = cast<CXXTemporaryObjectExpr>(E);
3947 cast<CXXStdInitializerListExpr>(CE->getArg(0)->IgnoreImplicit());
3948 auto *ILE = cast<InitListExpr>(SILE->getSubExpr()->IgnoreImplicit());
3967 mangleExpression(cast<CXXNoexceptExpr>(E)->getOperand());
3971 const UnaryExprOrTypeTraitExpr *SAE = cast<UnaryExprOrTypeTraitExpr>(E);
4025 const CXXThrowExpr *TE = cast<CXXThrowExpr>(E);
4038 const CXXTypeidExpr *TIE = cast<CXXTypeidExpr>(E);
4052 const CXXDeleteExpr *DE = cast<CXXDeleteExpr>(E);
4062 const UnaryOperator *UO = cast<UnaryOperator>(E);
4070 const ArraySubscriptExpr *AE = cast<ArraySubscriptExpr>(E);
4082 const BinaryOperator *BO = cast<BinaryOperator>(E);
4096 cast<CXXRewrittenBinaryOperator>(E)->getDecomposedForm();
4105 const ConditionalOperator *CO = cast<ConditionalOperator>(E);
4115 E = cast<ImplicitCastExpr>(E)->getSubExpr();
4122 StringRef Kind = cast<ObjCBridgedCastExpr>(E)->getBridgeKindName();
4133 auto *Sub = cast<ExplicitCastExpr>(E)->getSubExpr()->IgnoreImplicit();
4165 const CXXOperatorCallExpr *CE = cast<CXXOperatorCallExpr>(E);
4178 mangleExpression(cast<ParenExpr>(E)->getSubExpr(), Arity);
4185 auto *CSE = cast<ConceptSpecializationExpr>(E);
4194 mangleDeclRefExpr(cast<DeclRefExpr>(E)->getDecl());
4207 const FunctionParmPackExpr *FPPE = cast<FunctionParmPackExpr>(E);
4214 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E);
4222 mangleExpression(cast<CXXBindTemporaryExpr>(E)->getSubExpr());
4226 mangleExpression(cast<ExprWithCleanups>(E)->getSubExpr(), Arity);
4230 const FloatingLiteral *FL = cast<FloatingLiteral>(E);
4241 Out << cast<CharacterLiteral>(E)->getValue();
4248 Out << (cast<ObjCBoolLiteralExpr>(E)->getValue() ? '1' : '0');
4254 Out << (cast<CXXBoolLiteralExpr>(E)->getValue() ? '1' : '0');
4259 llvm::APSInt Value(cast<IntegerLiteral>(E)->getValue());
4267 const ImaginaryLiteral *IE = cast<ImaginaryLiteral>(E);
4280 llvm::APSInt Value(cast<IntegerLiteral>(IE->getSubExpr())->getValue());
4312 mangleExpression(cast<PackExpansionExpr>(E)->getPattern());
4316 auto *SPE = cast<SizeOfPackExpr>(E);
4336 mangleFunctionParam(cast<ParmVarDecl>(Pack));
4341 mangleExpression(cast<MaterializeTemporaryExpr>(E)->GetTemporaryExpr());
4346 auto *FE = cast<CXXFoldExpr>(E);
4373 mangleExpression(cast<CoawaitExpr>(E)->getOperand());
4379 mangleExpression(cast<DependentCoawaitExpr>(E)->getOperand());
4385 mangleExpression(cast<CoawaitExpr>(E)->getOperand());
4672 ND = cast<NamedDecl>(ND->getCanonicalDecl());
4891 cast<FunctionProtoType>(FD->getType()->getAs<FunctionType>());
tools/clang/lib/AST/JSONNodeDumper.cpp 313 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/Mangle.cpp 59 return cast<VarDecl>(ND)->isExternC();
173 const FunctionDecl *FD = cast<FunctionDecl>(D);
244 (void) getBlockId(cast<BlockDecl>(DC), true);
379 const NamedDecl *ND = cast<NamedDecl>(D);
tools/clang/lib/AST/MicrosoftCXXABI.cpp 122 DD = cast<DeclaratorDecl>(DD->getCanonicalDecl());
tools/clang/lib/AST/MicrosoftMangle.cpp 102 return getEffectiveDeclContext(cast<Decl>(DC));
109 return getEffectiveDeclContext(cast<Decl>(DC));
116 const auto *FD = cast<FunctionDecl>(ND);
664 cast<MicrosoftVTableContext>(getASTContext().getVTableContext());
899 const TagDecl *TD = cast<TagDecl>(ND);
944 mangleUnqualifiedName(cast<NamedDecl>(LambdaContextDecl));
966 cast<EnumDecl>(TD)->enumerator_begin() !=
967 cast<EnumDecl>(TD)->enumerator_end()) {
969 auto *ED = cast<EnumDecl>(TD);
1125 ND = cast<NamedDecl>(DC);
1460 mangleMemberDataPointer(cast<CXXRecordDecl>(ND->getDeclContext())
1462 cast<ValueDecl>(ND));
2461 mangleType(cast<TagType>(T)->getDecl());
2465 mangleType(cast<TagType>(T)->getDecl());
tools/clang/lib/AST/OSLog.cpp 203 const StringLiteral *Lit = cast<StringLiteral>(StringArg->IgnoreParenCasts());
tools/clang/lib/AST/OpenMPClause.cpp 891 const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr;
tools/clang/lib/AST/ParentMap.cpp 37 PseudoObjectExpr *POE = cast<PseudoObjectExpr>(S);
57 BinaryConditionalOperator *BCO = cast<BinaryConditionalOperator>(S);
79 OpaqueValueExpr *OVE = cast<OpaqueValueExpr>(S);
93 if (Stmt *SubStmt = cast<CapturedStmt>(S)->getCapturedStmt()) {
157 } while (S && isa<Expr>(S) && cast<Expr>(S)->IgnoreParenImpCasts() != S);
191 BinaryOperator *BE = cast<BinaryOperator>(P);
197 return DirectChild == cast<ForStmt>(P)->getCond();
199 return DirectChild == cast<WhileStmt>(P)->getCond();
201 return DirectChild == cast<DoStmt>(P)->getCond();
203 return DirectChild == cast<IfStmt>(P)->getCond();
205 return DirectChild == cast<IndirectGotoStmt>(P)->getTarget();
207 return DirectChild == cast<SwitchStmt>(P)->getCond();
209 return DirectChild == cast<ObjCForCollectionStmt>(P)->getCollection();
tools/clang/lib/AST/QualTypeNames.cpp 421 QT = cast<SubstTemplateTypeParmType>(QT.getTypePtr())->desugar();
tools/clang/lib/AST/RecordLayoutBuilder.cpp 2917 if (!recordUsesEBO(RD) || !cast<CXXRecordDecl>(RD)->isEmpty()) {
3168 const IndirectFieldDecl *IFD = cast<IndirectFieldDecl>(VD);
3172 OffsetInBits += ::getFieldOffset(*this, cast<FieldDecl>(ND));
tools/clang/lib/AST/Stmt.cpp 440 return cast<Expr>(Exprs[i]);
451 return cast<Expr>(Exprs[i + NumOutputs]);
459 return cast<AddrLabelExpr>(Exprs[i + NumInputs]);
738 return cast<Expr>(Exprs[i]);
742 return cast<Expr>(Exprs[i + NumOutputs]);
890 return cast<VarDecl>(DS->getSingleDecl());
928 auto *DS = cast<DeclStmt>(SubExprs[CONDVAR]);
929 return cast<VarDecl>(DS->getSingleDecl());
991 return cast<VarDecl>(DS->getSingleDecl());
1047 return cast<VarDecl>(DS->getSingleDecl());
tools/clang/lib/AST/StmtCXX.cpp 77 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl();
79 return cast<VarDecl>(LV);
tools/clang/lib/AST/StmtIterator.cpp 116 VarDecl* VD = cast<VarDecl>(*DGI);
tools/clang/lib/AST/StmtPrinter.cpp 108 PrintExpr(cast<Expr>(S));
343 PrintExpr(cast<Expr>(Node->getElement()));
574 PrintRawCompoundStmt(cast<CompoundStmt>(Node->getHandlerBlock()));
1688 VisitCallExpr(cast<CallExpr>(Node));
1783 OS << cast<StringLiteral>(Node->getArg(0)->IgnoreImpCasts())->getString();
1786 const auto *DRE = cast<DeclRefExpr>(Node->getCallee()->IgnoreImpCasts());
1788 cast<FunctionDecl>(DRE->getDecl())->getTemplateSpecializationArgs();
1807 const auto *Int = cast<IntegerLiteral>(Node->getCookedLiteral());
1813 auto *Float = cast<FloatingLiteral>(Node->getCookedLiteral());
2408 } else if (!BD->param_empty() || cast<FunctionProtoType>(AFT)->isVariadic()) {
2417 const auto *FT = cast<FunctionProtoType>(AFT);
tools/clang/lib/AST/TemplateBase.cpp 376 return cast<PackExpansionExpr>(getAsExpr())->getPattern();
tools/clang/lib/AST/TemplateName.cpp 163 Decl = cast<TemplateDecl>(Decl->getMostRecentDecl());
165 Decl = cast<TemplateDecl>(Decl->getPreviousDecl());
tools/clang/lib/AST/TextNodeDumper.cpp 232 OS << " parent " << cast<Decl>(D->getDeclContext());
640 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/Type.cpp 312 return cast<ArrayType>(getUnqualifiedDesugaredType())
587 return cast<RecordType>(getUnqualifiedDesugaredType());
606 return cast<RecordType>(getUnqualifiedDesugaredType());
1265 const auto *funcProtoType = cast<FunctionProtoType>(funcType);
2070 assert(cast<EnumType>(T)->getDecl()->isComplete());
3380 return cast<CXXRecordDecl>(getInterestingTagDecl(Decl));
3650 const TagDecl *Tag = cast<TagType>(T)->getDecl();
3667 return Cache::get(cast<ComplexType>(T)->getElementType());
3669 return Cache::get(cast<PointerType>(T)->getPointeeType());
3671 return Cache::get(cast<BlockPointerType>(T)->getPointeeType());
3674 return Cache::get(cast<ReferenceType>(T)->getPointeeType());
3676 const auto *MPT = cast<MemberPointerType>(T);
3683 return Cache::get(cast<ArrayType>(T)->getElementType());
3686 return Cache::get(cast<VectorType>(T)->getElementType());
3688 return Cache::get(cast<FunctionType>(T)->getReturnType());
3690 const auto *FPT = cast<FunctionProtoType>(T);
3697 Linkage L = cast<ObjCInterfaceType>(T)->getDecl()->getLinkageInternal();
3701 return Cache::get(cast<ObjCObjectType>(T)->getBaseType());
3703 return Cache::get(cast<ObjCObjectPointerType>(T)->getPointeeType());
3705 return Cache::get(cast<AtomicType>(T)->getValueType());
3707 return Cache::get(cast<PipeType>(T)->getElementType());
3748 return getDeclLinkageAndVisibility(cast<TagType>(T)->getDecl());
3751 return computeTypeLinkageInfo(cast<ComplexType>(T)->getElementType());
3753 return computeTypeLinkageInfo(cast<PointerType>(T)->getPointeeType());
3755 return computeTypeLinkageInfo(cast<BlockPointerType>(T)->getPointeeType());
3758 return computeTypeLinkageInfo(cast<ReferenceType>(T)->getPointeeType());
3760 const auto *MPT = cast<MemberPointerType>(T);
3768 return computeTypeLinkageInfo(cast<ArrayType>(T)->getElementType());
3771 return computeTypeLinkageInfo(cast<VectorType>(T)->getElementType());
3773 return computeTypeLinkageInfo(cast<FunctionType>(T)->getReturnType());
3775 const auto *FPT = cast<FunctionProtoType>(T);
3782 return getDeclLinkageAndVisibility(cast<ObjCInterfaceType>(T)->getDecl());
3784 return computeTypeLinkageInfo(cast<ObjCObjectType>(T)->getBaseType());
3787 cast<ObjCObjectPointerType>(T)->getPointeeType());
3789 return computeTypeLinkageInfo(cast<AtomicType>(T)->getValueType());
3791 return computeTypeLinkageInfo(cast<PipeType>(T)->getElementType());
3870 = cast<TemplateSpecializationType>(type.getTypePtr())
3878 switch (cast<BuiltinType>(type.getTypePtr())->getKind()) {
4105 cast<VariableArrayType>(arr)->getSizeExpr())
tools/clang/lib/AST/TypePrinter.cpp 269 const auto *AttrTy = cast<AttributedType>(T);
1173 if (isa<CXXRecordDecl>(D) && cast<CXXRecordDecl>(D)->isLambda()) {
tools/clang/lib/AST/VTTBuilder.cpp 68 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
94 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
158 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/VTableBuilder.cpp 315 cast<CXXRecordDecl>(cast<RecordType>(CanDerivedReturnType)->getDecl());
318 cast<CXXRecordDecl>(cast<RecordType>(CanBaseReturnType)->getDecl());
2229 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
3611 const CXXMethodDecl *MD = cast<const CXXMethodDecl>(I.first.getDecl());
3732 assert(cast<CXXMethodDecl>(GD.getDecl())->isVirtual() &&
3743 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
tools/clang/lib/Analysis/AnalysisDeclContext.cpp 336 ND = cast<NamespaceDecl>(Parent);
496 if (const Stmt *S = cast<StackFrameContext>(LCtx)->getCallSite()) {
506 if (const Decl *D = cast<BlockInvocationContext>(LCtx)->getDecl()) {
543 if (const Stmt *S = cast<StackFrameContext>(LCtx)->getCallSite()) {
556 if (const Decl *D = cast<BlockInvocationContext>(LCtx)->getDecl()) {
tools/clang/lib/Analysis/BodyFarm.cpp 238 return cast<ValueDecl>(FoundDecl);
715 auto *Container = cast<ObjCContainerDecl>(Prop->getDeclContext());
tools/clang/lib/Analysis/CFG.cpp 157 auto *Decl1 = cast<DeclRefExpr>(E1)->getDecl();
158 auto *Decl2 = cast<DeclRefExpr>(E2)->getDecl();
436 InitListExpr *IE = cast<InitListExpr>(S);
795 assert(!isa<Expr>(S) || cast<Expr>(S)->IgnoreParens() == S);
1374 auto *CE = cast<CXXConstructExpr>(Child);
1390 auto *E = cast<Expr>(Child);
1396 auto *Cleanups = cast<ExprWithCleanups>(Child);
1401 auto *Cast = cast<CXXFunctionalCastExpr>(Child);
1406 auto *Cast = cast<ImplicitCastExpr>(Child);
1419 auto *BTE = cast<CXXBindTemporaryExpr>(Child);
1430 auto *MTE = cast<MaterializeTemporaryExpr>(Child);
1436 auto *CO = cast<ConditionalOperator>(Child);
1452 auto *ILE = cast<InitListExpr>(Child);
1643 VisitForTemporaryDtors(cast<ExprWithCleanups>(Init)->getSubExpr(),
1659 return Visit(cast<ExprWithCleanups>(Init)->getSubExpr());
2139 return VisitAddrLabelExpr(cast<AddrLabelExpr>(S), asc);
2142 return VisitConditionalOperator(cast<BinaryConditionalOperator>(S), asc);
2145 return VisitBinaryOperator(cast<BinaryOperator>(S), asc);
2148 return VisitBlockExpr(cast<BlockExpr>(S), asc);
2151 return VisitBreakStmt(cast<BreakStmt>(S));
2157 return VisitCallExpr(cast<CallExpr>(S), asc);
2160 return VisitCaseStmt(cast<CaseStmt>(S));
2163 return VisitChooseExpr(cast<ChooseExpr>(S), asc);
2166 return VisitCompoundStmt(cast<CompoundStmt>(S), ExternallyDestructed);
2169 return VisitConditionalOperator(cast<ConditionalOperator>(S), asc);
2172 return VisitContinueStmt(cast<ContinueStmt>(S));
2175 return VisitCXXCatchStmt(cast<CXXCatchStmt>(S));
2178 return VisitExprWithCleanups(cast<ExprWithCleanups>(S),
2195 return VisitCXXBindTemporaryExpr(cast<CXXBindTemporaryExpr>(S), asc);
2198 return VisitCXXConstructExpr(cast<CXXConstructExpr>(S), asc);
2201 return VisitCXXNewExpr(cast<CXXNewExpr>(S), asc);
2204 return VisitCXXDeleteExpr(cast<CXXDeleteExpr>(S), asc);
2207 return VisitCXXFunctionalCastExpr(cast<CXXFunctionalCastExpr>(S), asc);
2210 return VisitCXXTemporaryObjectExpr(cast<CXXTemporaryObjectExpr>(S), asc);
2213 return VisitCXXThrowExpr(cast<CXXThrowExpr>(S));
2216 return VisitCXXTryStmt(cast<CXXTryStmt>(S));
2219 return VisitCXXForRangeStmt(cast<CXXForRangeStmt>(S));
2222 return VisitDeclStmt(cast<DeclStmt>(S));
2225 return VisitDefaultStmt(cast<DefaultStmt>(S));
2228 return VisitDoStmt(cast<DoStmt>(S));
2231 return VisitForStmt(cast<ForStmt>(S));
2234 return VisitGotoStmt(cast<GotoStmt>(S));
2237 return VisitGCCAsmStmt(cast<GCCAsmStmt>(S), asc);
2240 return VisitIfStmt(cast<IfStmt>(S));
2243 return VisitImplicitCastExpr(cast<ImplicitCastExpr>(S), asc);
2246 return VisitConstantExpr(cast<ConstantExpr>(S), asc);
2249 return VisitIndirectGotoStmt(cast<IndirectGotoStmt>(S));
2252 return VisitLabelStmt(cast<LabelStmt>(S));
2255 return VisitLambdaExpr(cast<LambdaExpr>(S), asc);
2258 return VisitMaterializeTemporaryExpr(cast<MaterializeTemporaryExpr>(S),
2262 return VisitMemberExpr(cast<MemberExpr>(S), asc);
2268 return VisitObjCAtCatchStmt(cast<ObjCAtCatchStmt>(S));
2271 return VisitObjCAutoreleasePoolStmt(cast<ObjCAutoreleasePoolStmt>(S));
2274 return VisitObjCAtSynchronizedStmt(cast<ObjCAtSynchronizedStmt>(S));
2277 return VisitObjCAtThrowStmt(cast<ObjCAtThrowStmt>(S));
2280 return VisitObjCAtTryStmt(cast<ObjCAtTryStmt>(S));
2283 return VisitObjCForCollectionStmt(cast<ObjCForCollectionStmt>(S));
2286 return VisitObjCMessageExpr(cast<ObjCMessageExpr>(S), asc);
2292 return VisitPseudoObjectExpr(cast<PseudoObjectExpr>(S));
2299 return VisitSEHExceptStmt(cast<SEHExceptStmt>(S));
2302 return VisitSEHFinallyStmt(cast<SEHFinallyStmt>(S));
2305 return VisitSEHLeaveStmt(cast<SEHLeaveStmt>(S));
2308 return VisitSEHTryStmt(cast<SEHTryStmt>(S));
2311 return VisitUnaryExprOrTypeTraitExpr(cast<UnaryExprOrTypeTraitExpr>(S),
2315 return VisitStmtExpr(cast<StmtExpr>(S), asc);
2318 return VisitSwitchStmt(cast<SwitchStmt>(S));
2321 return VisitUnaryOperator(cast<UnaryOperator>(S), asc);
2324 return VisitWhileStmt(cast<WhileStmt>(S));
2845 VisitForTemporaryDtors(cast<ExprWithCleanups>(Init)->getSubExpr(),
2866 ExprWithCleanups *EC = cast<ExprWithCleanups>(Init);
4160 CS = cast<CaseStmt>(Sub);
4613 return VisitBinaryOperatorForTemporaryDtors(cast<BinaryOperator>(E),
4619 cast<CXXBindTemporaryExpr>(E), ExternallyDestructed, Context);
4624 cast<AbstractConditionalOperator>(E), ExternallyDestructed, Context);
4628 E = cast<CastExpr>(E)->getSubExpr();
4633 E = cast<CXXFunctionalCastExpr>(E)->getSubExpr();
4637 E = cast<ConstantExpr>(E)->getSubExpr();
4641 E = cast<ParenExpr>(E)->getSubExpr();
4645 const MaterializeTemporaryExpr* MTE = cast<MaterializeTemporaryExpr>(E);
4651 cast<MaterializeTemporaryExpr>(E)
4670 auto *LE = cast<LambdaExpr>(E);
4688 E = cast<CXXDefaultArgExpr>(E)->getExpr();
4692 E = cast<CXXDefaultInitExpr>(E)->getExpr();
5088 DeclMap[cast<DeclStmt>(stmt)->getSingleDecl()] = P;
5091 const VarDecl *var = cast<IfStmt>(stmt)->getConditionVariable();
5097 const VarDecl *var = cast<ForStmt>(stmt)->getConditionVariable();
5104 cast<WhileStmt>(stmt)->getConditionVariable();
5111 cast<SwitchStmt>(stmt)->getConditionVariable();
5118 cast<CXXCatchStmt>(stmt)->getExceptionDecl();
5193 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl());
5326 const auto *SICC = cast<SimpleConstructorInitializerConstructionContext>(CC);
5333 cast<CXX17ElidedCopyConstructorInitializerConstructionContext>(CC);
5339 const auto *SDSCC = cast<SimpleVariableConstructionContext>(CC);
5344 const auto *CDSCC = cast<CXX17ElidedCopyVariableConstructionContext>(CC);
5350 const auto *NECC = cast<NewAllocatedObjectConstructionContext>(CC);
5355 const auto *RSCC = cast<SimpleReturnedValueConstructionContext>(CC);
5361 cast<CXX17ElidedCopyReturnedValueConstructionContext>(CC);
5367 const auto *TOCC = cast<SimpleTemporaryObjectConstructionContext>(CC);
5373 const auto *TOCC = cast<ElidedTemporaryObjectConstructionContext>(CC);
5380 const auto *ACC = cast<ArgumentConstructionContext>(CC);
5526 Helper.handledStmt(cast<Stmt>(DelExpr->getArgument()), OS);
5892 return cast<Expr>(Cond)->IgnoreParens();
5907 E = cast<CXXForRangeStmt>(Terminator)->getCond();
5911 E = cast<ForStmt>(Terminator)->getCond();
5915 E = cast<WhileStmt>(Terminator)->getCond();
5919 E = cast<DoStmt>(Terminator)->getCond();
5923 E = cast<IfStmt>(Terminator)->getCond();
5927 E = cast<ChooseExpr>(Terminator)->getCond();
5931 E = cast<IndirectGotoStmt>(Terminator)->getTarget();
5935 E = cast<SwitchStmt>(Terminator)->getCond();
5939 E = cast<BinaryConditionalOperator>(Terminator)->getCond();
5943 E = cast<ConditionalOperator>(Terminator)->getCond();
5947 E = cast<BinaryOperator>(Terminator)->getLHS();
tools/clang/lib/Analysis/CloneDetection.cpp 62 auto CS = cast<CompoundStmt>(S);
70 auto CS = cast<CompoundStmt>(S);
tools/clang/lib/Analysis/ConstructionContext.cpp 74 ElidedCE = cast<CXXConstructExpr>(ElidedItem.getStmt());
110 const auto *DS = cast<DeclStmt>(ParentItem.getStmt());
111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType()
120 const auto *RS = cast<ReturnStmt>(ParentItem.getStmt());
129 const auto *MTE = cast<MaterializeTemporaryExpr>(ParentItem.getStmt());
145 const auto *E = cast<Expr>(ParentItem.getStmt());
173 const auto *DS = cast<DeclStmt>(TopItem.getStmt());
178 const auto *NE = cast<CXXNewExpr>(TopItem.getStmt());
183 const auto *RS = cast<ReturnStmt>(TopItem.getStmt());
187 const auto *MTE = cast<MaterializeTemporaryExpr>(TopItem.getStmt());
192 const auto *BTE = cast<CXXBindTemporaryExpr>(TopItem.getStmt());
210 const auto *E = cast<Expr>(TopItem.getStmt());
tools/clang/lib/Analysis/Consumed.cpp 841 VisitVarDecl(cast<VarDecl>(DI));
1094 const auto *Param = cast<ParmVarDecl>(DM.first);
1240 PInfo = Visitor.getInfo(cast<BinaryOperator>(Cond)->getRHS());
tools/clang/lib/Analysis/LiveVariables.cpp 276 S = cast<StmtExpr>(S)->getSubStmt();
281 CXXMemberCallExpr *CE = cast<CXXMemberCallExpr>(S);
289 ObjCMessageExpr *CE = cast<ObjCMessageExpr>(S);
296 const DeclStmt *DS = cast<DeclStmt>(S);
308 Expr *child = cast<PseudoObjectExpr>(S)->getResultExpr();
319 S = cast<ExprWithCleanups>(S)->getSubExpr();
323 S = cast<CXXBindTemporaryExpr>(S)->getSubExpr();
334 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<IfStmt>(S)->getCond());
341 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<WhileStmt>(S)->getCond());
348 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<DoStmt>(S)->getCond());
355 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<ForStmt>(S)->getCond());
441 VD = cast<VarDecl>(DS->getSingleDecl());
443 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) {
444 VD = cast<VarDecl>(DR->getDecl());
tools/clang/lib/Analysis/PathDiagnostic.cpp 768 const auto *DS = cast<DeclStmt>(S);
tools/clang/lib/Analysis/ReachableCode.cpp 215 dyn_cast_or_null<FunctionDecl>(cast<CallExpr>(S)->getCalleeDecl());
219 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP);
225 const Expr *E = cast<Expr>(S);
234 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP);
238 const BinaryOperator *B = cast<BinaryOperator>(S);
249 const UnaryOperator *UO = cast<UnaryOperator>(S);
555 const BinaryOperator *BO = cast<BinaryOperator>(S);
559 const UnaryOperator *UO = cast<UnaryOperator>(S);
564 const CompoundAssignOperator *CAO = cast<CompoundAssignOperator>(S);
572 cast<AbstractConditionalOperator>(S);
576 const MemberExpr *ME = cast<MemberExpr>(S);
581 const ArraySubscriptExpr *ASE = cast<ArraySubscriptExpr>(S);
587 const CStyleCastExpr *CSC = cast<CStyleCastExpr>(S);
592 const CXXFunctionalCastExpr *CE = cast <CXXFunctionalCastExpr>(S);
597 return cast<CXXTryStmt>(S)->getHandler(0)->getCatchLoc();
600 const ObjCBridgedCastExpr *CSC = cast<ObjCBridgedCastExpr>(S);
tools/clang/lib/Analysis/RetainSummaryManager.cpp 676 Summ = getMethodSummary(cast<ObjCMethodDecl>(C.getDecl()));
756 !cast<CXXMethodDecl>(FD)->isStatic()) {
tools/clang/lib/Analysis/ThreadSafety.cpp 1086 const auto *A = cast<AcquiredBeforeAttr>(At);
1102 const auto *A = cast<AcquiredAfterAttr>(At);
1525 auto *A = cast<TryAcquireCapabilityAttr>(Attr);
1533 const auto *A = cast<ExclusiveTrylockFunctionAttr>(Attr);
1540 const auto *A = cast<SharedTrylockFunctionAttr>(Attr);
1824 const auto *A = cast<AcquireCapabilityAttr>(At);
1837 const auto *A = cast<AssertExclusiveLockAttr>(At);
1849 const auto *A = cast<AssertSharedLockAttr>(At);
1862 const auto *A = cast<AssertCapabilityAttr>(At);
1878 const auto *A = cast<ReleaseCapabilityAttr>(At);
1891 const auto *A = cast<RequiresCapabilityAttr>(At);
1907 const auto *A = cast<LocksExcludedAttr>(At);
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 43 return cast<IntegerLiteral>(CE)->getValue().toString(10, true);
46 ret += cast<StringLiteral>(CE)->getString();
209 return translateDeclRefExpr(cast<DeclRefExpr>(S), Ctx);
211 return translateCXXThisExpr(cast<CXXThisExpr>(S), Ctx);
213 return translateMemberExpr(cast<MemberExpr>(S), Ctx);
215 return translateObjCIVarRefExpr(cast<ObjCIvarRefExpr>(S), Ctx);
217 return translateCallExpr(cast<CallExpr>(S), Ctx);
219 return translateCXXMemberCallExpr(cast<CXXMemberCallExpr>(S), Ctx);
221 return translateCXXOperatorCallExpr(cast<CXXOperatorCallExpr>(S), Ctx);
223 return translateUnaryOperator(cast<UnaryOperator>(S), Ctx);
226 return translateBinaryOperator(cast<BinaryOperator>(S), Ctx);
229 return translateArraySubscriptExpr(cast<ArraySubscriptExpr>(S), Ctx);
232 cast<ConditionalOperator>(S), Ctx);
235 cast<BinaryConditionalOperator>(S), Ctx);
239 return translate(cast<ConstantExpr>(S)->getSubExpr(), Ctx);
241 return translate(cast<ParenExpr>(S)->getSubExpr(), Ctx);
243 return translate(cast<ExprWithCleanups>(S)->getSubExpr(), Ctx);
245 return translate(cast<CXXBindTemporaryExpr>(S)->getSubExpr(), Ctx);
247 return translate(cast<MaterializeTemporaryExpr>(S)->GetTemporaryExpr(),
260 return new (Arena) til::Literal(cast<Expr>(S));
263 return translateDeclStmt(cast<DeclStmt>(S), Ctx);
275 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
284 ? (cast<FunctionDecl>(D)->getCanonicalDecl() == Canonical)
285 : (cast<ObjCMethodDecl>(D)->getCanonicalDecl() == Canonical)) {
294 ? cast<FunctionDecl>(D)->getCanonicalDecl()->getParamDecl(I)
295 : cast<ObjCMethodDecl>(D)->getCanonicalDecl()->getParamDecl(I);
351 const auto *D = cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl());
366 const auto *D = cast<ObjCIvarDecl>(IVRE->getDecl()->getCanonicalDecl());
412 return translateCallExpr(cast<CallExpr>(ME), Ctx,
427 return translateCallExpr(cast<CallExpr>(OCE), Ctx);
827 auto Parms = isa<ObjCMethodDecl>(D) ? cast<ObjCMethodDecl>(D)->parameters()
828 : cast<FunctionDecl>(D)->parameters();
tools/clang/lib/Analysis/ThreadSafetyLogical.cpp 49 return RNeg ? RightOrOperator(cast<And>(RHS))
50 : RightAndOperator(cast<And>(RHS));
56 return RNeg ? RightAndOperator(cast<Or>(RHS))
57 : RightOrOperator(cast<Or>(RHS));
61 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg);
74 return LNeg ? LeftAndOperator(cast<And>(LHS))
75 : LeftOrOperator(cast<And>(LHS));
81 return LNeg ? LeftOrOperator(cast<Or>(LHS))
82 : LeftAndOperator(cast<Or>(LHS));
86 return implies(cast<Not>(LHS)->exp(), !LNeg, RHS, RNeg);
98 return cast<Terminal>(LHS)->expr() == cast<Terminal>(RHS)->expr();
98 return cast<Terminal>(LHS)->expr() == cast<Terminal>(RHS)->expr();
tools/clang/lib/Analysis/UninitializedValues.cpp 346 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {}
461 classify(cast<Expr>(S), Use);
544 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl()));
548 return ::findVar(ex, cast<DeclContext>(ac.getDecl()));
711 const auto *VD = cast<VarDecl>(DS->getSingleDecl());
769 reportUse(dr, cast<VarDecl>(dr->getDecl()));
772 vals[cast<VarDecl>(dr->getDecl())] = Initialized;
775 handler.handleSelfInit(cast<VarDecl>(dr->getDecl()));
tools/clang/lib/CodeGen/Address.h 44 return llvm::cast<llvm::PointerType>(getPointer()->getType());
84 return llvm::cast<llvm::Constant>(Address::getPointer());
100 return ConstantAddress(llvm::cast<llvm::Constant>(addr.getPointer()),
tools/clang/lib/CodeGen/CGAtomic.cpp 1215 auto ord = cast<llvm::ConstantInt>(Order)->getZExtValue();
1332 cast<llvm::PointerType>(addr.getPointer()->getType())->getAddressSpace();
tools/clang/lib/CodeGen/CGBlocks.cpp 189 cast<llvm::IntegerType>(CGM.getTypes().ConvertType(C.UnsignedLongTy));
234 if (cast<llvm::Function>(copyHelper->getOperand(0))->hasInternalLinkage() ||
235 cast<llvm::Function>(disposeHelper->getOperand(0))
394 const auto *record = cast<CXXRecordDecl>(recordType->getDecl());
554 QualType thisType = cast<CXXMethodDecl>(CGF->CurFuncDecl)->getThisType();
846 blockInfo.DominatingIP = cast<llvm::Instruction>(addr.getPointer());
1471 cast<llvm::Function>(blockFn->stripPointerCasts()), Result);
1490 cast<llvm::AllocaInst>(alloc.getPointer()), Builder);
1675 cast<CompoundStmt>(blockDecl->getBody())->getRBracLoc());
1684 FinishFunction(cast<CompoundStmt>(blockDecl->getBody())->getRBracLoc());
2083 auto *ty = cast<llvm::PointerType>(srcValue->getType());
2098 cast<llvm::Instruction>(dstField.getPointer())->eraseFromParent();
2334 llvm::ConstantPointerNull::get(cast<llvm::PointerType>(value->getType()));
2823 llvm::StructType *byrefType = cast<llvm::StructType>(
2824 cast<llvm::PointerType>(addr.getPointer()->getType())->getElementType());
2948 auto *GV = cast<llvm::GlobalValue>(C->stripPointerCasts());
2991 *this, cast<llvm::Constant>(BlockObjectDispose.getCallee()));
3004 *this, cast<llvm::Constant>(BlockObjectAssign.getCallee()));
tools/clang/lib/CodeGen/CGBuilder.h 180 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType());
200 llvm::ArrayType *ElTy = cast<llvm::ArrayType>(Addr.getElementType());
262 auto *GEP = cast<llvm::GetElementPtrInst>(CreateConstInBoundsGEP2_32(
307 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType());
tools/clang/lib/CodeGen/CGBuiltin.cpp 86 cast<llvm::FunctionType>(getTypes().ConvertType(FD->getType()));
947 unsigned ArgWidth = cast<llvm::IntegerType>(ArgType)->getBitWidth();
2049 ConstantInt *AlignmentCI = cast<ConstantInt>(AlignmentValue);
2137 auto *ResType = cast<llvm::IntegerType>(ConvertType(E->getType()));
2374 auto *AlignmentInBitsCI = cast<ConstantInt>(AlignmentInBitsValue);
2593 = cast<llvm::IntegerType>(ConvertType(E->getType()));
2611 llvm::IntegerType *IntTy = cast<llvm::IntegerType>(Int->getType());
2905 int ord = cast<llvm::ConstantInt>(Order)->getZExtValue();
2988 int ord = cast<llvm::ConstantInt>(Order)->getZExtValue();
3046 int ord = cast<llvm::ConstantInt>(Order)->getZExtValue();
3114 const auto *Str = cast<StringLiteral>(Arg->IgnoreParenCasts());
3141 StringRef Str = cast<StringLiteral>(AnnotationStrExpr)->getString();
3382 const CallExpr *Call = cast<CallExpr>(E->getArg(0));
4120 cast<llvm::Constant>(EmitScalarExpr(E->getCallee())));
4357 int SV = cast<ConstantInt>(V)->getSExtValue();
4365 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty);
4367 int ShiftAmt = cast<ConstantInt>(Shift)->getSExtValue();
5460 int CV = cast<ConstantInt>(Ops[2])->getSExtValue();
5844 llvm::VectorType *TblTy = cast<llvm::VectorType>(Ops[0]->getType());
5926 SysReg = cast<clang::StringLiteral>(SysRegStrExpr)->getString();
6075 llvm::FunctionType *FTy = cast<llvm::FunctionType>(Ty);
6677 uint32_t Lane = cast<ConstantInt>(Ops[2])->getZExtValue();
6747 Value *SV = llvm::ConstantVector::get(cast<llvm::Constant>(Ops[2]));
7091 if (cast<llvm::ConstantInt>(RetentionPolicy)->isZero()) {
7094 -cast<llvm::ConstantInt>(CacheLevel)->getValue() + 3);
7147 llvm::FunctionType *FTy = cast<llvm::FunctionType>(Ty);
8047 int SV = cast<ConstantInt>(Ops[1])->getSExtValue();
8064 llvm::ConstantInt *Amt = cast<ConstantInt>(EmitScalarExpr(E->getArg(1)));
8069 llvm::ConstantInt *Amt = cast<ConstantInt>(EmitScalarExpr(E->getArg(1)));
8076 llvm::ConstantInt *Amt = cast<ConstantInt>(EmitScalarExpr(E->getArg(1)));
8085 llvm::ConstantInt *Amt = cast<ConstantInt>(EmitScalarExpr(E->getArg(2)));
8093 llvm::ConstantInt *Amt = cast<ConstantInt>(EmitScalarExpr(E->getArg(2)));
8363 llvm::Constant *cst = cast<Constant>(Ops[3]);
8373 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty);
8394 cast<ConstantInt>(Ops[3]));
8405 Ops[2] = EmitNeonSplat(Ops[2], cast<ConstantInt>(Ops[3]));
8456 llvm::IntegerType *EltTy = cast<IntegerType>(VTy->getElementType());
9453 ConstantInt *C = cast<ConstantInt>(EmitScalarExpr(E->getArg(1)));
9475 CstOps.push_back(cast<Constant>(Ops[i]));
9494 cast<IntegerType>(Mask->getType())->getBitWidth());
9620 uint64_t Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0x7;
9747 unsigned Rnd = cast<llvm::ConstantInt>(Ops[3])->getZExtValue();
9834 cast<llvm::ConstantInt>(Ops.back())->getZExtValue() != (uint64_t)4) {
9894 Rnd = cast<llvm::ConstantInt>(Ops[4])->getZExtValue();
10006 StringRef CPUStr = cast<clang::StringLiteral>(CPUExpr)->getString();
10037 cast<llvm::GlobalValue>(CpuModel)->setDSOLocal(true);
10069 StringRef FeatureStr = cast<StringLiteral>(FeatureExpr)->getString();
10110 cast<llvm::GlobalValue>(CpuModel)->setDSOLocal(true);
10130 cast<llvm::GlobalValue>(CpuFeatures2)->setDSOLocal(true);
10150 cast<llvm::GlobalValue>(Func.getCallee())->setDSOLocal(true);
10151 cast<llvm::GlobalValue>(Func.getCallee())
10207 llvm::VectorType *FPVecTy = cast<llvm::VectorType>(Ops[0]->getType());
10217 ConstantInt *C = cast<ConstantInt>(Ops[1]);
10286 uint64_t Index = cast<ConstantInt>(Ops[1])->getZExtValue();
10301 unsigned Index = cast<ConstantInt>(Ops[2])->getZExtValue();
10866 unsigned Index = cast<ConstantInt>(Ops[1])->getZExtValue();
10904 unsigned Index = cast<ConstantInt>(Ops[2])->getZExtValue();
10967 unsigned Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
10982 uint32_t Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11006 uint32_t Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11036 uint32_t Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11063 uint32_t Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
11091 unsigned Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11108 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0xff;
11148 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0xff;
11169 unsigned Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
11195 unsigned Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
11233 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11263 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11294 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11316 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11432 unsigned CC = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0x7;
11447 unsigned CC = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0x7;
11639 unsigned CC = cast<llvm::ConstantInt>(Ops[4])->getZExtValue();
11662 unsigned CC = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
12050 unsigned CC = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0x1f;
12811 ConstantInt *Index = cast<ConstantInt>(Ops[1]);
12978 CallInst *CI = cast<CallInst>(
12987 CallInst *CI = cast<CallInst>(
tools/clang/lib/CodeGen/CGCUDANV.cpp 88 cast<llvm::GlobalVariable>(ConstStr.getPointer());
167 VoidPtrTy = cast<llvm::PointerType>(Types.ConvertType(Ctx.VoidPtrTy));
208 auto *ND = cast<const NamedDecl>(D);
566 cast<llvm::GlobalVariable>(FatBinStr)->setSection(FatbinConstantName);
tools/clang/lib/CodeGen/CGCXX.cpp 83 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
140 auto *Ref = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl));
208 auto *Fn = cast<llvm::Function>(
216 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn);
223 auto *MD = cast<CXXMethodDecl>(GD.getDecl());
285 const auto *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/CodeGen/CGCXXABI.cpp 50 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
122 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
258 const CXXRecordDecl *RD = cast<CXXRecordDecl>(MPD->getDeclContext());
tools/clang/lib/CodeGen/CGCall.cpp 306 auto *MD = cast<CXXMethodDecl>(GD.getDecl());
514 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
591 cast<FunctionNoProtoType>(fnType))) {
1670 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
2266 auto AI = cast<llvm::Argument>(FnArgs[IRFunctionArgs.getSRetArgNo()]);
2291 isa<ParmVarDecl>(Arg) && cast<ParmVarDecl>(Arg)->isKNRPromoted();
2357 auto AI = cast<llvm::Argument>(V);
2408 cast<llvm::ConstantInt>(AlignmentValue);
2580 insn = cast<llvm::Instruction>(bitcast->getOperand(0));
2596 llvm::Instruction *generator = cast<llvm::Instruction>(result);
2605 generator = cast<llvm::Instruction>(bitcast->getOperand(0));
2642 assert(cast<llvm::CallInst>(prev)->getCalledValue() ==
2702 eraseUnusedBitCasts(cast<llvm::Instruction>(result));
2705 eraseUnusedBitCasts(cast<llvm::Instruction>(retainedValue));
3083 llvm::ConstantPointerNull::get(cast<llvm::PointerType>(ptr->getType()));
3098 CalleeDestructedParamCleanups.lookup(cast<ParmVarDecl>(param));
3229 cast<llvm::PointerType>(CGF.ConvertType(CRE->getType()));
3253 cast<llvm::PointerType>(destType->getElementType()));
3465 isObjCMethodWithTypeParams(cast<ObjCMethodDecl>(AC.getDecl())))) &&
3616 cast<CastExpr>(E)->getCastKind() == CK_LValueToRValue) {
3617 LValue L = EmitLValue(cast<CastExpr>(E)->getSubExpr());
3913 cast<llvm::Instruction>(Addr.getPointer());
4058 cast<llvm::AllocaInst>(V)->setSwiftError(true);
4211 llvm::StructType *DeclaredTy = cast<llvm::StructType>(
4212 cast<llvm::PointerType>(LastParamTy)->getElementType());
4570 llvm::ConstantInt *AlignmentCI = cast<llvm::ConstantInt>(Alignment);
tools/clang/lib/CodeGen/CGClass.cpp 118 auto RD = cast<CXXMethodDecl>(CurFuncDecl)->getParent();
165 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
283 VBase = cast<CXXRecordDecl>(
443 const CXXRecordDecl *RD = cast<CXXMethodDecl>(CurCodeDecl)->getParent();
444 const CXXRecordDecl *Base = cast<CXXMethodDecl>(GD.getDecl())->getParent();
494 cast<CXXMethodDecl>(CGF.CurCodeDecl)->getParent();
543 cast<CXXRecordDecl>(BaseType->castAs<RecordType>()->getDecl());
600 LHS = CGF.EmitLValueForFieldInitialization(LHS, cast<FieldDecl>(I));
761 Prologue ? cast<CXXConstructorDecl>(CurGD.getDecl())->getParent()
762 : cast<CXXDestructorDecl>(CurGD.getDecl())->getParent();
823 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl());
846 EnterCXXTryStmt(*cast<CXXTryStmt>(Body), true);
861 EmitStmt(cast<CXXTryStmt>(Body)->getTryBlock());
872 ExitCXXTryStmt(*cast<CXXTryStmt>(Body), true);
1251 cast<CXXRecordDecl>(BaseType->castAs<RecordType>()->getDecl());
1361 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
1371 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
1391 CXXRecordDecl *FieldClassDecl = cast<CXXRecordDecl>(RT->getDecl());
1421 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl());
1461 EnterCXXTryStmt(*cast<CXXTryStmt>(Body), true);
1510 EmitStmt(cast<CXXTryStmt>(Body)->getTryBlock());
1530 ExitCXXTryStmt(*cast<CXXTryStmt>(Body), true);
1534 const CXXMethodDecl *AssignOp = cast<CXXMethodDecl>(CurGD.getDecl());
1538 const CompoundStmt *RootCS = cast<CompoundStmt>(RootS);
1562 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl);
1580 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl);
1821 cast<CXXRecordDecl>(Base.getType()->castAs<RecordType>()->getDecl());
2021 const CXXRecordDecl *record = cast<CXXRecordDecl>(rtype->getDecl());
2203 const auto *OuterCtor = cast<CXXConstructorDecl>(CurCodeDecl);
2537 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
2680 const CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(ClassTy->getDecl());
2832 cast<llvm::PointerType>(VTable->getType())->getElementType());
2928 CallOp = cast<CXXMethodDecl>(CorrespondingCallOpSpecialization);
tools/clang/lib/CodeGen/CGCleanup.cpp 78 auto alignment = cast<llvm::AllocaInst>(value)->getAlignment();
374 return cast<llvm::SwitchInst>(Term);
591 llvm::SwitchInst *Switch = cast<llvm::SwitchInst>(Term);
619 llvm::SwitchInst *si = cast<llvm::SwitchInst>(use.getUser());
625 llvm::LoadInst *condition = cast<llvm::LoadInst>(si->getCondition());
837 cast<llvm::Instruction>(getNormalCleanupDestSlot().getPointer());
tools/clang/lib/CodeGen/CGCleanup.h 329 ActiveFlag = cast<llvm::AllocaInst>(Var.getPointer());
tools/clang/lib/CodeGen/CGCoroutine.cpp 296 return cast<CallExpr>(RE)->getCallReturnType(Ctx);
494 auto *GroVarDecl = cast<VarDecl>(GroDeclStmt->getSingleDecl());
612 ParamReplacer.addCopy(cast<DeclStmt>(PM));
tools/clang/lib/CodeGen/CGDebugInfo.cpp 201 return getContextDescriptor(cast<Decl>(D->getDeclContext()),
424 return cast<llvm::DIFile>(V);
977 return cast<llvm::DICompositeType>(T);
1116 cast<TypeAliasTemplateDecl>(Ty->getTemplateName().getAsTemplateDecl())
1478 cast<llvm::DISubroutineType>(getOrCreateType(QualType(Func, 0), Unit))
1706 cast<CXXRecordDecl>(BI.getType()->castAs<RecordType>()->getDecl());
2922 return cast<llvm::DIType>(V);
2966 if (isa<RecordDecl>(D) && !cast<RecordDecl>(D)->getDefinition())
3208 ContainingType = cast<llvm::DICompositeType>(
3235 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3320 VDContext = getContextDescriptor(cast<Decl>(DC), Mod ? Mod : TheCU);
3335 auto *FD = cast<FunctionDecl>(GD.getDecl());
3396 std::make_tuple(cast<VarDecl>(VD->getCanonicalDecl())),
3443 cast<llvm::DICompositeType>(S));
3532 return cast<llvm::DISubroutineType>(getOrCreateType(FnType, F));
3575 Name = getDynamicInitializerName(cast<VarDecl>(D), GD.getDynamicInitKind(),
3732 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3769 cast<llvm::DIScope>(Back), getOrCreateFile(CurLoc), getLineNumber(CurLoc),
3916 cast<Decl>(VD->getDeclContext())->isImplicit());
4352 auto *Ctxt = cast<llvm::DICompositeType>(getDeclContextDescriptor(D));
4353 return CreateRecordStaticField(D, Ctxt, cast<RecordDecl>(DC));
4454 const auto *ED = cast<EnumDecl>(ECD->getDeclContext());
4483 VD = cast<ValueDecl>(VD->getCanonicalDecl());
4486 auto *RD = cast<RecordDecl>(VarD->getDeclContext());
4500 cast<Decl>(CGM.getContext().getTranslationUnitDecl()), TheCU);
4548 getCurrentContextDescriptor(cast<Decl>(UD.getDeclContext())),
4575 getCurrentContextDescriptor(cast<Decl>(USD.getDeclContext())), Target,
4587 getCurrentContextDescriptor(cast<Decl>(ID.getDeclContext())),
4606 getCurrentContextDescriptor(cast<Decl>(NA.getDeclContext())),
4611 getCurrentContextDescriptor(cast<Decl>(NA.getDeclContext())),
4612 getOrCreateNamespace(cast<NamespaceDecl>(NA.getAliasedNamespace())),
4726 DBuilder.replaceTemporary(std::move(FwdDecl), cast<llvm::MDNode>(Repl));
tools/clang/lib/CodeGen/CGDecl.cpp 145 return CGM.EmitOMPDeclareReduction(cast<OMPDeclareReductionDecl>(&D), this);
148 return CGM.EmitOMPDeclareMapper(cast<OMPDeclareMapperDecl>(&D), this);
204 DC = cast<DeclContext>(CD->getNonClosureContext());
276 const Decl *DC = cast<Decl>(D.getDeclContext());
399 cast<llvm::GlobalVariable>(addr->stripPointerCasts());
659 const VarDecl *var = cast<VarDecl>(decl);
746 drillIntoBlockVariable(*this, lvalue, cast<VarDecl>(D));
777 cast<VarDecl>(D),
781 auto ty = cast<llvm::PointerType>(tempLV.getAddress().getElementType());
801 if (!D || !isa<VarDecl>(D) || !cast<VarDecl>(D)->isARCPseudoStrong()) {
827 if (capturedByInit) drillIntoBlockVariable(*this, lvalue, cast<VarDecl>(D));
840 if (capturedByInit) drillIntoBlockVariable(*this, lvalue, cast<VarDecl>(D));
874 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i));
928 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i));
1021 CurOp = cast<llvm::Constant>(constant->getAggregateElement(i));
1179 const llvm::APInt &AP = cast<llvm::ConstantInt>(Pattern)->getValue();
1197 cast<llvm::Constant>(Builder.CreateExtractValue(constant, i)));
1208 cast<llvm::Constant>(Builder.CreateExtractValue(constant, i)));
1263 auto *OpValue = cast<llvm::Constant>(constant->getOperand(Op));
1267 return llvm::ConstantStruct::get(cast<llvm::StructType>(Ty), Values);
1269 return llvm::ConstantArray::get(cast<llvm::ArrayType>(Ty), Values);
1874 drillIntoBlockVariable(*this, lvalue, cast<VarDecl>(D));
1885 drillIntoBlockVariable(*this, lvalue, cast<VarDecl>(D));
2407 CalleeDestructedParamCleanups[cast<ParmVarDecl>(&D)] =
tools/clang/lib/CodeGen/CGException.cpp 252 return llvm::ConstantExpr::getBitCast(cast<llvm::Constant>(Fn.getCallee()),
271 llvm::Constant *CVal = cast<llvm::Constant>(Val);
275 cast<llvm::GlobalVariable>((*II)->stripPointerCasts()))
400 cast<llvm::Instruction>(typedAddr.getPointer()));
871 Filters.push_back(cast<llvm::Constant>(filterTypes[i]));
1179 cast<llvm::CatchSwitchInst>(DispatchBlock->getFirstNonPHI());
1183 auto *CPI = cast<llvm::CatchPadInst>(WasmCatchStartBlock->getFirstNonPHI());
1253 auto *BI = cast<llvm::BranchInst>(TI);
1736 cast<llvm::IntrinsicInst>(ParentVar.getPointer()->stripPointerCasts());
1739 RecoverCall = cast<llvm::CallInst>(ParentRecover->clone());
2071 cast<llvm::CatchPadInst>(CatchPadBB->getFirstNonPHI());
tools/clang/lib/CodeGen/CGExpr.cpp 52 cast<llvm::PointerType>(value->getType())->getAddressSpace();
322 auto *ClassDecl = cast<CXXRecordDecl>(RT->getDecl());
345 CleanupArg = cast<llvm::Constant>(ReferenceTemporary.getPointer());
348 CGF, *cast<VarDecl>(M->getExtendingDecl()), CleanupFn, CleanupArg);
423 !cast<VarDecl>(M->getExtendingDecl())->isARCPseudoStrong()) &&
492 cast<llvm::Constant>(Object.getPointer()),
617 return cast<llvm::ConstantInt>(Elts->getAggregateElement(Idx))
1210 LV = EmitArraySubscriptExpr(cast<ArraySubscriptExpr>(E), /*Accessed*/true);
1252 return EmitObjCSelectorLValue(cast<ObjCSelectorExpr>(E));
1254 return EmitObjCIsaExpr(cast<ObjCIsaExpr>(E));
1256 return EmitBinaryOperatorLValue(cast<BinaryOperator>(E));
1262 return EmitCompoundAssignmentLValue(cast<CompoundAssignOperator>(E));
1263 return EmitComplexCompoundAssignmentLValue(cast<CompoundAssignOperator>(E));
1269 return EmitCallExprLValue(cast<CallExpr>(E));
1271 return EmitLValue(cast<CXXRewrittenBinaryOperator>(E)->getSemanticForm());
1273 return EmitVAArgExprLValue(cast<VAArgExpr>(E));
1275 return EmitDeclRefLValue(cast<DeclRefExpr>(E));
1277 return EmitLValue(cast<ConstantExpr>(E)->getSubExpr());
1279 return EmitLValue(cast<ParenExpr>(E)->getSubExpr());
1281 return EmitLValue(cast<GenericSelectionExpr>(E)->getResultExpr());
1283 return EmitPredefinedLValue(cast<PredefinedExpr>(E));
1285 return EmitStringLiteralLValue(cast<StringLiteral>(E));
1287 return EmitObjCEncodeExprLValue(cast<ObjCEncodeExpr>(E));
1289 return EmitPseudoObjectLValue(cast<PseudoObjectExpr>(E));
1291 return EmitInitListLValue(cast<InitListExpr>(E));
1294 return EmitCXXConstructLValue(cast<CXXConstructExpr>(E));
1296 return EmitCXXBindTemporaryLValue(cast<CXXBindTemporaryExpr>(E));
1298 return EmitCXXUuidofLValue(cast<CXXUuidofExpr>(E));
1303 const auto *cleanups = cast<ExprWithCleanups>(E);
1321 auto *DAE = cast<CXXDefaultArgExpr>(E);
1326 auto *DIE = cast<CXXDefaultInitExpr>(E);
1331 return EmitCXXTypeidLValue(cast<CXXTypeidExpr>(E));
1334 return EmitObjCMessageExprLValue(cast<ObjCMessageExpr>(E));
1336 return EmitObjCIvarRefLValue(cast<ObjCIvarRefExpr>(E));
1338 return EmitStmtExprLValue(cast<StmtExpr>(E));
1340 return EmitUnaryOpLValue(cast<UnaryOperator>(E));
1342 return EmitArraySubscriptExpr(cast<ArraySubscriptExpr>(E));
1344 return EmitOMPArraySectionExpr(cast<OMPArraySectionExpr>(E));
1346 return EmitExtVectorElementExpr(cast<ExtVectorElementExpr>(E));
1348 return EmitMemberExpr(cast<MemberExpr>(E));
1350 return EmitCompoundLiteralLValue(cast<CompoundLiteralExpr>(E));
1352 return EmitConditionalOperatorLValue(cast<ConditionalOperator>(E));
1354 return EmitConditionalOperatorLValue(cast<BinaryConditionalOperator>(E));
1356 return EmitLValue(cast<ChooseExpr>(E)->getChosenSubExpr());
1358 return EmitOpaqueValueLValue(cast<OpaqueValueExpr>(E));
1360 return EmitLValue(cast<SubstNonTypeTemplateParmExpr>(E)->getReplacement());
1369 return EmitCastLValue(cast<CastExpr>(E));
1372 return EmitMaterializeTemporaryExpr(cast<MaterializeTemporaryExpr>(E));
1375 return EmitCoawaitLValue(cast<CoawaitExpr>(E));
1377 return EmitCoyieldLValue(cast<CoyieldExpr>(E));
1481 if (!getContext().DeclMustBeEmitted(cast<VarDecl>(value)))
1605 cast<llvm::IntegerType>(Value->getType())->getBitWidth() == 1)
1645 const auto *VTy = cast<llvm::VectorType>(EltTy);
1905 llvm::MDNode *RegName = cast<llvm::MDNode>(
1906 cast<llvm::MetadataAsValue>(LV.getGlobalReg())->getMetadata());
2165 llvm::MDNode *RegName = cast<llvm::MDNode>(
2166 cast<llvm::MetadataAsValue>(Dst.getGlobalReg())->getMetadata());
2206 auto *Exp = cast<ObjCIvarRefExpr>(const_cast<Expr *>(E));
2288 unsigned AS = cast<llvm::PointerType>(V->getType())->getAddressSpace();
2599 const auto *VD = cast<ValueDecl>(ND);
2906 cast<llvm::GlobalVariable>(FilenameGV.getPointer()));
3155 cast<llvm::GlobalValue>(SlowPathFn.getCallee()->stripPointerCasts()));
3415 cast<llvm::ConstantInt>(idx)->isZero());
3899 assert(cast<CXXMethodDecl>(CurCodeDecl)->getParent()->isLambda());
3900 assert(cast<CXXMethodDecl>(CurCodeDecl)->getParent() == Field->getParent());
4351 const auto *DCE = cast<CXXDynamicCastExpr>(E);
4367 auto *DerivedClassDecl = cast<CXXRecordDecl>(DerivedClassTy->getDecl());
4387 auto *DerivedClassDecl = cast<CXXRecordDecl>(DerivedClassTy->getDecl());
4413 const auto *CE = cast<ExplicitCastExpr>(E);
5005 cast<llvm::Instruction>(Val)->setMetadata(llvm::LLVMContext::MD_fpmath, Node);
tools/clang/lib/CodeGen/CGExprAgg.cpp 239 (cast<CXXRecordDecl>(Record)->hasNonTrivialCopyConstructor() ||
240 !cast<CXXRecordDecl>(Record)->hasTrivialDestructor()))
691 CGF.EmitDynamicCast(LV.getAddress(), cast<CXXDynamicCastExpr>(E));
1483 auto AType = cast<llvm::ArrayType>(Dest.getAddress().getElementType());
1817 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
1924 CXXRecordDecl *Record = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/CodeGen/CGExprCXX.cpp 96 const CXXMethodDecl *DtorDecl = cast<CXXMethodDecl>(Dtor.getDecl());
174 return cast<CXXRecordDecl>(Ty->getDecl());
186 const MemberExpr *ME = cast<MemberExpr>(callee);
187 const CXXMethodDecl *MD = cast<CXXMethodDecl>(ME->getMemberDecl());
350 cast<CXXMemberCallExpr>(CE));
417 cast<BinaryOperator>(E->getCallee()->IgnoreParens());
424 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
644 const CXXConstructExpr* E = cast<CXXConstructExpr>(Exp);
712 = cast<llvm::IntegerType>(numElements->getType());
1032 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe())
1547 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe())
1877 CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/CodeGen/CGExprComplex.cpp 640 Args, cast<FunctionType>(FQTy.getTypePtr()), false);
tools/clang/lib/CodeGen/CGExprConstant.cpp 332 auto *ST = cast<llvm::StructType>(CA->getType());
833 cast<llvm::ConstantInt>(EltInit), AllowOverwrite))
1220 cast<llvm::ArrayType>(CGM.getTypes().ConvertType(ILE->getType()));
1274 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
1543 cast<llvm::ConstantInt>(IndexValues[j])->getZExtValue()
1846 auto destPtrTy = cast<llvm::PointerType>(destTy);
1940 auto *SL = cast<StringLiteral>(E->getSubExpr()->IgnoreParenCasts());
1965 auto literal = cast<StringLiteral>(E->getArg(0)->IgnoreParenCasts());
2143 cast<llvm::ArrayType>(CGM.getTypes().ConvertType(DestType));
2175 const ValueDecl *decl = cast<DeclRefExpr>(uo->getSubExpr())->getDecl();
2213 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
2250 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
2297 cast<llvm::PointerType>(getTypes().ConvertTypeForMem(T)), T);
2304 cast<llvm::ArrayType>(getTypes().ConvertTypeForMem(T));
tools/clang/lib/CodeGen/CGExprScalar.cpp 188 const auto *BO = cast<BinaryOperator>(Op.E);
296 llvm::ConstantInt *AlignmentCI = cast<llvm::ConstantInt>(AlignmentValue);
393 Value *Zero = CGF.CGM.getNullPointer(cast<llvm::PointerType>(V->getType()), QT);
1553 const BinaryOperator *BO = cast<BinaryOperator>(Info.E);
1597 llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType());
1602 llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType());
1818 llvm::ExtractElementInst *EI = cast<llvm::ExtractElementInst>(Init);
1821 llvm::ConstantInt *C = cast<llvm::ConstantInt>(EI->getIndexOperand());
1834 llvm::ShuffleVectorInst *SVV = cast<llvm::ShuffleVectorInst>(V);
1840 LHS = cast<llvm::ShuffleVectorInst>(V)->getOperand(0);
1866 llvm::ShuffleVectorInst *SVI = cast<llvm::ShuffleVectorInst>(Init);
1868 llvm::VectorType *OpTy = cast<llvm::VectorType>(SVOp->getType());
1875 Args.push_back(getMaskElt(cast<llvm::ShuffleVectorInst>(V), j, 0,
1886 V = cast<llvm::ShuffleVectorInst>(V)->getOperand(0);
2046 return CGF.CGM.getNullPointer(cast<llvm::PointerType>(
2094 const CXXDynamicCastExpr *DCE = cast<CXXDynamicCastExpr>(CE);
2107 return CGF.CGM.getNullPointer(cast<llvm::PointerType>(ConvertType(DestTy)),
2715 CXXRecordDecl *BaseRD = cast<CXXRecordDecl>(BaseRT->getDecl());
2971 const auto *BO = cast<BinaryOperator>(Ops.E);
2976 llvm::IntegerType *Ty = cast<llvm::IntegerType>(Zero->getType());
3024 cast<llvm::VectorType>(ValTy)->getElementType()->isFloatTy()))
3139 Builder.getInt8(cast<llvm::IntegerType>(opTy)->getBitWidth())
3162 const BinaryOperator *expr = cast<BinaryOperator>(op.E);
3177 unsigned width = cast<llvm::IntegerType>(index->getType())->getBitWidth();
3179 auto PtrTy = cast<llvm::PointerType>(pointer->getType());
3386 const auto *BinOp = cast<BinaryOperator>(op.E);
3539 const BinaryOperator *expr = cast<BinaryOperator>(op.E);
3584 Ty = cast<llvm::IntegerType>(VT->getElementType());
3586 Ty = cast<llvm::IntegerType>(LHS->getType());
3813 llvm::IntegerType *ResultTy = cast<llvm::IntegerType>(Result->getType());
4197 llvm::VectorType *vecTy = cast<llvm::VectorType>(condType);
4214 llvm::VectorType *rhsVTy = cast<llvm::VectorType>(RHS->getType());
4393 cast<llvm::VectorType>(SrcTy)->getNumElements() : 0;
4395 cast<llvm::VectorType>(DstTy)->getNumElements() : 0;
4577 auto *GEP = cast<llvm::GEPOperator>(GEPVal);
4628 unsigned FieldNo = cast<llvm::ConstantInt>(Index)->getZExtValue();
tools/clang/lib/CodeGen/CGLoopInfo.cpp 774 UnionMD = cast<MDNode>(AccessGroups[0]);
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp 193 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT);
230 return llvm::ConstantPointerNull::get(cast<llvm::PointerType>(Ty));
tools/clang/lib/CodeGen/CGObjC.cpp 41 return llvm::ConstantPointerNull::get(cast<llvm::PointerType>(type));
123 DLE = cast<ObjCDictionaryLiteral>(E);
135 cast<llvm::LoadInst>(Ptr)->setMetadata(
595 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl());
602 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
630 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl());
647 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl);
649 const ObjCImplDecl *impl = cast<ObjCImplDecl>(method->getDeclContext());
720 EmitCompoundStmtWithoutScope(*cast<CompoundStmt>(OMD->getBody()));
1583 ObjCIvarDecl *Ivar = cast<ObjCIvarDecl>(Field);
1607 VarDecl *Self = cast<ObjCMethodDecl>(CurFuncDecl)->getSelfDecl();
1615 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1641 variable = EmitAutoVarAlloca(*cast<VarDecl>(SD->getSingleDecl()));
1795 const VarDecl *D = cast<VarDecl>(SD->getSingleDecl());
1806 elementType = cast<Expr>(S.getElement())->getType();
1832 elementLValue = EmitLValue(cast<Expr>(S.getElement()));
1900 elementLValue = EmitLValue(cast<Expr>(S.getElement()));
2147 = cast<llvm::CallInst>(result->stripPointerCasts());
2747 cast<BinaryOperator>(e)->getOpcode() == BO_Assign)
3117 !cast<ObjCMessageExpr>(e)->isDelegateInitCall())) {
3554 CallExpr *CalleeExp = cast<CallExpr>(PID->getSetterCXXAssignment());
3633 cast<CXXConstructExpr>(PID->getGetterCXXConstructor());
3740 cast<llvm::Function>(CFLinkCheckFuncRef.getCallee()->stripPointerCasts());
tools/clang/lib/CodeGen/CGObjCGNU.cpp 1012 cast<llvm::GlobalValue>(isa)->setDLLStorageClass(llvm::GlobalValue::DLLImportStorageClass);
1245 cast<llvm::GlobalValue>(ClassSymbol)->setDLLStorageClass(Storage);
1577 auto *Cat = cast<llvm::GlobalVariable>(C->stripPointerCasts());
1774 cast<llvm::GlobalValue>(SuperClass)->setDLLStorageClass(Storage);
1936 cast<llvm::GlobalValue>(classStruct)->setDLLStorageClass(llvm::GlobalValue::DLLExportStorageClass);
1937 cast<llvm::GlobalValue>(classRefSymbol)->setDLLStorageClass(llvm::GlobalValue::DLLExportStorageClass);
2129 IntTy = cast<llvm::IntegerType>(
2131 LongTy = cast<llvm::IntegerType>(
2133 SizeTy = cast<llvm::IntegerType>(
2135 PtrDiffTy = cast<llvm::IntegerType>(
2153 SelectorTy = cast<llvm::PointerType>(CGM.getTypes().ConvertType(selTy));
2170 IdTy = cast<llvm::PointerType>(CGM.getTypes().ConvertType(ASTIdTy));
2663 IdTy = cast<llvm::PointerType>(CGM.getTypes().ConvertType(ASTIdTy));
3551 cast<llvm::GlobalVariable>(IvarList)->getValueType(), IvarList,
3574 CGM.setGVProperties(cast<llvm::GlobalValue>(MetaClassStruct),
3583 CGM.setGVProperties(cast<llvm::GlobalValue>(ClassStruct),
tools/clang/lib/CodeGen/CGObjCMac.cpp 745 cast<llvm::Function>(F.getCallee())->setLinkage(
1950 return cast<llvm::Constant>(V);
1966 return cast<llvm::Constant>(V);
2213 llvm::Constant *BitcastFn = cast<llvm::Constant>(
2520 auto *CArray = cast<ConstantArrayType>(Array);
2525 auto *CArray = cast<ConstantArrayType>(Array);
2607 CGM.getDataLayout().getStructLayout(cast<llvm::StructType>(Ty));
4564 const ObjCAtTryStmt* AtTryStmt = cast<ObjCAtTryStmt>(&S);
5617 ShortTy = cast<llvm::IntegerType>(Types.ConvertType(Ctx.ShortTy));
5619 LongTy = cast<llvm::IntegerType>(Types.ConvertType(Ctx.LongTy));
5631 cast<llvm::PointerType>(Types.ConvertType(Ctx.getObjCIdType()));
5635 cast<llvm::PointerType>(Types.ConvertType(Ctx.getObjCSelType()));
5664 SuperTy = cast<llvm::StructType>(Types.ConvertType(SuperCTy));
6016 MessageRefTy = cast<llvm::StructType>(Types.ConvertType(MessageRefCTy));
6316 cast<llvm::GlobalVariable>(GetClassGlobal(CI, isMetaclass, ForDefinition));
7075 cast<llvm::LoadInst>(IvarOffsetValue)
7183 values.add(cast<llvm::Constant>(fn.getCallee()));
7419 cast<llvm::GlobalVariable>(ClassGV)->hasExternalWeakLinkage());
tools/clang/lib/CodeGen/CGObjCRuntime.cpp 197 CGF.CurSEHParent = cast<NamedDecl>(CGF.CurFuncDecl);
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp 40 switch (cast<BuiltinType>(T)->getKind()) {
136 E = cast<VarDecl>(DR->getDecl())->getInit();
139 return cast<BlockExpr>(E);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 119 cast<CGOpenMPRegionInfo>(Info)->getRegionKind() ==
207 cast<CGOpenMPRegionInfo>(Info)->getRegionKind() ==
291 cast<CGOpenMPRegionInfo>(Info)->getRegionKind() == InlinedRegion;
324 cast<CGOpenMPRegionInfo>(Info)->getRegionKind() == TargetRegion;
422 cast<CGOpenMPInlinedRegionInfo>(CGF.CapturedStmtInfo)->getOldCSI();
810 const auto *CE = cast<CallExpr>(InitOp);
811 const auto *OVE = cast<OpaqueValueExpr>(CE->getCallee());
815 cast<DeclRefExpr>(cast<UnaryOperator>(LHS)->getSubExpr());
815 cast<DeclRefExpr>(cast<UnaryOperator>(LHS)->getSubExpr());
817 cast<DeclRefExpr>(cast<UnaryOperator>(RHS)->getSubExpr());
817 cast<DeclRefExpr>(cast<UnaryOperator>(RHS)->getSubExpr());
819 PrivateScope.addPrivate(cast<VarDecl>(LHSDRE->getDecl()),
821 PrivateScope.addPrivate(cast<VarDecl>(RHSDRE->getDecl()),
961 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
961 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
997 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
997 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1010 cast<llvm::PointerType>(SharedAddresses[N].first.getPointer()->getType())
1027 cast<OpaqueValueExpr>(
1036 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1036 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1046 cast<OpaqueValueExpr>(
1057 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1057 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1085 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1085 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1094 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1094 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1160 DE = cast<DeclRefExpr>(Base);
1161 OrigVD = cast<VarDecl>(DE->getDecl());
1166 DE = cast<DeclRefExpr>(Base);
1167 OrigVD = cast<VarDecl>(DE->getDecl());
1194 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Ref)->getDecl()));
1194 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Ref)->getDecl()));
1278 const auto *D = cast<FunctionDecl>(OldGD.getDecl());
1410 cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerIn())->getDecl()),
1410 cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerIn())->getDecl()),
1411 cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerOut())->getDecl()),
1411 cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerOut())->getDecl()),
1419 cast<VarDecl>(cast<DeclRefExpr>(D->getInitOrig())->getDecl()),
1419 cast<VarDecl>(cast<DeclRefExpr>(D->getInitOrig())->getDecl()),
1420 cast<VarDecl>(cast<DeclRefExpr>(D->getInitPriv())->getDecl()),
1420 cast<VarDecl>(cast<DeclRefExpr>(D->getInitPriv())->getDecl()),
1545 const auto *RD = cast<RecordDecl>(Ty->getAsTagDecl());
1560 const auto *RD = cast<RecordDecl>(Ty->getAsTagDecl());
1661 auto Fields = cast<RecordDecl>(IdentQTy->getAsTagDecl())->field_begin();
1710 cast<llvm::Instruction>(LVal.getPointer())->getParent() == TopBlock ||
1711 cast<llvm::Instruction>(LVal.getPointer())->getParent() ==
2696 auto *GV = cast<llvm::GlobalVariable>(Ptr);
2701 registerTargetGlobalVariable(VD, cast<llvm::Constant>(Ptr));
2931 CGM.addUsedGlobal(cast<llvm::GlobalValue>(Ctor));
2970 CGM.addUsedGlobal(cast<llvm::GlobalValue>(Dtor));
3326 cast<VarDecl>(cast<DeclRefExpr>(DestExprs[I])->getDecl());
3326 cast<VarDecl>(cast<DeclRefExpr>(DestExprs[I])->getDecl());
3330 cast<VarDecl>(cast<DeclRefExpr>(SrcExprs[I])->getDecl());
3330 cast<VarDecl>(cast<DeclRefExpr>(SrcExprs[I])->getDecl());
3333 const auto *VD = cast<DeclRefExpr>(CopyprivateVars[I])->getDecl();
4258 return cast<llvm::ConstantInt>(V->getValue())->getZExtValue();
4534 cast<RecordDecl>(KmpTaskTWithPrivatesQTy->getAsTagDecl());
4537 const auto *KmpTaskTQTyRD = cast<RecordDecl>(KmpTaskTQTy->getAsTagDecl());
4632 cast<RecordDecl>(KmpTaskTWithPrivatesQTy->getAsTagDecl());
4636 cast<RecordDecl>(FI->getType()->getAsTagDecl())->fields()) {
4680 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4680 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4691 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4691 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4702 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4702 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4730 const auto *PrivatesQTyRD = cast<RecordDecl>(PrivatesQTy->getAsTagDecl());
4776 FI = cast<RecordDecl>(FI->getType()->getAsTagDecl())->field_begin();
4793 cast<CapturedDecl>(OriginalVD->getDeclContext())
4796 cast<CapturedDecl>(OriginalVD->getDeclContext())
4952 const auto *PrivateRD = cast<RecordDecl>(FI->getType()->getAsTagDecl());
4971 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4971 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4974 PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
4974 PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
4981 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4981 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4985 VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
4985 VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
4986 cast<VarDecl>(cast<DeclRefExpr>(*IElemInitRef)->getDecl())));
4986 cast<VarDecl>(cast<DeclRefExpr>(*IElemInitRef)->getDecl())));
4992 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4992 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
4995 PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
4995 PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
5023 const auto *KmpTaskTQTyRD = cast<RecordDecl>(KmpTaskTQTy->getAsTagDecl());
5050 cast<llvm::PointerType>(TaskPrivatesMapTy));
5218 KmpDependInfoRD = cast<RecordDecl>(KmpDependInfoTy->getAsTagDecl());
5405 cast<VarDecl>(cast<DeclRefExpr>(D.getLowerBoundVariable())->getDecl());
5405 cast<VarDecl>(cast<DeclRefExpr>(D.getLowerBoundVariable())->getDecl());
5412 cast<VarDecl>(cast<DeclRefExpr>(D.getUpperBoundVariable())->getDecl());
5412 cast<VarDecl>(cast<DeclRefExpr>(D.getUpperBoundVariable())->getDecl());
5419 cast<VarDecl>(cast<DeclRefExpr>(D.getStrideVariable())->getDecl());
5419 cast<VarDecl>(cast<DeclRefExpr>(D.getStrideVariable())->getDecl());
5600 cast<VarDecl>(cast<DeclRefExpr>(RHSExprs[I])->getDecl());
5600 cast<VarDecl>(cast<DeclRefExpr>(RHSExprs[I])->getDecl());
5605 cast<VarDecl>(cast<DeclRefExpr>(LHSExprs[I])->getDecl());
5605 cast<VarDecl>(cast<DeclRefExpr>(LHSExprs[I])->getDecl());
5617 const auto *OVE = cast<OpaqueValueExpr>(VLA->getSizeExpr());
5630 const auto *LHSVar = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
5630 const auto *LHSVar = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
5631 const auto *RHSVar = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
5631 const auto *RHSVar = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
5657 const auto *LHSVar = cast<VarDecl>(LHS->getDecl());
5658 const auto *RHSVar = cast<VarDecl>(RHS->getDecl());
5725 emitSingleReductionCombiner(CGF, E, *IPriv, cast<DeclRefExpr>(*ILHS),
5726 cast<DeclRefExpr>(*IRHS));
5828 RT.emitSingleReductionCombiner(CGF, E, *IPriv, cast<DeclRefExpr>(*ILHS),
5829 cast<DeclRefExpr>(*IRHS));
5888 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
5888 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
5916 cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
5916 cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
5939 cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
5939 cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
5941 cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
5941 cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
5983 D = cast<VarDecl>(cast<DeclRefExpr>(Ref)->getDecl());
5983 D = cast<VarDecl>(cast<DeclRefExpr>(Ref)->getDecl());
6076 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(LHS)->getDecl());
6076 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(LHS)->getDecl());
6077 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(RHS)->getDecl());
6077 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(RHS)->getDecl());
6131 CGF, ReductionOp, PrivateRef, cast<DeclRefExpr>(LHS),
6132 cast<DeclRefExpr>(RHS));
7196 const auto *ATy = cast<ArrayType>(BaseTy.getTypePtr());
7865 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl()), C->isImplicit());
7865 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl()), C->isImplicit());
7932 D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr;
7970 VD = cast<ValueDecl>(VD->getCanonicalDecl());
8113 D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr;
8119 const auto *MC = cast<OMPMapClause>(C);
8383 const auto *FD1 = cast<FieldDecl>(CI->getAssociatedDeclaration());
8384 const auto *FD2 = cast<FieldDecl>(SI->getAssociatedDeclaration());
8477 const auto *PtrTy = cast<PointerType>(RI.getType().getTypePtr());
8504 const auto *PtrTy = cast<ReferenceType>(RI.getType().getTypePtr());
8603 ConstSizes.push_back(cast<llvm::Constant>(S));
8840 cast<VarDecl>(cast<DeclRefExpr>(D->getMapperVarRef())->getDecl());
8840 cast<VarDecl>(cast<DeclRefExpr>(D->getMapperVarRef())->getDecl());
9147 const auto *LD = cast<OMPLoopDirective>(TD);
9446 cast<OMPExecutableDirective>(S)->getDirectiveKind());
9449 const auto &E = *cast<OMPExecutableDirective>(S);
9593 const ValueDecl *VD = cast<ValueDecl>(GD.getDecl());
9617 QualType RDTy = cast<VarDecl>(GD.getDecl())->getType();
9634 cast<VarDecl>(GD.getDecl()));
9638 DeferredGlobalVariables.insert(cast<VarDecl>(GD.getDecl()));
9669 cast<llvm::GlobalValue>(Addr)->setLinkage(Linkage);
9671 CGM.addCompilerUsedGlobal(cast<llvm::GlobalValue>(Addr));
9717 auto *GVAddrRef = cast<llvm::GlobalVariable>(AddrRef);
9739 Addr = cast<llvm::Constant>(getAddrOfDeclareTargetVar(VD).getPointer());
9839 const auto *D = cast<FunctionDecl>(GD.getDecl());
10692 const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10692 const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10708 const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10708 const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10730 const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10730 const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10740 cast<DeclRefExpr>((*SI)->IgnoreParenImpCasts())) {
10741 if (const auto *StridePVD = cast<ParmVarDecl>(DRE->getDecl())) {
10828 RD = cast<RecordDecl>(KmpDimTy->getAsTagDecl());
11120 return cast<FunctionDecl>(
11121 cast<DeclRefExpr>(TopMostAttr->getVariantFuncRef()->IgnoreParenImpCasts())
11126 const auto *D = cast<FunctionDecl>(GD.getDecl());
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 223 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl());
224 const auto *ME = cast<MemberExpr>(RefExpr);
225 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl());
325 VD = cast<ValueDecl>(VD->getCanonicalDecl());
331 if (const FieldDecl *FD = CSI->lookup(cast<VarDecl>(VD))) {
408 cast<DeclRefExpr>(E)->getDecl()->getCanonicalDecl();
1912 auto *NewFD = cast<FunctionDecl>(NewGD.getDecl());
1976 cast<llvm::Function>(CGOpenMPRuntime::emitParallelOutlinedFunction(
2305 const auto *VD = cast<VarDecl>(Rec.first);
2349 const auto *VD = cast<VarDecl>(Rec.first);
2384 I->getSecond().MappedParams->setVarAddr(CGF, cast<VarDecl>(VD),
2488 llvm::Function *Fn = cast<llvm::Function>(OutlinedFn);
2720 cast<llvm::PointerType>(getIdentTyPointerTy())),
3684 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl();
3782 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl();
3885 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl();
3982 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl();
4355 PrivatesReductions[Cnt] = cast<DeclRefExpr>(DRE)->getDecl();
4421 emitSingleReductionCombiner(CGF, E, *IPriv, cast<DeclRefExpr>(*ILHS),
4422 cast<DeclRefExpr>(*IRHS));
4449 QualType PointeeTy = cast<ReferenceType>(NonQualTy)->getPointeeType();
4488 QualType NativePointeeTy = cast<ReferenceType>(NonQualTy)->getPointeeType();
4803 cast<VarDecl>(cast<DeclRefExpr>(IT->getRef())->getDecl())
4803 cast<VarDecl>(cast<DeclRefExpr>(IT->getRef())->getDecl())
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp 600 cast<llvm::IntegerType>(Prior->Data)->getIntegerBitWidth(), 8)));
tools/clang/lib/CodeGen/CGStmt.cpp 112 EmitIgnoredExpr(cast<Expr>(S));
156 const CapturedStmt *CS = cast<CapturedStmt>(S);
423 const Expr *E = cast<Expr>(ExprResult);
1551 const CaseStmt *CS = cast<CaseStmt>(Case);
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 125 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
125 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
133 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl());
133 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl());
155 auto *CXXFor = cast<CXXForRangeStmt>(Body);
184 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD));
207 const Decl *D = cast<DeclRefExpr>(E)->getDecl();
217 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()));
217 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()));
749 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl());
749 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl());
762 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
762 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
766 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
766 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
790 cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl());
790 cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl());
883 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
883 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
885 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
885 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
914 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
914 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
951 cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
951 cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
953 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
953 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
976 const auto *LoopDirective = cast<OMPLoopDirective>(&D);
979 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
979 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
993 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
993 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
998 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
998 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
1010 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
1010 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
1053 cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl())->getCanonicalDecl();
1053 cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl())->getCanonicalDecl();
1067 cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
1067 cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
1077 cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
1077 cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
1079 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
1079 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
1134 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*IPriv)->getDecl());
1134 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*IPriv)->getDecl());
1154 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
1154 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
1155 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
1155 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
1381 auto *CXXFor = cast<CXXForRangeStmt>(Body);
1450 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(Init)->getDecl());
1450 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(Init)->getDecl());
1454 const auto *OrigVD = cast<VarDecl>(Ref->getDecl());
1470 if (const auto *SaveRef = cast<DeclRefExpr>(CS->getLHS())) {
1471 EmitVarDecl(*cast<VarDecl>(SaveRef->getDecl()));
1499 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl());
1499 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl());
1525 cast<llvm::ConstantInt>(CGF.EmitScalarExpr(AlignmentExpr));
1558 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
1558 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
1559 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl());
1559 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl());
1589 const auto *DRE = cast<DeclRefExpr>(C->getLoopCounter(I));
1590 const auto *VD = cast<VarDecl>(DRE->getDecl());
1624 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
1624 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
1646 const auto *LoopDirective = cast<OMPLoopDirective>(&D);
1649 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
1649 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
1655 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
1655 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
1657 cast<VarDecl>(cast<DeclRefExpr>(*CurPrivate)->getDecl());
1657 cast<VarDecl>(cast<DeclRefExpr>(*CurPrivate)->getDecl());
1683 auto *Val = cast<llvm::ConstantInt>(Len.getScalarVal());
1693 auto *Val = cast<llvm::ConstantInt>(Len.getScalarVal());
1719 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl());
1719 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl());
1720 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>((*IPC))->getDecl());
1720 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>((*IPC))->getDecl());
1765 auto VDecl = cast<VarDecl>(Helper->getDecl());
1784 (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable()));
1785 (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable()));
1807 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
1807 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
1815 CGF.EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
2145 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable()));
2147 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable()));
2206 CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedLowerBoundVariable()));
2211 CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedUpperBoundVariable()));
2317 const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable());
2318 const auto *IVDecl = cast<VarDecl>(IVExpr->getDecl());
2325 EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
2371 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable()));
2373 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable()));
2539 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable()));
2541 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable()));
2913 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
2913 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
2927 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
2927 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
2943 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
2943 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
2949 {cast<VarDecl>(cast<DeclRefExpr>(*ID)->getDecl()),
2949 {cast<VarDecl>(cast<DeclRefExpr>(*ID)->getDecl()),
2950 cast<DeclRefExpr>(*IRef)});
2999 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
2999 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3006 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3006 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3014 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3014 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3024 const auto *OrigVD = cast<VarDecl>(Pair.second->getDecl());
3237 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3237 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3350 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3350 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
3377 const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable());
3378 const auto *IVDecl = cast<VarDecl>(IVExpr->getDecl());
3385 EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
3419 *this, cast<DeclRefExpr>(
3424 *this, cast<DeclRefExpr>(
3429 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable()));
3431 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable()));
3871 const auto *BOUE = cast<BinaryOperator>(UE->IgnoreImpCasts());
3884 const auto *LHS = cast<OpaqueValueExpr>(BOUE->getLHS()->IgnoreImpCasts());
3885 const auto *RHS = cast<OpaqueValueExpr>(BOUE->getRHS()->IgnoreImpCasts());
3939 const auto *BOUE = cast<BinaryOperator>(UE->IgnoreImpCasts());
3946 const auto *LHS = cast<OpaqueValueExpr>(BOUE->getLHS()->IgnoreImpCasts());
3947 const auto *RHS = cast<OpaqueValueExpr>(BOUE->getRHS()->IgnoreImpCasts());
4170 CGM.getMangledName(GlobalDecl(cast<FunctionDecl>(CGF.CurFuncDecl)));
4640 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*OrigVarIt)->getDecl());
4640 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*OrigVarIt)->getDecl());
4641 const auto *InitVD = cast<VarDecl>(cast<DeclRefExpr>(*InitIt)->getDecl());
4641 const auto *InitVD = cast<VarDecl>(cast<DeclRefExpr>(*InitIt)->getDecl());
4642 const auto *PvtVD = cast<VarDecl>(cast<DeclRefExpr>(PvtVarIt)->getDecl());
4642 const auto *PvtVD = cast<VarDecl>(cast<DeclRefExpr>(PvtVarIt)->getDecl());
4651 const auto *ME = cast<MemberExpr>(OED->getInit());
4959 const auto *VDecl = cast<VarDecl>(Helper->getDecl());
5031 mapParam(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable()), *LBP,
5033 mapParam(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable()), *UBP,
5035 mapParam(CGF, cast<DeclRefExpr>(S.getStrideVariable()), *STP, LoopScope);
5036 mapParam(CGF, cast<DeclRefExpr>(S.getIsLastIterVariable()), *LIP,
5043 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
5043 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
5051 CGF.EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
5183 const auto *VD = dyn_cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
5202 cast<DeclRefExpr>(C->getLoopCounter(I))->getDecl())) {
tools/clang/lib/CodeGen/CGVTables.cpp 159 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
167 llvm::Function *BaseFn = cast<llvm::Function>(Callee);
243 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
296 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl());
490 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
520 llvm::Function *ThunkFn = cast<llvm::Function>(Thunk->stripPointerCasts());
602 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl();
666 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
681 llvm::Constant *fn = cast<llvm::Constant>(
691 if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) {
698 } else if (cast<CXXMethodDecl>(GD.getDecl())->isDeleted()) {
838 keyFunction = cast<CXXMethodDecl>(def);
1027 auto *D = cast<Decl>(DC);
tools/clang/lib/CodeGen/CGVTables.h 79 return *cast<ItaniumVTableContext>(VTContext);
83 return *cast<MicrosoftVTableContext>(VTContext);
tools/clang/lib/CodeGen/CodeGenFunction.cpp 392 llvm::PHINode *PN = cast<llvm::PHINode>(IndirectBranch->getAddress());
427 cast<llvm::AllocaInst>(NormalCleanupDest.getPointer()), DT);
948 if (D && isa<CXXMethodDecl>(D) && cast<CXXMethodDecl>(D)->isInstance()) {
950 const CXXMethodDecl *MD = cast<CXXMethodDecl>(D);
1087 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
1143 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
1196 cast<CXXMethodDecl>(FD)->isLambdaStaticInvoker()) {
1199 EmitLambdaStaticInvokeBody(cast<CXXMethodDecl>(FD));
1201 (cast<CXXMethodDecl>(FD)->isCopyAssignmentOperator() ||
1202 cast<CXXMethodDecl>(FD)->isMoveAssignmentOperator())) {
1623 if (cast<CXXRecordDecl>(RT->getDecl())->isEmpty())
1729 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts;
1764 assert(cast<ConstantArrayType>(arrayType)->getSize().getZExtValue()
1784 cast<ConstantArrayType>(arrayType)->getSize().getZExtValue();
1893 type = cast<AdjustedType>(ty)->getAdjustedType();
1897 type = cast<DecayedType>(ty)->getPointeeType();
1901 type = cast<PointerType>(ty)->getPointeeType();
1905 type = cast<BlockPointerType>(ty)->getPointeeType();
1910 type = cast<ReferenceType>(ty)->getPointeeType();
1914 type = cast<MemberPointerType>(ty)->getPointeeType();
1920 type = cast<ArrayType>(ty)->getElementType();
1925 const VariableArrayType *vat = cast<VariableArrayType>(ty);
1963 type = cast<FunctionType>(ty)->getReturnType();
1986 EmitIgnoredExpr(cast<TypeOfExprType>(ty)->getUnderlyingExpr());
1990 type = cast<AtomicType>(ty)->getValueType();
1994 type = cast<PipeType>(ty)->getElementType();
2344 cast<llvm::CallInst>(Assumption)->getCalledValue() ==
tools/clang/lib/CodeGen/CodeGenFunction.h 153 llvm::BasicBlock *block = cast<llvm::Instruction>(value)->getParent();
443 return cast<ObjCMethodDecl>(CalleeDecl)->param_size();
448 return *(cast<ObjCMethodDecl>(CalleeDecl)->param_begin() + I);
1169 const BinaryConditionalOperator *e = cast<BinaryConditionalOperator>(op);
1490 cast<CXXConstructorDecl>(GD.getDecl());
2315 const RecordDecl *RD = cast<RecordDecl>(RT->getDecl());
4392 auto alloca = cast<llvm::AllocaInst>(value.getPointer());
tools/clang/lib/CodeGen/CodeGenModule.cpp 236 auto *OldF = cast<llvm::Function>(Entry);
242 auto *CE = cast<llvm::ConstantExpr>(Replacement);
301 const auto *D = cast<ValueDecl>(GD.getDecl());
310 auto *Alias = cast<llvm::GlobalIndirectSymbol>(Entry);
331 AliaseeGV = cast<llvm::GlobalValue>(CE->getOperand(0));
333 AliaseeGV = cast<llvm::GlobalValue>(Aliasee);
1092 const auto *ND = cast<NamedDecl>(GD.getDecl());
1120 MangleCtx.mangleBlock(cast<DeclContext>(D), BD, Out);
1190 const auto *D = cast<FunctionDecl>(GD.getDecl());
1198 cast<CXXConstructorDecl>(D)->isInheritingConstructor() &&
1649 const auto *VD = cast<VarDecl>(D);
1778 if (isa<CXXMethodDecl>(FD) && !cast<CXXMethodDecl>(FD)->isStatic())
1802 const auto *FD = cast<FunctionDecl>(GD.getDecl());
1909 cast<llvm::Constant>(&*List[i]), CGM.Int8PtrTy);
2401 GlobalDecl(cast<FunctionDecl>(VD)),
2408 auto *F = cast<llvm::GlobalValue>(Aliasee);
2416 const auto *Global = cast<ValueDecl>(GD.getDecl());
2493 const auto *VD = cast<VarDecl>(Global);
2543 cast<VarDecl>(Global)->hasInit()) {
2696 const auto *F = cast<FunctionDecl>(GD.getDecl());
2712 if (HasNonDllImportDtor(cast<FieldDecl>(Member)->getType()))
2734 const auto *FD = cast<FunctionDecl>(GD.getDecl());
2749 const auto *D = cast<FunctionDecl>(OldGD.getDecl());
2757 GV = cast<llvm::GlobalValue>(GetOrCreateLLVMFunction(
2761 SetFunctionAttributes(OldGD, cast<llvm::Function>(GV),
2769 auto *Fn = cast<llvm::Function>(GV);
2790 const auto *D = cast<ValueDecl>(GD.getDecl());
2856 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
2881 Options.emplace_back(cast<llvm::Function>(Func),
2889 ResolverFunc = cast<llvm::Function>(
2893 ResolverFunc = cast<llvm::Function>(GetGlobalValue(getMangledName(GD)));
2911 const auto *FD = cast<FunctionDecl>(GD.getDecl());
2936 auto *ResolverFunc = cast<llvm::Function>(GetOrCreateLLVMFunction(
2978 Options.emplace_back(cast<llvm::Function>(Func), StringRef{}, Features);
3012 auto *IFunc = cast<llvm::GlobalIFunc>(GetOrCreateLLVMFunction(
3068 SetCommonAttributes(FD, cast<llvm::GlobalValue>(Resolver));
3168 FTy = cast<llvm::FunctionType>(Ty);
3216 getCXXABI().useThunkForDtorVariant(cast<CXXDestructorDecl>(D),
3244 for (const auto *FD = cast<FunctionDecl>(D)->getMostRecentDecl(); FD;
3276 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3557 auto *NewGV = cast<llvm::GlobalVariable>(
3600 cast<CXXMethodDecl>(D));
3610 return GetAddrOfGlobalVar(cast<VarDecl>(D), /*Ty=*/nullptr,
3689 setDSOLocal(cast<llvm::GlobalValue>(Ret->stripPointerCasts()));
3835 Linkage = CGM.getContext().GetGVALinkageForFunction(cast<FunctionDecl>(&D));
3964 GV = cast<llvm::GlobalVariable>(
3974 cast<llvm::GlobalValue>(Entry)->eraseFromParent();
4231 !isVarDeclStrongDefinition(Context, *this, cast<VarDecl>(D),
4326 auto *oldInvoke = cast<llvm::InvokeInst>(callSite);
4390 const auto *D = cast<FunctionDecl>(GD.getDecl());
4398 GV = cast<llvm::GlobalValue>(GetAddrOfFunction(GD, Ty, /*ForVTable=*/false,
4410 auto *Fn = cast<llvm::Function>(GV);
4435 const auto *D = cast<ValueDecl>(GD.getDecl());
4468 LT = getLLVMLinkageVarDefinition(cast<VarDecl>(GD.getDecl()),
4516 const auto *D = cast<ValueDecl>(GD.getDecl());
4706 auto *STy = cast<llvm::StructType>(getTypes().ConvertType(CFTy));
4859 auto *AType = cast<llvm::ArrayType>(getTypes().ConvertType(E->getType()));
5006 const auto *VD = cast<VarDecl>(E->getExtendingDecl());
5230 EmitGlobal(cast<FunctionDecl>(D));
5243 EmitGlobal(cast<VarDecl>(D));
5257 EmitDeclContext(cast<NamespaceDecl>(D));
5260 const auto *Spec = cast<ClassTemplateSpecializationDecl>(D);
5273 for (auto *I : cast<CXXRecordDecl>(D)->decls())
5302 getCXXABI().EmitCXXConstructors(cast<CXXConstructorDecl>(D));
5305 getCXXABI().EmitCXXDestructors(cast<CXXDestructorDecl>(D));
5320 auto *Proto = cast<ObjCProtocolDecl>(D);
5329 ObjCRuntime->GenerateCategory(cast<ObjCCategoryImplDecl>(D));
5333 auto *OMD = cast<ObjCImplementationDecl>(D);
5345 auto *OMD = cast<ObjCMethodDecl>(D);
5352 ObjCRuntime->RegisterAlias(cast<ObjCCompatibleAliasDecl>(D));
5356 const auto *PCD = cast<PragmaCommentDecl>(D);
5375 const auto *PDMD = cast<PragmaDetectMismatchDecl>(D);
5381 EmitLinkageSpec(cast<LinkageSpecDecl>(D));
5391 auto *AD = cast<FileScopeAsmDecl>(D);
5397 auto *Import = cast<ImportDecl>(D);
5440 EmitDeclContext(cast<ExportDecl>(D));
5444 EmitOMPThreadPrivateDecl(cast<OMPThreadPrivateDecl>(D));
5451 EmitOMPDeclareReduction(cast<OMPDeclareReductionDecl>(D));
5455 EmitOMPDeclareMapper(cast<OMPDeclareMapperDecl>(D));
5459 EmitOMPRequiresDecl(cast<OMPRequiresDecl>(D));
5482 if (!cast<FunctionDecl>(D)->doesThisDeclarationHaveABody())
5527 GlobalDecl GD(cast<FunctionDecl>(D));
5534 GlobalDecl GD(cast<CXXConstructorDecl>(D), Ctor_Base);
5541 GlobalDecl GD(cast<CXXDestructorDecl>(D), Dtor_Base);
5640 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D));
5750 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(RefExpr)->getDecl());
5750 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(RefExpr)->getDecl());
tools/clang/lib/CodeGen/CodeGenModule.h 975 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType,
tools/clang/lib/CodeGen/CodeGenPGO.cpp 285 const BinaryOperator *BO = cast<BinaryOperator>(S);
329 const UnaryOperator *UO = cast<UnaryOperator>(S);
tools/clang/lib/CodeGen/CodeGenTBAA.cpp 165 return getTypeInfo(cast<ArrayType>(Ty)->getElementType());
tools/clang/lib/CodeGen/CodeGenTypes.cpp 264 const RecordDecl *RD = cast<RecordDecl>(TD);
314 const FunctionType *FT = cast<FunctionType>(QFT.getTypePtr());
351 const FunctionNoProtoType *FNPT = cast<FunctionNoProtoType>(FT);
409 switch (cast<BuiltinType>(Ty)->getKind()) {
523 auto *BT = cast<BuiltinType>(Ty);
544 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType());
550 const ReferenceType *RTy = cast<ReferenceType>(Ty);
558 const PointerType *PTy = cast<PointerType>(Ty);
569 const VariableArrayType *A = cast<VariableArrayType>(Ty);
578 const IncompleteArrayType *A = cast<IncompleteArrayType>(Ty);
592 const ConstantArrayType *A = cast<ConstantArrayType>(Ty);
607 const VectorType *VT = cast<VectorType>(Ty);
617 ResultType = ConvertType(cast<ObjCObjectType>(Ty)->getBaseType());
624 llvm::Type *&T = InterfaceTypes[cast<ObjCInterfaceType>(Ty)];
636 ConvertTypeForMem(cast<ObjCObjectPointerType>(Ty)->getPointeeType());
642 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl();
653 const QualType FTy = cast<BlockPointerType>(Ty)->getPointeeType();
663 auto *MPTy = cast<MemberPointerType>(Ty);
674 QualType valueType = cast<AtomicType>(Ty)->getValueType();
692 ResultType = CGM.getOpenCLRuntime().getPipeType(cast<PipeType>(Ty));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 584 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
843 return EmitMemberPointerConversion(E, cast<llvm::Constant>(src));
871 uint64_t offset = cast<llvm::ConstantInt>(adj)->getZExtValue();
919 uint64_t offset = cast<llvm::ConstantInt>(adj)->getZExtValue();
1181 cast<CXXRecordDecl>(ElementType->castAs<RecordType>()->getDecl());
1266 CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordTy->getDecl());
1384 cast<CXXRecordDecl>(SrcRecordTy->castAs<RecordType>()->getDecl());
1450 cast<CXXRecordDecl>(SrcRecordTy->castAs<RecordType>()->getDecl());
1528 cast<CXXMethodDecl>(GD.getDecl())->getParent()->getNumVBases() != 0) {
1555 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
1666 isa<NamespaceDecl>(DC) && cast<NamespaceDecl>(DC)->getIdentifier() &&
1667 cast<NamespaceDecl>(DC)->getIdentifier()->isStr("__cxxabiv1") &&
1780 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl());
2381 auto *GV = cast<llvm::GlobalValue>(handle->stripPointerCasts());
2402 cast<llvm::Constant>(dtor.getCallee()), dtorTy),
2518 return cast<llvm::Function>(V);
2610 cast<llvm::GlobalVariable>(CGM.GetGlobalValue(CGM.getMangledName(VD)));
2665 cast<llvm::Function>(Init));
2684 cast<llvm::Function>(cast<llvm::GlobalAlias>(Init)->getAliasee());
2684 cast<llvm::Function>(cast<llvm::GlobalAlias>(Init)->getAliasee());
2738 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
3051 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RecordTy->getDecl());
3108 const RecordType *ClassType = cast<RecordType>(MemberPointerTy->getClass());
3139 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
3212 cast<CXXRecordDecl>(cast<RecordType>(Ty)->getDecl());
3212 cast<CXXRecordDecl>(cast<RecordType>(Ty)->getDecl());
3227 Ty = cast<ObjCObjectType>(Ty)->getBaseType().getTypePtr();
3239 if (cast<ObjCInterfaceType>(Ty)->getDecl()->getSuperClass()) {
3260 CGM.setDSOLocal(cast<llvm::GlobalValue>(VTable->stripPointerCasts()));
3306 const CXXRecordDecl *RD = cast<CXXRecordDecl>(Record->getDecl());
3456 cast<CXXRecordDecl>(cast<RecordType>(Ty)->getDecl());
3560 ObjCInterfaceDecl *Class = cast<ObjCInterfaceType>(T)->getDecl();
3603 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
3702 cast<CXXRecordDecl>(Base.getType()->castAs<RecordType>()->getDecl());
3792 const RecordType *ClassType = cast<RecordType>(Ty->getClass());
3898 const auto *CD = cast<CXXConstructorDecl>(MD);
3931 auto *Aliasee = cast<llvm::GlobalValue>(CGM.GetAddrOfGlobal(TargetDecl));
3955 auto *MD = cast<CXXMethodDecl>(GD.getDecl());
3957 const CXXDestructorDecl *DD = CD ? nullptr : cast<CXXDestructorDecl>(MD);
4141 cast<llvm::PointerType>(LLVMCatchTy)->getElementType();
4316 cast<llvm::Function>(fnRef.getCallee()->stripPointerCasts());
4379 NormalCleanup, cast<llvm::CatchPadInst>(CGF.CurrentFuncletPad));
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 366 getContext().GetGVALinkageForFunction(cast<FunctionDecl>(GD.getDecl()));
872 cast<llvm::CatchPadInst>(CatchPadBB->getFirstNonPHI());
1346 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
1394 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
1452 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
1495 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
1499 unsigned AS = cast<llvm::PointerType>(This->getType())->getAddressSpace();
1788 ? cast<llvm::GlobalVariable>(
1789 cast<llvm::GlobalAlias>(VFTable)->getBaseObject())
1790 : cast<llvm::GlobalVariable>(VFTable);
1867 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl());
1978 return cast<llvm::Function>(GV);
2115 cast<llvm::ArrayType>(cast<llvm::PointerType>(GV->getType())
2115 cast<llvm::ArrayType>(cast<llvm::PointerType>(GV->getType())
2318 llvm::GlobalVariable *GV = cast<llvm::GlobalVariable>(
2734 const CXXRecordDecl *SrcRD = cast<CXXRecordDecl>(MPD->getDeclContext());
2852 llvm::StructType *LType = cast<llvm::StructType>(L->getType());
3088 return EmitMemberPointerConversion(E, cast<llvm::Constant>(Src));
3230 Mapping->getAggregateElement(cast<llvm::Constant>(VBIndex));
3317 auto *Dst = cast<llvm::Constant>(EmitNonNullMemberPointerConversion(
3862 auto *dtor = cast<CXXDestructorDecl>(GD.getDecl());
3895 return cast<llvm::Function>(GV);
4215 cast<llvm::ConstantInt>(CTA->getInitializer()->getAggregateElement(0U))
tools/clang/lib/CodeGen/PatternInit.cpp 36 unsigned BitWidth = cast<llvm::IntegerType>(
45 auto *PtrTy = cast<llvm::PointerType>(
67 auto *ArrTy = cast<llvm::ArrayType>(Ty);
80 auto *StructTy = cast<llvm::StructType>(Ty);
tools/clang/lib/CodeGen/SwiftCallingConv.cpp 384 auto vecTy = cast<llvm::VectorType>(Entries[index].Type);
tools/clang/lib/CodeGen/TargetInfo.cpp 770 llvm::Function *Fn = cast<llvm::Function>(GV);
776 llvm::Function *Fn = cast<llvm::Function>(GV);
784 llvm::Function *Fn = cast<llvm::Function>(GV);
927 cast<llvm::VectorType>(IRType)->getElementType()->isIntegerTy() &&
938 if (cast<llvm::VectorType>(Ty)->getBitWidth() != 64) {
1986 llvm::Function *Fn = cast<llvm::Function>(GV);
1990 llvm::Function *Fn = cast<llvm::Function>(GV);
2358 llvm::Function *Fn = cast<llvm::Function>(GV);
2362 llvm::Function *Fn = cast<llvm::Function>(GV);
2469 llvm::Function *Fn = cast<llvm::Function>(GV);
2473 llvm::Function *Fn = cast<llvm::Function>(GV);
2813 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
3075 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
3202 cast<llvm::IntegerType>(IRType)->getBitWidth();
3796 llvm::StructType *ST = cast<llvm::StructType>(AI.getCoerceToType());
5058 llvm::Function *Fn = cast<llvm::Function>(GV);
5729 llvm::Function *Fn = cast<llvm::Function>(GV);
6469 llvm::Function *F = cast<llvm::Function>(GV);
6916 llvm::Function *F = cast<llvm::Function>(GV);
6969 llvm::Function *Fn = cast<llvm::Function>(GV);
7352 auto *Fn = cast<llvm::Function>(GV);
7387 llvm::Function *F = cast<llvm::Function>(GV);
7955 llvm::Function *F = cast<llvm::Function>(GV);
8263 addStruct(ElemOffset, cast<llvm::StructType>(ElemTy));
9686 auto *Fn = cast<llvm::Function>(GV);
tools/clang/lib/CodeGen/VarBypassDetector.cpp 70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) {
75 if (const VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) {
87 const DeclStmt *DS = cast<DeclStmt>(S);
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp 524 auto *ToDecl = cast<T>(*ToDeclOrError);
tools/clang/lib/Driver/Driver.cpp 1480 const JobAction *JA = cast<JobAction>(&FailingCommand->getSource());
2410 auto *IA = cast<InputAction>(UA->getInputs().back());
2850 auto *IA = cast<InputAction>(UA->getInputs().back());
4147 const JobAction *JA = cast<JobAction>(A);
4160 cast<OffloadAction>(OA)->doOnEachDependence(
tools/clang/lib/Frontend/ASTConsumers.cpp 75 return cast<NamedDecl>(D)->getQualifiedNameAsString();
tools/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp 164 HandleDecls(cast<NamespaceDecl>(ND)->decls(), Symbols, RDO);
167 HandleDecls(cast<CXXRecordDecl>(ND)->decls(), Symbols, RDO);
170 HandleDecls(cast<ClassTemplateSpecializationDecl>(ND)->decls(), Symbols,
174 HandleTemplateSpecializations(*cast<ClassTemplateDecl>(ND), Symbols, RDO);
177 HandleTemplateSpecializations(*cast<FunctionTemplateDecl>(ND), Symbols,
243 *S.LateParsedTemplateMap.find(cast<FunctionDecl>(FD))->second;
279 auto VD = cast<ValueDecl>(E.first)->getType();
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 753 !cast<ObjCInterfaceDecl>(*DI)->isThisDeclarationADefinition() &&
778 !cast<ObjCProtocolDecl>(*DI)->isThisDeclarationADefinition() &&
859 auto *CDecl = cast<ObjCContainerDecl>(D->getDeclContext());
1085 RewriteForwardClassEpilogue(cast<ObjCInterfaceDecl>(*I), typedefString);
1092 ObjCInterfaceDecl *ForwardDecl = cast<ObjCInterfaceDecl>(D[i]);
1100 RewriteForwardClassEpilogue(cast<ObjCInterfaceDecl>(D[0]), typedefString);
1414 cast<ObjCMessageExpr>(PseudoOp->getSemanticExpr(
1428 Base = cast<OpaqueValueExpr>(Base)->getSourceExpr();
1429 Base = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Base));
1436 Arg = cast<OpaqueValueExpr>(Arg)->getSourceExpr();
1437 Arg = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Arg));
1502 cast<ObjCMessageExpr>(PseudoOp->getResultExpr()->IgnoreImplicit());
1513 Base = cast<OpaqueValueExpr>(Base)->getSourceExpr();
1514 Base = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Base));
1520 Arg = cast<OpaqueValueExpr>(Arg)->getSourceExpr();
1521 Arg = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Arg));
1697 NamedDecl* D = cast<NamedDecl>(DS->getSingleDecl());
1698 QualType ElementType = cast<ValueDecl>(D)->getType();
1712 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
2277 const TypeOfExprType *TypeOfExprTypePtr = cast<TypeOfExprType>(TypePtr);
4059 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT);
4480 InnerContexts.insert(cast<DeclContext>(CBE->getBlockDecl()));
4494 if (VarDecl *Var = cast<VarDecl>(DRE->getDecl()))
4573 SourceLocation(), cast<Expr>(LHSStmt),
4574 SourceLocation(), cast<Expr>(RHSStmt),
4729 const TypeOfExprType *TypeOfExprTypePtr = cast<TypeOfExprType>(TypePtr);
5446 S = cast<OpaqueValueExpr>(S)->getSourceExpr();
5681 FunctionDecl *FD = cast<FunctionDecl>(D);
5714 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
5733 ObjCImplementationDecl *CI = cast<ObjCImplementationDecl>(D);
5738 ObjCCategoryImplDecl *CI = cast<ObjCCategoryImplDecl>(D);
5743 VarDecl *VD = cast<VarDecl>(D);
5792 RecordDecl *RD = cast<RecordDecl>(D);
7444 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr));
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 685 !cast<ObjCInterfaceDecl>(*DI)->isThisDeclarationADefinition() &&
704 !cast<ObjCProtocolDecl>(*DI)->isThisDeclarationADefinition() &&
913 ObjCInterfaceDecl *ForwardDecl = cast<ObjCInterfaceDecl>(*I);
925 RewriteForwardClassEpilogue(cast<ObjCInterfaceDecl>(*I), typedefString);
931 ObjCInterfaceDecl *ForwardDecl = cast<ObjCInterfaceDecl>(D[i]);
939 RewriteForwardClassEpilogue(cast<ObjCInterfaceDecl>(D[0]), typedefString);
1233 cast<ObjCMessageExpr>(PseudoOp->getSemanticExpr(
1246 Base = cast<OpaqueValueExpr>(Base)->getSourceExpr();
1247 Base = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Base));
1251 RHS = cast<BinaryOperator>(PseudoOp->getSyntacticForm())->getRHS();
1252 RHS = cast<OpaqueValueExpr>(RHS)->getSourceExpr();
1253 RHS = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(RHS));
1316 cast<ObjCMessageExpr>(PseudoOp->getResultExpr()->IgnoreImplicit());
1327 Base = cast<OpaqueValueExpr>(Base)->getSourceExpr();
1328 Base = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Base));
1488 NamedDecl* D = cast<NamedDecl>(DS->getSingleDecl());
1489 QualType ElementType = cast<ValueDecl>(D)->getType();
1503 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
2189 const TypeOfExprType *TypeOfExprTypePtr = cast<TypeOfExprType>(TypePtr);
3269 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT);
3667 InnerContexts.insert(cast<DeclContext>(CBE->getBlockDecl()));
3681 if (VarDecl *Var = cast<VarDecl>(DRE->getDecl()))
3741 SourceLocation(), cast<Expr>(LHSStmt),
3742 SourceLocation(), cast<Expr>(RHSStmt),
3898 const TypeOfExprType *TypeOfExprTypePtr = cast<TypeOfExprType>(TypePtr);
4779 FunctionDecl *FD = cast<FunctionDecl>(D);
4813 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
4831 ObjCImplementationDecl *CI = cast<ObjCImplementationDecl>(D);
4836 ObjCCategoryImplDecl *CI = cast<ObjCCategoryImplDecl>(D);
4841 VarDecl *VD = cast<VarDecl>(D);
4888 RecordDecl *RD = cast<RecordDecl>(D);
5797 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr));
tools/clang/lib/Index/CommentToXML.cpp 108 const ParagraphComment *PC = cast<ParagraphComment>(Child);
119 const BlockCommandComment *BCC = cast<BlockCommandComment>(Child);
142 const ParamCommandComment *PCC = cast<ParamCommandComment>(Child);
154 const TParamCommandComment *TPCC = cast<TParamCommandComment>(Child);
166 MiscBlocks.push_back(cast<BlockCommandComment>(Child));
170 const VerbatimLineComment *VLC = cast<VerbatimLineComment>(Child);
tools/clang/lib/Index/IndexBody.cpp 257 IsImplicitProperty(cast<PseudoObjectExpr>(Containing))))
tools/clang/lib/Index/IndexDecl.cpp 163 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()),
217 const auto *DFD = cast<FunctionDecl>(D);
447 cast<ObjCPropertyImplDecl>(I)->getLocation().isValid())
517 auto *Container = cast<ObjCImplDecl>(D->getDeclContext());
711 IndexCtx.indexTypeSourceInfo(Ty, cast<NamedDecl>(D->getDeclContext()));
743 return indexDeclContext(cast<DeclContext>(D));
tools/clang/lib/Index/IndexSymbol.cpp 194 ClsD = cast<ObjCImplementationDecl>(D)->getClassInterface();
211 ClsD = cast<ObjCCategoryImplDecl>(D)->getClassInterface();
217 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
257 auto *CD = cast<CXXConstructorDecl>(D);
273 const CXXMethodDecl *MD = cast<CXXMethodDecl>(D);
291 cast<FunctionTemplateDecl>(D)->getTemplatedDecl())) {
tools/clang/lib/Index/IndexingContext.cpp 66 D = cast<ObjCPropertyImplDecl>(D)->getPropertyDecl();
68 return handleDeclOccurrence(D, Loc, /*IsRef=*/false, cast<Decl>(DC),
219 const auto *ND = cast<NamedDecl>(D);
273 for (;; Parent = cast<Decl>(Parent->getDeclContext())) {
360 if (!isa<NamedDecl>(D) || shouldSkipNamelessDecl(cast<NamedDecl>(D)))
tools/clang/lib/Index/USRGeneration.cpp 426 const ObjCCategoryDecl *CD = cast<ObjCCategoryDecl>(D);
450 const ObjCCategoryImplDecl *CD = cast<ObjCCategoryImplDecl>(D);
466 const ObjCProtocolDecl *PD = cast<ObjCProtocolDecl>(D);
479 Visit(cast<Decl>(D->getDeclContext()));
905 if (cast<TemplateTypeParmDecl>(*P)->isParameterPack())
919 TemplateTemplateParmDecl *TTP = cast<TemplateTemplateParmDecl>(*P);
tools/clang/lib/Lex/MacroInfo.cpp 192 VisibilityMacroDirective *VisMD = cast<VisibilityMacroDirective>(MD);
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 306 auto Param = cast<ParmVarDecl>(LM.DefaultArgs[I].Param);
373 FunctionDecl *Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl();
413 Method = cast<CXXMethodDecl>(FunTmpl->getTemplatedDecl());
415 Method = cast<CXXMethodDecl>(LM.Method);
549 cast<FunctionTemplateDecl>(LM.D)->getTemplateParameters()->getDepth()
tools/clang/lib/Parse/ParseDecl.cpp 475 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);
tools/clang/lib/Parse/ParseDeclCXX.cpp 2172 auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param);
3092 DiagnoseUnexpectedNamespace(cast<NamedDecl>(TagDecl));
3192 ? cast<NamedDecl>(TagDecl)->getQualifiedNameAsString()
4277 cast<StringLiteral>(Actions.ActOnStringLiteral(Toks, nullptr).get());
tools/clang/lib/Parse/ParsePragma.cpp 790 StringLiteral *SegmentName = cast<StringLiteral>(StringResult.get());
912 SegmentName = cast<StringLiteral>(StringResult.get());
969 cast<StringLiteral>(Actions.ActOnStringLiteral(Toks, nullptr).get());
976 SegmentName = cast<StringLiteral>(StringResult.get());
tools/clang/lib/Parse/ParseStmtAsm.cpp 734 const auto *SL = cast<StringLiteral>(AsmString.get());
tools/clang/lib/Parse/ParseTemplate.cpp 1486 getCurScope(), cast<Decl>(CDC.getDC()));
1527 cast<FunctionTemplateDecl>(LPT.D)
tools/clang/lib/Parse/Parser.cpp 808 const auto *SL = cast<StringLiteral>(Result.get());
1479 const auto *SL = cast<StringLiteral>(AsmString.get());
tools/clang/lib/Rewrite/DeltaTree.cpp 165 delete cast<DeltaTreeInteriorNode>(this);
231 auto *IN = cast<DeltaTreeInteriorNode>(this);
267 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->LHS);
269 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->RHS);
tools/clang/lib/Rewrite/RewriteRope.cpp 624 delete cast<RopePieceBTreeInterior>(this);
637 return cast<RopePieceBTreeInterior>(this)->split(Offset);
651 return cast<RopePieceBTreeInterior>(this)->insert(Offset, R);
660 return cast<RopePieceBTreeInterior>(this)->erase(Offset, NumBytes);
680 CurNode = cast<RopePieceBTreeLeaf>(N);
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 869 const IfStmt *IS = cast<IfStmt>(Term);
879 const ConditionalOperator *CO = cast<ConditionalOperator>(Term);
889 const BinaryOperator *BO = cast<BinaryOperator>(Term);
911 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange();
918 Range = cast<ForStmt>(Term)->getCond()->getSourceRange();
934 Range = cast<CXXForRangeStmt>(Term)->getRangeInit()->getSourceRange();
941 Range = cast<DoStmt>(Term)->getCond()->getSourceRange();
950 Range = cast<CaseStmt>(Term)->getLHS()->getSourceRange();
955 Range = cast<DefaultStmt>(Term)->getDefaultLoc();
1012 const BlockExpr *BE = cast<BlockExpr>(Use.getUser());
1331 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx))
2039 if (cast<DeclContext>(D)->isDependentContext())
2141 cast<CXXMethodDecl>(D)->getOverloadedOperator() == OO_Call &&
2142 cast<CXXMethodDecl>(D)->getParent()->isLambda())
2192 runUninitializedVariablesAnalysis(*cast<DeclContext>(D), *cfg, AC,
tools/clang/lib/Sema/CodeCompleteConsumer.cpp 409 OS << cast<NamedDecl>(CurDC)->getName();
666 AR = std::max(AR, cast<Decl>(D->getDeclContext())->getAvailability());
tools/clang/lib/Sema/DeclSpec.cpp 430 return cast<TagDecl>(getRepAsDecl())->isCompleteDefinition();
tools/clang/lib/Sema/JumpDiagnostics.cpp 297 IndirectJumpTargets.push_back(cast<AddrLabelExpr>(S)->getLabel());
301 auto *CS = cast<ObjCForCollectionStmt>(S);
315 if (cast<IndirectGotoStmt>(S)->getConstantTarget()) {
328 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) {
332 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) {
358 IfStmt *IS = cast<IfStmt>(S);
386 CXXTryStmt *TS = cast<CXXTryStmt>(S);
411 SEHTryStmt *TS = cast<SEHTryStmt>(S);
445 DeclStmt *DS = cast<DeclStmt>(S);
456 ObjCAtTryStmt *AT = cast<ObjCAtTryStmt>(S);
496 ObjCAtSynchronizedStmt *AS = cast<ObjCAtSynchronizedStmt>(S);
514 ObjCAutoreleasePoolStmt *AS = cast<ObjCAutoreleasePoolStmt>(S);
530 ExprWithCleanups *EWC = cast<ExprWithCleanups>(S);
544 MaterializeTemporaryExpr *MTE = cast<MaterializeTemporaryExpr>(S);
629 SwitchStmt *SS = cast<SwitchStmt>(Jump);
tools/clang/lib/Sema/ScopeInfo.cpp 76 D = cast<DeclRefExpr>(E)->getDecl();
80 const MemberExpr *ME = cast<MemberExpr>(E);
86 const ObjCIvarRefExpr *IE = cast<ObjCIvarRefExpr>(E);
92 const PseudoObjectExpr *POE = cast<PseudoObjectExpr>(E);
120 const OpaqueValueExpr *OVE = cast<OpaqueValueExpr>(PropE->getBase());
236 Callback(cast<VarDecl>(DRE->getFoundDecl()), E);
238 Callback(cast<VarDecl>(ME->getMemberDecl()), E);
tools/clang/lib/Sema/Sema.cpp 641 return cast<VarDecl>(ND)->isExternC();
689 auto *VD = cast<VarDecl>(ND);
719 ValueDecl *VD = cast<ValueDecl>(Undef.first);
749 assert(cast<VarDecl>(VD)->getMostRecentDecl()->isInline() &&
1182 const VarDecl *DiagD = cast<VarDecl>(*I)->getDefinition();
1184 DiagD = cast<VarDecl>(*I);
1258 cast<CXXMethodDecl>(DC)->getOverloadedOperator() == OO_Call &&
1259 cast<CXXRecordDecl>(DC->getParent())->isLambda()) {
1286 return cast<NamedDecl>(DC);
2075 const FunctionDecl *OverloadDecl = cast<FunctionDecl>(*It);
tools/clang/lib/Sema/SemaAccess.cpp 71 DC = cast<EnumDecl>(DC)->getDeclContext();
73 CXXRecordDecl *DeclaringClass = cast<CXXRecordDecl>(DC);
75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext());
107 CXXRecordDecl *Record = cast<CXXRecordDecl>(DC);
111 FunctionDecl *Function = cast<FunctionDecl>(DC);
216 InstanceContext = (IC ? cast<CXXRecordDecl>(IC)->getCanonicalDecl()
230 namingClass = cast<CXXRecordDecl>(namingClass->getParent());
302 RD = cast<CXXRecordDecl>(RT->getDecl());
426 return MatchesFriend(S, EC, cast<CXXRecordDecl>(RT->getDecl()));
453 CTD = cast<ClassTemplateSpecializationDecl>(Record)
551 = cast<NamedDecl>(FriendD->getFriendDecl()->getCanonicalDecl());
556 return MatchesFriend(S, EC, cast<ClassTemplateDecl>(Friend));
559 return MatchesFriend(S, EC, cast<FunctionTemplateDecl>(Friend));
562 return MatchesFriend(S, EC, cast<CXXRecordDecl>(Friend));
565 return MatchesFriend(S, EC, cast<FunctionDecl>(Friend));
655 RD = cast<CXXRecordDecl>(RT->getDecl());
1075 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) {
1112 if (isa<RecordDecl>(D) && cast<RecordDecl>(D)->isInjectedClassName())
1128 ImmediateChild = cast<Decl>(DC);
1479 DC = cast<DeclContext>(TD->getTemplatedDecl());
1503 CXXRecordDecl *NamingClass = cast<CXXRecordDecl>(NamingD);
1504 NamedDecl *TargetDecl = cast<NamedDecl>(TargetD);
1522 cast<CXXRecordDecl>(TargetD),
1523 cast<CXXRecordDecl>(NamingD),
1634 const FieldDecl *Field = cast<FieldDecl>(Entity.getDecl());
1675 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent();
1756 CXXRecordDecl *NamingClass = cast<CXXRecordDecl>(RT->getDecl());
1778 CXXMethodDecl *method = cast<CXXMethodDecl>(target->getAsFunction());
1781 cast<CXXRecordDecl>(target->getDeclContext()),
1837 BaseD = cast<CXXRecordDecl>(Base->castAs<RecordType>()->getDecl());
1838 DerivedD = cast<CXXRecordDecl>(Derived->castAs<RecordType>()->getDecl());
tools/clang/lib/Sema/SemaCUDA.cpp 310 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(BaseType->getDecl());
353 CXXRecordDecl *FieldRecDecl = cast<CXXRecordDecl>(FieldType->getDecl());
618 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) ==
647 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) ==
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 34 CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordTy->getDecl());
41 return cast<InjectedClassNameType>(Ty)->getDecl();
289 RD = cast<CXXRecordDecl>(S->getEntity());
330 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD));
569 (!cast<CXXRecordDecl>(LookupCtx)->hasDefinition() ||
570 !cast<CXXRecordDecl>(LookupCtx)->hasAnyDependentBases()))) {
685 Context.getTypeDeclType(cast<TypeDecl>(OuterDecl)),
686 Context.getTypeDeclType(cast<TypeDecl>(SD))))) {
724 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl()));
tools/clang/lib/Sema/SemaCast.cpp 839 if (!cast<CXXRecordDecl>(SrcDecl)->isPolymorphic()) {
1545 CXXMethodDecl *M = cast<CXXMethodDecl>(Fn);
2376 const PointerType *DestPPtr = cast<PointerType>(DestPtr);
2377 const PointerType *SrcPPtr = cast<PointerType>(SrcPtr);
tools/clang/lib/Sema/SemaChecking.cpp 264 auto CE = cast<CallExpr>(Call);
468 auto *DRE = cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
502 BlockDecl *BD = cast<BlockExpr>(BlockArg)->getBlockDecl();
505 ErrorLoc = cast<DeclRefExpr>(BlockArg)->getBeginLoc();
763 getOpenCLArgAccess(cast<DeclRefExpr>(Arg0)->getDecl());
1744 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
3378 cast<StringLiteral>(Arg->IgnoreParenImpCasts())->getString();
3398 cast<StringLiteral>(Arg->IgnoreParenImpCasts())->getString();
4245 parms = cast<ObjCMethodDecl>(FDecl)->parameters();
4331 ? cast<FunctionDecl>(FDecl)->getNumParams()
4333 ? cast<ObjCMethodDecl>(FDecl)->param_size()
4394 cast<CXXMemberCallExpr>(TheCall)->getImplicitObjectArgument();
4515 CallExpr *TheCall = cast<CallExpr>(TheCallResult.get());
4516 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
5027 DeclRefExpr *DRE = cast<DeclRefExpr>(Callee->IgnoreParenCasts());
5028 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
5394 cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
5395 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
6015 << cast<FunctionDecl>(TheCall->getCalleeDecl())->getIdentifier();
6098 cast<FunctionDecl>(TheCall->getCalleeDecl())->getBuiltinID();
6181 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
6182 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
6527 StringRef Reg = cast<StringLiteral>(Arg->IgnoreParenImpCasts())->getString();
6825 cast<AbstractConditionalOperator>(E);
6868 E = cast<ImplicitCastExpr>(E)->getSubExpr();
6872 if (const Expr *src = cast<OpaqueValueExpr>(E)->getSourceExpr()) {
6885 const DeclRefExpr *DR = cast<DeclRefExpr>(E);
6958 const CallExpr *CE = cast<CallExpr>(E);
6994 const auto *ME = cast<ObjCMessageExpr>(E);
7029 StrE = cast<StringLiteral>(E);
7048 const BinaryOperator *BinOp = cast<BinaryOperator>(E);
7079 const UnaryOperator *UnaOp = cast<UnaryOperator>(E);
9532 return isa<IntegerLiteral>(E) && cast<IntegerLiteral>(E)->getValue() == 0;
10112 const BuiltinType *BT = cast<BuiltinType>(T);
10135 const BuiltinType *BT = cast<BuiltinType>(T);
11224 const auto *RBT = cast<CompoundAssignOperator>(E)
11623 Source = cast<VectorType>(Source)->getElementType().getTypePtr();
11624 Target = cast<VectorType>(Target)->getElementType().getTypePtr();
11641 Source = cast<ComplexType>(Source)->getElementType().getTypePtr();
11642 Target = cast<ComplexType>(Target)->getElementType().getTypePtr();
11703 CallExpr *CEx = cast<CallExpr>(E);
11955 EnumDecl *Enum = cast<EnumDecl>(ECD->getDeclContext());
11982 return CheckConditionalOperator(S, cast<ConditionalOperator>(E), CC, T);
12059 ConditionalOperator *CO = cast<ConditionalOperator>(E);
13375 const ArraySubscriptExpr *ASE = cast<ArraySubscriptExpr>(expr);
13382 expr = cast<MemberExpr>(expr)->getBase();
13386 const OMPArraySectionExpr *ASE = cast<OMPArraySectionExpr>(expr);
13394 const UnaryOperator *UO = cast<UnaryOperator>(expr);
13409 const ConditionalOperator *cond = cast<ConditionalOperator>(expr);
13417 const auto *OCE = cast<CXXOperatorCallExpr>(expr);
13531 e = const_cast<Expr*>(cast<OpaqueValueExpr>(pre->getBase())
14255 const CXXRecordDecl *D2CXX = cast<CXXRecordDecl>(RD2);
14390 const UnaryOperator *UO = cast<UnaryOperator>(TypeExpr);
14399 const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr);
14405 const IntegerLiteral *IL = cast<IntegerLiteral>(TypeExpr);
14417 cast<AbstractConditionalOperator>(TypeExpr);
14431 const BinaryOperator *BO = cast<BinaryOperator>(TypeExpr);
14652 cast<UnaryOperator>(E)->getOpcode() == UO_AddrOf) {
14653 auto *Op = cast<UnaryOperator>(E)->getSubExpr()->IgnoreParens();
tools/clang/lib/Sema/SemaCodeComplete.cpp 770 cast<CXXRecordDecl>(ND)->isInjectedClassName()))) {
894 T = C.getTypeDeclType(cast<EnumDecl>(Enumerator->getDeclContext()));
1327 *cast<CXXMethodDecl>(Incumbent.Declaration),
2611 T = Context.getTypeDeclType(cast<TypeDecl>(Enumerator->getDeclContext()));
2783 cast<ObjCMethodDecl>(Param->getDeclContext())->isPropertyAccessor()) {
2784 if (const auto *PD = cast<ObjCMethodDecl>(Param->getDeclContext())
2981 Template = cast<TemplateDecl>(Template->getCanonicalDecl());
3011 TemplateTemplateParmDecl *TTP = cast<TemplateTemplateParmDecl>(*P);
3174 Record = cast<CXXRecordDecl>(RecordTy->getDecl());
3396 cast<TemplateTemplateParmDecl>(Param)->hasDefaultArgument();
3744 return cast<ObjCMethodDecl>(D)->isInstanceMethod()
3802 switch (cast<ObjCPropertyImplDecl>(D)->getPropertyImplementation()) {
5584 cast<FieldDecl>(Initializers[I]->getAnyMember()));
5690 if (!InitializedFields.insert(cast<FieldDecl>(Field->getCanonicalDecl()))
6709 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
7316 cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl(),
7345 Class = cast<ObjCCategoryImplDecl>(Container)
tools/clang/lib/Sema/SemaCoroutine.cpp 289 cast<UnresolvedLookupExpr>(R.get()));
425 CallExpr *AwaitReady = cast<CallExpr>(Calls.Results[ACT::ACT_Ready]);
440 CallExpr *AwaitSuspend = cast<CallExpr>(Calls.Results[ACT::ACT_Suspend]);
482 auto *FD = cast<FunctionDecl>(CurContext);
533 cast<VarDecl>(cast<DeclStmt>(Move->second)->getSingleDecl());
533 cast<VarDecl>(cast<DeclStmt>(Move->second)->getSingleDecl());
613 auto *Fn = cast<FunctionDecl>(CurContext);
633 return cast<Stmt>(Suspend.get());
709 cast<UnresolvedLookupExpr>(Lookup.get()));
1045 this->InitialSuspend = cast<Expr>(Fn.CoroutineSuspends.first);
1046 this->FinalSuspend = cast<Expr>(Fn.CoroutineSuspends.second);
1489 if (cast<clang::ReturnStmt>(ReturnStmt.get())->getNRVOCandidate() == GroDecl)
1526 auto *FD = cast<FunctionDecl>(CurContext);
tools/clang/lib/Sema/SemaDecl.cpp 98 RD = cast<CXXRecordDecl>(RD->getDeclContext());
476 declaresSameEntity(LookupRD, cast<Decl>(FoundRD->getParent())))
648 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext);
887 return NameClassification::NonType(cast<NamedDecl>(Ivar.get()));
1089 auto *TD = cast<TemplateDecl>(getAsTemplateNameDecl(
1157 TemplateName(cast<TemplateDecl>(FirstDecl)));
1309 CurContext = cast<TagDecl>(D)->getDefinition();
1445 cast<FunctionDecl>(D)->isFunctionTemplateSpecialization())
1463 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) {
1857 if (isa<VarDecl>(D) && cast<VarDecl>(D)->isExceptionVariable())
1892 NamedDecl *D = cast<NamedDecl>(TmpD);
2295 auto *ED = cast<EnumConstantDecl>(D);
2386 if (Ann->getAnnotation() == cast<AnnotateAttr>(i)->getAnnotation())
2392 return OA->getOwnKind() == cast<OwnershipAttr>(i)->getOwnKind();
2465 Ty = S.Context.getTagDeclType(cast<TagDecl>(New));
2585 NewAttr = cast<InheritableAttr>(Attr->clone(S.Context));
2591 S.Consumer.AssignInheritanceModel(cast<CXXRecordDecl>(D));
2636 S.CheckForFunctionRedefinition(FD, cast<FunctionDecl>(Def), &SkipBody);
2645 VarDecl *VD = cast<VarDecl>(New);
2646 unsigned Diag = cast<VarDecl>(Def)->isThisDeclarationADefinition() ==
2697 cast<VarDecl>(New)->isInline() &&
2698 !cast<VarDecl>(New)->isInlineSpecified()) {
2787 const auto *OldVD = cast<VarDecl>(Old);
2788 auto *NewVD = cast<VarDecl>(New);
2928 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl();
2947 cast<InheritableParamAttr>(I->clone(S.Context));
3175 OldD = Old = cast<FunctionDecl>(Shadow->getTargetDecl());
4413 Tag = cast<TagDecl>(TagD);
4701 cast<NamedDecl>(D)->getDeclName()) {
4702 ValueDecl *VD = cast<ValueDecl>(D);
4840 !cast<NamespaceDecl>(OwnerScope)->isAnonymousNamespace()))) {
4975 if (cast<CXXRecordDecl>(Record)->hasInClassInitializer() &&
4977 checkDuplicateDefaultInit(*this, cast<CXXRecordDecl>(Owner),
4978 cast<CXXRecordDecl>(Record));
5014 FieldCollector->Add(cast<FieldDecl>(Anon));
5098 auto *ParentDecl = cast<RecordDecl>(CurContext);
5477 << Name << cast<NamedDecl>(Cur) << cast<NamedDecl>(DC) << SS.getRange();
5477 << Name << cast<NamedDecl>(Cur) << cast<NamedDecl>(DC) << SS.getRange();
5494 Context.getTypeDeclType(cast<CXXRecordDecl>(Cur))))
5566 if (isa<CXXRecordDecl>(DC) && !cast<CXXRecordDecl>(DC)->hasDefinition()) {
6768 NewVD = cast<VarDecl>(Res.get());
6979 StringLiteral *SE = cast<StringLiteral>(E);
7301 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction());
7303 CaptureLoc = getCaptureLocation(LSI, cast<VarDecl>(ShadowedDecl));
7309 cast<LambdaScopeInfo>(getCurFunction())
7311 {cast<VarDecl>(D), cast<VarDecl>(ShadowedDecl)});
7311 {cast<VarDecl>(D), cast<VarDecl>(ShadowedDecl)});
7316 if (cast<VarDecl>(ShadowedDecl)->hasLocalStorage()) {
7403 const NamedDecl *D = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl());
7485 Prev = cast<VarDecl>(Prev)->getFirstDecl();
8202 SemaRef.Context, cast<CXXRecordDecl>(DC), D.getBeginLoc(), NameInfo, R,
8210 CXXRecordDecl *Record = cast<CXXRecordDecl>(DC);
8250 SemaRef.Context, cast<CXXRecordDecl>(DC), D.getBeginLoc(), NameInfo, R,
8265 Name.getAsIdentifierInfo() == cast<CXXRecordDecl>(DC)->getIdentifier()){
8274 SemaRef.Context, cast<CXXRecordDecl>(DC), D.getBeginLoc(), NameInfo, R,
8483 RD = cast<RecordDecl>(Next);
8632 if (Parent->isInterface() && cast<CXXMethodDecl>(NewFD)->isUserProvided())
8896 cast<CXXRecordDecl>(DC)->getDescribedClassTemplate()) ||
8923 StringLiteral *SE = cast<StringLiteral>(E);
8954 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);
8978 TD = cast<EnumDecl>(ECD->getDeclContext());
9253 ? cast<NamedDecl>(FunctionTemplate)
9341 } else if (isFriend && cast<CXXRecordDecl>(CurContext)->isLocalClass()) {
9511 cast<CXXMethodDecl>(NewFD),
10296 if (IsOverload(NewFD, cast<FunctionDecl>(OldDecl), false)) {
10395 auto *OldFD = cast<FunctionDecl>(OldDecl);
10659 const FunctionProtoType* FTP = cast<const FunctionProtoType>(FT);
10812 CheckExpr(cast<Expr>(Child));
10908 if (CheckInitListMemberExpr(cast<MemberExpr>(E),
11054 } else if (cast<VarDecl>(OrigDecl)->isStaticLocal()) {
11084 if (!DirectInit && !cast<VarDecl>(OrigDecl)->getType()->isRecordType())
12222 CXXRecordDecl *CXXRecord = cast<CXXRecordDecl>(Record->getDecl());
12333 cast<VarDecl>(Var)->setCXXForRangeDecl(true);
12590 auto *NewAttr = cast<InheritableAttr>(A->clone(getASTContext()));
12714 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext());
13362 declaresSameEntity(cast<Decl>(I->getLexicalDeclContext()),
13363 cast<Decl>(FD->getLexicalDeclContext())))
13382 auto D = cast<FunctionTemplateDecl>(I);
13498 FD = cast<FunctionDecl>(D);
13545 RebuildLambdaScopeInfo(cast<CXXMethodDecl>(D), *this);
13996 DiagnoseReturnInConstructorExceptionHandler(cast<CXXTryStmt>(Body));
14124 cast<FunctionDecl>(ExternCPrev)->getType(),
14197 FunctionDecl *FD = cast<FunctionDecl>(ActOnDeclarator(BlockScope, D));
14321 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() ==
14390 TagDecl *tagFromDeclSpec = cast<TagDecl>(D.getDeclSpec().getRepAsDecl());
14822 EnumDecl *ED = cast<EnumDecl>(New);
15173 const EnumDecl *PrevEnum = cast<EnumDecl>(PrevTagDecl);
15397 PrevDecl = cast<TagDecl>(Previous.getFoundDecl());
15417 StdAlignValT = cast<EnumDecl>(New);
15422 if (IsFixed && cast<EnumDecl>(New)->isFixed()) {
15426 else if (PrevDecl && (Def = cast<EnumDecl>(PrevDecl)->getDefinition())) {
15441 EnumDecl *ED = cast<EnumDecl>(New);
15460 StdBadAlloc = cast<CXXRecordDecl>(New);
15635 TagDecl *Tag = cast<TagDecl>(TagD);
15660 DeclContext *OCD = cast<DeclContext>(IDecl);
15672 CXXRecordDecl *Record = cast<CXXRecordDecl>(TagD);
15707 TagDecl *Tag = cast<TagDecl>(TagD);
15745 ActOnObjCContainerStartDefinition(cast<Decl>(DC));
15751 TagDecl *Tag = cast<TagDecl>(TagD);
16113 checkDuplicateDefaultInit(*this, cast<CXXRecordDecl>(Record), Loc);
16129 CXXRecordDecl* RDecl = cast<CXXRecordDecl>(RT->getDecl());
16186 CXXRecordDecl *RDecl = cast<CXXRecordDecl>(RT->getDecl());
16295 ObjCContainerDecl *EnclosingDecl = cast<ObjCContainerDecl>(CurContext);
16372 ObjCIvarDecl *Ivar = cast<ObjCIvarDecl>(ivarDecl);
16390 Ivar = ObjCIvarDecl::Create(Context, cast<ObjCContainerDecl>(CurContext),
16410 ObjCContainerDecl *DC = cast<ObjCContainerDecl>(EnclosingDecl);
16414 Context.ResetObjCLayout(cast<ObjCCategoryDecl>(DC)->getClassInterface());
16418 ResetObjCLayout(cast<ObjCImplementationDecl>(DC)->getClassInterface());
16442 FieldDecl *FD = cast<FieldDecl>(*i);
16733 checkMSInheritanceAttrOnDefinition(cast<CXXRecordDecl>(Record),
16746 CXXRecordDecl *CXXRecord = cast<CXXRecordDecl>(Record);
17085 EnumDecl *PrevED = cast<EnumDecl>(PrevECD->getDeclContext());
17100 EnumDecl *TheEnumDecl = cast<EnumDecl>(theEnumDecl);
17201 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) !=
17263 EnumConstantDecl *ECD = cast<EnumConstantDecl>(Element);
17350 EnumDecl *Enum = cast<EnumDecl>(EnumDeclX);
17586 StringLiteral *AsmString = cast<StringLiteral>(expr);
tools/clang/lib/Sema/SemaDeclAttr.cpp 90 return cast<FunctionProtoType>(FnTy)->getNumParams();
93 return cast<ObjCMethodDecl>(D)->param_size();
109 return cast<FunctionProtoType>(FnTy)->getParamType(Idx);
113 return cast<ObjCMethodDecl>(D)->parameters()[Idx]->getType();
125 return cast<ObjCMethodDecl>(D)->getReturnType();
138 return cast<FunctionProtoType>(FnTy)->isVariadic();
141 return cast<ObjCMethodDecl>(D)->isVariadic();
503 const auto *VD = cast<ValueDecl>(D);
772 QualType QT = cast<ValueDecl>(D)->getType();
868 const auto *FD = cast<FunctionDecl>(D);
981 !Expr::isPotentialConstantExprUnevaluated(Cond, cast<FunctionDecl>(D),
1069 S.Context, AL, Cond, Msg, DiagType, ArgDependent, cast<NamedDecl>(D)));
1096 if (!cast<ParmVarDecl>(D)->getType()->isPointerType()) {
1144 if (!checkForConsumableClass(S, cast<CXXMethodDecl>(D), AL))
1255 if (!checkForConsumableClass(S, cast<CXXMethodDecl>(D), AL))
1277 if (!checkForConsumableClass(S, cast<CXXMethodDecl>(D), AL))
1300 S.ExtVectorDecls.push_back(cast<TypedefNameDecl>(D));
1525 QualType T = cast<ParmVarDecl>(D)->getType();
1610 const auto *FuncDecl = cast<FunctionDecl>(D);
1759 << cast<NamedDecl>(D);
1803 const auto *FD = cast<FunctionDecl>(D);
1832 const auto *VD = cast<VarDecl>(D);
1882 FunctionDecl *FD = cast<FunctionDecl>(D);
2049 const auto *R = cast<RecordDecl>(D);
2057 if (!cast<CXXRecordDecl>(R)->isPOD()) {
2129 if (!cast<ObjCProtocolDecl>(D)->isThisDeclarationADefinition()) {
2554 const auto *M = cast<ObjCMethodDecl>(D);
2686 if (!cast<FunctionProtoType>(FT)->isVariadic()) {
2706 if (!cast<FunctionProtoType>(FT)->isVariadic()) {
3068 QualType Ty = S.Context.getPointerType(cast<VarDecl>(D)->getType());
3178 QualType T = cast<VarDecl>(D)->getType();
3770 UnderlyingTy = DiagTy = Context.getTagDeclType(cast<TagDecl>(D));
3957 OldTy = cast<ValueDecl>(D)->getType();
4040 cast<ValueDecl>(D)->setType(NewTy);
4195 const auto *VD = cast<VarDecl>(D);
4206 const auto *VD = cast<VarDecl>(D);
4226 const auto *FD = cast<FunctionDecl>(D);
4253 const auto *Fn = cast<FunctionDecl>(D);
4617 QualType type = cast<ParmVarDecl>(D)->getType();
4855 cast<FunctionDecl>(D)->getIdentifier()->getName())) {
4890 ValueDecl *VD = cast<ValueDecl>(D);
5103 resultType = cast<ObjCMethodDecl>(D)->getReturnType();
5105 resultType = cast<ObjCPropertyDecl>(D)->getType();
5123 const auto *Method = cast<ObjCMethodDecl>(D);
5204 cast<ObjCCategoryDecl>(Ctx)->IsClassExtension())) {
5213 IFace = cast<ObjCInterfaceDecl>(Ctx);
5265 const auto *VD = cast<ValueDecl>(D);
5379 S.Consumer.AssignInheritanceModel(cast<CXXRecordDecl>(D));
5384 const auto *VD = cast<VarDecl>(D);
5572 cast<NamedDecl>(D)->getDeclName().getCXXOverloadedOperator())) {
5660 auto *FD = cast<FunctionDecl>(D);
5682 auto *FD = cast<FunctionDecl>(D);
6020 auto *RD = cast<CXXRecordDecl>(D);
6312 if (!cast<VarDecl>(D)->hasGlobalStorage()) {
6325 assert(cast<VarDecl>(D)->getStorageDuration() == SD_Automatic &&
7217 << cast<NamedDecl>(D);
7269 cast<ObjCMethodDecl>(D)->getMethodFamily() != OMF_init) {
7369 cast<VarDecl>(NewD)->setQualifierInfo(VD->getQualifierLoc());
7693 return cast<NamedDecl>(Ctx);
8121 Decl *Ctx = cast<Decl>(S.getCurLexicalContext());
8133 return cast<IfStmt>(Parent)->getThen() == S ||
8134 cast<IfStmt>(Parent)->getElse() == S;
8136 return cast<WhileStmt>(Parent)->getBody() == S;
8138 return cast<DoStmt>(Parent)->getBody() == S;
8140 return cast<ForStmt>(Parent)->getBody() == S;
8142 return cast<CXXForRangeStmt>(Parent)->getBody() == S;
8144 return cast<ObjCForCollectionStmt>(Parent)->getBody() == S;
8147 return cast<SwitchCase>(Parent)->getSubStmt() == S;
8360 for (const Decl *D : cast<DeclStmt>(StmtOfUse)->decls()) {
tools/clang/lib/Sema/SemaDeclCXX.cpp 304 ParmVarDecl *Param = cast<ParmVarDecl>(param);
350 ParmVarDecl *Param = cast<ParmVarDecl>(param);
362 ParmVarDecl *Param = cast<ParmVarDecl>(param);
397 ParmVarDecl *Param = cast<ParmVarDecl>(chunk.Fun.Params[argIdx].Param);
627 CXXSpecialMember NewSM = getSpecialMember(cast<CXXMethodDecl>(New)),
628 OldSM = getSpecialMember(cast<CXXMethodDecl>(Old));
1789 const auto *TN = cast<TypedefNameDecl>(DclIt);
1806 if (cast<TagDecl>(DclIt)->isThisDeclarationADefinition()) {
1832 const auto *VD = cast<VarDecl>(DclIt);
1979 if (!CheckConstexprDeclStmt(SemaRef, Dcl, cast<DeclStmt>(S), Cxx1yLoc, Kind))
2000 CompoundStmt *CompStmt = cast<CompoundStmt>(S);
2019 IfStmt *If = cast<IfStmt>(S);
2081 cast<CXXCatchStmt>(S)->getHandlerBlock(),
2493 CXXRecordDecl *CXXBaseDecl = cast<CXXRecordDecl>(BaseDecl);
2666 const CXXRecordDecl *RD = cast<CXXRecordDecl>(Record->getDecl());
2732 AttachBaseSpecifiers(cast<CXXRecordDecl>(ClassDecl), Bases);
3169 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
3334 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
3340 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D,
3346 CheckShadowInheritedFields(Loc, Name, cast<CXXRecordDecl>(CurContext));
3369 << Name << cast<ValueDecl>(Member)->getType()
3404 for (const auto *D : cast<CXXRecordDecl>(CurContext)->decls()) {
3434 FieldDecl *FD = cast<FieldDecl>(Member);
3561 BaseCast = cast<ImplicitCastExpr>(BaseCast->getSubExpr());
4324 assert(cast<CXXConstructExpr>(DelegationInit.get())->getConstructor() &&
4539 SemaRef.MarkDeclRefReferenced(cast<DeclRefExpr>(CopyCtorArg));
4584 ValueDecl *Referenced = cast<MemberExpr>(MemRef)->getMemberDecl();
4612 SemaRef.MarkDeclRefReferenced(cast<DeclRefExpr>(MemberExprBase));
4622 MemberLookup.addDecl(Indirect ? cast<ValueDecl>(Indirect)
4623 : cast<ValueDecl>(Field), AS_public);
5293 Parent = cast<RecordDecl>(Parent->getDeclContext());
5395 CXXRecordDecl *FieldClassDecl = cast<CXXRecordDecl>(RT->getDecl());
5433 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(RT->getDecl());
5465 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(RT->getDecl());
5725 CheckAbstractClassUsage(Info, cast<CXXMethodDecl>(D));
5727 FunctionDecl *FD = cast<FunctionTemplateDecl>(D)->getTemplatedDecl();
5728 CheckAbstractClassUsage(Info, cast<CXXMethodDecl>(FD));
5732 FieldDecl *FD = cast<FieldDecl>(D);
5736 VarDecl *VD = cast<VarDecl>(D);
5742 CheckAbstractClassUsage(Info, cast<CXXRecordDecl>(D));
5745 cast<ClassTemplateDecl>(D)->getTemplatedDecl());
5872 auto *A = cast<InheritableAttr>(TemplateAttr->clone(getASTContext()));
5918 cast<DLLImportAttr>(ClassAttr)->wasPropagatedToBaseTemplate();
5981 if (!cast<NamedDecl>(Member)->isExternallyVisible())
6000 NewAttr = cast<InheritableAttr>(ClassAttr->clone(getASTContext()));
6015 NewAttr = cast<InheritableAttr>(ClassAttr->clone(getASTContext()));
6045 auto *NewAttr = cast<InheritableAttr>(ClassAttr->clone(getASTContext()));
6153 cast<CXXConstructorDecl>(MD));
6156 S.DefineImplicitCopyConstructor(DefaultLoc, cast<CXXConstructorDecl>(MD));
6162 S.DefineImplicitDestructor(DefaultLoc, cast<CXXDestructorDecl>(MD));
6165 S.DefineImplicitMoveConstructor(DefaultLoc, cast<CXXConstructorDecl>(MD));
6583 auto *DShadow = cast<ConstructorUsingShadowDecl>(D);
6749 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(BaseType->getDecl());
6769 CXXRecordDecl *FieldRecDecl = cast<CXXRecordDecl>(RecordTy->getDecl());
6794 auto *CD = cast<CXXConstructorDecl>(MD);
6846 ? CheckExplicitlyDefaultedSpecialMember(cast<CXXMethodDecl>(FD),
7240 cast<CXXConstructorDecl>(MD)->getInheritedConstructor().getConstructor();
7465 auto *ParentClass = cast<CXXRecordDecl>(FD->getParent());
8358 !cast<CXXRecordDecl>(RT->getDecl())->canPassInRegisters()) {
8385 CheckCompletedCXXClass(cast<CXXRecordDecl>(TagDecl));
8521 CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordD);
8562 ParmVarDecl *Param = cast<ParmVarDecl>(ParamD);
8586 FunctionDecl *Method = cast<FunctionDecl>(MethodD);
9073 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(Conversion->getDeclContext());
9369 NamespaceDecl *ND = cast<NamespaceDecl>(Parent);
9403 cast<NamespaceDecl>(Parent)->setAnonymousNamespace(Namespc);
10055 CXXRecordDecl *OrigRec = cast<CXXRecordDecl>(OrigDC);
10057 OrigRec = cast<CXXRecordDecl>(OrigRec->getDeclContext());
10059 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(OrigRec)) {
10072 << cast<CXXRecordDecl>(CurContext)
10084 Target = cast<UsingShadowDecl>(Target)->getTargetDecl();
10203 Target = cast<UsingShadowDecl>(Target)->getTargetDecl();
10214 isVirtualDirectBase(cast<CXXRecordDecl>(CurContext),
10269 cast<CXXRecordDecl>(Shadow->getDeclContext())->removeConversion(Shadow);
10514 Context.getTypeDeclType(cast<CXXRecordDecl>(CurContext)));
10556 RD = cast<CXXRecordDecl>(RD->getParent());
10568 auto *CurClass = cast<CXXRecordDecl>(CurContext);
10622 if (cast<EnumDecl>(ED->getDeclContext())->isScoped()) {
10670 CXXRecordDecl *TargetClass = cast<CXXRecordDecl>(CurContext);
10790 ? cast<CXXRecordDecl>(NamedContext->getRedeclContext())
10894 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(
10895 cast<CXXRecordDecl>(NamedContext))) {
10903 if (!cast<CXXRecordDecl>(NamedContext)->isInvalidDecl()) {
10907 << cast<CXXRecordDecl>(CurContext)
10936 if (!cast<CXXRecordDecl>(CurContext)->forallBases(Collect))
10947 if (Bases.count(cast<CXXRecordDecl>(NamedContext)) ||
10948 !cast<CXXRecordDecl>(NamedContext)->forallBases(IsNotBase))
10954 << cast<CXXRecordDecl>(CurContext)
11221 auto *BaseClass = cast<CXXRecordDecl>(RT->getDecl());
11246 visitClassSubobject(cast<CXXRecordDecl>(RT->getDecl()), FD,
11556 if (declaresSameEntity(cast<CXXConstructorDecl>(Ctor)
11560 return cast<CXXConstructorDecl>(Ctor);
12128 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(RecordTy->getDecl());
13442 Context, cast<CXXRecordDecl>(FoundDecl->getDeclContext()));
13519 CXXRecordDecl *ParentRD = cast<CXXRecordDecl>(Field->getParent());
13539 Pattern = cast<FieldDecl>(L);
13582 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(Record->getDecl());
14195 StringLiteral *Lit = cast<StringLiteral>(LangStr);
14236 LinkageSpecDecl* LSDecl = cast<LinkageSpecDecl>(LinkageSpec);
14441 AssertMessageExpr ? cast<StringLiteral>(AssertMessageExpr) : nullptr;
14693 << SS.getScopeRep() << SS.getRange() << cast<CXXRecordDecl>(CurContext);
14885 cast<CXXRecordDecl>(CurContext)->isLocalClass())) {
15105 FD = cast<FunctionDecl>(ND);
15127 << cast<CXXRecordDecl>(CurContext);
15268 auto *MD = cast<CXXMethodDecl>(FD);
15693 = cast<CXXRecordDecl>(R)->getTemplateSpecializationKind();
15779 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
15827 CXXRecordDecl *RD = cast<CXXRecordDecl>(RecordTy->getDecl());
15893 cast<CXXConstructorDecl>(FNTarget));
tools/clang/lib/Sema/SemaDeclObjC.cpp 132 << cast<ObjCMethodDecl>(NewD->getDeclContext());
864 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext())
3192 RecordDecl *left = cast<RecordType>(lt)->getDecl();
3193 RecordDecl *right = cast<RecordType>(rt)->getDecl();
3199 if ((isa<CXXRecordDecl>(left) && !cast<CXXRecordDecl>(left)->isPOD()) ||
3200 (isa<CXXRecordDecl>(right) && !cast<CXXRecordDecl>(right)->isPOD()))
3400 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl())
3787 if (cast<ObjCCategoryDecl>(CurContext)->IsClassExtension())
3898 auto *OCD = cast<ObjCContainerDecl>(CurContext);
4198 = cast<ObjCContainerDecl>(method->getDeclContext());
4554 Decl *ClassDecl = cast<ObjCContainerDecl>(CurContext);
4639 ParmVarDecl *Param = cast<ParmVarDecl>(CParamInfo[i].Param);
4701 cast<DeclContext>(ClassDecl)->addDecl(ObjCMethod);
4842 FieldDecl *FD = cast<FieldDecl>(*D);
tools/clang/lib/Sema/SemaExceptionSpec.cpp 207 EvaluateImplicitExceptionSpec(Loc, cast<CXXMethodDecl>(SourceDecl));
976 R = mergeCanThrow(R, S.canThrow(cast<Expr>(SubStmt)));
993 E = cast<CallExpr>(E)->getCallee();
1006 T = cast<MemberExpr>(E)->getMemberDecl()->getType();
1061 if (!cast<CXXRecordDecl>(RT->getDecl())->isPolymorphic())
1076 return canThrow(cast<ConstantExpr>(E)->getSubExpr());
1085 CanThrowResult CT = canDynamicCastThrow(cast<CXXDynamicCastExpr>(E));
1094 return canTypeidThrow(*this, cast<CXXTypeidExpr>(E));
1103 const CallExpr *CE = cast<CallExpr>(E);
1119 cast<CXXConstructExpr>(E)->getConstructor());
1127 cast<CXXInheritedCtorInitExpr>(E)->getConstructor());
1130 const LambdaExpr *Lambda = cast<LambdaExpr>(E);
1145 CT = canCalleeThrow(*this, E, cast<CXXNewExpr>(E)->getOperatorNew());
1153 QualType DTy = cast<CXXDeleteExpr>(E)->getDestroyedType();
1158 cast<CXXDeleteExpr>(E)->getOperatorDelete());
1160 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
1174 cast<CXXBindTemporaryExpr>(E)->getTemporary()->getDestructor());
1243 return canThrow(cast<CXXDefaultArgExpr>(E)->getExpr());
1246 return canThrow(cast<CXXDefaultInitExpr>(E)->getExpr());
1251 return canThrow(cast<ChooseExpr>(E)->getChosenSubExpr());
1254 if (cast<GenericSelectionExpr>(E)->isResultDependent())
1256 return canThrow(cast<GenericSelectionExpr>(E)->getResultExpr());
tools/clang/lib/Sema/SemaExpr.cpp 78 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)
234 if (cast<FunctionDecl>(D)->isMain())
237 diagnoseUnavailableAlignedAllocation(*cast<FunctionDecl>(D), Loc);
247 << D->getDeclName() << cast<VarDecl>(D)->getType();
280 cast<CXXConstructorDecl>(MD)->isDefaultConstructor()) ||
360 QualType type = cast<ValueDecl>(D)->getType();
1821 NeedToCaptureVariable(cast<VarDecl>(D), NameInfo.getLoc());
2057 Record = cast<CXXRecordDecl>(
2637 cast<ObjCIvarDecl>(Ivar.get()));
2782 cast<CXXRecordDecl>(FoundDecl->getDeclContext()));
2849 D = cast<UsingShadowDecl>(D)->getTargetDecl();
2858 FunctionDecl *FDecl = cast<FunctionDecl>(D);
3084 QualType CapturedType = getCapturedDeclRefType(cast<VarDecl>(VD), Loc);
3098 auto *BD = cast<BindingDecl>(VD);
3108 if (unsigned BID = cast<FunctionDecl>(VD)->getBuiltinID()) {
3137 if (!cast<FunctionDecl>(VD)->hasPrototype() &&
3167 if (cast<CXXMethodDecl>(VD)->isStatic()) {
3218 if (cast<DeclContext>(currentDecl)->isDependentContext())
4072 T = cast<AdjustedType>(Ty)->getOriginalType();
4075 T = cast<DecayedType>(Ty)->getPointeeType();
4078 T = cast<PointerType>(Ty)->getPointeeType();
4081 T = cast<BlockPointerType>(Ty)->getPointeeType();
4085 T = cast<ReferenceType>(Ty)->getPointeeType();
4088 T = cast<MemberPointerType>(Ty)->getPointeeType();
4093 T = cast<ArrayType>(Ty)->getElementType();
4097 const VariableArrayType *VAT = cast<VariableArrayType>(Ty);
4111 T = cast<FunctionType>(Ty)->getReturnType();
4124 T = cast<TypedefType>(Ty)->desugar();
4127 T = cast<DecltypeType>(Ty)->desugar();
4131 T = cast<DeducedType>(Ty)->getDeducedType();
4134 T = cast<TypeOfExprType>(Ty)->getUnderlyingExpr()->getType();
4137 T = cast<AtomicType>(Ty)->getValueType();
4346 ((isa<BinaryOperator>(idx) && cast<BinaryOperator>(idx)->isCommaOp()) ||
4348 cast<CXXOperatorCallExpr>(idx)->getOperator() == OO_Comma))) {
4414 CheckSubscriptAccessOfNoDeref(cast<ArraySubscriptExpr>(Res.get()));
4809 FD << cast<CXXRecordDecl>(FD->getDeclContext())->getDeclName();
5645 Context, Fn, cast<CallExpr>(ExecConfig), ArgExprs,
5730 NDecl = cast<MemberExpr>(NakedFn)->getMemberDecl();
5875 CUDAKernelCallExpr::Create(Context, Fn, cast<CallExpr>(Config), Args,
5905 Context, Fn, cast<CallExpr>(Config), Args, ResultTy, VK_RValue,
6190 auto *DIE = cast<DesignatedInitExpr>(InitArgList[0]);
6739 LiteralLParenLoc = cast<ParenExpr>(E)->getLParen();
6740 LiteralRParenLoc = cast<ParenExpr>(E)->getRParen();
6741 subExpr = cast<ParenExpr>(E)->getSubExpr();
8000 cast<PointerType>(lhptee)->getPointeeType().split().asPair();
8002 cast<PointerType>(rhptee)->getPointeeType().split().asPair();
10179 Expr *Inner = cast<ObjCBoxedExpr>(FromE)->getSubExpr()->IgnoreParens();
10189 CastKind CK = cast<CastExpr>(Inner)->getCastKind();
11734 VarDecl *var = cast<VarDecl>(declRef->getDecl());
11849 cast<ValueDecl>(ML->getMemberDecl()->getCanonicalDecl());
11851 cast<ValueDecl>(MR->getMemberDecl()->getCanonicalDecl());
12219 return cast<DeclRefExpr>(E)->getDecl();
12224 if (cast<MemberExpr>(E)->isArrow())
12227 return getPrimaryDecl(cast<MemberExpr>(E)->getBase());
12231 Expr* Base = cast<ArraySubscriptExpr>(E)->getBase();
12239 UnaryOperator *UO = cast<UnaryOperator>(E);
12251 return getPrimaryDecl(cast<ParenExpr>(E)->getSubExpr());
12255 return getPrimaryDecl(cast<ImplicitCastExpr>(E)->getSubExpr());
12290 assert(cast<UnaryOperator>(E)->getOpcode() == UO_AddrOf);
12296 OverloadExpr *Ovl = cast<OverloadExpr>(E);
12384 DeclRefExpr *DRE = cast<DeclRefExpr>(op);
12385 CXXMethodDecl *MD = cast<CXXMethodDecl>(DRE->getDecl());
12453 if (isa<DeclRefExpr>(op) && cast<DeclRefExpr>(op)->getQualifier()) {
12463 while (cast<RecordDecl>(Ctx)->isAnonymousStructOrUnion())
12468 Context.getTypeDeclType(cast<RecordDecl>(Ctx)).getTypePtr());
12661 cast<ValueDecl>(LHSDeclRef->getDecl()->getCanonicalDecl());
12663 cast<ValueDecl>(RHSDeclRef->getDecl()->getCanonicalDecl());
13789 CompoundStmt *Compound = cast<CompoundStmt>(SubStmt);
13983 Parent = cast<RecordDecl>(IndirectMemberDecl->getDeclContext());
14006 cast<FieldDecl>(FI), OC.LocEnd));
14165 (isa<FunctionProtoType>(Fn) && cast<FunctionProtoType>(Fn)->isVariadic());
14252 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back());
14286 const FunctionProtoType *FPT = cast<FunctionProtoType>(FTy);
14306 DiagnoseInvalidJumps(cast<CompoundStmt>(Body));
14308 BD->setBody(cast<CompoundStmt>(Body));
14384 !cast<CXXConstructExpr>(Result.get())->getConstructor()
15491 Constructor = cast<CXXConstructorDecl>(Constructor->getFirstDecl());
15508 Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl());
15519 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl());
15529 cast<CXXConversionDecl>(MethodDecl->getFirstDecl());
15558 cast<CXXRecordDecl>(Func->getDeclContext())->isLocalClass() &&
15680 cast<CXXRecordDecl>(VarDC->getParent())->isLambda()) {
15718 !(isa<LambdaScopeInfo>(CSI) && cast<LambdaScopeInfo>(CSI)->Mutable) &&
15720 cast<CapturedRegionScopeInfo>(CSI)->CapRegionKind == CR_OpenMP))
16090 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FSI);
16105 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI);
16144 auto *OuterRSI = cast<CapturedRegionScopeInfo>(
16176 if (cast<LambdaScopeInfo>(CSI)->Lambda)
16177 Diag(cast<LambdaScopeInfo>(CSI)->Lambda->getBeginLoc(),
16207 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[I]);
16231 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI);
16386 auto *DRE = cast<DeclRefExpr>(E);
16400 auto *FPPE = cast<FunctionParmPackExpr>(E);
16416 auto *ASE = cast<ArraySubscriptExpr>(E);
16431 auto *ME = cast<MemberExpr>(E);
16465 auto *BO = cast<BinaryOperator>(E);
16489 auto *PE = cast<ParenExpr>(E);
16499 auto *CO = cast<ConditionalOperator>(E);
16519 auto *UO = cast<UnaryOperator>(E);
16533 auto *GSE = cast<GenericSelectionExpr>(E);
16561 auto *CE = cast<ChooseExpr>(E);
16584 auto *CE = cast<ConstantExpr>(E);
16594 auto *ICE = cast<ImplicitCastExpr>(E);
16668 MarkVarDeclODRUsed(cast<VarDecl>(DRE->getDecl()),
16671 MarkVarDeclODRUsed(cast<VarDecl>(ME->getMemberDecl()), ME->getMemberLoc(),
17047 CXXRecordDecl *Record = cast<CXXRecordDecl>(DestroyedRec->getDecl());
17393 cast<CXXMethodDecl>(VD)->isInstance()))
17929 auto *FD = cast<FunctionDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaExprCXX.cpp 478 CXXRecordDecl *RecordD = cast<CXXRecordDecl>(RecordT->getDecl());
1017 cast<LambdaScopeInfo>(FunctionScopes[I])->CallOperator);
1019 CurLSI = cast<LambdaScopeInfo>(FunctionScopes[I]);
1064 CXXRecordDecl *Closure = cast<CXXRecordDecl>(CurDC->getParent());
1074 ? cast<CXXRecordDecl>(Closure->getParent()->getParent())
1100 QualType ClassTy = Context.getTypeDeclType(cast<CXXRecordDecl>(DC));
1128 Record = cast<CXXRecordDecl>(ContextDecl);
1237 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]);
2242 FunctionDecl *Fn = cast<FunctionDecl>(D);
2470 cast<CXXRecordDecl>(AllocElemType->castAs<RecordType>()->getDecl());
2547 Fn = cast<FunctionDecl>((*D)->getUnderlyingDecl());
2911 Operator = cast<CXXMethodDecl>(Matches[0].FD);
3097 for (const auto *CI : cast<const CXXConstructorDecl>(Definition)->inits()) {
3125 const CXXRecordDecl *RD = cast<const CXXRecordDecl>(Field->getParent());
3331 PointeeRD = cast<CXXRecordDecl>(RT->getDecl());
3475 FunctionDecl *Fn = cast<FunctionDecl>(D);
3533 CallExpr *TheCall = cast<CallExpr>(TheCallResult.get());
3621 CheckConditionVariable(cast<VarDecl>(ConditionVar), StmtLoc, CK);
3736 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Method);
3752 CastLoc, Ty, FoundDecl, cast<CXXConstructorDecl>(Method),
3770 CXXConversionDecl *Conv = cast<CXXConversionDecl>(Method);
3823 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(FD);
3846 cast<CXXMethodDecl>(FD), ICS.UserDefined.FoundConversionFunction,
3908 if (CompleteConstructorCall(cast<CXXConstructorDecl>(SCS.CopyConstructor),
4472 CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
4487 CXXMethodDecl *Operator = cast<CXXMethodDecl>(*Op);
4826 auto *Constructor = cast<CXXConstructorDecl>(ND->getUnderlyingDecl());
4865 auto *Constructor = cast<CXXConstructorDecl>(ND->getUnderlyingDecl());
5123 return cast<CXXRecordDecl>(rhsRecord->getDecl())
5124 ->isDerivedFrom(cast<CXXRecordDecl>(lhsRecord->getDecl()));
6407 isa<BlockExpr>(cast<CastExpr>(E)->getSubExpr())) {
6470 RT = cast<RecordType>(T);
6476 T = cast<ArrayType>(T)->getElementType().getTypePtr();
6485 CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
7436 Expr *Init = cast<Expr>(Eval->Value);
tools/clang/lib/Sema/SemaExprMember.cpp 95 (!isa<CXXMethodDecl>(DC) || cast<CXXMethodDecl>(DC)->isStatic());
112 CXXRecordDecl *R = cast<CXXRecordDecl>(D->getDeclContext());
166 contextClass = cast<CXXRecordDecl>(DC);
576 CXXRecordDecl *MemberRecord = cast<CXXRecordDecl>(DC)->getCanonicalDecl();
846 FieldDecl *field = cast<FieldDecl>(*FI);
866 FieldDecl *field = cast<FieldDecl>(*FI++);
952 VarDecl *Var = cast<VarDecl>(VDecl.get());
1051 cast<CXXThisExpr>(BaseExpr)->isImplicit())) &&
1098 cast<VarTemplateDecl>(MemberDecl), TemplateArgs,
1366 Decl *D = cast<Decl>(IV->getDeclContext());
1733 CheckMemberAccessOfNoDeref(cast<MemberExpr>(Res.get()));
tools/clang/lib/Sema/SemaExprObjC.cpp 40 StringLiteral *S = cast<StringLiteral>(Strings[0]);
49 S = cast<StringLiteral>(E);
1391 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(
1392 cast<ImplicitParamDecl>(
1393 cast<DeclRefExpr>(Receiver->IgnoreParenImpCasts())->getDecl())
1955 if (cast<ObjCPropertyDecl>(ChosenDecl)->isClassProperty()) {
3821 ObjCInterfaceDecl *ExprClass = cast<ObjCInterfaceDecl>(Target);
3887 ObjCInterfaceDecl *CastClass = cast<ObjCInterfaceDecl>(Target);
4055 RelatedClass = cast<ObjCInterfaceDecl>(Target);
4311 CastExpr *realCast = cast<CastExpr>(e->IgnoreParens());
4375 return cast<ImplicitCastExpr>(e)->getSubExpr();
4417 cast<CastExpr>(prevExpr)->setSubExpr(ice->getSubExpr());
tools/clang/lib/Sema/SemaInit.cpp 192 cast<ConstantArrayType>(Str->getType()->getAsArrayTypeUnsafe());
207 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT);
532 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
775 cast<CXXRecordDecl>(RDecl)->hasInClassInitializer()) {
1961 cast<InitListExpr>(InitExpr)->getNumInits() == 0) {
1974 } else if (cast<VarDecl>(Entity.getDecl())->hasLocalStorage()) {
2023 cast<CXXRecordDecl>(RD)->hasInClassInitializer()) {
2273 Replacements.back().setField(cast<FieldDecl>(*PI));
2509 KnownField = cast<FieldDecl>(*IFD->chain_begin());
2822 llvm::APSInt MaxElements(cast<ConstantArrayType>(AT)->getSize(), false);
2873 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen))
2874 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue();
2889 ObjCEncodeExpr *E = cast<ObjCEncodeExpr>(SubExpr);
2895 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen))
2896 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue();
3759 VarDecl *VD = cast<VarDecl>(Entity.getDecl());
3857 Ctx.getRecordType(cast<CXXRecordDecl>(Info.FoundDecl->getDeclContext()));
3944 CXXRecordDecl *ActingDC = cast<CXXRecordDecl>(D->getDeclContext());
3950 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl());
3952 Conv = cast<CXXConversionDecl>(D);
3997 (IsListInit || IsInitListCopy) ? cast<InitListExpr>(Args[0]) : nullptr;
4033 = cast<CXXRecordDecl>(DestRecordType->getDecl());
4122 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
4502 CXXRecordDecl *T1RecordDecl = cast<CXXRecordDecl>(T1RecordType->getDecl());
4533 CXXRecordDecl *T2RecordDecl = cast<CXXRecordDecl>(T2RecordType->getDecl());
4538 CXXRecordDecl *ActingDC = cast<CXXRecordDecl>(D->getDeclContext());
4540 D = cast<UsingShadowDecl>(D)->getTargetDecl();
4545 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl());
4547 Conv = cast<CXXConversionDecl>(D);
5150 = cast<CXXRecordDecl>(DestRecordType->getDecl());
5187 = cast<CXXRecordDecl>(SourceRecordType->getDecl());
5193 CXXRecordDecl *ActingDC = cast<CXXRecordDecl>(D->getDeclContext());
5195 D = cast<UsingShadowDecl>(D)->getTargetDecl();
5200 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl());
5202 Conv = cast<CXXConversionDecl>(D);
5313 !cast<CXXBoolLiteralExpr>(Init)->getValue() &&
5360 VarDecl *var = dyn_cast<VarDecl>(cast<DeclRefExpr>(e)->getDecl());
5548 cast<FunctionDecl>(DRE->getDecl()));
5770 TryListInitialization(S, Entity, Kind, cast<InitListExpr>(Initializer),
6113 Class = cast<CXXRecordDecl>(Record->getDecl());
6170 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function);
6270 S.LookupConstructors(cast<CXXRecordDecl>(Record->getDecl()));
6286 S.CheckConstructorAccess(Loc, cast<CXXConstructorDecl>(Best->Function),
6366 = cast<CXXConstructorDecl>(Step.Function.Function);
6810 shouldTrackImplicitObjectArg(cast<CXXMethodDecl>(Callee)))
6854 auto *CCE = cast<CXXConstructExpr>(Call);
6963 auto *DRE = cast<DeclRefExpr>(Init);
6987 const UnaryOperator *U = cast<UnaryOperator>(Init);
6996 cast<OMPArraySectionExpr>(Init)->getBase(),
7003 auto *C = cast<AbstractConditionalOperator>(Init);
7208 auto *UO = cast<UnaryOperator>(Init);
7228 auto *BO = cast<BinaryOperator>(Init);
7244 auto *C = cast<AbstractConditionalOperator>(Init);
7257 if (cast<BlockExpr>(Init)->getBlockDecl()->hasCaptures()) {
7259 Visit(Path, Local(cast<BlockExpr>(Init)), RK_ReferenceBinding);
7265 Visit(Path, Local(cast<AddrLabelExpr>(Init)), RK_ReferenceBinding);
7297 if (cast<VarDecl>(Path[I].D)->isImplicit())
7540 auto *FD = cast<FieldDecl>(Elem.D);
7547 const VarDecl *VD = cast<VarDecl>(Elem.D);
8085 CXXConversionDecl *Conversion = cast<CXXConversionDecl>(Fn);
8119 = S.LookupDestructor(cast<CXXRecordDecl>(Record->getDecl()));
8191 InitListExpr *InitList = cast<InitListExpr>(CurInit.get());
8240 InitListExpr *InitList = cast<InitListExpr>(Args[0]);
8256 CurInit = cast<InitListExpr>(CurInit.get())->getInit(0);
8494 auto Var = cast<VarDecl>(DRE->getDecl());
8511 Init = cast<ImplicitCastExpr>(const_cast<Expr*>(
8580 cast<FieldDecl>(Entity.getDecl())->isBitField())
8582 cast<FieldDecl>(Entity.getDecl()),
8788 auto *FD = cast<FunctionDecl>(cast<DeclRefExpr>(OnlyArg)->getDecl());
8788 auto *FD = cast<FunctionDecl>(cast<DeclRefExpr>(OnlyArg)->getDecl());
8991 InitListExpr *InitList = cast<InitListExpr>(Args[0]);
9016 = cast<CXXConstructorDecl>(S.CurContext);
9076 << S.getSpecialMember(cast<CXXMethodDecl>(Best->Function))
9098 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext);
9120 InitListExpr *InitList = cast<InitListExpr>(Args[0]);
9138 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
9871 cast<ClassTemplateDecl>(Template)->getTemplatedDecl();
9896 cast<CXXDeductionGuideDecl>(Best->Function)->isExplicit()) {
tools/clang/lib/Sema/SemaLambda.cpp 84 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator;
88 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]);
192 cast<sema::LambdaScopeInfo>(FunctionScopes[IndexOfCaptureReadyLambda]);
582 return cast<EnumDecl>(D->getDeclContext());
958 Params.push_back(cast<ParmVarDecl>(FTI.Params[i].Param));
1235 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(FunctionScopes.back());
1533 LambdaScopeInfo LSI = *cast<LambdaScopeInfo>(FunctionScopes.back());
1675 : cast<Decl>(CallOperator);
1866 = cast<CXXMethodDecl>(
tools/clang/lib/Sema/SemaLookup.cpp 394 auto *EFD = cast<FunctionDecl>(EUnderlying);
406 auto *ETD = cast<TemplateDecl>(EUnderlying);
430 VarDecl *EVD = cast<VarDecl>(EUnderlying);
514 D = cast<NamedDecl>(D->getCanonicalDecl());
1029 const CXXRecordDecl *Record = cast<CXXRecordDecl>(DC);
1545 return getDefiningModule(S, cast<Decl>(Context));
1612 return ::hasVisibleDefaultArgument(*this, cast<TemplateTemplateParmDecl>(D),
1623 auto *R = cast<NamedDecl>(Redecl);
1720 VisibleWithinParent = SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC));
1722 VisibleWithinParent = isVisible(SemaRef, cast<NamedDecl>(DC));
1725 VisibleWithinParent = isVisible(SemaRef, cast<NamedDecl>(DC));
1731 if (SemaRef.hasMergedDefinitionInCurrentModule(cast<NamedDecl>(DC))) {
1738 VisibleWithinParent = SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC));
1845 auto ND = cast<NamedDecl>(RD);
2158 if (!cast<CXXMethodDecl>(D)->isStatic()) {
2203 cast<TagDecl>(LookupCtx)->isCompleteDefinition() ||
2204 cast<TagDecl>(LookupCtx)->isBeingDefined()) &&
2222 R.setNamingClass(cast<CXXRecordDecl>(LookupCtx));
2509 CXXRecordDecl *RD = cast<CXXRecordDecl>(
2553 cast<CXXMethodDecl>(*Found)->isStatic())
2791 CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(BaseType->getDecl());
2843 T = cast<PointerType>(T)->getPointeeType().getTypePtr();
2848 T = cast<ArrayType>(T)->getElementType().getTypePtr();
2863 cast<CXXRecordDecl>(cast<RecordType>(T)->getDecl());
2863 cast<CXXRecordDecl>(cast<RecordType>(T)->getDecl());
2873 EnumDecl *Enum = cast<EnumType>(T)->getDecl();
2889 const FunctionProtoType *Proto = cast<FunctionProtoType>(T);
2896 const FunctionType *FnType = cast<FunctionType>(T);
2911 const MemberPointerType *MemberPtr = cast<MemberPointerType>(T);
2923 T = cast<BlockPointerType>(T)->getPointeeType().getTypePtr();
2930 T = cast<ReferenceType>(T)->getPointeeType().getTypePtr();
2956 T = cast<AtomicType>(T)->getValueType().getTypePtr();
2959 T = cast<PipeType>(T)->getElementType().getTypePtr();
3253 Result->setMethod(cast<CXXMethodDecl>(Best->Function));
3258 Result->setMethod(cast<CXXMethodDecl>(Best->Function));
3366 return cast<CXXDestructorDecl>(LookupSpecialMember(Class, CXXDestructor,
3494 NamedDecl *&Old = Decls[cast<NamedDecl>(New->getCanonicalDecl())];
3579 auto *RD = cast<CXXRecordDecl>(D->getLexicalDeclContext());
3700 cast<UsingShadowDecl>(ND)->getUsingDecl() == D)
4068 return cast<LabelDecl>(Res);
4084 return cast<LabelDecl>(Res);
4492 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()),
4730 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
5223 QualType ValType = cast<ValueDecl>(ND)->getType();
tools/clang/lib/Sema/SemaModule.cpp 49 S.Diag(cast<Decl>(DC)->getBeginLoc(),
455 cast<Decl>(DC)->setModuleOwnershipKind(
459 cast<Decl>(DC)->setLocalOwningModule(Mod);
496 cast<Decl>(DC)->setLocalOwningModule(getCurrentModule());
498 cast<Decl>(DC)->setModuleOwnershipKind(
692 auto *ED = cast<ExportDecl>(D);
tools/clang/lib/Sema/SemaObjCProperty.cpp 197 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext);
271 ObjCProtocolDecl *Proto = cast<ObjCProtocolDecl>(ClassDecl);
403 OldContextName = cast<ObjCContainerDecl>(OldDC)->getIdentifier();
426 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext);
2324 ObjCContainerDecl *CD = cast<ObjCContainerDecl>(property->getDeclContext());
2551 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl);
tools/clang/lib/Sema/SemaOpenMP.cpp 471 cast<DeclRefExpr>(getStackElemAtLevel(Level).TaskgroupReductionRef)
1727 D = cast<ValueDecl>(D->getCanonicalDecl());
1859 !cast<OMPCapturedExprDecl>(D)->getInit()->isGLValue());
1959 return VD ? VD : cast<VarDecl>(DVarPrivate.PrivateCopy->getDecl());
1970 return VD ? VD : cast<VarDecl>(DVarPrivate.PrivateCopy->getDecl());
2164 auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens());
2165 auto *VD = cast<VarDecl>(DRE->getDecl());
2426 auto *DE = cast<DeclRefExpr>(RefExpr);
2427 auto *VD = cast<VarDecl>(DE->getDecl());
2610 Allocator = cast<OMPAllocatorClause>(Clauses.back())->getAllocator();
2616 auto *DE = cast<DeclRefExpr>(RefExpr);
2617 auto *VD = cast<VarDecl>(DE->getDecl());
2930 cast<MemberExpr>(
2987 const auto *VD = cast<ValueDecl>(
3537 CD = cast<OMPCapturedExprDecl>(VD);
3656 auto *IRC = cast<OMPInReductionClause>(Clause);
3684 SC = cast<OMPScheduleClause>(Clause);
3686 OC = cast<OMPOrderedClause>(Clause);
3688 LCs.push_back(cast<OMPLinearClause>(Clause));
3740 MarkVariableReferenced(D->getLocation(), cast<VarDecl>(D));
4145 auto *PC = cast<OMPPrivateClause>(Cl);
4150 auto *PC = cast<OMPFirstprivateClause>(Cl);
4155 auto *PC = cast<OMPLastprivateClause>(Cl);
4160 auto *PC = cast<OMPLinearClause>(Cl);
4165 auto *PC = cast<OMPReductionClause>(Cl);
4170 auto *PC = cast<OMPTaskReductionClause>(Cl);
4175 auto *PC = cast<OMPInReductionClause>(Cl);
4193 cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()));
4193 cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()));
4198 auto *AC = cast<OMPAllocateClause>(C);
4253 DSAAttrChecker DSAChecker(DSAStack, *this, cast<CapturedStmt>(AStmt));
4257 S = cast<CapturedStmt>(S)->getCapturedStmt();
4262 auto *CS = cast<CapturedStmt>(AStmt);
4267 CS = cast<CapturedStmt>(CS->getCapturedStmt());
4293 ErrorFound = cast<OMPFirstprivateClause>(Implicit)->varlist_size() !=
4308 cast<OMPMapClause>(Implicit)->varlist_size() != ImplicitMaps.size();
4598 cast<OMPIfClause>(C)->getNameModifier() != OMPD_target)
5168 return std::make_pair(FD, cast<Expr>(DRE));
5208 auto *F = cast<FunctionDecl>(DRE->getDecl());
5223 auto *CS = cast<CapturedStmt>(AStmt);
6380 return cast<DeclRefExpr>(LCRef);
6390 ? buildDeclRefExpr(SemaRef, cast<VarDecl>(LCDecl), Type, DefaultLoc)
6483 VD = cast<VarDecl>(PrivateRef->getDecl());
6958 CurStmt = cast<CXXForRangeStmt>(CurStmt)->getBody();
6970 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar);
6985 CurStmt = cast<CXXForRangeStmt>(CurStmt)->getBody();
7210 const CapturedDecl *CD = cast<CapturedStmt>(AStmt)->getCapturedDecl();
7492 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl());
7492 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl());
7607 Safelen = cast<OMPSafelenClause>(Clause);
7609 Simdlen = cast<OMPSimdlenClause>(Clause);
7668 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
7707 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
7743 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
7782 cast<OMPSectionDirective>(SectionStmt)
7873 Expr *E = cast<OMPHintClause>(C)->getHint();
7920 auto *CS = cast<CapturedStmt>(AStmt);
7945 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
7964 auto *CS = cast<CapturedStmt>(AStmt);
7986 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
8025 cast<OMPSectionDirective>(SectionStmt)
8046 auto *CS = cast<CapturedStmt>(AStmt);
8134 TC = cast<OMPThreadsClause>(C);
8136 SC = cast<OMPSIMDClause>(C);
8424 auto *CS = cast<CapturedStmt>(AStmt);
8857 auto *CS = cast<CapturedStmt>(AStmt);
8866 CS = cast<CapturedStmt>(CS->getCapturedStmt());
8922 auto *CS = cast<CapturedStmt>(AStmt);
8931 CS = cast<CapturedStmt>(CS->getCapturedStmt());
8952 auto *CS = cast<CapturedStmt>(AStmt);
8961 CS = cast<CapturedStmt>(CS->getCapturedStmt());
8987 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9044 auto *CS = cast<CapturedStmt>(AStmt);
9053 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9081 auto *CS = cast<CapturedStmt>(AStmt);
9090 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9118 auto *CS = cast<CapturedStmt>(AStmt);
9127 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9150 auto *CS = cast<CapturedStmt>(AStmt);
9309 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9394 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9426 auto *CS = cast<CapturedStmt>(AStmt);
9436 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9505 auto *CS = cast<CapturedStmt>(AStmt);
9515 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9549 auto *CS = cast<CapturedStmt>(AStmt);
9559 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9585 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9606 auto *CS = cast<CapturedStmt>(AStmt);
9615 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9641 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9662 auto *CS = cast<CapturedStmt>(AStmt);
9671 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9697 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9717 auto *CS = cast<CapturedStmt>(AStmt);
9726 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9752 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9773 auto *CS = cast<CapturedStmt>(AStmt);
9782 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9818 auto *CS = cast<CapturedStmt>(AStmt);
9828 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9856 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9880 auto *CS = cast<CapturedStmt>(AStmt);
9891 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9918 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
9942 auto *CS = cast<CapturedStmt>(AStmt);
9953 CS = cast<CapturedStmt>(CS->getCapturedStmt());
9992 auto *CS = cast<CapturedStmt>(AStmt);
10002 CS = cast<CapturedStmt>(CS->getCapturedStmt());
10022 auto *CS = cast<CapturedStmt>(AStmt);
10032 CS = cast<CapturedStmt>(CS->getCapturedStmt());
10065 auto *CS = cast<CapturedStmt>(AStmt);
10075 CS = cast<CapturedStmt>(CS->getCapturedStmt());
10101 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
10120 auto *CS = cast<CapturedStmt>(AStmt);
10130 CS = cast<CapturedStmt>(CS->getCapturedStmt());
10158 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
10179 auto *CS = cast<CapturedStmt>(AStmt);
10189 CS = cast<CapturedStmt>(CS->getCapturedStmt());
10215 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
12124 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
12374 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
12720 if (T Res = Gen(cast<ValueDecl>(D)))
12735 auto ND = cast<NamedDecl>(RD);
13395 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
13402 auto *DRD = cast<OMPDeclareReductionDecl>(DRDRef->getDecl());
13844 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
13942 Step = cast<BinaryOperator>(CalcStep)->getLHS();
13975 auto *DE = cast<DeclRefExpr>(SimpleRefExpr);
13978 CapturedRef = cast<VarDecl>(DE->getDecl())->getInit();
13981 buildDeclRefExpr(SemaRef, cast<VarDecl>(DE->getDecl()),
14138 auto *VD = cast<VarDecl>(D);
14709 auto *FD = cast<FieldDecl>(CurE->getMemberDecl());
15147 auto *DMD = cast<OMPDeclareMapperDecl>(D);
15606 auto *PrevDecl = cast<OMPDeclareReductionDecl>(Filter.next());
15628 cast<OMPDeclareReductionDecl>(PrevDeclInScope);
15661 auto *DRD = cast<OMPDeclareReductionDecl>(D);
15708 auto *DRD = cast<OMPDeclareReductionDecl>(D);
15722 auto *DRD = cast<OMPDeclareReductionDecl>(D);
15770 auto *DRD = cast<OMPDeclareReductionDecl>(D);
15794 PushOnScopeChains(cast<OMPDeclareReductionDecl>(D), S,
15858 auto *PrevDecl = cast<OMPDeclareMapperDecl>(Filter.next());
15880 cast<OMPDeclareMapperDecl>(PrevDeclInScope);
16206 if (!SameDirectiveDecls.insert(cast<NamedDecl>(ND->getCanonicalDecl())))
16225 OMPDeclareTargetDeclAttr::getDeviceType(cast<ValueDecl>(ND));
16233 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(cast<ValueDecl>(ND));
16250 auto *VD = cast<VarDecl>(D);
16422 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
16535 isa<CXXThisExpr>(cast<MemberExpr>(SimpleRefExpr)->getBase())) &&
tools/clang/lib/Sema/SemaOverload.cpp 1008 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl();
1028 HideUsingShadowDecl(S, cast<UsingShadowDecl>(*I));
1534 const auto *ToFPT = cast<FunctionProtoType>(ToFn);
1536 FromFn = cast<FunctionType>(
1683 assert(cast<UnaryOperator>(From->IgnoreParens())->getOpcode()
1690 assert(cast<UnaryOperator>(From->IgnoreParens())->getOpcode() ==
3296 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function);
3438 CXXRecordDecl *ActingContext = cast<CXXRecordDecl>(D->getDeclContext());
3440 D = cast<UsingShadowDecl>(D)->getTargetDecl();
3445 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl());
3447 Conv = cast<CXXConversionDecl>(D);
4478 CXXRecordDecl *ActingDC = cast<CXXRecordDecl>(D->getDeclContext());
4480 D = cast<UsingShadowDecl>(D)->getTargetDecl();
4486 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl());
4488 Conv = cast<CXXConversionDecl>(D);
5718 cast<CXXConversionDecl>(ViableConversions[I]->getUnderlyingDecl());
5733 cast<CXXConversionDecl>(Found->getUnderlyingDecl());
5771 cast<CXXConversionDecl>(Found->getUnderlyingDecl());
5811 CXXRecordDecl *ActingContext = cast<CXXRecordDecl>(D->getDeclContext());
5813 D = cast<UsingShadowDecl>(D)->getTargetDecl();
5818 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl());
5820 Conv = cast<CXXConversionDecl>(D);
5904 cast<CXXRecordDecl>(RecordTy->getDecl())->getVisibleConversionFunctions();
5920 Conversion = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl());
5924 Conversion = cast<CXXConversionDecl>(D);
6396 CXXMethodDecl *Method = cast<CXXMethodDecl>(Function);
6543 Result, Context, cast<FunctionDecl>(DIA->getParent()), Args, ThisArg))
6575 FunTmpl ? FunTmpl->getTemplatedDecl() : cast<FunctionDecl>(D);
6577 if (isa<CXXMethodDecl>(FD) && !cast<CXXMethodDecl>(FD)->isStatic()) {
6596 cast<CXXRecordDecl>(FunTmpl->getDeclContext()),
6601 AddMethodCandidate(cast<CXXMethodDecl>(FD), F.getPair(),
6602 cast<CXXMethodDecl>(FD)->getParent(), ObjectType,
6614 assert(cast<CXXMethodDecl>(FD)->isStatic());
6639 CXXRecordDecl *ActingContext = cast<CXXRecordDecl>(Decl->getDeclContext());
6642 Decl = cast<UsingShadowDecl>(Decl)->getTargetDecl();
6652 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext,
6848 cast<CXXMethodDecl>(Candidate.Function)->isStatic() ||
6866 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl,
6966 if (HasThisConversion && !cast<CXXMethodDecl>(FD)->isStatic() &&
7103 = cast<CXXRecordDecl>(ImplicitParamType->castAs<RecordType>()->getDecl());
7390 FunTmpl ? FunTmpl->getTemplatedDecl() : cast<FunctionDecl>(D);
7801 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(TyRec->getDecl());
7804 D = cast<UsingShadowDecl>(D)->getTargetDecl();
7811 CXXConversionDecl *Conv = cast<CXXConversionDecl>(D);
7870 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(TyRec->getDecl());
7876 D = cast<UsingShadowDecl>(D)->getTargetDecl();
9172 cast<FunctionTemplateDecl>(*I), FoundDecl, ExplicitTemplateArgs, Args,
9458 auto *Cand1Class = cast<CXXRecordDecl>(Cand1.Function->getDeclContext());
9459 auto *Cand2Class = cast<CXXRecordDecl>(Cand2.Function->getDeclContext());
9552 auto *EnumA = cast<EnumDecl>(EA->getDeclContext());
9553 auto *EnumB = cast<EnumDecl>(EB->getDeclContext());
9946 E = cast<UnaryOperator>(E)->getSubExpr()->IgnoreParens();
9947 DeclarationName Name = cast<OverloadExpr>(E)->getName();
10183 FunctionDecl *Fn = cast<FunctionDecl>(D);
10272 TemplateTypeParmDecl *TParam = cast<TemplateTypeParmDecl>(ParamD);
10344 index = cast<TemplateTemplateParmDecl>(ParamD)->getIndex();
10457 !checkAddressOfCandidateIsAvailable(S, cast<FunctionDecl>(Templated)))
10497 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext);
10568 ES = cast<CXXConstructorDecl>(Cand->Function)->getExplicitSpecifier();
10572 ES = cast<CXXConversionDecl>(Cand->Function)->getExplicitSpecifier();
10576 ES = cast<CXXDeductionGuideDecl>(Cand->Function)->getExplicitSpecifier();
10696 if (cast<CXXConstructorDecl>(Fn)->isCopyOrMoveConstructor())
11512 CurAccessFunPair, cast<FunctionDecl>(FunDecl->getCanonicalDecl())));
11585 Matches[0].second = cast<FunctionDecl>(*Result);
11848 = cast<FunctionTemplateDecl>((*I)->getUnderlyingDecl());
11925 cast<CXXMethodDecl>(fn)->isInstance()) {
11986 Callee = cast<UsingShadowDecl>(Callee)->getTargetDecl();
13101 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
13189 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl);
13377 MemExpr = cast<MemberExpr>(NakedMemExpr);
13378 Method = cast<CXXMethodDecl>(MemExpr->getMemberDecl());
13383 UnresolvedMemberExpr *UnresExpr = cast<UnresolvedMemberExpr>(NakedMemExpr);
13406 CXXRecordDecl *ActingDC = cast<CXXRecordDecl>(Func->getDeclContext());
13408 Func = cast<UsingShadowDecl>(Func)->getTargetDecl();
13413 AddOverloadCandidate(cast<CXXConstructorDecl>(Func), I.getPair(), Args,
13427 cast<FunctionTemplateDecl>(Func), I.getPair(), ActingDC,
13441 Method = cast<CXXMethodDecl>(Best->Function);
13495 MemExpr = cast<MemberExpr>(MemExprE->IgnoreParens());
13646 cast<CXXRecordDecl>(Record->getDecl())->getVisibleConversionFunctions();
13649 CXXRecordDecl *ActingContext = cast<CXXRecordDecl>(D->getDeclContext());
13651 D = cast<UsingShadowDecl>(D)->getTargetDecl();
13658 CXXConversionDecl *Conv = cast<CXXConversionDecl>(D);
13726 = cast<CXXConversionDecl>(
13758 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
13953 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
14204 assert(cast<DeclRefExpr>(SubExpr)->getQualifier()
14211 = Context.getTypeDeclType(cast<RecordDecl>(Method->getDeclContext()));
14270 if (cast<CXXMethodDecl>(Fn)->isStatic()) {
14289 if (cast<CXXMethodDecl>(Fn)->isStatic()) {
tools/clang/lib/Sema/SemaPseudoObject.cpp 407 cast<OpaqueValueExpr>(e)->setIsUnique(false);
408 return cast<OpaqueValueExpr>(e);
567 cast<ObjCMethodDecl>(S.CurContext->getNonClosureAncestor());
818 cast<ObjCMessageExpr>(msg.get()->IgnoreImplicit());
1090 for (NamedDecl *D : cast<CXXRecordDecl>(RecordTy->getDecl())
1431 cast<ObjCMessageExpr>(msg.get()->IgnoreImplicit());
1452 return cast<MSPropertyRefExpr>(Base);
1634 return cast<OpaqueValueExpr>(E)->getSourceExpr();
1655 Expr *rhs = cast<OpaqueValueExpr>(cop->getRHS())->getSourceExpr();
1666 Expr *rhs = cast<OpaqueValueExpr>(bop->getRHS())->getSourceExpr();
tools/clang/lib/Sema/SemaStmt.cpp 406 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin();
500 cast<CaseStmt>(S)->setSubStmt(SubStmt);
849 SwitchStmt *SS = cast<SwitchStmt>(Switch);
922 CaseStmt *CS = cast<CaseStmt>(SC);
1953 Expr *FirstE = cast<Expr>(First);
2374 DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl);
2375 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl());
2378 DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl);
2379 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl());
2694 ObjCForCollectionStmt * ForStmt = cast<ObjCForCollectionStmt>(S);
2735 const MemberExpr *ME = cast<MemberExpr>(Call->getCallee());
2738 const MaterializeTemporaryExpr *MTE = cast<MaterializeTemporaryExpr>(E);
2748 const CXXOperatorCallExpr *Call = cast<CXXOperatorCallExpr>(E);
2865 CXXForRangeStmt *ForStmt = cast<CXXForRangeStmt>(S);
3096 if (cast<CXXMethodDecl>(FD)->getRefQualifier() != RQ_RValue)
3241 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction());
3567 const_cast<VarDecl*>(cast<ReturnStmt>(R.get())->getNRVOCandidate())) {
3637 FunctionDecl *FD = cast<FunctionDecl>(CurContext);
4087 CXXCatchStmt *H = cast<CXXCatchStmt>(Handlers[i]);
4236 cast<CompoundStmt>(Nested));
4411 CapturedRegionScopeInfo *RSI = cast<CapturedRegionScopeInfo>(ScopeRAII.get());
4428 CapturedRegionScopeInfo *RSI = cast<CapturedRegionScopeInfo>(ScopeRAII.get());
tools/clang/lib/Sema/SemaStmtAsm.cpp 250 StringLiteral *AsmString = cast<StringLiteral>(asmString);
tools/clang/lib/Sema/SemaTemplate.cpp 80 Record = cast<CXXRecordDecl>(Record->getDeclContext());
238 TemplateDecl *TD = cast<TemplateDecl>(D);
698 isa<CXXMethodDecl>(DC) && cast<CXXMethodDecl>(DC)->isInstance()) {
699 QualType ThisType = cast<CXXMethodDecl>(DC)->getThisType();
840 Diag(Loc, DiagId) << cast<NamedDecl>(PrevDecl)->getDeclName();
1449 cast<CXXRecordDecl>(PrevDecl)->isInjectedClassName()) {
1450 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext());
1452 = cast<CXXRecordDecl>(PrevDecl)->getDescribedClassTemplate();
1455 = cast<ClassTemplateSpecializationDecl>(PrevDecl)
1552 auto *Tmpl = cast<CXXRecordDecl>(Hidden)->getDescribedClassTemplate();
1888 cast<NonTypeTemplateParmDecl>(TemplateParam), Args);
2041 cast<CXXRecordDecl>(Template->getTemplatedDecl())->getDefinition()) {
2051 *this, cast<ClassTemplateDecl>(Template));
2082 D = cast<NamedDecl>(D->getCanonicalDecl());
2105 cast<CXXDeductionGuideDecl>(
2106 cast<FunctionTemplateDecl>(
2274 = OldParams? cast<TemplateTypeParmDecl>(*OldParam) : nullptr;
2318 = OldParams? cast<NonTypeTemplateParmDecl>(*OldParam) : nullptr;
2344 = cast<TemplateTemplateParmDecl>(*NewParam);
2361 = OldParams? cast<TemplateTemplateParmDecl>(*OldParam) : nullptr;
2439 cast<TemplateTemplateParmDecl>(*NewParam)->removeDefaultArgument();
2477 Depth = cast<TemplateTemplateParmDecl>(ND)->getDepth();
4201 VarDecl *Var = cast<VarDecl>(Decl.get());
4814 = cast<TemplateTemplateParmDecl>(Param);
5067 TemplateTemplateParmDecl *TempParm = cast<TemplateTemplateParmDecl>(Param);
5174 D = cast<TemplateParmDecl>(cast<TemplateDecl>(TD->getMostRecentDecl())
5174 D = cast<TemplateParmDecl>(cast<TemplateDecl>(TD->getMostRecentDecl())
5182 S.diagnoseMissingImport(Loc, cast<NamedDecl>(TD),
5219 cast<TemplateDecl>(Template->getMostRecentDecl())
5390 = cast<TemplateTemplateParmDecl>(*Param);
6196 TemplateArgument(cast<ValueDecl>(Entity->getCanonicalDecl()), ParamType);
6257 VD = cast<ValueDecl>(VD->getCanonicalDecl());
6308 !cast<CXXMethodDecl>(DRE->getDecl())->isStatic()) &&
6316 ValueDecl *D = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
6978 = Context.getTypeDeclType(cast<RecordDecl>(VD->getDeclContext()));
6989 if (isa<CXXMethodDecl>(VD) && cast<CXXMethodDecl>(VD)->isInstance())
7170 NonTypeTemplateParmDecl *NewNTTP = cast<NonTypeTemplateParmDecl>(New);
7208 TemplateTemplateParmDecl *NewTTP = cast<TemplateTemplateParmDecl>(New);
7510 auto *ND = cast<NamedDecl>(SpecializedContext);
7747 TemplateTemplateParmDecl *TTP = cast<TemplateTemplateParmDecl>(Param);
8448 cast<FunctionTemplateDecl>(FunTmpl->getFirstDecl()),
8510 FunctionDecl *Specialization = cast<FunctionDecl>(*Result);
8703 cast<CXXMethodDecl>(Member)->setInstantiationOfMemberFunction(
8704 cast<CXXMethodDecl>(InstantiatedFrom),
8705 cast<CXXMethodDecl>(Instantiation)->getTemplateSpecializationKind());
8707 cast<CXXRecordDecl>(Member)->setInstantiationOfMemberClass(
8708 cast<CXXRecordDecl>(InstantiatedFrom),
8709 cast<CXXRecordDecl>(Instantiation)->getTemplateSpecializationKind());
8752 FunctionDecl *InstantiationFunction = cast<FunctionDecl>(Instantiation);
8767 cast<CXXMethodDecl>(InstantiatedFrom), TSK_ExplicitSpecialization);
8770 cast<VarDecl>(InstantiatedFrom), TSK_ExplicitSpecialization);
8773 cast<CXXRecordDecl>(InstantiatedFrom), TSK_ExplicitSpecialization);
8776 cast<EnumDecl>(InstantiatedFrom), TSK_ExplicitSpecialization);
8809 NamedDecl *Instantiation = cast<NamedDecl>(Member->getCanonicalDecl());
9192 auto *A = cast<InheritableAttr>(
9267 TagDecl *Tag = cast<TagDecl>(TagD);
9273 CXXRecordDecl *Record = cast<CXXRecordDecl>(Tag);
9513 Prev = cast<VarDecl>(Res.get());
9651 Specialization = cast<FunctionDecl>(*Result);
10074 declaresSameEntity(LookupRD, cast<Decl>(FoundRD->getParent())))
10249 NonTypeTemplateParmDecl *NTTP = cast<NonTypeTemplateParmDecl>(Param);
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 472 D = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr;
640 return TemplateParameter(cast<TemplateTemplateParmDecl>(D));
1356 Info.Param = cast<TemplateTypeParmDecl>(TemplateParams->getParam(Index));
1390 Info.Param = cast<TemplateTypeParmDecl>(TemplateParams->getParam(Index));
1415 Info.Param = cast<TemplateTypeParmDecl>(TemplateParams->getParam(Index));
1835 CXXRecordDecl *Next = cast<CXXRecordDecl>(NextT->getDecl());
3540 FunctionDecl *Fn = cast<FunctionDecl>(D);
4151 = cast<CXXConversionDecl>(ConversionTemplate->getTemplatedDecl());
4638 CXXRecordDecl *Lambda = cast<CXXMethodDecl>(FD)->getParent();
4987 = cast<FunctionDecl>(*Best)->getPrimaryTemplate();
4991 = cast<FunctionDecl>(*I)->getPrimaryTemplate();
5006 = cast<FunctionDecl>(*I)->getPrimaryTemplate();
5028 const auto *FD = cast<FunctionDecl>(*I);
5385 const MemberPointerType *MemPtr = cast<MemberPointerType>(T.getTypePtr());
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp 527 << cast<TypeAliasTemplateDecl>(D)
534 TemplateDecl *Template = cast<TemplateDecl>(Active->Template);
548 FunctionTemplateDecl *FnTmpl = cast<FunctionTemplateDecl>(Active->Entity);
589 << IsVar << IsTemplate << cast<NamedDecl>(Active->Entity)
598 ParmVarDecl *Param = cast<ParmVarDecl>(Active->Entity);
599 FunctionDecl *FD = cast<FunctionDecl>(Param->getDeclContext());
614 NamedDecl *Parm = cast<NamedDecl>(Active->Entity);
624 cast<ClassTemplatePartialSpecializationDecl>(Active->Template)
643 cast<ClassTemplatePartialSpecializationDecl>(Active->Template)
658 << cast<FunctionDecl>(Active->Entity);
664 << cast<FunctionDecl>(Active->Entity)
671 << cast<CXXRecordDecl>(Active->Entity) << Active->SpecialMember;
887 Old, cast<VarDecl>(New));
1077 return SemaRef.FindInstantiatedDecl(Loc, cast<NamedDecl>(D), TemplateArgs);
1465 return RebuildVarDeclRefExpr(cast<VarDecl>(TransformedDecl), E->getExprLoc());
1492 assert(!cast<FunctionDecl>(E->getParam()->getDeclContext())->
1496 cast<FunctionDecl>(E->getParam()->getDeclContext()),
1870 FunctionDecl *OwningFunc = cast<FunctionDecl>(OldParm->getDeclContext());
2636 ClassTemplateSpec = cast<ClassTemplateSpecializationDecl>(
2863 FieldDecl *Pattern = cast<FieldDecl>(Lookup.front());
3058 Pack->push_back(cast<VarDecl>(Inst));
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 36 return cast<CXXRecordDecl>(DC)->isLocalClass();
275 auto *FD = cast<FunctionDecl>(New);
358 auto *FD = cast<FunctionDecl>(New);
542 cast<FunctionDecl>(New));
548 cast<FunctionDecl>(New));
767 TypedefNameDecl *InstPrevTypedef = cast<TypedefNameDecl>(InstPrev);
854 NewBindings.push_back(cast<BindingDecl>(VisitBindingDecl(OldBD)));
916 QualType ReturnType = cast<FunctionDecl>(DC)->getReturnType();
981 cast<RecordDecl>(Owner),
990 cast<Decl>(Owner)->setInvalidDecl();
1078 QualType T = cast<FieldDecl>(NamedChain[i-1])->getType();
1133 cast<NamedDecl>(NewND), D->getFriendLoc());
1166 PrevDecl = cast<EnumDecl>(Prev);
1394 cast<NamespaceDecl>(DC)->getIdentifier() &&
1395 cast<NamespaceDecl>(DC)->getIdentifier()->isStr("__detail")) {
1398 cast<NamespaceDecl>(DCParent)->getIdentifier() &&
1399 cast<NamespaceDecl>(DCParent)->getIdentifier()->isStr("tr1")) {
1400 if (cast<Decl>(DCParent)->isInStdNamespace())
1655 PrevDecl = cast<CXXRecordDecl>(Owner);
1661 PrevDecl = cast<CXXRecordDecl>(Prev);
1790 cast<Decl>(Owner)->isDefinedOutsideFunctionOrMethod());
1842 cast<CXXDeductionGuideDecl>(Function)->setIsCopyDeductionCandidate();
1949 Previous.addDecl(cast<FunctionTemplateDecl>(Temp));
1994 ? cast<NamedDecl>(FunctionTemplate)
2095 cast<Decl>(Owner)->isDefinedOutsideFunctionOrMethod());
2150 CXXRecordDecl *Record = cast<CXXRecordDecl>(DC);
2268 Previous.addDecl(cast<FunctionTemplateDecl>(Temp));
2905 Expansions.push_back(cast<NamedDecl>(Slice));
3008 auto *AC = cast<OMPAllocatorClause>(C);
3053 PrevDeclInScope = cast<OMPDeclareReductionDecl>(
3060 auto *NewDRD = cast<OMPDeclareReductionDecl>(DRD.get().getSingleDecl());
3082 cast<DeclRefExpr>(D->getCombinerIn())->getDecl(),
3083 cast<DeclRefExpr>(NewDRD->getCombinerIn())->getDecl());
3085 cast<DeclRefExpr>(D->getCombinerOut())->getDecl(),
3086 cast<DeclRefExpr>(NewDRD->getCombinerOut())->getDecl());
3098 cast<DeclRefExpr>(D->getInitOrig())->getDecl(),
3099 cast<DeclRefExpr>(NewDRD->getInitOrig())->getDecl());
3101 cast<DeclRefExpr>(D->getInitPriv())->getDecl(),
3102 cast<DeclRefExpr>(NewDRD->getInitPriv())->getDecl());
3151 PrevDeclInScope = cast<OMPDeclareMapperDecl>(
3175 cast<DeclRefExpr>(D->getMapperVarRef())->getDecl(),
3176 cast<DeclRefExpr>(NewDMD->getMapperVarRef())->getDecl());
3182 auto *OldC = cast<OMPMapClause>(C);
3822 ThisContext = cast<CXXRecordDecl>(Owner);
4113 SemaRef.AdjustDestructorExceptionSpec(cast<CXXDestructorDecl>(New));
4366 InstantiateMemInitializers(Ctor, cast<CXXConstructorDecl>(PatternDecl),
4580 cast<VarTemplateSpecializationDecl>(NewVar)->setSpecializationKind(
4885 cast<VarTemplateSpecializationDecl>(Var)->setInstantiationOf(
5018 cast<CXXRecordDecl>(CurContext->getParent()));
5096 = cast<ClassTemplatePartialSpecializationDecl>(Pattern->getCanonicalDecl());
5098 Instance = cast<ClassTemplatePartialSpecializationDecl>(
5214 return isInstantiationOf(cast<CXXRecordDecl>(D), Record);
5217 return isInstantiationOf(cast<FunctionDecl>(D), Function);
5220 return isInstantiationOf(cast<EnumDecl>(D), Enum);
5224 return isInstantiationOfStaticDataMember(cast<VarDecl>(D), Var);
5227 return isInstantiationOf(cast<ClassTemplateDecl>(D), Temp);
5230 return isInstantiationOf(cast<FunctionTemplateDecl>(D), Temp);
5234 return isInstantiationOf(cast<ClassTemplatePartialSpecializationDecl>(D),
5241 cast<FieldDecl>(D));
5246 return isInstantiationOf(cast<UsingDecl>(D), Using, Ctx);
5249 return isInstantiationOf(cast<UsingShadowDecl>(D), Shadow, Ctx);
5252 D->getDeclName() == cast<NamedDecl>(Other)->getDeclName();
5262 return cast<NamedDecl>(*first);
5326 !cast<ParmVarDecl>(D)->getType()->isInstantiationDependentType())
5334 (isa<CXXRecordDecl>(D) && cast<CXXRecordDecl>(D)->isLambda())) {
5340 return cast<NamedDecl>(FD);
5346 return cast<NamedDecl>((*Found->get<DeclArgumentPack *>())[PackIdx]);
5381 return cast<TypeDecl>(Inst);
5392 return cast<LabelDecl>(Inst);
5466 Loc, cast<ClassTemplateSpecializationDecl>(SubstRecord))) {
5565 << Context.getTypeDeclType(cast<CXXRecordDecl>(ParentDC));
5571 EnumDecl *Enum = cast<EnumDecl>(ED->getLexicalDeclContext());
5572 EnumDecl *Spec = cast<EnumDecl>(FindInstantiatedDecl(Loc, Enum,
5578 << Context.getTypeDeclType(cast<TypeDecl>(Spec->getDeclContext()));
5630 VarDecl *Var = cast<VarDecl>(Inst.first);
tools/clang/lib/Sema/SemaTemplateVariadic.cpp 908 ParmVarDecl *Param = cast<ParmVarDecl>(Chunk.Fun.Params[i].Param);
1058 = cast<PackExpansionExpr>(Argument.getAsExpr());
tools/clang/lib/Sema/SemaType.cpp 257 AttrsForTypes.push_back({cast<AttributedType>(T.getTypePtr()), A});
269 auto *NewAttrTy = cast<AttributedType>(T.getTypePtr());
2921 OwnedTagDecl = cast<TagDecl>(D.getDeclSpec().getRepAsDecl());
3013 switch (cast<TagDecl>(SemaRef.CurContext)->getTagKind()) {
4744 TagDecl *Tag = cast<TagDecl>(D.getDeclSpec().getRepAsDecl());
4809 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);
5697 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);
6339 Fn = cast<FunctionType>(Ty);
6342 T = cast<ParenType>(Ty)->getInnerType();
6345 T = cast<PointerType>(Ty)->getPointeeType();
6348 T = cast<BlockPointerType>(Ty)->getPointeeType();
6351 T = cast<MemberPointerType>(Ty)->getPointeeType();
6354 T = cast<ReferenceType>(Ty)->getPointeeType();
6357 T = cast<AttributedType>(Ty)->getEquivalentType();
6408 return wrap(C, cast<AttributedType>(Old)->getEquivalentType(), I);
6411 QualType New = wrap(C, cast<ParenType>(Old)->getInnerType(), I);
6416 QualType New = wrap(C, cast<PointerType>(Old)->getPointeeType(), I);
6421 QualType New = wrap(C, cast<BlockPointerType>(Old)->getPointeeType(),I);
6426 const MemberPointerType *OldMPT = cast<MemberPointerType>(Old);
6432 const ReferenceType *OldRef = cast<ReferenceType>(Old);
6819 Str = cast<StringLiteral>(Attr.getArgAsExpr(0))->getString();
7091 cast<FunctionProtoType>(FT)->isVariadic());
7718 cast<MacroQualifiedType>(type.getTypePtr()),
7873 if (isa<TagDecl>(D) && cast<TagDecl>(D)->isBeingDefined()) {
8201 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/Sema/TreeTransform.h 2320 Base, isArrow, OpLoc, EmptySS, cast<FieldDecl>(Member),
3162 cast<ObjCIvarRefExpr>(Result.get())->setIsFreeIvar(IsFreeIvar);
3233 FunctionDecl *Builtin = cast<FunctionDecl>(Lookup.front());
3247 return SemaRef.SemaBuiltinShuffleVector(cast<CallExpr>(TheCall.get()));
3397 ExprResult E = getDerived().TransformExpr(cast<Expr>(S));
5867 QualType T = SemaRef.Context.getTypeDeclType(cast<TypeDecl>(D));
6769 cast<LabelDecl>(LD), SourceLocation(),
7002 cast<LabelDecl>(LD));
7182 auto *FD = cast<FunctionDecl>(SemaRef.CurContext);
7346 cast<UnresolvedLookupExpr>(LookupResult.get()));
7856 return getDerived().TransformSEHFinallyStmt(cast<SEHFinallyStmt>(Handler));
7858 return getDerived().TransformSEHExceptStmt(cast<SEHExceptStmt>(Handler));
7913 DirName = cast<OMPCriticalDirective>(D)->getDirectiveName();
7918 CancelRegion = cast<OMPCancellationPointDirective>(D)->getCancelRegion();
7920 CancelRegion = cast<OMPCancelDirective>(D)->getCancelRegion();
8712 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8727 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8742 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8757 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8772 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8792 auto *ULE = cast<UnresolvedLookupExpr>(E);
8796 cast<NamedDecl>(getDerived().TransformDecl(E->getExprLoc(), D));
8819 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8839 auto *ULE = cast<UnresolvedLookupExpr>(E);
8843 cast<NamedDecl>(getDerived().TransformDecl(E->getExprLoc(), D));
8864 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8884 auto *ULE = cast<UnresolvedLookupExpr>(E);
8888 cast<NamedDecl>(getDerived().TransformDecl(E->getExprLoc(), D));
8909 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8928 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8947 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8962 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8976 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
8991 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
9020 ExprResult EVar = TT.getDerived().TransformExpr(cast<Expr>(VE));
9045 auto *ULE = cast<UnresolvedLookupExpr>(E);
9049 cast<NamedDecl>(TT.getDerived().TransformDecl(E->getExprLoc(), D));
9093 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
9213 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
9228 ExprResult EVar = getDerived().TransformExpr(cast<Expr>(VE));
10170 cast<LabelDecl>(LD));
10685 CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordT->getDecl());
10755 CXXRecordDecl *Record = cast<CXXRecordDecl>(DestroyedRec->getDecl());
10865 NamedDecl *SingleDecl = cast<NamedDecl>(InstD);
12019 auto *VD = cast<ValueDecl>(Pack);
12788 cast<VarDecl>(getDerived().TransformDecl(E->getCaretLocation(),
13081 Ty = cast<TypeDecl>((*Using->shadow_begin())->getTargetDecl());
13085 Ty = cast<UnresolvedUsingTypenameDecl>(D);
13265 NamedDecl *ND = cast<DeclRefExpr>(Callee)->getDecl();
tools/clang/lib/Serialization/ASTCommon.cpp 276 if (const TagDecl *Def = cast<TagDecl>(DC)->getDefinition())
305 = cast<ObjCProtocolDecl>(DC)->getDefinition())
tools/clang/lib/Serialization/ASTReader.cpp 4919 cast<FunctionDecl>(GetDecl(CUDASpecialDeclRefs[0])));
5931 Def = cast<MacroDefinitionRecord>(
7621 if (DeclarationName Name = cast<NamedDecl>(D)->getDeclName()) {
7633 } else if (needsAnonymousDeclarationNumber(cast<NamedDecl>(D))) {
7635 for (auto *DCDecl : cast<Decl>(D->getLexicalDeclContext())->redecls()) {
7636 auto *DC = cast<DeclContext>(DCDecl);
8066 NamedDecl *ND = cast<NamedDecl>(GetDecl(ID));
8087 NamedDecl *ND = cast<NamedDecl>(GetDecl(ID));
8291 NamedDecl *D = cast<NamedDecl>(GetDecl(ID));
8649 NamedDecl *D = cast<NamedDecl>(GetDecl(UndefinedButUsed[Idx++]));
8660 FieldDecl *FD = cast<FieldDecl>(GetDecl(DelayedDeleteExprs[Idx++]));
8778 ValueDecl *D = cast<ValueDecl>(GetDecl(PendingInstantiations[Idx++]));
8792 FunctionDecl *FD = cast<FunctionDecl>(GetDecl(LateParsedTemplates[Idx++]));
8858 NamedDecl *D = cast<NamedDecl>(GetDecl(DeclIDs[I]));
9906 pushExternalDeclIntoScope(cast<NamedDecl>(TLD->second[I]), II);
9937 DeclContext *SemaDC = cast<DeclContext>(GetDecl(Info.SemaDC));
9938 DeclContext *LexicalDC = cast<DeclContext>(GetDecl(Info.LexicalDC));
9970 cast<CXXRecordDecl>(R)->isThisDeclarationADefinition() &&
9972 cast<CXXRecordDecl>(R)->DefinitionData = RD->DefinitionData;
9981 const_cast<ObjCInterfaceType *>(cast<ObjCInterfaceType>(ID->TypeForDecl))
9985 cast<ObjCInterfaceDecl>(R)->Data = ID->Data;
9992 cast<ObjCProtocolDecl>(R)->Data = PD->Data;
9997 auto RTD = cast<RedeclarableTemplateDecl>(D)->getCanonicalDecl();
9999 cast<RedeclarableTemplateDecl>(R)->Common = RTD->Common;
10050 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(PB->first);
10174 getOwningModuleNameForDiagnostic(cast<Decl>(CanonDef));
10180 Diag(cast<Decl>(CanonDef)->getLocation(),
10422 const NamedDecl* FirstDecl = cast<NamedDecl>(FirstIt->first);
10423 const NamedDecl* SecondDecl = cast<NamedDecl>(SecondIt->first);
10451 const auto *FirstParam = cast<TemplateTypeParmDecl>(FirstDecl);
10452 const auto *SecondParam = cast<TemplateTypeParmDecl>(SecondDecl);
10483 const auto *FirstParam = cast<NonTypeTemplateParmDecl>(FirstDecl);
10484 const auto *SecondParam = cast<NonTypeTemplateParmDecl>(SecondDecl);
10515 const auto *FirstParam = cast<TemplateTemplateParmDecl>(FirstDecl);
10517 cast<TemplateTemplateParmDecl>(SecondDecl);
10787 StaticAssertDecl *FirstSA = cast<StaticAssertDecl>(FirstDecl);
10788 StaticAssertDecl *SecondSA = cast<StaticAssertDecl>(SecondDecl);
10843 FieldDecl *FirstField = cast<FieldDecl>(FirstDecl);
10844 FieldDecl *SecondField = cast<FieldDecl>(SecondDecl);
10959 const CXXMethodDecl *FirstMethod = cast<CXXMethodDecl>(FirstDecl);
10960 const CXXMethodDecl *SecondMethod = cast<CXXMethodDecl>(SecondDecl);
11312 TypedefNameDecl *FirstTD = cast<TypedefNameDecl>(FirstDecl);
11313 TypedefNameDecl *SecondTD = cast<TypedefNameDecl>(SecondDecl);
11343 VarDecl *FirstVD = cast<VarDecl>(FirstDecl);
11344 VarDecl *SecondVD = cast<VarDecl>(SecondDecl);
11414 FriendDecl *FirstFriend = cast<FriendDecl>(FirstDecl);
11415 FriendDecl *SecondFriend = cast<FriendDecl>(SecondDecl);
11462 cast<FunctionTemplateDecl>(FirstDecl);
11464 cast<FunctionTemplateDecl>(SecondDecl);
11540 cast<TemplateTypeParmDecl>(FirstParam);
11542 cast<TemplateTypeParmDecl>(SecondParam);
11598 cast<TemplateTemplateParmDecl>(FirstParam);
11600 cast<TemplateTemplateParmDecl>(SecondParam);
11678 cast<NonTypeTemplateParmDecl>(FirstParam);
11680 cast<NonTypeTemplateParmDecl>(SecondParam);
11973 Hashes.emplace_back(cast<EnumConstantDecl>(D),
12161 Listener->ResolvedExceptionSpec(cast<FunctionDecl>(Update.second));
12163 getContext().adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI);
12224 ? cast<ASTReaderListener>(new SimpleASTReaderListener(PP))
12225 : cast<ASTReaderListener>(new PCHValidator(PP, *this))),
tools/clang/lib/Serialization/ASTReaderDecl.cpp 541 cast<TagDecl>(D)->TypedefNameDeclOrQualifier =
542 cast<TypedefNameDecl>(Reader.GetDecl(NamedDeclForTagDecl));
1480 AD->setAsmString(cast<StringLiteral>(Record.readExpr()));
1573 auto *Anon = cast<NamespaceDecl>(Reader.GetDecl(AnonNamespace));
2110 = cast<ClassTemplatePartialSpecializationDecl>(InstD);
2223 cast<VarTemplatePartialSpecializationDecl>(InstD);
2434 mergeRedeclarable(D, cast<T>(Existing), Redecl, TemplatePatternID);
2463 cast<CXXRecordDecl>(ExistingPattern)->getCanonicalDecl();
2476 return mergeRedeclarable(DClass, cast<TagDecl>(ExistingPattern),
2480 return mergeRedeclarable(DFunction, cast<FunctionDecl>(ExistingPattern),
2483 return mergeRedeclarable(DVar, cast<VarDecl>(ExistingPattern), Result);
2485 return mergeRedeclarable(DAlias, cast<TypedefNameDecl>(ExistingPattern),
2824 const auto *TY = cast<TemplateTypeParmDecl>(Y);
2829 const auto *TY = cast<NonTypeTemplateParmDecl>(Y);
2834 const auto *TX = cast<TemplateTemplateParmDecl>(X);
2835 const auto *TY = cast<TemplateTemplateParmDecl>(Y);
2947 if (!declaresSameEntity(cast<Decl>(X->getDeclContext()->getRedeclContext()),
2948 cast<Decl>(Y->getDeclContext()->getRedeclContext())))
2974 const auto *TagY = cast<TagDecl>(Y);
2986 const auto *FuncY = cast<FunctionDecl>(Y);
2988 const auto *CtorY = cast<CXXConstructorDecl>(Y);
3039 const auto *VarY = cast<VarDecl>(Y);
3062 const auto *NamespaceY = cast<NamespaceDecl>(Y);
3069 const auto *TemplateY = cast<TemplateDecl>(Y);
3078 const auto *FDY = cast<FieldDecl>(Y);
3085 const auto *IFDY = cast<IndirectFieldDecl>(Y);
3097 const auto *USY = cast<UsingShadowDecl>(Y);
3104 const auto *UY = cast<UsingDecl>(Y);
3110 const auto *UY = cast<UnresolvedUsingValueDecl>(Y);
3117 cast<UnresolvedUsingTypenameDecl>(Y)->getQualifier());
3121 const auto *NAY = cast<NamespaceAliasDecl>(Y);
3235 for (auto *D : merged_redecls(cast<Decl>(LexicalDC))) {
3253 auto *CanonDC = cast<Decl>(DC)->getCanonicalDecl();
3263 if (PrimaryDC && !cast<Decl>(PrimaryDC)->isFromASTFile()) {
3266 Previous.push_back(cast<NamedDecl>(ND->getCanonicalDecl()));
3268 Previous[Number] = cast<NamedDecl>(ND->getCanonicalDecl());
3278 auto *CanonDC = cast<Decl>(DC)->getCanonicalDecl();
3410 D->RedeclLink.setPrevious(cast<DeclT>(Previous));
3411 D->First = cast<DeclT>(Previous)->First;
3421 auto *PrevVD = cast<VarDecl>(Previous);
3449 auto *PrevFD = cast<FunctionDecl>(Previous);
3493 {cast<FunctionDecl>(Canon),
3509 auto *To = cast<ParmDecl>(ToD);
3533 Context, cast<TemplateTemplateParmDecl>(FromParam), ToParam);
3563 cast<TemplateDecl>(Previous), TD);
3568 D->RedeclLink.setLatest(cast<DeclT>(Latest));
4038 auto *DC = cast<DeclContext>(D)->getPrimaryContext();
4244 auto *RD = cast<CXXRecordDecl>(D);
4270 cast<NamespaceDecl>(D)->setAnonymousNamespace(Anon);
4276 auto *VD = cast<VarDecl>(D);
4298 auto *FD = cast<FunctionDecl>(D);
4310 auto *Param = cast<ParmVarDecl>(D);
4325 auto *FD = cast<FieldDecl>(D);
4342 auto *FD = cast<FunctionDecl>(D);
4364 auto *RD = cast<CXXRecordDecl>(D);
4388 auto *Spec = cast<ClassTemplateSpecializationDecl>(RD);
4428 auto *First = cast<CXXDestructorDecl>(D->getCanonicalDecl());
4444 auto *FD = cast<FunctionDecl>(D);
4462 auto *FD = cast<FunctionDecl>(D);
4475 Reader.getContext().setManglingNumber(cast<NamedDecl>(D),
4480 Reader.getContext().setStaticLocalNumber(cast<VarDecl>(D),
4503 auto *Exported = cast<NamedDecl>(D);
tools/clang/lib/Serialization/ASTReaderStmt.cpp 444 Exprs.push_back(cast<Expr>(Record.readSubStmt()));
558 E->setFunctionName(cast<StringLiteral>(Record.readSubExpr()));
893 E->OpaqueValue = cast<OpaqueValueExpr>(Record.readSubExpr());
1163 E->setString(cast<StringLiteral>(Record.readSubStmt()));
tools/clang/lib/Serialization/ASTWriter.cpp 3590 return cast<NamedDecl>(Redecl);
3601 return cast<NamedDecl>(First);
4112 for (Decl *ChildD : cast<CXXRecordDecl>(DC)->decls())
4203 Chain->getKeyDeclaration(cast<Decl>(DC))->isFromASTFile()) {
4205 for (auto *Prev = cast<NamespaceDecl>(DC)->getPreviousDecl(); Prev;
4300 DC = cast<DeclContext>(Chain->getKeyDeclaration(cast<Decl>(DC)));
4300 DC = cast<DeclContext>(Chain->getKeyDeclaration(cast<Decl>(DC)));
4303 RecordData::value_type Record[] = {UPDATE_VISIBLE, getDeclID(cast<Decl>(DC))};
5292 const VarDecl *VD = cast<VarDecl>(D);
5307 cast<ParmVarDecl>(Update.getDecl())->getDefaultArg()));
5312 cast<FieldDecl>(Update.getDecl())->getInClassInitializer());
5316 auto *RD = cast<CXXRecordDecl>(D);
5331 auto *Spec = cast<ClassTemplateSpecializationDecl>(RD);
5364 Record.AddStmt(cast<CXXDestructorDecl>(D)->getOperatorDeleteThisArg());
5369 cast<FunctionDecl>(D)->getType()->castAs<FunctionProtoType>(),
5415 const auto *Def = cast<FunctionDecl>(D);
6372 if (D->isFromASTFile() || !isImportedDeclContext(Chain, cast<Decl>(DC)))
6378 if (UpdatedDeclContexts.insert(DC) && !cast<Decl>(DC)->isFromASTFile()) {
6413 if (isUnresolvedExceptionSpec(cast<FunctionDecl>(D)
6483 POI = cast<FunctionDecl>(D)->getPointOfInstantiation();
tools/clang/lib/Serialization/ASTWriterDecl.cpp 1212 Decl *Parent = cast<Decl>(
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp 97 const NamedDecl *ND = cast<NamedDecl>(D);
tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp 325 const ElementRegion *elemReg = cast<ElementRegion>(region);
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp 576 << cast<FunctionDecl>(Call.getDecl())->getName();
896 const VarDecl *ElemDecl = cast<VarDecl>(DS->getSingleDecl());
tools/clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp 129 const auto *DRecordDecl = cast<CXXRecordDecl>(Dtor->getDecl()->getParent());
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp 331 const SubRegion *superReg = cast<SubRegion>(ER->getSuperRegion());
828 const StringLiteral *strLit = cast<StringRegion>(MR)->getStringLiteral();
939 const SubRegion *superReg = cast<SubRegion>(ER->getSuperRegion());
1015 const NamedDecl *FD = cast<FunctionCodeRegion>(MR)->getDecl();
1074 auto *SubReg = cast<SubRegion>(BR);
2263 const auto *CE = cast<CallExpr>(Call.getOriginExpr());
tools/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp 171 Object = cast<CXXInstanceCall>(&Call)->getCXXThisExpr();
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp 514 cast<SymbolRegionValue>(IvarSymbol)->getRegion();
515 const ObjCIvarRegion *IvarRegion = cast<ObjCIvarRegion>(TVR);
525 cast<ObjCMethodDecl>(LCtx->getDecl())->getClassInterface())
798 auto *MD = cast<ObjCMethodDecl>(LCtx->getDecl());
799 return cast<ObjCImplDecl>(MD->getDeclContext());
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp 297 const VarDecl *vdInc = cast<VarDecl>(drInc->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp 63 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex);
72 const MemberExpr *ME = cast<MemberExpr>(Ex);
80 const ObjCIvarRefExpr *IV = cast<ObjCIvarRefExpr>(Ex);
139 const ArraySubscriptExpr *AE = cast<ArraySubscriptExpr>(S);
147 const OMPArraySectionExpr *AE = cast<OMPArraySectionExpr>(S);
155 const UnaryOperator *U = cast<UnaryOperator>(S);
161 const MemberExpr *M = cast<MemberExpr>(S);
171 const ObjCIvarRefExpr *IV = cast<ObjCIvarRefExpr>(S);
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp 183 recordFixedType(Target, cast<CXXDestructorDecl>(D), C);
264 recordFixedType(Target, cast<CXXConstructorDecl>(LCtx->getDecl()), C);
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp 361 const CStyleCastExpr* CastExpr1 = cast<CStyleCastExpr>(Stmt1);
362 const CStyleCastExpr* CastExpr2 = cast<CStyleCastExpr>(Stmt2);
367 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1);
368 const ReturnStmt *ReturnStmt2 = cast<ReturnStmt>(Stmt2);
374 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1);
375 const ForStmt *ForStmt2 = cast<ForStmt>(Stmt2);
392 const DoStmt *DStmt1 = cast<DoStmt>(Stmt1);
393 const DoStmt *DStmt2 = cast<DoStmt>(Stmt2);
404 const WhileStmt *WStmt1 = cast<WhileStmt>(Stmt1);
405 const WhileStmt *WStmt2 = cast<WhileStmt>(Stmt2);
416 const IfStmt *IStmt1 = cast<IfStmt>(Stmt1);
417 const IfStmt *IStmt2 = cast<IfStmt>(Stmt2);
431 const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1);
432 const CompoundStmt *CompStmt2 = cast<CompoundStmt>(Stmt2);
450 const BinaryOperator *BinOp1 = cast<BinaryOperator>(Stmt1);
451 const BinaryOperator *BinOp2 = cast<BinaryOperator>(Stmt2);
455 const CharacterLiteral *CharLit1 = cast<CharacterLiteral>(Stmt1);
456 const CharacterLiteral *CharLit2 = cast<CharacterLiteral>(Stmt2);
460 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1);
461 const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2);
465 const IntegerLiteral *IntLit1 = cast<IntegerLiteral>(Stmt1);
466 const IntegerLiteral *IntLit2 = cast<IntegerLiteral>(Stmt2);
475 const FloatingLiteral *FloatLit1 = cast<FloatingLiteral>(Stmt1);
476 const FloatingLiteral *FloatLit2 = cast<FloatingLiteral>(Stmt2);
480 const StringLiteral *StringLit1 = cast<StringLiteral>(Stmt1);
481 const StringLiteral *StringLit2 = cast<StringLiteral>(Stmt2);
485 const MemberExpr *MemberStmt1 = cast<MemberExpr>(Stmt1);
486 const MemberExpr *MemberStmt2 = cast<MemberExpr>(Stmt2);
490 const UnaryOperator *UnaryOp1 = cast<UnaryOperator>(Stmt1);
491 const UnaryOperator *UnaryOp2 = cast<UnaryOperator>(Stmt2);
tools/clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp 293 const auto *TypedRegion = cast<TypedValueRegion>(ObjRegion);
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp 483 const auto *Ctr = cast<CXXConstructorDecl>(Call.getDecl());
569 const auto *InstCall = cast<CXXInstanceCall>(&Call);
570 if (cast<CXXMethodDecl>(Func)->isMoveAssignmentOperator()) {
724 if (cast<CXXConstructorDecl>(Func)->isMoveConstructor()) {
2060 cast<SymIntExpr>(CompSym)->getOpcode()) &&
2062 return assumeNoOverflow(NewState, cast<SymIntExpr>(CompSym)->getLHS(), 2);
tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp 251 cast<ObjCMethodDecl>(MDI->getCanonicalDecl()));
290 const ObjCIvarDecl *I = cast<ObjCIvarDecl>(Iv->getCanonicalDecl());
397 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl());
601 markInvalidated(cast<ObjCIvarDecl>(D->getCanonicalDecl()));
621 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl());
tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp 204 CXXRecordDecl *baseD = cast<CXXRecordDecl>(baseT->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp 133 return cast<ParmVarDecl>(VR->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp 154 SuperRegion = cast<SubRegion>(ER->getSuperRegion());
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp 635 cast<CallExpr>(N->getLocation().castAs<StmtPoint>().getStmt());
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 1864 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt());
1975 const NamedDecl *FD = cast<FunctionCodeRegion>(MR)->getDecl();
2137 const Expr *AllocExpr = cast<Expr>(RS->getStmt());
2776 cast<BlockDataRegion>(C.getSVal(BE).getAsRegion());
2991 const FunctionDecl *FD = cast<SimpleFunctionCall>(Call)->getDecl();
3236 const auto *TypedRegion = cast<TypedValueRegion>(ObjRegion);
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp 62 Calls.push_back(CallRecord(Parent, cast<Expr>(S), AllocCall.first,
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp 581 const auto *RegionDecl = cast<NamedDecl>(DR->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp 155 auto *R = cast<BlockDataRegion>(C.getSVal(BE).getAsRegion());
358 : AnyCall(cast<CXXDestructorDecl>(Call.getDecl()));
490 cast<SubRegion>(MR)->getSuperRegion());
924 ? cast<CXXMemberCallExpr>(CE)->getImplicitObjectArgument()
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp 238 Mgr.getObjCMethodCall(cast<ObjCMessageExpr>(S), CurrSt, LCtx);
435 const auto *VR = cast<VarRegion>(cast<SymbolRegionValue>(Sym)->getRegion());
435 const auto *VR = cast<VarRegion>(cast<SymbolRegionValue>(Sym)->getRegion());
436 const auto *PVD = cast<ParmVarDecl>(VR->getDecl());
787 const FunctionDecl *FD = cast<FunctionDecl>(D);
tools/clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp 52 cast<CXXInstanceCall>(&Call)->getCXXThisVal().getAsRegion();
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp 121 const StackSpaceRegion *S = cast<StackSpaceRegion>(R->getMemorySpace());
352 const VarRegion *VR = cast<VarRegion>(P.first->getBaseRegion());
tools/clang/lib/StaticAnalyzer/Checkers/TrustNonnullChecker.cpp 170 const auto *MCall = cast<ObjCMethodCall>(&Call);
tools/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp 86 const Expr *Ex = cast<Expr>(Condition);
tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp 57 auto *R = cast<BlockDataRegion>(C.getSVal(BE).getAsRegion());
tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp 88 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl());
tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp 109 const auto *CE = cast<CallExpr>(Call.getOriginExpr());
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 393 auto *event = cast<PathDiagnosticEventPiece>(piece.get());
614 if (isa<Expr>(S) && PM.isConsumedExpr(cast<Expr>(S)))
646 const auto *B = cast<BinaryOperator>(Parent);
657 if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S)
666 cast<AbstractConditionalOperator>(Parent)->getCond() == S)
671 if (cast<CXXForRangeStmt>(Parent)->getBody() == S)
677 if (cast<ForStmt>(Parent)->getBody() == S)
681 if (cast<IfStmt>(Parent)->getCond() != S)
685 if (cast<ObjCForCollectionStmt>(Parent)->getBody() == S)
689 if (cast<WhileStmt>(Parent)->getCond() != S)
763 const auto *Case = cast<CaseStmt>(S);
812 const auto *B = cast<BinaryOperator>(T);
1045 const auto *FR = cast<CXXForRangeStmt>(Term);
1054 const auto *FS = cast<ForStmt>(Term);
1061 const auto *FC = cast<ObjCForCollectionStmt>(Term);
1066 LoopBody = cast<WhileStmt>(Term)->getBody();
1151 Call = cast<PathDiagnosticCallPiece>(C.getActivePath().front().get());
1356 const auto *BO = cast<BinaryOperator>(S);
1362 return cast<IfStmt>(S)->getCond() == Cond;
1364 return cast<ForStmt>(S)->getCond() == Cond;
1366 return cast<WhileStmt>(S)->getCond() == Cond;
1368 return cast<DoStmt>(S)->getCond() == Cond;
1370 return cast<ChooseExpr>(S)->getCond() == Cond;
1372 return cast<IndirectGotoStmt>(S)->getTarget() == Cond;
1374 return cast<SwitchStmt>(S)->getCond() == Cond;
1376 return cast<BinaryConditionalOperator>(S)->getCond() == Cond;
1378 const auto *CO = cast<ConditionalOperator>(S);
1384 return cast<ObjCForCollectionStmt>(S)->getElement() == Cond;
1386 const auto *FRS = cast<CXXForRangeStmt>(S);
1845 if (isa<Expr>(s1End) && PM.isConsumedExpr(cast<Expr>(s1End))) {
3122 auto *basicReport = cast<BasicBugReport>(exampleReport);
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 516 const FieldRegion *FR = MmrMgr.getFieldRegion(I, cast<SubRegion>(R));
725 R = cast<SubRegion>(R)->getSuperRegion();
749 const auto *DR = cast<DeclRegion>(R);
985 if (cast<Expr>(S)->isGLValue())
1269 const auto *VD = cast<VarDecl>(DS->getSingleDecl());
1289 const auto *Param = cast<ParmVarDecl>(VR->getDecl());
1431 InitE = cast<ObjCMessageExpr>(CE->getCalleeContext()->getCallSite())
1999 std::make_unique<NoStoreFuncVisitor>(cast<SubRegion>(R), TKind));
2184 return VisitTrueTest(cast<Expr>(PS->getStmt()), BRC, BR, N, TookTrue);
2215 Cond = cast<IfStmt>(Term)->getCond();
2218 Cond = cast<ConditionalOperator>(Term)->getCond();
2224 const auto *BO = cast<BinaryOperator>(Term);
2275 if (auto P = VisitTrueTest(Cond, cast<BinaryOperator>(CondTmp),
2280 if (auto P = VisitTrueTest(Cond, cast<DeclRefExpr>(CondTmp),
2285 if (auto P = VisitTrueTest(Cond, cast<MemberExpr>(CondTmp),
2290 const auto *UO = cast<UnaryOperator>(CondTmp);
2353 if (const MemRegion *R = state->getLValue(cast<VarDecl>(DR->getDecl()),
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 594 const auto *D = cast<FunctionDecl>(CalleeCtx->getDecl());
730 const auto *MD = cast<CXXMethodDecl>(D);
798 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl());
815 const CXXMethodDecl *StaticMD = cast<CXXMethodDecl>(getDecl());
873 auto *LambdaOperatorDecl = cast<CXXMethodDecl>(CalleeCtx->getDecl());
884 Params = cast<BlockDecl>(CalleeCtx->getDecl())->parameters();
916 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl());
1088 auto *RefExpr = cast<ObjCPropertyRefExpr>(Syntactic);
1165 MD = cast<ObjCMethodDecl>(I);
1344 const auto *D = cast<ObjCMethodDecl>(CalleeCtx->getDecl());
1397 const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl());
1401 return getCXXConstructorCall(cast<CXXConstructExpr>(CallSite),
1413 const auto *Dtor = cast<CXXDestructorDecl>(CalleeCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp 94 VD = cast<VarDecl>(PD->getSingleDecl());
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp 665 cast<CallExpr>(Call.getOriginExpr()),
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp 304 cast<CXXBindTemporaryExpr>(Term), B, Pred);
309 HandleStaticInit(cast<DeclStmt>(Term), B, Pred);
313 HandleBranch(cast<BinaryOperator>(Term)->getLHS(), Term, B, Pred);
318 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(),
326 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred);
342 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred);
346 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred);
350 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred);
359 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred);
367 builder(Pred, B, cast<IndirectGotoStmt>(Term)->getTarget(),
389 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(),
397 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred);
401 assert(cast<GCCAsmStmt>(Term)->isAsmGoto() && "Encountered GCCAsmStmt without labels");
566 const auto *LocCtx = cast<StackFrameContext>(N->getLocationContext());
tools/clang/lib/StaticAnalyzer/Core/Environment.cpp 42 E = cast<OpaqueValueExpr>(E)->getSourceExpr();
45 E = cast<ExprWithCleanups>(E)->getSubExpr();
48 E = cast<ConstantExpr>(E)->getSubExpr();
51 E = cast<CXXBindTemporaryExpr>(E)->getSubExpr();
54 E = cast<SubstNonTypeTemplateParmExpr>(E)->getReplacement();
113 return svalBuilder.getConstantVal(cast<Expr>(S)).getValue();
116 const auto *RS = cast<ReturnStmt>(S);
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp 329 return cast<StackFrameContext>(findTopAutosynthesizedParentContext(LC))
364 BinaryOperatorKind Op = cast<BinaryOperator>(S)->getOpcode();
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 456 *OutRegionWithAdjustments = cast<SubRegion>(Reg.getAsRegion());
686 return !PM.isConsumedExpr(cast<Expr>(S));
827 const auto *stackFrame = cast<StackFrameContext>(Pred->getLocationContext());
828 const auto *decl = cast<CXXConstructorDecl>(stackFrame->getDecl());
970 varType = cast<TypedValueRegion>(Region)->getValueType();
1018 ArgR = getStoreManager().GetElementZeroRegion(cast<SubRegion>(ArgR), DTy);
1028 const auto *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl());
1051 const auto *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl());
1203 assert(!isa<Expr>(S) || S == cast<Expr>(S)->IgnoreParens());
1332 VisitObjCAtSynchronizedStmt(cast<ObjCAtSynchronizedStmt>(S), Pred, Dst);
1346 VisitCXXBindTemporaryExpr(cast<CXXBindTemporaryExpr>(S), PreVisit, Next);
1443 cast<Expr>(S),
1444 cast<Expr>(S));
1466 const auto *Ex = cast<Expr>(S);
1479 !cast<ObjCBoxedExpr>(Ex)->getSubExpr()
1497 VisitArraySubscriptExpr(cast<ArraySubscriptExpr>(S), Pred, Dst);
1503 VisitGCCAsmStmt(cast<GCCAsmStmt>(S), Pred, Dst);
1509 VisitMSAsmStmt(cast<MSAsmStmt>(S), Pred, Dst);
1515 VisitBlockExpr(cast<BlockExpr>(S), Pred, Dst);
1522 VisitLambdaExpr(cast<LambdaExpr>(S), Pred, Dst);
1531 const auto *B = cast<BinaryOperator>(S);
1552 VisitBinaryOperator(cast<BinaryOperator>(S), Pred, Tmp);
1553 evalEagerlyAssumeBinOpBifurcation(Dst, Tmp, cast<Expr>(S));
1556 VisitBinaryOperator(cast<BinaryOperator>(S), Pred, Dst);
1563 const auto *OCE = cast<CXXOperatorCallExpr>(S);
1591 VisitCallExpr(cast<CallExpr>(S), Pred, Dst);
1597 VisitCXXCatchStmt(cast<CXXCatchStmt>(S), Pred, Dst);
1604 VisitCXXConstructExpr(cast<CXXConstructExpr>(S), Pred, Dst);
1616 VisitCXXNewExpr(cast<CXXNewExpr>(S), i, PostVisit);
1626 const auto *CDE = cast<CXXDeleteExpr>(S);
1640 const auto *C = cast<ChooseExpr>(S);
1648 VisitBinaryOperator(cast<BinaryOperator>(S), Pred, Dst);
1654 VisitCompoundLiteralExpr(cast<CompoundLiteralExpr>(S), Pred, Dst);
1661 const auto *C = cast<AbstractConditionalOperator>(S);
1669 VisitCXXThisExpr(cast<CXXThisExpr>(S), Pred, Dst);
1675 const auto *DE = cast<DeclRefExpr>(S);
1683 VisitDeclStmt(cast<DeclStmt>(S), Pred, Dst);
1697 const auto *C = cast<CastExpr>(S);
1709 const auto *MTE = cast<MaterializeTemporaryExpr>(S);
1722 VisitInitListExpr(cast<InitListExpr>(S), Pred, Dst);
1728 VisitMemberExpr(cast<MemberExpr>(S), Pred, Dst);
1734 VisitAtomicExpr(cast<AtomicExpr>(S), Pred, Dst);
1740 VisitLvalObjCIvarRefExpr(cast<ObjCIvarRefExpr>(S), Pred, Dst);
1746 VisitObjCForCollectionStmt(cast<ObjCForCollectionStmt>(S), Pred, Dst);
1752 VisitObjCMessage(cast<ObjCMessageExpr>(S), Pred, Dst);
1765 VisitReturnStmt(cast<ReturnStmt>(S), Pred, Dst);
1776 VisitOffsetOfExpr(cast<OffsetOfExpr>(S), Node, PostVisit);
1785 VisitUnaryExprOrTypeTraitExpr(cast<UnaryExprOrTypeTraitExpr>(S),
1791 const auto *SE = cast<StmtExpr>(S);
1813 const auto *U = cast<UnaryOperator>(S);
1828 const auto *PE = cast<PseudoObjectExpr>(S);
2194 const auto *VD = cast<VarDecl>(DS->getSingleDecl());
2604 const auto *field = cast<FieldDecl>(Member);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp 145 cast<CompoundAssignOperator>(B)->getComputationResultType();
149 cast<CompoundAssignOperator>(B)->getComputationLHSType();
714 const Expr *RHS = cast<Expr>(Elem.getStmt());
757 SVal V = state->getSVal(cast<Expr>(*it), LCtx);
819 const Expr *ValEx = cast<Expr>(CS->getStmt());
985 SVal SV = svalBuilder.getMemberPointer(cast<DeclaratorDecl>(VD));
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp 52 assert(cast<CXXMethodDecl>(Call.getDecl())->isTrivial());
53 assert(cast<CXXMethodDecl>(Call.getDecl())->getOverloadedOperator() ==
56 ThisRD = cast<CXXMethodDecl>(Call.getDecl())->getParent();
125 const auto *DSCC = cast<VariableConstructionContext>(CC);
127 const auto *Var = cast<VarDecl>(DS->getSingleDecl());
138 const auto *ICC = cast<ConstructorInitializerConstructionContext>(CC);
141 const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl());
164 const auto *NECC = cast<NewAllocatedObjectConstructionContext>(CC);
206 cast<Expr>(SFC->getCallSite()), State, CallerLCtx,
218 const auto *RCC = cast<ReturnedValueConstructionContext>(CC);
234 const auto *TCC = cast<ElidedTemporaryObjectConstructionContext>(CC);
279 const auto *TCC = cast<TemporaryObjectConstructionContext>(CC);
318 const auto *ACC = cast<ArgumentConstructionContext>(CC);
466 const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 444 cast<BlockDecl>(D),
539 assert(cast<VarRegion>(VV.castAs<loc::MemRegionVal>().getRegion())
tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp 121 const VarDecl *elemD = cast<VarDecl>(DS->getSingleDecl());
tools/clang/lib/StaticAnalyzer/Core/LoopWidening.cpp 33 return cast<ForStmt>(LoopStmt)->getCond();
35 return cast<WhileStmt>(LoopStmt)->getCond();
37 return cast<DoStmt>(LoopStmt)->getCond();
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp 216 return cast<ObjCIvarDecl>(D);
533 const auto *VD = cast<VarDecl>(D);
806 Str, cast<GlobalInternalSpaceRegion>(getGlobalsRegion()));
812 Str, cast<GlobalInternalSpaceRegion>(getGlobalsRegion()));
824 if (cast<DeclContext>(SFC->getDecl()) == DC)
836 return cast<VarRegion>(I.getCapturedRegion());
901 getFunctionCodeRegion(cast<NamedDecl>(STCD)));
1078 assert(isValidBaseClass(RD, cast<TypedValueRegion>(Super), IsVirtual));
1085 Super = cast<SubRegion>(Base->getSuperRegion());
1169 R = cast<SubRegion>(R)->getSuperRegion();
1201 const auto *ER = cast<ElementRegion>(R);
1211 R = cast<TypedValueRegion>(R)->getSuperRegion();
1342 const auto *BOR = cast<CXXBaseObjectRegion>(R);
1399 const auto *ER = cast<ElementRegion>(R);
1427 const auto *FR = cast<FieldRegion>(R);
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 118 return BindingKey(cast<SubRegion>(R), cast<SubRegion>(RO.getRegion()), k);
118 return BindingKey(cast<SubRegion>(R), cast<SubRegion>(RO.getRegion()), k);
480 B = removeSubRegionBindings(B, cast<SubRegion>(R));
833 R = cast<SubRegion>(R)->getSuperRegion();
1159 const TypedValueRegion *TR = cast<TypedValueRegion>(baseR);
1397 SVal Size = cast<SubRegion>(R)->getExtent(svalBuilder);
1438 cast<SubRegion>(Array.castAs<loc::MemRegionVal>().getRegion());
1479 MR = GetElementZeroRegion(cast<SubRegion>(MR), T);
1481 T = cast<TypedValueRegion>(MR)->getValueType();
1486 const TypedValueRegion *R = cast<TypedValueRegion>(MR);
1640 Result = findLazyBinding(B, cast<SubRegion>(ER->getSuperRegion()),
1647 Result = findLazyBinding(B, cast<SubRegion>(FR->getSuperRegion()),
1657 Result = findLazyBinding(B, cast<SubRegion>(BaseReg->getSuperRegion()),
1855 cast<FieldRegion>(LazyBindingRegion));
2200 RegionBindingsRef NewB = removeSubRegionBindings(B, cast<SubRegion>(R));
2563 cast<StackArgumentsSpaceRegion>(TR->getSuperRegion());
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp 292 return makeLoc(cast<AddrLabelExpr>(E));
299 const auto *SL = cast<ObjCStringLiteral>(E);
304 const auto *SL = cast<StringLiteral>(E);
311 const auto *C = cast<CharacterLiteral>(E);
316 return makeBoolVal(cast<CXXBoolLiteralExpr>(E));
319 const auto *TE = cast<TypeTraitExpr>(E);
324 return makeIntVal(cast<IntegerLiteral>(E));
327 return makeBoolVal(cast<ObjCBoolLiteralExpr>(E));
338 const auto *CE = cast<CastExpr>(E);
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp 1181 superR = cast<SubRegion>(elemReg->getSuperRegion());
1187 superR = cast<SubRegion>(region);
tools/clang/lib/StaticAnalyzer/Core/Store.cpp 141 return MakeElementRegion(cast<SubRegion>(R), PointeeTy);
163 const ElementRegion *elementR = cast<ElementRegion>(R);
186 return MakeElementRegion(cast<SubRegion>(baseR), PointeeTy);
217 newSuperR = MakeElementRegion(cast<SubRegion>(baseR), Ctx.CharTy,
221 return MakeElementRegion(cast<SubRegion>(newSuperR), PointeeTy, newIndex);
295 BaseDecl, cast<SubRegion>(DerivedReg), IsVirtual);
441 BaseR = cast<SubRegion>(BaseL.castAs<loc::MemRegionVal>().getRegion());
470 return loc::MemRegionVal(MRMgr.getFieldRegion(cast<FieldDecl>(D), BaseR));
526 elementType, Offset, cast<SubRegion>(ElemR->getSuperRegion()), Ctx));
537 const SubRegion *ArrayR = cast<SubRegion>(ElemR->getSuperRegion());
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp 149 itr.push_back(cast<SymbolCast>(SE)->getOperand());
152 itr.push_back(cast<SymIntExpr>(SE)->getLHS());
155 itr.push_back(cast<IntSymExpr>(SE)->getRHS());
158 const auto *x = cast<SymSymExpr>(SE);
180 return cast<SymbolRegionValue>(SD);
199 return cast<SymbolConjured>(SD);
216 return cast<SymbolDerived>(SD);
232 return cast<SymbolExtent>(SD);
250 return cast<SymbolMetadata>(SD);
266 return cast<SymbolCast>(data);
284 return cast<SymIntExpr>(data);
302 return cast<IntSymExpr>(data);
320 return cast<SymSymExpr>(data);
472 KnownLive = isLiveRegion(cast<SymbolRegionValue>(sym)->getRegion());
478 KnownLive = isLive(cast<SymbolDerived>(sym)->getParentSymbol());
481 KnownLive = isLiveRegion(cast<SymbolExtent>(sym)->getRegion());
485 isLiveRegion(cast<SymbolMetadata>(sym)->getRegion());
490 KnownLive = isLive(cast<SymIntExpr>(sym)->getLHS());
493 KnownLive = isLive(cast<IntSymExpr>(sym)->getRHS());
496 KnownLive = isLive(cast<SymSymExpr>(sym)->getLHS()) &&
497 isLive(cast<SymSymExpr>(sym)->getRHS());
500 KnownLive = isLive(cast<SymbolCast>(sym)->getOperand());
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp 534 const ObjCMethodDecl *ObjCM = cast<ObjCMethodDecl>(D);
tools/clang/lib/Tooling/CompilationDatabase.cpp 166 const auto *IA = cast<driver::InputAction>(A);
tools/clang/lib/Tooling/Core/Lookup.cpp 33 cast<NamespaceDecl>(Context)->isAnonymousNamespace()))
39 Namespaces.push_back(cast<NamespaceDecl>(Context));
75 if (cast<NamespaceDecl>(*FromIter)->getDeclName() ==
76 cast<NamespaceDecl>(*UseIter)->getDeclName())
98 "::" + cast<NamespaceDecl>(DeclA)->getQualifiedNameAsString() + "::";
204 !cast<CXXRecordDecl>(FromDecl)->isCompleteDefinition();
tools/clang/lib/Tooling/Refactoring/Extract/Extract.cpp 122 ReturnType = cast<Expr>(Code[0])->getType();
tools/clang/lib/Tooling/Syntax/BuildTree.cpp 68 return cast<syntax::TranslationUnit>(std::move(Pending).finalize());
tools/clang/lib/Tooling/Syntax/Tree.cpp 101 auto *T = llvm::cast<syntax::Tree>(N);
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp 631 std::unique_ptr<ObjectFile>(cast<ObjectFile>(BinaryOrErr->release())));
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 78 const auto *CurrentContext = llvm::cast<DeclContext>(InnerNs);
87 CurrentNs = llvm::cast<NamespaceDecl>(CurrentContext);
551 moveClassForwardDeclaration(Result, cast<NamedDecl>(FwdDecl));
555 moveClassForwardDeclaration(Result, cast<NamedDecl>(TemplateFwdDecl));
599 llvm::cast<NamedDecl>(Var), VarRef);
616 llvm::cast<NamedDecl>(EnumConstDecl), EnumConstRef);
629 llvm::cast<NamedDecl>(Func), FuncRef);
634 llvm::cast<DeclRefExpr>(Call->getCallee()->IgnoreImplicit());
654 CalleeRange.getEnd(), llvm::cast<NamedDecl>(Func));
788 const auto *NsDecl = llvm::cast<NamespaceDecl>(NsDeclContext);
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp 64 const auto *RD = cast<RecordDecl>(Context);
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.cpp 282 reorderFieldsInConstructor(cast<const CXXConstructorDecl>(D),
tools/clang/tools/extra/clang-tidy/android/CloexecCheck.cpp 34 StringRef SR = cast<StringLiteral>(Arg->IgnoreParenCasts())->getString();
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 232 Arg = cast<UnaryOperator>(Arg)->getSubExpr();
339 const auto *Construct = cast<CXXConstructExpr>(E);
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp 108 const auto *NsDecl = cast<NamespaceDecl>(ParentDecl);
tools/clang/tools/extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp 77 OuterLoc = cast<IfStmt>(Outer)->getElseLoc();
tools/clang/tools/extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp 104 const auto *MemberDecl = cast<CXXMethodDecl>(Member->getMemberDecl());
tools/clang/tools/extra/clang-tidy/bugprone/PosixReturnCheck.cpp 22 const CallExpr *MatchedCall = cast<CallExpr>(
tools/clang/tools/extra/clang-tidy/cert/SetLongJmpCheck.cpp 74 diag(E->getExprLoc(), DiagWording) << cast<NamedDecl>(E->getCalleeDecl());
tools/clang/tools/extra/clang-tidy/fuchsia/MultipleInheritanceCheck.cpp 78 const auto *Base = cast<CXXRecordDecl>(D);
109 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition());
118 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition());
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp 273 const auto *Callee = llvm::cast<MemberExpr>(Call->getCallee());
tools/clang/tools/extra/clang-tidy/llvm/TwineLocalCheck.cpp 38 if (cast<CXXConstructExpr>(C)->getNumArgs() == 0)
40 C = cast<CXXConstructExpr>(C)->getArg(0)->IgnoreParenImpCasts();
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 88 return cast<CharacterLiteral>(Left)->getValue() ==
89 cast<CharacterLiteral>(Right)->getValue();
91 llvm::APInt LeftLit = cast<IntegerLiteral>(Left)->getValue();
92 llvm::APInt RightLit = cast<IntegerLiteral>(Right)->getValue();
97 return cast<FloatingLiteral>(Left)->getValue().bitwiseIsEqual(
98 cast<FloatingLiteral>(Right)->getValue());
100 return cast<StringLiteral>(Left)->getBytes() ==
101 cast<StringLiteral>(Right)->getBytes();
103 return cast<CXXOperatorCallExpr>(Left)->getOperator() ==
104 cast<CXXOperatorCallExpr>(Right)->getOperator();
106 if (cast<DependentScopeDeclRefExpr>(Left)->getDeclName() !=
107 cast<DependentScopeDeclRefExpr>(Right)->getDeclName())
110 cast<DependentScopeDeclRefExpr>(Left)->getQualifier(),
111 cast<DependentScopeDeclRefExpr>(Right)->getQualifier());
113 return cast<DeclRefExpr>(Left)->getDecl() ==
114 cast<DeclRefExpr>(Right)->getDecl();
116 return cast<MemberExpr>(Left)->getMemberDecl() ==
117 cast<MemberExpr>(Right)->getMemberDecl();
120 return cast<ExplicitCastExpr>(Left)->getTypeAsWritten() ==
121 cast<ExplicitCastExpr>(Right)->getTypeAsWritten();
127 if (cast<UnaryOperator>(Left)->isIncrementDecrementOp())
129 return cast<UnaryOperator>(Left)->getOpcode() ==
130 cast<UnaryOperator>(Right)->getOpcode();
132 return cast<BinaryOperator>(Left)->getOpcode() ==
133 cast<BinaryOperator>(Right)->getOpcode();
584 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS());
585 const auto *BinOpRhs = cast<BinaryOperator>(BinOp->getRHS());
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp 189 cast<CXXConstructorDecl>(Function)->getNumCtorInitializers() > 0))
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 533 const auto *AliasVar = cast<VarDecl>(AliasDecl->getSingleDecl());
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp 381 const auto *E = cast<ArraySubscriptExpr>(Init);
388 return isDereferenceOfUop(cast<UnaryOperator>(Init), IndexVar);
391 const auto *OpCall = cast<CXXOperatorCallExpr>(Init);
402 const auto *MemCall = cast<CXXMemberCallExpr>(Init);
782 if (areSameVariable(IndexVar, cast<ValueDecl>(VDecl))) {
808 if (cast<ForStmt>(CurrStmtParent)->getConditionVariableDeclStmt() == S)
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp 212 const auto *Expr = cast<MemberExpr>(Reset->getCallee());
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp 67 const IdentifierInfo *Info = cast<NamespaceDecl>(D)->getIdentifier();
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp 197 const IdentifierInfo *Info = cast<NamespaceDecl>(D)->getIdentifier();
337 const auto *V = cast<VarDecl>(Dec);
375 const auto *V = cast<VarDecl>(*D->decl_begin());
398 const auto *V = cast<VarDecl>(Dec);
480 return cast<ExplicitCastExpr>(Expr)->getTypeAsWritten();
489 return cast<CallExpr>(Expr->IgnoreImplicit())
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp 114 return cast<InitListExpr>(E)->getNumInits() == 0;
116 return !cast<CharacterLiteral>(E)->getValue();
118 return !cast<CXXBoolLiteralExpr>(E)->getValue();
120 return !cast<IntegerLiteral>(E)->getValue();
122 llvm::APFloat Value = cast<FloatingLiteral>(E)->getValue();
156 return sameValue(cast<UnaryOperator>(E1)->getSubExpr(),
157 cast<UnaryOperator>(E2)->getSubExpr());
159 return cast<CharacterLiteral>(E1)->getValue() ==
160 cast<CharacterLiteral>(E2)->getValue();
162 return cast<CXXBoolLiteralExpr>(E1)->getValue() ==
163 cast<CXXBoolLiteralExpr>(E2)->getValue();
165 return cast<IntegerLiteral>(E1)->getValue() ==
166 cast<IntegerLiteral>(E2)->getValue();
168 return cast<FloatingLiteral>(E1)->getValue().bitwiseIsEqual(
169 cast<FloatingLiteral>(E2)->getValue());
171 return cast<StringLiteral>(E1)->getString() ==
172 cast<StringLiteral>(E2)->getString();
174 return cast<DeclRefExpr>(E1)->getDecl() == cast<DeclRefExpr>(E2)->getDecl();
174 return cast<DeclRefExpr>(E1)->getDecl() == cast<DeclRefExpr>(E2)->getDecl();
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp 126 const auto *Compound = cast<CompoundStmt>(Operator->getBody());
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 101 cast<UnaryOperator>(Parent)->getSubExpr()->getBeginLoc();
234 (isa<BinaryOperator>(S) && cast<BinaryOperator>(S)->isLogicalOp())) {
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 180 const auto *CurrentDecl = cast<VarDecl>(Decl);
tools/clang/tools/extra/clang-tidy/readability/NamedParameterCheck.cpp 39 cast<CXXMethodDecl>(Function)->size_overridden_methods() == 0))
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 205 markCanNotBeConst(cast<Expr>(M->getTemporary()), CanNotBeConst);
tools/clang/tools/extra/clangd/FindTarget.cpp 103 const auto *ND = cast<NamedDecl>(D);
105 getTemplatePattern(llvm::cast<Decl>(ND->getDeclContext()))))
402 TemplatePatterns.push_back(llvm::cast<NamedDecl>(D.first));
407 Targets.push_back(llvm::cast<NamedDecl>(D.first));
tools/clang/tools/extra/clangd/XRefs.cpp 592 const NamedDecl &ND = *cast<NamedDecl>(D);
tools/clang/tools/extra/clangd/unittests/ExpectedTypeTest.cpp 38 return cast<ValueDecl>(decl(Name))->getType().getCanonicalType();
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp 589 const auto &Body = cast<CompoundStmt>(Func.getBody());
590 const auto &Loop = cast<WhileStmt>(*Body->child_begin());
tools/clang/tools/extra/modularize/Modularize.cpp 625 !cast<TagDecl>(ND)->isThisDeclarationADefinition()))
tools/clang/tools/libclang/CIndex.cpp 382 Decl *D = cast<Decl>(DC);
561 cast<IBOutletCollectionAttr>(cxcursor::getCursorAttr(Cursor));
656 auto *ID = cast<ObjCInterfaceDecl>(D);
661 auto *PD = cast<ObjCProtocolDecl>(D);
1115 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(ID), PropertyId,
1938 return cast<MSDependentExistsStmt>(S)->getNameInfo();
1940 return cast<CXXDependentScopeMemberExpr>(S)->getMemberNameInfo();
1942 return cast<DependentScopeDeclRefExpr>(S)->getNameInfo();
1944 return cast<OMPCriticalDirective>(S)->getDirectiveName();
3012 const Decl *D = cast<DeclVisit>(&LI)->get();
3018 cast<DeclVisit>(&LI)->isFirst())))
3025 *cast<ExplicitTemplateArgsVisit>(&LI)) {
3033 if (Visit(cast<TypeLocVisit>(&LI)->get()))
3038 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get();
3040 if (Visit(MakeCursorLabelRef(stmt, cast<LabelRefVisit>(&LI)->getLoc(),
3049 NestedNameSpecifierLocVisit *V = cast<NestedNameSpecifierLocVisit>(&LI);
3056 if (VisitDeclarationNameInfo(cast<DeclarationNameInfoVisit>(&LI)
3062 MemberRefVisit *V = cast<MemberRefVisit>(&LI);
3068 const Stmt *S = cast<StmtVisit>(&LI)->get();
3089 const MemberExpr *M = cast<MemberExprParts>(&LI)->get();
3112 const DeclRefExpr *DR = cast<DeclRefExprParts>(&LI)->get();
3123 const OverloadExpr *O = cast<OverloadExprParts>(&LI)->get();
3137 const SizeOfPackExpr *E = cast<SizeOfPackExprParts>(&LI)->get();
3140 if (Visit(MakeCursorTypeRef(cast<TemplateTypeParmDecl>(Pack),
3148 if (Visit(MakeCursorTemplateRef(cast<TemplateTemplateParmDecl>(Pack),
3162 const LambdaExpr *E = cast<LambdaExprParts>(&LI)->get();
3854 StrE = cast<StringLiteral>(I->getSubExprAsWritten());
3875 StrE = cast<StringLiteral>(expr);
3969 ? evaluateCompoundStmtExpr(cast<CompoundStmt>(getCursorStmt(C)))
4582 SLit = cast<StringLiteral>(E);
4619 const AnnotateAttr *AA = cast<AnnotateAttr>(cxcursor::getCursorAttr(C));
4624 const AsmLabelAttr *AA = cast<AsmLabelAttr>(cxcursor::getCursorAttr(C));
4633 const VisibilityAttr *AA = cast<VisibilityAttr>(cxcursor::getCursorAttr(C));
6317 return MakeCXCursor(cast<UsingDirectiveDecl>(D)->getNominatedNamespace(),
6321 return MakeCXCursor(cast<NamespaceAliasDecl>(D)->getNamespace(), TU);
6328 if (TagDecl *Def = cast<TagDecl>(D)->getDefinition())
6338 if (cast<FunctionDecl>(D)->getBody(Def))
6348 if (const VarDecl *Def = cast<VarDecl>(D)->getDefinition())
6355 if (cast<FunctionTemplateDecl>(D)->getTemplatedDecl()->getBody(Def))
6361 if (RecordDecl *Def = cast<ClassTemplateDecl>(D)->getTemplatedDecl()
6363 return MakeCXCursor(cast<CXXRecordDecl>(Def)->getDescribedClassTemplate(),
6370 cast<VarTemplateDecl>(D)->getTemplatedDecl()->getDefinition())
6371 return MakeCXCursor(cast<VarDecl>(Def)->getDescribedVarTemplate(), TU);
6376 return MakeCursorOverloadedDeclRef(cast<UsingDecl>(D),
6382 MakeCXCursor(cast<UsingShadowDecl>(D)->getTargetDecl(),
6386 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(D);
6406 = cast<ObjCCategoryDecl>(D)->getImplementation())
6411 if (const ObjCProtocolDecl *Def = cast<ObjCProtocolDecl>(D)->getDefinition())
6421 const ObjCInterfaceDecl *IFace = cast<ObjCInterfaceDecl>(D);
6437 = cast<ObjCCompatibleAliasDecl>(D)->getClassInterface())
6444 if (NamedDecl *Friend = cast<FriendDecl>(D)->getFriendDecl())
6449 if (NamedDecl *Friend = cast<FriendTemplateDecl>(D)->getFriendDecl())
6527 return MakeCXCursor(cast<UsingShadowDecl>(*Pos)->getTargetDecl(), TU);
7784 if (isa<FunctionDecl>(D) && cast<FunctionDecl>(D)->isDeleted())
7792 cast<Decl>(EnumConst->getDeclContext()));
7870 cast<Decl>(EnumConst->getDeclContext()), always_deprecated,
8055 return MakeCXCursor(maybeGetTemplateCursor(cast<Decl>(DC)),
8075 return MakeCXCursor(maybeGetTemplateCursor(cast<Decl>(DC)),
8491 cast<IBOutletCollectionAttr>(cxcursor::getCursorAttr(C));
tools/clang/tools/libclang/CIndexHigh.cpp 228 return clang_visitChildren(cxcursor::MakeCXCursor(cast<Decl>(DC), TU),
tools/clang/tools/libclang/CXCursor.cpp 111 cast<ObjCMethodDecl>(D)->getSelectorLocs(SelLocs);
298 if (Expr *Src = cast<OpaqueValueExpr>(S)->getSourceExpr())
304 return MakeCXCursor(cast<PseudoObjectExpr>(S)->getSyntacticForm(),
356 return MakeCXCursor(cast<ConstantExpr>(S)->getSubExpr(),
511 dyn_cast_or_null<ImplicitParamDecl>(cast<DeclRefExpr>(S)->getDecl())) {
567 cast<ObjCMessageExpr>(S)->getSelectorLocs(SelLocs);
1072 cast<ObjCMessageExpr>(getCursorExpr(cursor))
1078 cast<ObjCMethodDecl>(getCursorDecl(cursor))
1090 unsigned(SelIdx) >= cast<ObjCMessageExpr>(getCursorExpr(cursor))
1098 unsigned(SelIdx) >= cast<ObjCMethodDecl>(getCursorDecl(cursor))
1584 ME = cast<MemberExpr>(E);
1615 ME = cast<MemberExpr>(E);
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 193 cast<Decl>(ASTNode.ContainerDC),
309 IBAttr = cast<IBOutletCollectionAttr>(IBInfo.A);
1033 D = cast<NamedDecl>(D->getCanonicalDecl());
1190 ContInfo.cursor = getCursor(cast<Decl>(DC));
tools/clang/tools/libclang/CXType.cpp 92 return GetBuiltinTypeKind(cast<BuiltinType>(TP));
452 T = cast<PointerType>(TP)->getPointeeType();
455 T = cast<BlockPointerType>(TP)->getPointeeType();
459 T = cast<ReferenceType>(TP)->getPointeeType();
462 T = cast<ObjCObjectPointerType>(TP)->getPointeeType();
465 T = cast<MemberPointerType>(TP)->getPointeeType();
469 TP = cast<DeducedType>(TP)->getDeducedType().getTypePtrOrNull();
495 D = cast<TypedefType>(TP)->getDecl();
498 D = cast<ObjCObjectType>(TP)->getInterface();
501 D = cast<ObjCInterfaceType>(TP)->getDecl();
505 D = cast<TagType>(TP)->getDecl();
511 D = cast<TemplateSpecializationType>(TP)->getTemplateName()
517 TP = cast<DeducedType>(TP)->getDeducedType().getTypePtrOrNull();
523 D = cast<InjectedClassNameType>(TP)->getDecl();
529 TP = cast<ElaboratedType>(TP)->getNamedType().getTypePtrOrNull();
797 ET = cast<ConstantArrayType> (TP)->getElementType();
800 ET = cast<IncompleteArrayType> (TP)->getElementType();
803 ET = cast<VariableArrayType> (TP)->getElementType();
806 ET = cast<DependentSizedArrayType> (TP)->getElementType();
809 ET = cast<VectorType> (TP)->getElementType();
812 ET = cast<ExtVectorType>(TP)->getElementType();
815 ET = cast<ComplexType> (TP)->getElementType();
832 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
835 result = cast<VectorType> (TP)->getNumElements();
838 result = cast<ExtVectorType>(TP)->getNumElements();
855 ET = cast<ConstantArrayType> (TP)->getElementType();
858 ET = cast<IncompleteArrayType> (TP)->getElementType();
861 ET = cast<VariableArrayType> (TP)->getElementType();
864 ET = cast<DependentSizedArrayType> (TP)->getElementType();
881 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
923 ET = QualType(cast<MemberPointerType> (TP)->getClass(), 0);
1289 return MakeCXType(cast<ElaboratedType>(TP)->getNamedType(), GetTU(CT));
tools/clang/unittests/AST/ASTImporterFixtures.h 175 return cast_or_null<DeclT>(Import(cast<Decl>(From), Lang));
tools/clang/unittests/AST/ASTImporterGenericRedeclTest.cpp 126 auto *CurrentT = cast<TemplateDecl>(Current);
363 EXPECT_TRUE(cast<DeclTy>(ImportedD)->isThisDeclarationADefinition());
tools/clang/unittests/AST/ASTImporterTest.cpp 244 auto *ET = cast<ElaboratedType>(D->getType().getTypePtr());
245 return cast<RecordType>(ET->getNamedType().getTypePtr())->getDecl();
334 auto *Imported = cast<CXXRecordDecl>(To);
1157 cast<CStyleCastExpr>(cast<CompoundStmt>(From->getBody())->body_front())
1157 cast<CStyleCastExpr>(cast<CompoundStmt>(From->getBody())->body_front())
1164 cast<CStyleCastExpr>(cast<CompoundStmt>(To->getBody())->body_front())
1164 cast<CStyleCastExpr>(cast<CompoundStmt>(To->getBody())->body_front())
1176 auto To = cast<ClassTemplateDecl>(Import(From, Lang_CXX));
1190 auto To = cast<FunctionTemplateDecl>(Import(From, Lang_CXX));
1206 cast<CXXRecordDecl>(Import(FromFT->getTemplatedDecl(), Lang_CXX));
1222 cast<FunctionDecl>(Import(FromFT->getTemplatedDecl(), Lang_CXX));
1242 auto ToNs = cast<NamespaceDecl>(Import(FromNs, Lang_CXX));
1256 cast<CXXRecordDecl>(Import(From->getTemplatedDecl(), Lang_CXX));
1426 auto *ND = cast<NamedDecl>(D);
1652 auto *ToCTD = cast<ClassTemplateDecl>(Import(FromCTD, Lang_CXX));
1920 Imported1 = cast<VarDecl>(Import(FromD, Lang_CXX));
1926 Imported2 = cast<VarDecl>(Import(FromD, Lang_CXX));
1995 auto *Imported1 = cast<VarDecl>(Import(FromD, Lang_CXX));
2000 auto *Imported2 = cast<VarDecl>(Import(FromD, Lang_CXX));
2058 CXXMethodDecl *To = cast<CXXMethodDecl>(Import(Proto, Lang_CXX));
2077 CXXMethodDecl *To = cast<CXXMethodDecl>(Import(Proto, Lang_CXX));
2363 cast<LambdaExpr>(cast<CStyleCastExpr>(
2363 cast<LambdaExpr>(cast<CStyleCastExpr>(
2364 *cast<CompoundStmt>(ToD->getBody())->body_begin())
2530 auto *ImportedD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2548 auto *ImportedD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2566 auto *ImportedD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2584 auto *ImportedD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2607 auto *ImportedD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2611 auto *InClassFD = cast<FunctionDecl>(FirstDeclMatcher<FriendDecl>()
2636 auto *ImportedD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2658 ImportedD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2664 ImportedD1 = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2692 auto *ToD = cast<FunctionDecl>(Import(FromD, Lang_CXX));
2738 auto *ToFriend = cast<FunctionDecl>(Import(FromFriend, Lang_CXX));
2783 auto *ToNormal = cast<FunctionDecl>(Import(FromNormal, Lang_CXX));
2825 auto *ToNormalF = cast<FunctionDecl>(Import(FromNormalF, Lang_CXX));
2834 auto *ToFriendF = cast<FunctionDecl>(Import(FromFriendF, Lang_CXX));
3273 cast<LambdaExpr>(cast<CStyleCastExpr>(cast<CompoundStmt>(
3273 cast<LambdaExpr>(cast<CStyleCastExpr>(cast<CompoundStmt>(
3273 cast<LambdaExpr>(cast<CStyleCastExpr>(cast<CompoundStmt>(
3569 auto *ToInitExpr = cast<VarDecl>(ToD)->getAnyInitializer();
3592 auto *ToD0 = cast<VarDecl>(Import(FromDWithInit, Lang_CXX11));
3593 auto *ToD1 = cast<VarDecl>(Import(FromDWithDef, Lang_CXX11));
3626 auto *ImportedD = cast<VarDecl>(Import(FromDWithDef, Lang_CXX11));
3657 auto *ImportedD = cast<VarDecl>(Import(FromDWithDef, Lang_CXX11));
3750 auto *ToClass = cast<CXXRecordDecl>(Import(FromClass, Lang_CXX));
3751 auto *ToFriendClass = cast<CXXRecordDecl>(Import(FromFriendClass, Lang_CXX));
3815 Imported1 = cast<ClassTemplateSpecializationDecl>(Import(FromD, Lang_CXX));
3826 Imported2 = cast<ClassTemplateSpecializationDecl>(Import(FromD, Lang_CXX));
3850 auto *Imported0 = cast<ClassTemplateDecl>(Import(Fwd, Lang_CXX));
3859 auto *Imported1 = cast<ClassTemplateDecl>(Import(Definition, Lang_CXX));
3869 auto *Imported = cast<CXXRecordDecl>(To);
3897 auto *ImportedDef = cast<ClassTemplateDecl>(Import(Definition, Lang_CXX));
3919 auto *ImportedFwd = cast<ClassTemplateDecl>(Import(Fwd, Lang_CXX));
3928 auto *ImportedDef = cast<ClassTemplateDecl>(Import(Definition, Lang_CXX));
4140 ASSERT_FALSE(cast<FunctionDecl>(SpecD->getPreviousDecl())
4154 EXPECT_FALSE(cast<FunctionDecl>(SpecD->getPreviousDecl())
4212 auto *ToCTD = cast<ClassTemplateDecl>(Import(FromCTD, Lang_CXX));
4250 auto *ImportedD = cast<TypedefNameDecl>(Import(FromD, Lang_CXX11));
4307 ASSERT_EQ(cast<Decl>(FooLexicalDC), X->getTemplatedDecl());
4308 ASSERT_EQ(cast<Decl>(FooDC), ToTU);
4343 ASSERT_EQ(cast<Decl>(FooLexicalDC), A);
4344 ASSERT_EQ(cast<Decl>(FooDC), ToTU);
4382 auto Res = LT.lookup(cast<DeclContext>(A), VName);
4387 Res = LT.lookup(cast<DeclContext>(B), VName);
4661 auto TemplateDC = cast<DeclContext>(Template->getTemplatedDecl());
4672 cast<DeclContext>(Spec)->getRedeclContext()->localUncachedLookup(Name,
4677 Res = LT.lookup(cast<DeclContext>(Spec), Name);
tools/clang/unittests/AST/ASTTraverserTest.cpp 233 const auto *AS = cast<AddressSpaceAttr>(ATL.getAttr());
tools/clang/unittests/AST/DeclTest.cpp 86 CXXRecordDecl *DeclS = cast<CXXRecordDecl>(Decls[0]);
tools/clang/unittests/AST/StructuralEquivalenceTest.cpp 561 auto *ET = cast<ElaboratedType>(FD->getType().getTypePtr());
562 return cast<RecordType>(ET->getNamedType().getTypePtr())->getDecl();
674 auto *FA = cast<FieldDecl>(A->chain().front());
675 RecordDecl *RA = cast<RecordType>(FA->getType().getTypePtr())->getDecl();
678 auto *FB = cast<FieldDecl>(B->chain().front());
679 RecordDecl *RB = cast<RecordType>(FB->getType().getTypePtr())->getDecl();
707 auto *FA = cast<FieldDecl>(A->chain().front());
708 RecordDecl *RA = cast<RecordType>(FA->getType().getTypePtr())->getDecl();
713 auto *FA1 = cast<FieldDecl>(A1->chain().front());
714 RecordDecl *RA1 = cast<RecordType>(FA1->getType().getTypePtr())->getDecl();
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp 1549 const T *TypedNode = cast<T>(Node);
1558 const T *TypedNode = cast<T>(Node);
1567 const T *TypedNode = cast<T>(Node);
tools/clang/unittests/Tooling/LookupTest.cpp 44 const auto *Callee = cast<DeclRefExpr>(Expr->getCallee()->IgnoreImplicit());
186 const auto *FD = cast<CXXRecordDecl>(TLoc.getDecl());
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp 226 const DefInit *GroupInit = cast<DefInit>((*DI)->getValueInit("Group"));
245 const DefInit *GroupInit = cast<DefInit>((*DI)->getValueInit("Group"));
tools/clang/utils/TableGen/MveEmitter.cpp 785 if (cast<ScalarType>(IA.ArgType)->kind() == ScalarTypeKind::UnsignedInt) {
938 Record *Op = cast<DefInit>(D->getOperator())->getDef();
951 return getVectorType(cast<ScalarType>(Element));
962 return getMultiVectorType(Registers, cast<VectorType>(Element));
971 const ScalarType *ST = cast<ScalarType>(getType(D->getArg(0), Param));
988 Record *Op = cast<DefInit>(D->getOperator())->getDef();
997 getCodeForDag(cast<DagInit>(D->getArg(i)), SubScope, Param);
1040 IntName += "_" + toLetter(cast<ScalarType>(Param)->kind());
1184 Record *MainOp = cast<DefInit>(CodeDag->getOperator())->getDef();
tools/clang/utils/TableGen/NeonEmitter.cpp 1529 DefInit *DefI = cast<DefInit>(DI->getOperator());
1557 std::string Op = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
1711 int64_t VectorSize = cast<IntInit>(Expr->getArg(0))->getValue();
1875 std::string ToReplace = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
1876 std::string ReplaceWith = cast<StringInit>(DI->getArg(1))->getAsUnquotedString();
1887 std::string Ty = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
1888 std::string Value = cast<StringInit>(DI->getArg(1))->getAsUnquotedString();
tools/lld/COFF/DLL.cpp 519 write32le(p, cast<Defined>(e.sym)->getRVA() | bit);
tools/lld/COFF/InputFiles.cpp 168 COFFObjectFile *coffObj = cast<COFFObjectFile>(coffObjPtr.get());
657 c->sym = cast<DefinedRegular>(leader);
659 cast<DefinedRegular>(leader)->data = &c->repl;
tools/lld/COFF/PDB.cpp 1545 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym);
tools/lld/COFF/SymbolTable.cpp 70 auto *l = cast<LazyArchive>(s);
75 cast<LazyObject>(s)->file->fetch();
271 cast<DefinedImportData>(imp)->getDLLName());
275 toString(cast<DefinedRegular>(imp)->file));
279 " from " + toString(cast<DefinedRegular>(imp)->file) +
429 auto *d = cast<Defined>(imp);
431 localImportChunks.push_back(cast<DefinedLocalImport>(sym)->getChunk());
570 DefinedRegular *d = cast<DefinedRegular>(existing);
645 return {cast<DefinedRegular>(s), true};
647 auto *existingSymbol = cast<DefinedRegular>(s);
tools/lld/COFF/Symbols.cpp 64 auto *d = cast<DefinedCOFF>(this);
66 cast<ObjFile>(d->file)->getCOFFObj()->getSymbolName(d->sym, nameStr);
104 size_t symSize = cast<ObjFile>(file)->getCOFFObj()->getSymbolTableEntrySize();
131 for (Symbol *a = weakAlias; a; a = cast<Undefined>(a)->weakAlias)
tools/lld/COFF/Symbols.h 379 return cast<DefinedAbsolute>(this)->getRVA();
381 return cast<DefinedSynthetic>(this)->getRVA();
383 return cast<DefinedImportData>(this)->getRVA();
385 return cast<DefinedImportThunk>(this)->getRVA();
387 return cast<DefinedLocalImport>(this)->getRVA();
389 return cast<DefinedCommon>(this)->getRVA();
391 return cast<DefinedRegular>(this)->getRVA();
403 return cast<DefinedRegular>(this)->getChunk();
407 return cast<DefinedSynthetic>(this)->getChunk();
409 return cast<DefinedImportData>(this)->getChunk();
411 return cast<DefinedImportThunk>(this)->getChunk();
413 return cast<DefinedLocalImport>(this)->getChunk();
415 return cast<DefinedCommon>(this)->getChunk();
tools/lld/COFF/Writer.cpp 998 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym);
1004 Defined *helper = cast<Defined>(config->delayLoadHelper);
1337 Defined *entry = cast<Defined>(config->entry);
1527 addSymbolToRVASet(addressTakenSyms, cast<Defined>(s));
1534 auto *d = cast<DefinedRegular>(s);
1617 cast<DefinedAbsolute>(flagSym)->setVA(guardFlags);
1655 addSymbolToRVASet(tableSymbols, cast<Defined>(s));
1675 cast<DefinedAbsolute>(c)->setVA(tableChunk->getSize() / 4);
tools/lld/ELF/AArch64ErrataFix.cpp 443 auto *f = cast<ObjFile<ELF64LE>>(file);
tools/lld/ELF/ARMErrataFix.cpp 319 auto *f = cast<ObjFile<ELF32LE>>(file);
tools/lld/ELF/Arch/AMDGPU.cpp 44 return cast<ObjFile<ELF64LE>>(file)->getObj().getHeader()->e_flags;
tools/lld/ELF/Arch/Hexagon.cpp 66 uint32_t eflags = cast<ObjFile<ELF32LE>>(f)->getObj().getHeader()->e_flags;
tools/lld/ELF/Arch/Mips.cpp 732 cast<InputSectionBase>(sym->section)->template getFile<ELFT>();
tools/lld/ELF/Arch/MipsArchTree.cpp 300 v.push_back({f, cast<ObjFile<ELFT>>(f)->getObj().getHeader()->e_flags});
tools/lld/ELF/Arch/PPC64.cpp 170 auto *tocISB = cast<InputSectionBase>(defSym->section);
345 return cast<ObjFile<ELF64BE>>(file)->getObj().getHeader()->e_flags;
346 return cast<ObjFile<ELF64LE>>(file)->getObj().getHeader()->e_flags;
tools/lld/ELF/Arch/RISCV.cpp 104 return cast<ObjFile<ELF64LE>>(f)->getObj().getHeader()->e_flags;
105 return cast<ObjFile<ELF32LE>>(f)->getObj().getHeader()->e_flags;
tools/lld/ELF/CallGraphSort.cpp 118 const auto *fromSB = cast<InputSectionBase>(c.first.first->repl);
119 const auto *toSB = cast<InputSectionBase>(c.first.second->repl);
tools/lld/ELF/DWARF.cpp 108 val += cast<InputSection>(dr->section)->getOffsetInFile();
tools/lld/ELF/Driver.cpp 748 auto *obj = cast<ObjFile<ELFT>>(file);
1405 mb = cast<LazyArchive>(sym)->getMemberBuffer();
1487 auto *obj = cast<ObjFile<ELFT>>(f);
1579 auto *obj = cast<ObjFile<ELFT>>(file);
1679 uint32_t features = cast<ObjFile<ELFT>>(f)->andFeatures;
1860 inputSections.push_back(cast<InputSection>(s));
tools/lld/ELF/ICF.cpp 285 auto *y = cast<MergeInputSection>(db->section);
334 auto *da = cast<Defined>(&sa);
335 auto *db = cast<Defined>(&sb);
345 auto *y = cast<InputSection>(db->section);
450 auto *s = cast<InputSection>(sec);
tools/lld/ELF/InputFiles.cpp 199 cast<ObjFile<ELFT>>(file)->parse();
605 InputSection *isec = cast<InputSection>(this->sections[i]);
tools/lld/ELF/InputSection.cpp 169 auto *os = cast<OutputSection>(this);
175 return cast<InputSection>(this)->getOffset(offset);
182 const MergeInputSection *ms = cast<MergeInputSection>(this);
204 return cast<OutputSection>(this);
279 return cast<InputSection>(file->getSections()[link]);
571 const Defined *d = cast<Defined>(sym);
577 InputSection *isec = cast<InputSection>(d->section);
912 auto *sec = cast<InputSection>(this);
tools/lld/ELF/LinkerScript.cpp 188 cmd->sym = cast<Defined>(sym);
206 cmd->sym = cast<Defined>(sym);
226 for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands)
292 auto *sec = cast<OutputSection>(base);
426 cast<InputSection>(sec)->getRelocatedSection())
545 for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands)
590 auto *sec = cast<InputSection>(isec);
654 auto *firstIsec = cast<InputSectionBase>(
655 cast<InputSectionDescription>(sec->sectionCommands[0])
870 for (InputSection *sec : cast<InputSectionDescription>(base)->sections)
1108 assignOffsets(cast<OutputSection>(base));
tools/lld/ELF/MapFile.cpp 174 osec = cast<OutputSection>(base);
tools/lld/ELF/OutputSections.cpp 100 auto *isd = cast<InputSectionDescription>(sectionCommands.back());
172 cmd->sections.push_back(cast<InputSection>(s));
447 auto *isd = cast<InputSectionDescription>(sectionCommands[0]);
tools/lld/ELF/Relocations.cpp 576 auto *isd = cast<InputSectionDescription>(osec->sectionCommands.back());
tools/lld/ELF/ScriptParser.cpp 514 max = std::max(max, cast<OutputSection>(cmd)->size);
tools/lld/ELF/Symbols.cpp 191 return cast<SharedSymbol>(this)->size;
251 cast<ArchiveFile>(sym->file)->fetch(sym->sym);
552 auto *oldSym = cast<Defined>(this);
553 auto *newSym = cast<Defined>(other);
570 Defined *d = cast<Defined>(sym);
584 auto *sec1 = cast<InputSectionBase>(d->section);
610 CommonSymbol *oldSym = cast<CommonSymbol>(this);
tools/lld/ELF/Symbols.h 377 SharedFile &getFile() const { return *cast<SharedFile>(file); }
tools/lld/ELF/SyntheticSections.cpp 375 auto *sec = cast<EhInputSection>(fde.sec);
2585 auto *isec = cast<InputSection>(s);
tools/lld/ELF/Target.cpp 98 auto *isec = cast<InputSection>(d);
tools/lld/ELF/Writer.cpp 189 part.armExidx->addSection(cast<InputSection>(s))) {
207 return cast<Defined>(s);
213 return cast<Defined>(sym);
268 ElfSym::globalOffsetTable = cast<Defined>(s);
681 ObjFile<ELFT> *f = cast<ObjFile<ELFT>>(file);
716 InputSectionBase *isec = cast<InputSectionDescription>(*i)->sections[0];
968 const OutputSection *a = cast<OutputSection>(aCmd);
969 const OutputSection *b = cast<OutputSection>(bCmd);
1043 gotSection = in.mipsGot ? cast<InputSection>(in.mipsGot)
1044 : cast<InputSection>(in.got);
1155 OutputSection *sec = cast<OutputSection>(*e);
1233 int &priority = sectionOrder[cast<InputSectionBase>(sec->repl)];
1356 auto *isd = cast<InputSectionDescription>(sec->sectionCommands[0]);
1480 OutputSection *orphan = cast<OutputSection>(*nonScriptI);
1486 return cast<OutputSection>(cmd)->sortRank != rank;
1727 ElfSym::tlsModuleBase = cast<Defined>(s);
tools/lld/lib/Core/Resolver.cpp 75 ArchiveLibraryFile *archiveFile = cast<ArchiveLibraryFile>(&file);
88 SharedLibraryFile *sharedLibrary = cast<SharedLibraryFile>(&file);
207 return cast<FileNode>(inputs[index++].get())->getFile();
tools/lld/lib/Core/SymbolTable.cpp 138 const auto *existingDef = cast<DefinedAtom>(existing);
139 const auto *newDef = cast<DefinedAtom>(&newAtom);
181 const UndefinedAtom* existingUndef = cast<UndefinedAtom>(existing);
182 const UndefinedAtom* newUndef = cast<UndefinedAtom>(&newAtom);
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp 493 usedDwarfWorklist.push_back(cast<DefinedAtom>(entry.ehFrame));
499 usedDwarfWorklist.push_back(cast<DefinedAtom>(entry.second));
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 937 cast<mach_o::StabsDebugInfo>(objFile->debugInfo())->stabs();
tools/lld/unittests/DriverTests/DarwinLdDriverTest.cpp 37 return cast<FileNode>(&node)->getFile()->path();
tools/lld/wasm/Driver.cpp 442 auto *sym = cast<UndefinedGlobal>(symtab->addUndefinedGlobal(
tools/lld/wasm/InputFiles.cpp 68 auto *obj = cast<WasmObjectFile>(bin.get());
194 return cast<DefinedData>(sym)->getVirtualAddress() + reloc.Addend;
206 auto *f = cast<DefinedFunction>(sym);
372 return cast<FunctionSymbol>(symbols[index]);
376 return cast<GlobalSymbol>(symbols[index]);
380 return cast<EventSymbol>(symbols[index]);
384 return cast<SectionSymbol>(symbols[index]);
388 return cast<DataSymbol>(symbols[index]);
tools/lld/wasm/MarkLive.cpp 126 auto *funcSym = cast<FunctionSymbol>(sym);
tools/lld/wasm/Relocations.cpp 79 out.elemSec->addEntry(cast<FunctionSymbol>(sym));
tools/lld/wasm/SymbolTable.cpp 55 auto *f = cast<ObjFile>(file);
160 const WasmGlobalType *oldType = cast<GlobalSymbol>(existing)->getGlobalType();
177 const WasmEventType *oldType = cast<EventSymbol>(existing)->getEventType();
692 auto *f = cast<FunctionSymbol>(s);
712 cast<FunctionSymbol>(variants[0]),
713 cast<FunctionSymbol>(variants[1]), true);
719 auto *f = cast<FunctionSymbol>(symbol);
tools/lld/wasm/Symbols.cpp 335 void LazySymbol::fetch() { cast<ArchiveFile>(file)->addMember(&archiveSymbol); }
tools/lld/wasm/SyntheticSections.cpp 121 cast<EventSymbol>(sym)->setEventIndex(numImportedEvents++);
176 auto *eventSym = cast<EventSymbol>(sym);
420 auto *s = cast<OutputSectionSymbol>(sym);
tools/lld/wasm/Writer.cpp 215 auto *sp = cast<DefinedGlobal>(WasmSym::stackPointer);
249 auto *tlsSize = cast<DefinedGlobal>(WasmSym::tlsSize);
252 auto *tlsAlign = cast<DefinedGlobal>(WasmSym::tlsAlign);
538 auto *d = cast<DefinedData>(sym);
712 cast<SyntheticFunction>(func->function)->setBody(body);
tools/lldb/source/Expression/IRInterpreter.cpp 286 cast<GEPOperator>(constant_expr)->getSourceElementType();
1057 constant_index = cast<ConstantInt>(ConstantInt::get(
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp 475 llvm::cast<ClangPersistentVariables>(
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp 986 auto *clang_decl_vendor = llvm::cast<ClangDeclVendor>(decl_vendor);
1440 auto *clang_decl_vendor = llvm::cast<ClangDeclVendor>(decl_vendor);
1518 cast<ObjCInterfaceDecl>(context.m_decl_context));
1631 auto *clang_decl_vendor = llvm::cast<ClangDeclVendor>(decl_vendor);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp 110 m_parser_vars->m_persistent_vars = llvm::cast<ClangPersistentVariables>(
141 llvm::cast<ClangExpressionVariable>(var_sp.get())
306 ClangExpressionVariable *var = llvm::cast<ClangExpressionVariable>(
388 llvm::cast<ClangExpressionVariable>(var)->GetParserVars(GetParserID());
393 llvm::cast<ClangExpressionVariable>(var)->GetJITVars(GetParserID())) {
400 llvm::cast<ClangExpressionVariable>(var)->EnableJITVars(GetParserID());
403 llvm::cast<ClangExpressionVariable>(var)->GetJITVars(GetParserID());
491 llvm::cast<ClangExpressionVariable>(member_sp.get())
494 llvm::cast<ClangExpressionVariable>(member_sp.get())
1683 llvm::cast<ClangExpressionVariable>(pvar_sp.get())->GetTypeFromUser());
1696 llvm::cast<ClangExpressionVariable>(pvar_sp.get())
1699 llvm::cast<ClangExpressionVariable>(pvar_sp.get())
1785 llvm::cast<ClangExpressionVariable>(entity.get())
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp 586 llvm::cast<ClangPersistentVariables>(
863 ClangUserExpression *llvm_expr = cast<ClangUserExpression>(&m_expr);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp 321 llvm::cast<ClangPersistentVariables>(
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp 331 m_clang_state = llvm::cast<ClangPersistentVariables>(persistent_state);
351 llvm::cast<ClangPersistentVariables>(
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp 533 llvm::cast<Instruction>(
1573 "", llvm::cast<Instruction>(
1613 llvm::cast<Instruction>(
1789 llvm::Instruction *entry_instruction = llvm::cast<Instruction>(
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp 1100 RenderScriptRuntime *lang_rt = llvm::cast<RenderScriptRuntime>(
4007 RenderScriptRuntime *runtime = llvm::cast<RenderScriptRuntime>(
4042 RenderScriptRuntime *runtime = llvm::cast<RenderScriptRuntime>(
4288 RenderScriptRuntime *runtime = llvm::cast<RenderScriptRuntime>(
4472 RenderScriptRuntime *runtime = llvm::cast<RenderScriptRuntime>(
4868 RenderScriptRuntime *runtime = llvm::cast<RenderScriptRuntime>(
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp 177 llvm::cast<llvm::Value>(return_value_alloc));
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp 179 llvm::cast<llvm::object::COFFObjectFile>(binary->getBinary());
936 llvm::cast<llvm::object::COFFObjectFile>(m_owningbin->getBinary());
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp 170 return llvm::cast<DWARFTypeUnit>(GetUnitAtIndex(pos->second));
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp 72 return llvm::cast<DWARFCompileUnit>(debug_info->GetUnitAtIndex(0));
tools/lldb/source/Symbol/ClangASTContext.cpp 207 llvm::cast<clang::CXXMethodDecl>(overridden_decl));
1741 const CXXRecordDecl *base_class_decl = cast<CXXRecordDecl>(
1840 NamespaceDecl *parent_namespace_decl = cast<NamespaceDecl>(decl_ctx);
2564 return llvm::cast<clang::ObjCObjectType>(qual_type.getTypePtr())
2568 llvm::cast<clang::ObjCObjectPointerType>(qual_type.getTypePtr())
2636 llvm::cast<clang::TagType>(qual_type.getTypePtr());
2999 length = llvm::cast<clang::ConstantArrayType>(
3054 llvm::cast<clang::ReferenceType>(qual_type.getTypePtr());
3083 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
3223 llvm::cast<clang::ReferenceType>(qual_type.getTypePtr());
3279 llvm::cast<clang::ReferenceType>(qual_type.getTypePtr());
3646 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
4045 this, llvm::cast<clang::ArrayType>(qual_type.getTypePtr())
4098 this, llvm::cast<clang::ReferenceType>(qual_type.getTypePtr())
4317 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
4540 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
4629 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
5540 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
5556 llvm::cast<clang::CXXRecordDecl>(
5610 llvm::cast<clang::ObjCObjectPointerType>(qual_type.getTypePtr());
5625 llvm::cast<clang::VectorType>(qual_type.getTypePtr())->getNumElements();
5629 num_children = llvm::cast<clang::ConstantArrayType>(qual_type.getTypePtr())
5644 llvm::cast<clang::PointerType>(qual_type.getTypePtr());
5660 llvm::cast<clang::ReferenceType>(qual_type.getTypePtr());
5973 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
6232 llvm::cast<clang::CXXRecordDecl>(
6355 llvm::cast<clang::CXXRecordDecl>(
6611 llvm::cast<clang::RecordType>(parent_qual_type.getTypePtr());
6631 base_class_decl = llvm::cast<clang::CXXRecordDecl>(
6639 base_class_decl = llvm::cast<clang::CXXRecordDecl>(
6890 llvm::cast<clang::VectorType>(parent_qual_type.getTypePtr());
6973 llvm::cast<clang::ReferenceType>(parent_qual_type.getTypePtr());
7159 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
7225 parent_record_decl = llvm::cast<clang::RecordDecl>(
7309 this, llvm::cast<clang::ObjCObjectPointerType>(qual_type.getTypePtr())
7359 llvm::cast<clang::ReferenceType>(qual_type.getTypePtr());
7431 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
7448 llvm::cast<clang::CXXRecordDecl>(
7521 this, llvm::cast<clang::ObjCObjectPointerType>(qual_type.getTypePtr())
7571 llvm::cast<clang::ReferenceType>(qual_type.getTypePtr());
7583 llvm::cast<clang::PointerType>(qual_type.getTypePtr());
9019 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
9038 llvm::cast<clang::CXXRecordDecl>(
9170 llvm::cast<clang::EnumType>(qual_type.getTypePtr());
9193 llvm::cast<clang::ConstantArrayType>(qual_type.getTypePtr());
9388 llvm::cast<clang::EnumType>(qual_type.getTypePtr());
9707 llvm::cast<clang::RecordType>(qual_type.getTypePtr());
tools/llvm-diff/DiffConsumer.cpp 55 printValue(cast<StoreInst>(V)->getPointerOperand(), isL);
58 printValue(cast<CallInst>(V)->getCalledValue(), isL);
61 printValue(cast<InvokeInst>(V)->getCalledValue(), isL);
79 ComputeNumbering(cast<Function>(ctxt.L), ctxt.LNumbering);
84 ComputeNumbering(cast<Function>(ctxt.R), ctxt.RNumbering);
102 Function *L = cast<Function>(I->L);
103 Function *R = cast<Function>(I->R);
110 BasicBlock *L = cast<BasicBlock>(I->L);
111 BasicBlock *R = cast<BasicBlock>(I->R);
tools/llvm-diff/DifferenceEngine.cpp 255 if (cast<CmpInst>(L)->getPredicate()
256 != cast<CmpInst>(R)->getPredicate()) {
276 InvokeInst *LI = cast<InvokeInst>(L);
277 InvokeInst *RI = cast<InvokeInst>(R);
288 BranchInst *LI = cast<BranchInst>(L);
289 BranchInst *RI = cast<BranchInst>(R);
306 IndirectBrInst *LI = cast<IndirectBrInst>(L);
307 IndirectBrInst *RI = cast<IndirectBrInst>(R);
326 SwitchInst *LI = cast<SwitchInst>(L);
327 SwitchInst *RI = cast<SwitchInst>(R);
391 return Engine.equivalentAsOperands(cast<GlobalValue>(L),
392 cast<GlobalValue>(R));
396 return equivalentAsOperands(cast<ConstantExpr>(L),
397 cast<ConstantExpr>(R));
407 return Blocks[cast<BlockAddress>(L)->getBasicBlock()]
408 == cast<BlockAddress>(R)->getBasicBlock();
412 ConstantVector *CVL = cast<ConstantVector>(L);
413 ConstantVector *CVR = cast<ConstantVector>(R);
467 return equivalentAsOperands(cast<Constant>(L), cast<Constant>(R));
467 return equivalentAsOperands(cast<Constant>(L), cast<Constant>(R));
476 return Blocks[cast<BasicBlock>(L)] != R;
634 if (cast<BranchInst>(LTerm)->isConditional()) return;
639 CallInst *LCall = cast<CallInst>(&*I);
640 InvokeInst *RInvoke = cast<InvokeInst>(RTerm);
647 if (cast<BranchInst>(RTerm)->isConditional()) return;
653 InvokeInst *LInvoke = cast<InvokeInst>(LTerm);
tools/llvm-lipo/llvm-lipo.cpp 190 MachOObjectFile *O = cast<MachOObjectFile>(Bin);
442 const auto S = B->isMachO() ? Slice(cast<MachOObjectFile>(B))
443 : Slice(cast<Archive>(B));
513 OS << Slice(cast<MachOObjectFile>(Binary)).getArchString() << " \n";
560 auto *UO = cast<MachOUniversalBinary>(InputBinaries.front().getBinary());
tools/llvm-objcopy/ELF/ELFObjcopy.cpp 579 auto CS = cast<CompressedSection>(S);
tools/llvm-objdump/ELFDump.cpp 125 auto *ELF64BE = cast<ELF64BEObjectFile>(Obj);
154 const auto *ELFObj = cast<ELF64BEObjectFile>(Sec.getObject());
tools/llvm-objdump/llvm-objdump.cpp 898 if (auto *Elf64BEObj = cast<ELF64BEObjectFile>(Obj))
940 else if (auto *Elf64BEObj = cast<ELF64BEObjectFile>(Obj))
tools/llvm-pdbutil/InputFile.cpp 271 IF.PdbOrObj = llvm::cast<COFFObjectFile>(IF.CoffObject.getBinary());
tools/llvm-rc/ResourceFileWriter.cpp 474 const auto *Res = cast<StringTableResource>(Base);
690 auto *Res = cast<AcceleratorsResource>(Base);
703 StringRef Filename = cast<BitmapResource>(Base)->BitmapLoc;
834 auto *Res = cast<SingleIconCursorResource>(Base);
851 auto *Res = cast<IconCursorGroupResource>(Base);
1054 auto *Res = cast<DialogResource>(Base);
1171 return appendFile(cast<HTMLResource>(Base)->HTMLLoc);
1196 auto *PopupPtr = cast<PopupItem>(DefPtr);
1221 return writeMenuDefinitionList(cast<MenuResource>(Base)->Elements);
1257 auto *Res = cast<BundleResource>(Base);
1298 auto *Res = cast<UserDefinedResource>(Base);
1356 auto *ValuePtr = cast<VersionInfoValue>(ItemPtr);
1437 auto *Res = cast<VersionInfoResource>(Base);
tools/llvm-stress/llvm-stress.cpp 241 VectorType *VTp = cast<VectorType>(Tp);
358 PointerType *Tp = cast<PointerType>(Ptr->getType());
486 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()),
500 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements();
530 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()),
547 VectorType *VecTy = cast<VectorType>(VTy);
630 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements();
tools/opt/AnalysisWrappers.cpp 43 CallSite CS(cast<Value>(UI));
tools/polly/include/polly/ScopInfo.h 1493 if (auto InputMA = lookupPHIReadOf(cast<PHINode>(Val))) {
2076 PHINode *PHI = cast<PHINode>(Access->getAccessInstruction());
tools/polly/include/polly/Support/ScopHelper.h 101 return MemAccInst(llvm::cast<llvm::Instruction>(V));
109 return MemAccInst(llvm::cast<llvm::Instruction>(V));
119 return MemAccInst(llvm::cast<llvm::Instruction>(V));
268 llvm::LoadInst *asLoad() const { return llvm::cast<llvm::LoadInst>(I); }
269 llvm::StoreInst *asStore() const { return llvm::cast<llvm::StoreInst>(I); }
270 llvm::CallInst *asCallInst() const { return llvm::cast<llvm::CallInst>(I); }
272 return llvm::cast<llvm::MemIntrinsic>(I);
275 return llvm::cast<llvm::MemSetInst>(I);
278 return llvm::cast<llvm::MemTransferInst>(I);
tools/polly/lib/Analysis/ScopBuilder.cpp 1714 cast<SCEVConstant>(Sizes.back())->getAPInt().getSExtValue();
1831 auto *ArgBasePtr = cast<SCEVUnknown>(SE.getPointerBase(ArgSCEV));
2254 if (isa<LoadInst>(Inst) && RIL.count(cast<LoadInst>(&Inst)))
2576 ensureValueWrite(cast<Instruction>(V));
2878 auto *LI = cast<LoadInst>(Access->getAccessInstruction());
2935 LoadInst *LInst = cast<LoadInst>(MA->getAccessInstruction());
3019 LoadInst *LInst = cast<LoadInst>(MA->getAccessInstruction());
3474 cast<LoadInst>(BasePtrMA->getAccessInstruction()));
tools/polly/lib/Analysis/ScopDetection.cpp 594 ICmpInst *ICmp = cast<ICmpInst>(Condition);
tools/polly/lib/Analysis/ScopInfo.cpp 1151 Instruction *AccessVal = cast<Instruction>(Access->getAccessValue());
1161 PHINode *PHI = cast<PHINode>(Access->getAccessValue());
1166 PHINode *PHI = cast<PHINode>(Access->getAccessValue());
1301 bool Found = ValueWrites.erase(cast<Instruction>(MA->getAccessValue()));
1306 bool Found = PHIWrites.erase(cast<PHINode>(MA->getAccessInstruction()));
1311 bool Found = PHIReads.erase(cast<PHINode>(MA->getAccessInstruction()));
1484 ConstantInt *Op = cast<ConstantInt>(&Operand);
1800 LInst = cast<LoadInst>(Rep);
2429 auto *PHI = cast<PHINode>(U.getUser());
2502 PHINode *PHI = cast<PHINode>(Access->getAccessInstruction());
2535 PHINode *PHI = cast<PHINode>(SAI->getBasePtr());
2560 isExit(cast<PHINode>(Use.getUser())->getParent()))
tools/polly/lib/CodeGen/BlockGenerators.cpp 523 Instruction *Inst = cast<Instruction>(Array->getBasePtr());
574 DT.dominates(cast<Instruction>(Address)->getParent(),
636 BranchInst *Branch = cast<BranchInst>(HeadBlock->getTerminator());
792 DT.dominates(cast<Instruction>(Val)->getParent(),
796 DT.dominates(cast<Instruction>(Address)->getParent(),
825 auto PHI = cast<PHINode>(Array->getBasePtr());
965 cast<Instruction>(OriginalValue)->getParent() != MergeBB) &&
1628 PHINode *OrigPHI = cast<PHINode>(MA->getAccessInstruction());
1725 DT.dominates(cast<Instruction>(NewVal)->getParent(),
1729 DT.dominates(cast<Instruction>(Address)->getParent(),
tools/polly/lib/CodeGen/IslNodeBuilder.cpp 320 Values.insert(cast<SCEVUnknown>(I.second)->getValue());
tools/polly/lib/CodeGen/PerfMonitor.cpp 43 V.push_back(cast<Constant>(X));
tools/polly/lib/Support/SCEVValidator.cpp 356 auto Call = cast<CallInst>(I);
366 ILS->insert(cast<LoadInst>(I));
714 auto *ConstPart = cast<SCEVConstant>(SE.getConstant(S->getType(), 1));
737 Factor = cast<SCEVConstant>(SE.getNegativeSCEV(Factor));
765 ConstPart = cast<SCEVConstant>(SE.getMulExpr(ConstPart, Op));
tools/polly/lib/Support/ScopLocation.cpp 32 auto *Scope = cast<DIScope>(DL.getScope());
tools/polly/lib/Support/VirtualInstruction.cpp 92 auto Inst = cast<Instruction>(Val);
194 return S->isEscaping(cast<Instruction>(MA->getAccessValue()));
309 cast<Instruction>(VUse.getValue()));
tools/polly/lib/Transform/DeLICM.cpp 571 auto UserInst = cast<Instruction>(User);
588 auto PHI = cast<PHINode>(MA->getAccessInstruction());
tools/polly/lib/Transform/ForwardOpTree.cpp 761 Instruction *Inst = cast<Instruction>(UseVal);
tools/polly/lib/Transform/ZoneAlgo.cpp 539 auto *PHI = cast<PHINode>(SAI->getBasePtr());
805 auto *Inst = cast<Instruction>(Val);
901 auto *PHI = cast<PHINode>(MA->getAccessInstruction());
1003 auto *PHI = cast<PHINode>(MA->getAccessInstruction());
1025 auto *PHI = cast<PHINode>(MA->getAccessInstruction());
unittests/Analysis/BasicAliasAnalysisTest.cpp 81 cast<GlobalVariable>(M.getOrInsertGlobal("some_global", B.getInt8Ty()));
115 cast<GetElementPtrInst>(B.CreateGEP(B.getInt8Ty(), I8, ArbitraryI32));
unittests/Analysis/CGSCCPassManagerTest.cpp 1216 auto &H3F = *cast<Function>(cast<BitCastInst>(H2F.begin()->begin())->getOperand(0));
unittests/Analysis/MemorySSATest.cpp 102 MemoryUse *LoadAccess = cast<MemoryUse>(Updater.createMemoryAccessInBB(
137 Updater.insertDef(cast<MemoryDef>(EntryStoreAccess));
148 MemoryUse *FirstLoadAccess = cast<MemoryUse>(Updater.createMemoryAccessInBB(
161 Updater.insertDef(cast<MemoryDef>(LeftStoreAccess), false);
172 MemoryUse *SecondLoadAccess = cast<MemoryUse>(Updater.createMemoryAccessInBB(
187 Updater.insertDef(cast<MemoryDef>(SecondEntryStoreAccess), false);
189 Updater.insertDef(cast<MemoryDef>(SecondEntryStoreAccess), true);
227 Updater.insertDef(cast<MemoryDef>(StoreAccess));
238 MemoryUse *LoadAccess = cast<MemoryUse>(Updater.createMemoryAccessInBB(
280 LoadInst *LoadInstClone = cast<LoadInst>(LoadInst1->clone());
286 Updater.insertUse(cast<MemoryUse>(NewLoadAccess));
361 auto *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(MergeLoad));
363 MemoryPhi *MergePhi = cast<MemoryPhi>(LoadAccess->getDefiningAccess());
367 Updater.insertDef(cast<MemoryDef>(NewStoreAccess));
404 auto *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(MergeLoad));
406 MemoryPhi *MergePhi = cast<MemoryPhi>(LoadAccess->getDefiningAccess());
448 auto *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(MergeLoad));
450 MemoryPhi *MergePhi = cast<MemoryPhi>(LoadAccess->getDefiningAccess());
500 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LoadInst));
501 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst));
506 MemoryPhi *MP = cast<MemoryPhi>(DefiningAccess);
509 EXPECT_TRUE(MSSA.isLiveOnEntryDef(cast<MemoryAccess>(Op.get())));
547 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LoadInst));
548 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst));
573 MemoryAccess *Operand = cast<MemoryAccess>(&*Op);
738 auto *ALoadMA = cast<MemoryUse>(MSSA.getMemoryAccess(ALoad));
780 auto *LoadMA = cast<MemoryUse>(MSSA.getMemoryAccess(Load));
781 auto *StoreMA = cast<MemoryDef>(MSSA.getMemoryAccess(Store));
811 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LIA));
817 MemoryUse *NewLoadAccess = cast<MemoryUse>(Updater.createMemoryAccessInBB(
849 Updater.moveBefore(cast<MemoryDef>(MSSA.getMemoryAccess(StoreC)),
850 cast<MemoryDef>(MSSA.getMemoryAccess(StoreB)));
906 MemoryUse *LoadAccess = cast<MemoryUse>(Updater.createMemoryAccessInBB(
938 auto *DefA = cast<MemoryDef>(MSSA.getMemoryAccess(StoreA));
939 auto *DefB = cast<MemoryDef>(MSSA.getMemoryAccess(StoreB));
985 auto *DefX1 = cast<MemoryDef>(MSSA.getMemoryAccess(StoreX1));
986 auto *DefY = cast<MemoryDef>(MSSA.getMemoryAccess(StoreY));
987 auto *DefX2 = cast<MemoryDef>(MSSA.getMemoryAccess(StoreX2));
1307 auto *AccessEntry = cast<MemoryDef>(MSSA.getMemoryAccess(StoreEntry));
1308 auto *StoreAEntry = cast<MemoryDef>(MSSA.getMemoryAccess(StoreA));
1309 auto *StoreBEntry = cast<MemoryDef>(MSSA.getMemoryAccess(StoreB));
1355 auto *StoreAAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreA));
1356 auto *StoreA2Access = cast<MemoryDef>(MSSA.getMemoryAccess(StoreA2));
1360 auto *StoreBAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreB));
1373 [](const User *U) { return cast<MemoryDef>(U); });
1390 EXPECT_EQ(SortedUserList(cast<MemoryDef>(MSSA.getLiveOnEntryDef())),
1498 MemoryDef *DefS1 = cast<MemoryDef>(MSSA.getMemoryAccess(S1));
unittests/Analysis/ScalarEvolutionTest.cpp 91 const SCEVMulExpr *M0 = cast<SCEVMulExpr>(P0);
92 const SCEVMulExpr *M1 = cast<SCEVMulExpr>(P1);
93 const SCEVMulExpr *M2 = cast<SCEVMulExpr>(P2);
95 EXPECT_EQ(cast<SCEVConstant>(M0->getOperand(0))->getValue()->getZExtValue(),
97 EXPECT_EQ(cast<SCEVConstant>(M1->getOperand(0))->getValue()->getZExtValue(),
99 EXPECT_EQ(cast<SCEVConstant>(M2->getOperand(0))->getValue()->getZExtValue(),
103 EXPECT_EQ(cast<SCEVUnknown>(M0->getOperand(1))->getValue(), V0);
104 EXPECT_EQ(cast<SCEVUnknown>(M1->getOperand(1))->getValue(), V1);
105 EXPECT_EQ(cast<SCEVUnknown>(M2->getOperand(1))->getValue(), V2);
112 EXPECT_EQ(cast<SCEVUnknown>(M0->getOperand(1))->getValue(), V0);
113 EXPECT_EQ(cast<SCEVUnknown>(M1->getOperand(1))->getValue(), V0);
114 EXPECT_EQ(cast<SCEVUnknown>(M2->getOperand(1))->getValue(), V0);
196 Exp.expandCodeFor(cast<SCEVAddExpr>(S)->getOperand(1), nullptr, Br);
203 Instruction *Gep = cast<Instruction>(V)->getPrevNode();
206 EXPECT_EQ(cast<ConstantInt>(Gep->getOperand(1))->getSExtValue(), -1);
377 PHINode *Phi = cast<PHINode>(&*II++);
537 auto *S0 = cast<SCEVAddRecExpr>(SE.getSCEV(&I0));
544 auto *S1 = cast<SCEVAddRecExpr>(SE.getSCEV(&I1));
847 auto *Add = cast<Instruction>(
850 auto *Cond = cast<Instruction>(
852 auto *Br = cast<Instruction>(Builder.CreateCondBr(Cond, L, Post));
864 EXPECT_EQ(cast<SCEVConstant>(EC)->getAPInt().getLimitedValue(), 999u);
874 EXPECT_EQ(cast<SCEVConstant>(ARAtLoopExit)->getAPInt().getLimitedValue(),
888 EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999u);
892 EXPECT_EQ(cast<SCEVConstant>(NewARAtLoopExit)->getAPInt().getLimitedValue(),
943 auto *Load = cast<Instruction>(Builder.CreateLoad(T_int64, Arg, "load"));
948 auto *Add = cast<Instruction>(
950 auto *Cond = cast<Instruction>(
952 auto *Br = cast<Instruction>(Builder.CreateCondBr(Cond, L, Post));
977 EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999u);
1033 auto Result = SE.createAddRecFromPHIWithCasts(cast<SCEVUnknown>(Expr));
1091 auto Result = SE.createAddRecFromPHIWithCasts(cast<SCEVUnknown>(Expr));
1173 auto *Add = cast<Instruction>(
1176 auto *Cond = cast<Instruction>(
1188 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(S);
1232 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1236 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1238 auto *R = cast<Instruction>(Builder.CreateRetVoid());
1244 auto *I = cast<Instruction>(Exp.expandCodeFor(S, nullptr, R));
1284 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1288 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1290 auto *R = cast<Instruction>(Builder.CreateRetVoid());
1296 auto *I = cast<Instruction>(Exp.expandCodeFor(S, nullptr, R));
1329 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1330 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1335 auto *R = cast<Instruction>(Builder.CreateRetVoid());
1347 auto *I = cast<Instruction>(Exp.expandCodeFor(SC1, nullptr, R));
1380 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1381 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add"));
1386 auto *R = cast<Instruction>(Builder.CreateRetVoid());
1398 auto *I = cast<Instruction>(Exp.expandCodeFor(SC1, nullptr, R));
1431 auto *S1 = cast<Instruction>(Builder.CreateAdd(A, C, "s1"));
1432 auto *S2 = cast<Instruction>(Builder.CreateUDiv(S1, B, "s2"));
1490 cast<IntegerType>(CanonicalIV->getType())->getBitWidth();
1532 cast<IntegerType>(CanonicalIV->getType())->getBitWidth();
1567 cast<IntegerType>(NewCanonicalIV->getType())->getBitWidth();
1608 cast<IntegerType>(CanonicalIV.getType())->getBitWidth();
1659 LoadInst *Load = cast<LoadInst>(&Entry.front());
1660 BinaryOperator *And = cast<BinaryOperator>(*Load->user_begin());
1665 EXPECT_TRUE(cast<SCEVMulExpr>(AndSCEV)->hasNoSignedWrap());
1668 auto *I = cast<Instruction>(Exp.expandCodeFor(AndSCEV, nullptr, And));
1830 cast<IntegerType>(CanonicalIV->getType())->getBitWidth();
1878 cast<IntegerType>(CanonicalIV.getType())->getBitWidth();
1901 return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, L, SCEV::FlagAnyWrap));
1912 return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, L, SCEV::FlagAnyWrap));
1923 return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, L, SCEV::FlagAnyWrap));
unittests/Analysis/SparsePropagation.cpp 146 return visitCallSite(cast<CallInst>(&I), ChangedValues, SS);
148 return visitReturn(*cast<ReturnInst>(&I), ChangedValues, SS);
150 return visitStore(*cast<StoreInst>(&I), ChangedValues, SS);
unittests/Analysis/TargetLibraryInfoTest.cpp 69 auto *F = cast<Function>(
unittests/Analysis/UnrollAnalyzerTest.cpp 108 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 1U);
113 EXPECT_FALSE(cast<ConstantInt>((*I2).second)->getZExtValue());
119 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), TripCount);
124 EXPECT_TRUE(cast<ConstantInt>((*I2).second)->getZExtValue());
217 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 5U);
220 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 1U);
262 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 0U);
312 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 259U);
315 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 259U);
318 EXPECT_EQ(cast<ConstantInt>((*I3).second)->getZExtValue(), 3U);
unittests/AsmParser/AsmParserTest.cpp 80 EXPECT_TRUE(cast<ConstantFP>(V)->isExactlyValue(3.5));
86 EXPECT_TRUE(cast<ConstantInt>(V)->equalsInt(42));
205 StructType *ST = cast<StructType>(Ty);
219 ST = cast<StructType>(Ty);
233 VectorType *VT = cast<VectorType>(Ty);
245 ST = cast<StructType>(Ty);
254 PointerType *PT = cast<PointerType>(Ty);
264 PT = cast<PointerType>(Ty);
268 PT = cast<PointerType>(Ty);
335 StructType *ST = cast<StructType>(Ty);
350 ST = cast<StructType>(Ty);
365 VectorType *VT = cast<VectorType>(Ty);
378 ST = cast<StructType>(Ty);
388 PointerType *PT = cast<PointerType>(Ty);
399 PT = cast<PointerType>(Ty);
403 PT = cast<PointerType>(Ty);
unittests/CodeGen/ScalableVectorMVTsTest.cpp 116 VectorType *ScV4Float64Ty = cast<VectorType>(Ty);
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp 234 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
500 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
677 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
679 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(1));
887 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
1156 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
1328 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
1391 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
1439 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
1508 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
1711 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
1771 cast<DWARFCompileUnit>(DwarfContext->getUnitAtIndex(0));
unittests/FuzzMutate/OperationsTest.cpp 39 void PrintTo(Constant *C, ::std::ostream *OS) { PrintTo(cast<Value>(C), OS); }
190 auto *UncondBr = cast<BranchInst>(BB->getTerminator());
202 auto *CondBr = cast<BranchInst>(BB1->getTerminator());
unittests/IR/BasicBlockTest.cpp 115 Instruction *AddInst = cast<Instruction>(Builder1.CreateAdd(V, V));
116 Instruction *MulInst = cast<Instruction>(Builder1.CreateMul(AddInst, V));
118 Instruction *SubInst = cast<Instruction>(Builder1.CreateSub(MulInst, V));
unittests/IR/CFGBuilder.cpp 51 SwitchInst *SI = cast<SwitchInst>(From->getTerminator());
62 SwitchInst *SI = cast<SwitchInst>(From->getTerminator());
178 auto *DSwitch = cast<SwitchInst>(B.getOrAddBlock("d")->getTerminator());
206 auto *DSwitch = cast<SwitchInst>(B.getOrAddBlock("d")->getTerminator());
unittests/IR/ConstantsTest.cpp 475 ASSERT_EQ(cast<ConstantExpr>(C)->getOpcode(), Instruction::BitCast);
unittests/IR/DominatorTreeTest.cpp 486 auto SwitchC = cast<SwitchInst>(C->getTerminator());
575 auto SwitchC = cast<SwitchInst>(C->getTerminator());
unittests/IR/IRBuilderTest.cpp 58 I = cast<Instruction>(Builder.CreateFAdd(V, V));
63 II = cast<IntrinsicInst>(Call);
67 II = cast<IntrinsicInst>(Call);
71 II = cast<IntrinsicInst>(Call);
75 II = cast<IntrinsicInst>(Call);
79 II = cast<IntrinsicInst>(Call);
83 II = cast<IntrinsicInst>(Call);
89 II = cast<IntrinsicInst>(Call);
95 II = cast<IntrinsicInst>(Call);
101 II = cast<IntrinsicInst>(Call);
107 II = cast<IntrinsicInst>(Call);
113 II = cast<IntrinsicInst>(Call);
119 II = cast<IntrinsicInst>(Call);
189 II = cast<IntrinsicInst>(V);
194 II = cast<IntrinsicInst>(V);
199 II = cast<IntrinsicInst>(V);
204 II = cast<IntrinsicInst>(V);
209 II = cast<IntrinsicInst>(V);
214 II = cast<IntrinsicInst>(VInt);
219 II = cast<IntrinsicInst>(VInt);
224 II = cast<IntrinsicInst>(V);
229 II = cast<IntrinsicInst>(VDouble);
244 auto *CII = cast<ConstrainedFPIntrinsic>(V);
251 CII = cast<ConstrainedFPIntrinsic>(V);
258 CII = cast<ConstrainedFPIntrinsic>(V);
265 CII = cast<ConstrainedFPIntrinsic>(V);
272 CII = cast<ConstrainedFPIntrinsic>(V);
279 CII = cast<ConstrainedFPIntrinsic>(V);
287 CII = cast<ConstrainedFPIntrinsic>(Call);
388 Instruction *I = cast<Instruction>(U);
392 Instruction *IFMF = cast<Instruction>(VFMF);
408 FAdd = cast<Instruction>(F);
418 FAdd = cast<Instruction>(F);
445 FAdd = cast<Instruction>(F);
453 FAdd = cast<Instruction>(F);
460 FDiv = cast<Instruction>(F);
468 FDiv = cast<Instruction>(F);
480 FDiv = cast<Instruction>(F);
487 FCmp = cast<Instruction>(FC);
498 FCmp = cast<Instruction>(FC);
506 FAdd = cast<Instruction>(FC);
517 FAdd = cast<Instruction>(FC);
525 FAdd = cast<Instruction>(F);
535 FAdd = cast<Instruction>(F);
573 FDiv = cast<Instruction>(F);
592 cast<BinaryOperator>(Builder.CreateNSWAdd(V, V))->hasNoSignedWrap());
594 cast<BinaryOperator>(Builder.CreateNSWMul(V, V))->hasNoSignedWrap());
596 cast<BinaryOperator>(Builder.CreateNSWSub(V, V))->hasNoSignedWrap());
597 EXPECT_TRUE(cast<BinaryOperator>(
602 cast<BinaryOperator>(Builder.CreateNUWAdd(V, V))->hasNoUnsignedWrap());
604 cast<BinaryOperator>(Builder.CreateNUWMul(V, V))->hasNoUnsignedWrap());
606 cast<BinaryOperator>(Builder.CreateNUWSub(V, V))->hasNoUnsignedWrap());
607 EXPECT_TRUE(cast<BinaryOperator>(
613 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWAdd(C, C))
615 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWSub(C, C))
617 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWMul(C, C))
619 EXPECT_TRUE(cast<OverflowingBinaryOperator>(
623 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWAdd(C, C))
625 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWSub(C, C))
627 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWMul(C, C))
629 EXPECT_TRUE(cast<OverflowingBinaryOperator>(
661 Builder.SetInsertPoint(cast<Instruction>(F));
unittests/IR/InstructionsTest.cpp 416 FPMathOperator *O1 = cast<FPMathOperator>(V1);
522 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone()));
533 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone()));
606 cast<Instruction>(B.CreateUDiv(Arg0, Arg0, "", /*isExact*/ true));
614 cast<Instruction>(B.CreateLShr(Arg0, Arg0, "", /*isExact*/ true));
621 auto *AI = cast<Instruction>(
630 auto *SI = cast<Instruction>(
639 auto *ShlI = cast<Instruction>(
650 auto *GI = cast<GetElementPtrInst>(
672 auto *GEPI = cast<GetElementPtrInst>(V);
1025 Function *F = cast<Function>(M->getNamedValue("f"));
1107 BlockAddress *ArgBA = cast<BlockAddress>(CBI.getArgOperand(0));
unittests/IR/MetadataTest.cpp 1584 DIDerivedType *Discriminator = cast<DIDerivedType>(getDerivedType());
1585 DIDerivedType *Discriminator2 = cast<DIDerivedType>(getDerivedType());
2142 cast<DIDerivedType>(getDerivedType());
2201 cast<DIDerivedType>(getDerivedType()),
2231 cast<DIDerivedType>(getDerivedType());
unittests/IR/PatternMatch.cpp 512 Value *CNeg128 = ConstantExpr::getNeg(cast<Constant>(C128));
521 Value *CNegIntMin = ConstantExpr::getNeg(cast<Constant>(CIntMin));
1076 cast<Instruction>(V2)->setHasNoSignedZeros(true);
unittests/Linker/LinkModulesTest.cpp 117 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(),
119 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(),
124 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(),
126 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(),
260 auto *CI = cast<CallInst>(&BB->front());
261 auto *RI = cast<ReturnInst>(BB->getTerminator());
266 cast<MDNode>(cast<MetadataAsValue>(CI->getArgOperand(0))->getMetadata());
266 cast<MDNode>(cast<MetadataAsValue>(CI->getArgOperand(0))->getMetadata());
289 CI = cast<CallInst>(&BB->front());
290 RI = cast<ReturnInst>(BB->getTerminator());
294 EXPECT_EQ(M1, cast<MetadataAsValue>(CI->getArgOperand(0))->getMetadata());
unittests/ProfileData/SampleProfTest.cpp 289 auto Fcn = cast<Function>(Inserted.getCallee());
unittests/Support/Casting.cpp 62 return cast<foo>(this);
130 const foo *F3 = cast<foo>(B2);
132 const foo *F4 = cast<foo>(B2);
136 const foo *F6 = cast<foo>(B4);
unittests/Support/YAMLIOTest.cpp 2845 return *cast<Scalar>(N.get());
2851 return *cast<Seq>(N.get());
2857 return *cast<Map>(N.get());
unittests/Support/YAMLParserTest.cpp 162 yaml::MappingNode *Map = cast<yaml::MappingNode>(Doc.getRoot());
164 cast<yaml::BlockScalarNode>(Map->begin()->getValue())->getValue();
unittests/Transforms/Utils/CloningTest.cpp 42 return cast<T>(V2);
224 Instruction *AddInst = cast<Instruction>(Builder2.CreateAdd(V, V));
225 Instruction *MulInst = cast<Instruction>(Builder2.CreateMul(AddInst, V));
226 Instruction *SubInst = cast<Instruction>(Builder2.CreateSub(MulInst, V));
273 Instruction *AddInst = cast<Instruction>(Builder2.CreateAdd(V, V));
274 Instruction *MulInst = cast<Instruction>(Builder2.CreateMul(AddInst, V));
275 Instruction *SubInst = cast<Instruction>(Builder2.CreateSub(MulInst, V));
326 Instruction *AddInst = cast<Instruction>(Builder2.CreateAdd(V, V));
327 Instruction *MulInst = cast<Instruction>(Builder2.CreateMul(AddInst, V));
328 Instruction *SubInst = cast<Instruction>(Builder2.CreateSub(MulInst, V));
588 auto *OldSubprogram = cast<DISubprogram>(OldDL.getInlinedAtScope());
589 auto *NewSubprogram = cast<DISubprogram>(NewDL.getInlinedAtScope());
618 EXPECT_EQ(OldFunc, cast<AllocaInst>(OldIntrin->getAddress())->
621 EXPECT_EQ(NewFunc, cast<AllocaInst>(NewIntrin->getAddress())->
631 cast<DISubprogram>(OldIntrin->getVariable()->getScope()));
634 cast<DISubprogram>(NewIntrin->getVariable()->getScope()));
643 cast<DISubprogram>(OldIntrin->getVariable()->getScope()));
646 cast<DISubprogram>(NewIntrin->getVariable()->getScope()));
unittests/Transforms/Utils/FunctionComparatorTest.cpp 36 I = cast<Instruction>(B.CreateAdd(LoadInst, C));
unittests/Transforms/Utils/IntegerDivisionTest.cpp 45 expandDivision(cast<BinaryOperator>(Div));
48 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
75 expandDivision(cast<BinaryOperator>(Div));
78 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
105 expandRemainder(cast<BinaryOperator>(Rem));
108 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
135 expandRemainder(cast<BinaryOperator>(Rem));
138 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
166 expandDivision(cast<BinaryOperator>(Div));
169 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
196 expandDivision(cast<BinaryOperator>(Div));
199 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
226 expandRemainder(cast<BinaryOperator>(Rem));
229 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
256 expandRemainder(cast<BinaryOperator>(Rem));
259 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
unittests/Transforms/Utils/LocalTest.cpp 526 const auto &CI = *cast<ConstantInt>(DI.getValue());
536 const auto &CI = *cast<ConstantInt>(DI.getValue());
613 Function &F = *cast<Function>(M->getNamedValue("foo"));
709 Function &F = *cast<Function>(M->getNamedValue("f"));
759 auto *ADbgVal = cast<DbgValueInst>(A.getNextNode());
unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp 66 auto *I1 = cast<Instruction>(B.CreateAdd(AddOp1, ConstantInt::get(I32Ty, 5)));
67 auto *I2 = cast<Instruction>(B.CreateAdd(AddOp2, ConstantInt::get(I32Ty, 6)));
68 auto *I3 = cast<Instruction>(B.CreateAdd(SubOp1, SubOp2));
69 auto *I4 = cast<Instruction>(B.CreateSub(SubOp1, SubOp2));
148 auto *I1 = cast<Instruction>(B.CreateAdd(AddOp1, ConstantInt::get(I32Ty, 3)));
152 auto *I2 = cast<Instruction>(B.CreateAdd(AddOp2, ConstantInt::get(I32Ty, 4)));
unittests/Transforms/Utils/ValueMapperTest.cpp 261 EXPECT_EQ(F2.get(), cast<ConstantAsMetadata>(F2MD)->getValue());
unittests/Transforms/Vectorize/VPlanDominatorTreeTest.cpp 45 VPRegionBlock *TopRegion = cast<VPRegionBlock>(Plan->getEntry());
unittests/Transforms/Vectorize/VPlanLoopInfoTest.cpp 45 VPRegionBlock *TopRegion = cast<VPRegionBlock>(Plan->getEntry());
unittests/Transforms/Vectorize/VPlanPredicatorTest.cpp 69 VPRegionBlock *TopRegion = cast<VPRegionBlock>(Plan->getEntry());
163 VPRegionBlock *TopRegion = cast<VPRegionBlock>(Plan->getEntry());
184 VPInstruction *NotAnd = cast<VPInstruction>(
217 VPInstruction *OrOp0Inst = cast<VPInstruction>(Or->getOperand(0));
218 VPInstruction *OrOp1Inst = cast<VPInstruction>(Or->getOperand(1));
unittests/Transforms/Vectorize/VPlanSlpTest.cpp 104 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 12));
105 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 14));
113 auto *CombinedAdd = cast<VPInstruction>(CombinedStore->getOperand(0));
116 auto *CombinedLoadA = cast<VPInstruction>(CombinedAdd->getOperand(0));
117 auto *CombinedLoadB = cast<VPInstruction>(CombinedAdd->getOperand(1));
171 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 12));
172 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 14));
182 auto *CombinedAdd = cast<VPInstruction>(CombinedStore->getOperand(0));
185 auto *CombinedLoadA = cast<VPInstruction>(CombinedAdd->getOperand(0));
186 auto *CombinedLoadB = cast<VPInstruction>(CombinedAdd->getOperand(1));
190 VPInstruction *GetA = cast<VPInstruction>(&*std::next(Body->begin(), 1));
191 VPInstruction *GetB = cast<VPInstruction>(&*std::next(Body->begin(), 3));
238 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 8));
239 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 10));
247 auto *CombinedAdd = cast<VPInstruction>(CombinedStore->getOperand(0));
250 auto *CombinedLoadA = cast<VPInstruction>(CombinedAdd->getOperand(0));
297 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 5));
298 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 10));
317 cast<VPInstruction>(CombinedStore->getOperand(0));
321 cast<VPInstruction>(CombinedAdd->getOperand(0));
323 cast<VPInstruction>(CombinedAdd->getOperand(1));
327 cast<VPInstruction>(CombinedMulAB->getOperand(0));
329 VPInstruction *LoadvA0 = cast<VPInstruction>(&*std::next(Body->begin(), 2));
330 VPInstruction *LoadvA1 = cast<VPInstruction>(&*std::next(Body->begin(), 12));
335 cast<VPInstruction>(CombinedMulAB->getOperand(1));
337 VPInstruction *LoadvB0 = cast<VPInstruction>(&*std::next(Body->begin(), 4));
338 VPInstruction *LoadvB1 = cast<VPInstruction>(&*std::next(Body->begin(), 14));
345 cast<VPInstruction>(CombinedMulCD->getOperand(0));
347 VPInstruction *LoadvC0 = cast<VPInstruction>(&*std::next(Body->begin(), 7));
348 VPInstruction *LoadvC1 = cast<VPInstruction>(&*std::next(Body->begin(), 17));
353 cast<VPInstruction>(CombinedMulCD->getOperand(1));
355 VPInstruction *LoadvD0 = cast<VPInstruction>(&*std::next(Body->begin(), 9));
356 VPInstruction *LoadvD1 = cast<VPInstruction>(&*std::next(Body->begin(), 19));
425 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 24));
426 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 26));
497 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 24));
498 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 26));
569 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 24));
570 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 26));
645 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 24));
646 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 26));
707 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(BB2->begin(), 3));
708 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(BB2->begin(), 5));
770 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(BB2->begin(), 1));
771 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(BB2->begin(), 3));
829 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 12));
830 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 14));
888 VPInstruction *Store1 = cast<VPInstruction>(&*std::next(Body->begin(), 12));
889 VPInstruction *Store2 = cast<VPInstruction>(&*std::next(Body->begin(), 14));
utils/TableGen/AsmMatcherEmitter.cpp 1154 Rec = cast<DefInit>(OI.MIOperandInfo->getArg(SubOpIdx))->getDef();
utils/TableGen/CodeGenDAGPatterns.cpp 1934 cast<DefInit>(Val)->getDef()->getName() == "node")) {
2213 unsigned IID = cast<IntInit>(getChild(0)->getLeafValue())->getValue();
2537 Record *SubRec = cast<DefInit>(MIOpInfo->getArg(0))->getDef();
2550 SubRec = cast<DefInit>(MIOpInfo->getArg(Arg))->getDef();
3141 cast<DefInit>(OpsList->getArg(j))->getDef()->getName() != "node")
3271 SlotRec = cast<DefInit>(Slot->getLeafValue())->getDef();
3675 Record *R = cast<DefInit>(RNode->getLeafValue())->getDef();
utils/TableGen/CodeGenInstruction.cpp 97 cast<DefInit>(MIOpInfo->getOperator())->getDef()->getName() != "ops")
569 InstOpRec = cast<DefInit>(DI->getArg(0))->getDef();
736 Record *SubRec = cast<DefInit>(MIOI->getArg(SubOp))->getDef();
757 Record *SubRec = cast<DefInit>(MIOI->getArg(SubOp))->getDef();
utils/TableGen/CodeGenMapTable.cpp 135 auto *ColI = cast<ListInit>(I);
524 auto *ListJ = cast<ListInit>(List->getElement(j));
utils/TableGen/CodeGenSchedule.cpp 1817 BitInit *Val = cast<BitInit>(MoveElimInfo->getElement(I));
utils/TableGen/DAGISelMatcher.cpp 312 return cast<CheckOpcodeMatcher>(M)->Opcode.getEnumName() ==
317 const EmitNodeMatcherCommon *M = cast<EmitNodeMatcherCommon>(m);
utils/TableGen/DAGISelMatcher.h 280 return cast<RecordChildMatcher>(M)->getChildNo() == getChildNo();
330 return cast<MoveChildMatcher>(M)->getChildNo() == getChildNo();
367 return cast<CheckSameMatcher>(M)->getMatchNumber() == getMatchNumber();
391 return cast<CheckChildSameMatcher>(M)->ChildNo == ChildNo &&
392 cast<CheckChildSameMatcher>(M)->MatchNumber == MatchNumber;
414 return cast<CheckPatternPredicateMatcher>(M)->getPredicate() == Predicate;
438 return cast<CheckPredicateMatcher>(M)->Pred == Pred;
508 return cast<CheckTypeMatcher>(M)->Type == Type;
559 return cast<CheckChildTypeMatcher>(M)->ChildNo == ChildNo &&
560 cast<CheckChildTypeMatcher>(M)->Type == Type;
583 return cast<CheckIntegerMatcher>(M)->Value == Value;
607 return cast<CheckChildIntegerMatcher>(M)->ChildNo == ChildNo &&
608 cast<CheckChildIntegerMatcher>(M)->Value == Value;
630 return cast<CheckCondCodeMatcher>(M)->CondCodeName == CondCodeName;
651 return cast<CheckChild2CondCodeMatcher>(M)->CondCodeName == CondCodeName;
672 return cast<CheckValueTypeMatcher>(M)->TypeName == TypeName;
713 return &cast<CheckComplexPatMatcher>(M)->Pattern == &Pattern &&
714 cast<CheckComplexPatMatcher>(M)->MatchNumber == MatchNumber;
735 return cast<CheckAndImmMatcher>(M)->Value == Value;
756 return cast<CheckOrImmMatcher>(M)->Value == Value;
826 return cast<EmitIntegerMatcher>(M)->Val == Val &&
827 cast<EmitIntegerMatcher>(M)->VT == VT;
850 return cast<EmitStringIntegerMatcher>(M)->Val == Val &&
851 cast<EmitStringIntegerMatcher>(M)->VT == VT;
875 return cast<EmitRegisterMatcher>(M)->Reg == Reg &&
876 cast<EmitRegisterMatcher>(M)->VT == VT;
898 return cast<EmitConvertToTargetMatcher>(M)->Slot == Slot;
926 return cast<EmitMergeInputChainsMatcher>(M)->ChainNodes == ChainNodes;
952 return cast<EmitCopyToRegMatcher>(M)->SrcSlot == SrcSlot &&
953 cast<EmitCopyToRegMatcher>(M)->DestPhysReg == DestPhysReg;
978 return cast<EmitNodeXFormMatcher>(M)->Slot == Slot &&
979 cast<EmitNodeXFormMatcher>(M)->NodeXForm == NodeXForm;
1110 return cast<CompleteMatchMatcher>(M)->Results == Results &&
1111 &cast<CompleteMatchMatcher>(M)->Pattern == &Pattern;
utils/TableGen/DAGISelMatcherEmitter.cpp 288 const ScopeMatcher *SM = cast<ScopeMatcher>(N);
351 << cast<RecordMatcher>(N)->getResultNo() << " = "
352 << cast<RecordMatcher>(N)->getWhatFor();
357 OS << "OPC_RecordChild" << cast<RecordChildMatcher>(N)->getChildNo()
361 << cast<RecordChildMatcher>(N)->getResultNo() << " = "
362 << cast<RecordChildMatcher>(N)->getWhatFor();
375 const auto *MCM = cast<MoveChildMatcher>(N);
391 << cast<CheckSameMatcher>(N)->getMatchNumber() << ",\n";
396 << cast<CheckChildSameMatcher>(N)->getChildNo() << "Same, "
397 << cast<CheckChildSameMatcher>(N)->getMatchNumber() << ",\n";
401 StringRef Pred =cast<CheckPatternPredicateMatcher>(N)->getPredicate();
409 TreePredicateFn Pred = cast<CheckPredicateMatcher>(N)->getPredicate();
413 unsigned NumOps = cast<CheckPredicateMatcher>(N)->getNumOperands();
416 OS << cast<CheckPredicateMatcher>(N)->getOperandNo(i) << ", ";
431 << cast<CheckOpcodeMatcher>(N)->getOpcode().getEnumName() << "),\n";
444 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases();
460 Child = cast<SwitchTypeMatcher>(N)->getCaseMatcher(i);
498 OS << getEnumName(cast<SwitchTypeMatcher>(N)->getCaseType(i)) << ',';
523 if (cast<CheckTypeMatcher>(N)->getResNo() == 0) {
525 << getEnumName(cast<CheckTypeMatcher>(N)->getType()) << ",\n";
528 OS << "OPC_CheckTypeRes, " << cast<CheckTypeMatcher>(N)->getResNo()
529 << ", " << getEnumName(cast<CheckTypeMatcher>(N)->getType()) << ",\n";
534 << cast<CheckChildTypeMatcher>(N)->getChildNo() << "Type, "
535 << getEnumName(cast<CheckChildTypeMatcher>(N)->getType()) << ",\n";
540 unsigned Bytes=1+EmitVBRValue(cast<CheckIntegerMatcher>(N)->getValue(), OS);
545 OS << "OPC_CheckChild" << cast<CheckChildIntegerMatcher>(N)->getChildNo()
547 unsigned Bytes=1+EmitVBRValue(cast<CheckChildIntegerMatcher>(N)->getValue(),
554 << cast<CheckCondCodeMatcher>(N)->getCondCodeName() << ",\n";
559 << cast<CheckChild2CondCodeMatcher>(N)->getCondCodeName() << ",\n";
564 << cast<CheckValueTypeMatcher>(N)->getTypeName() << ",\n";
568 const CheckComplexPatMatcher *CCPM = cast<CheckComplexPatMatcher>(N);
588 unsigned Bytes=1+EmitVBRValue(cast<CheckAndImmMatcher>(N)->getValue(), OS);
595 unsigned Bytes = 1+EmitVBRValue(cast<CheckOrImmMatcher>(N)->getValue(), OS);
613 int64_t Val = cast<EmitIntegerMatcher>(N)->getValue();
615 << getEnumName(cast<EmitIntegerMatcher>(N)->getVT()) << ", ";
621 const std::string &Val = cast<EmitStringIntegerMatcher>(N)->getValue();
624 << getEnumName(cast<EmitStringIntegerMatcher>(N)->getVT()) << ", "
630 const EmitRegisterMatcher *Matcher = cast<EmitRegisterMatcher>(N);
654 << cast<EmitConvertToTargetMatcher>(N)->getSlot() << ",\n";
659 cast<EmitMergeInputChainsMatcher>(N);
674 const auto *C2RMatcher = cast<EmitCopyToRegMatcher>(N);
690 const EmitNodeXFormMatcher *XF = cast<EmitNodeXFormMatcher>(N);
718 const EmitNodeMatcherCommon *EN = cast<EmitNodeMatcherCommon>(N);
778 const CompleteMatchMatcher *CM = cast<CompleteMatchMatcher>(N);
utils/TableGen/DAGISelMatcherOpt.cpp 396 CheckOpcodeMatcher *COM = cast<CheckOpcodeMatcher>(NewOptionsToMatch[i]);
415 auto *CTM = cast<CheckTypeMatcher>(M);
utils/TableGen/FastISelEmitter.cpp 436 Record *OpLeafRec = cast<DefInit>(Op->getLeafValue())->getDef();
440 PhysReg += cast<StringInit>(OpLeafRec->getValue("Namespace")->getValue())
utils/TableGen/FixedLenDecoderEmitter.cpp 1770 Record *Record = cast<DefInit>(TI)->getDef();
1947 if (DefInit *DI = cast<DefInit>(Arg))
2020 TypedInit *TI = cast<TypedInit>(Op.first);
2026 Record *TypeRecord = cast<DefInit>(TI)->getDef();
utils/TableGen/GlobalISelEmitter.cpp 1168 MatchingName == cast<SameOperandMatcher>(&B)->MatchingName;
1198 Ty == cast<LLTOperandMatcher>(&B)->Ty;
1308 RC.getDef() == cast<RegisterBankOperandMatcher>(&B)->RC.getDef();
1373 Value == cast<ConstantIntOperandMatcher>(&B)->Value;
1402 Value == cast<LiteralIntOperandMatcher>(&B)->Value;
1430 PredName == cast<CmpPredicateOperandMatcher>(&B)->PredName;
1460 II == cast<IntrinsicIDOperandMatcher>(&B)->II;
1667 I == cast<InstructionOpcodeMatcher>(&B)->I;
1734 NumOperands == cast<InstructionNumOperandsMatcher>(&B)->NumOperands;
1785 cast<InstructionImmPredicateMatcher>(&B)
1830 const auto &R = *cast<AtomicOrderingMMOPredicateMatcher>(&B);
1866 MMOIdx == cast<MemorySizePredicateMatcher>(&B)->MMOIdx &&
1867 Size == cast<MemorySizePredicateMatcher>(&B)->Size;
1897 auto *Other = cast<MemoryAddressSpacePredicateMatcher>(&B);
1936 auto *Other = cast<MemoryAlignmentPredicateMatcher>(&B);
1977 MMOIdx == cast<MemoryVsLLTSizePredicateMatcher>(&B)->MMOIdx &&
1978 Relation == cast<MemoryVsLLTSizePredicateMatcher>(&B)->Relation &&
1979 OpIdx == cast<MemoryVsLLTSizePredicateMatcher>(&B)->OpIdx;
utils/TableGen/InstrDocsEmitter.cpp 165 cast<DefInit>(Op.MIOperandInfo->getArg(SubOpIdx))->getDef();
utils/TableGen/InstrInfoEmitter.cpp 131 auto *OpR = cast<DefInit>(MIOI->getArg(j))->getDef();
384 OperandRecords.push_back(cast<DefInit>(Arg)->getDef());
utils/TableGen/OptParserEmitter.cpp 263 << cast<DefInit>(I)->getDef()->getName();
267 << cast<DefInit>(I)->getDef()->getName();
utils/TableGen/RegisterInfoEmitter.cpp 449 DefInit *DI = cast<DefInit>(V->getValue());
utils/TableGen/SearchableTableEmitter.cpp 37 return cast<IntInit>(B->convertInitializerTo(IntRecTy::get()))->getValue();
123 return Field.Enum->EntryMap[cast<DefInit>(I)->getDef()]->first;
137 Intr = std::make_unique<CodeGenIntrinsic>(cast<DefInit>(I)->getDef());
232 Record *LHSr = cast<DefInit>(LHSI)->getDef();
233 Record *RHSr = cast<DefInit>(RHSI)->getDef();
248 auto LHSr = cast<DefInit>(LHSI)->getDef();
249 auto RHSr = cast<DefInit>(RHSI)->getDef();
utils/TableGen/X86FoldTablesEmitter.cpp 197 BitInit *Bit = cast<BitInit>(B->getBit(i));
209 BitInit *Bit1 = cast<BitInit>(B1->getBit(i));
210 BitInit *Bit2 = cast<BitInit>(B2->getBit(i));
utils/TableGen/X86RecognizableInstr.cpp 42 if (cast<BitInit>(init.getBit(index))->getValue())