reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/AArch64/AArch64GenDAGISel.inc
114929   if (auto *C = dyn_cast<ConstantPoolSDNode>(N))
114929   if (auto *C = dyn_cast<ConstantPoolSDNode>(N))
include/llvm/CodeGen/SelectionDAG.h
  350   SDNodeT *newSDNode(ArgTypes &&... Args) {
  351     return new (NodeAllocator.template Allocate<SDNodeT>())
  352         SDNodeT(std::forward<ArgTypes>(Args)...);
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   92     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  252       X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  331                             typename cast_retty<X, const Y>::ret_type>::type
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/Support/Recycler.h
   83   SubClass *Allocate(AllocatorType &Allocator) {
   84     static_assert(alignof(SubClass) <= Align,
   86     static_assert(sizeof(SubClass) <= Size,
   93   T *Allocate(AllocatorType &Allocator) {
include/llvm/Support/RecyclingAllocator.h
   43   SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); }
   43   SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); }
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
20008   unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  410   } else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op)) {
  410   } else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op)) {
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  331   unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
  351   unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
 1964     unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
 2432   unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment();
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
 4034     unsigned Alignment = cast<ConstantPoolSDNode>(FudgePtr)->getAlignment();
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
   73       if (isa<ConstantPoolSDNode>(Node))   return true;
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  530     const ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(N);
  530     const ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(N);
 1444   auto *N = newSDNode<ConstantPoolSDNode>(isTarget, C, VT, Offset, Alignment,
 1444   auto *N = newSDNode<ConstantPoolSDNode>(isTarget, C, VT, Offset, Alignment,
 1470   auto *N = newSDNode<ConstantPoolSDNode>(isTarget, C, VT, Offset, Alignment,
 1470   auto *N = newSDNode<ConstantPoolSDNode>(isTarget, C, VT, Offset, Alignment,
lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
   47     if (auto *A = dyn_cast<ConstantPoolSDNode>(Base))
   47     if (auto *A = dyn_cast<ConstantPoolSDNode>(Base))
   48       if (auto *B = dyn_cast<ConstantPoolSDNode>(Other.Base)) {
   48       if (auto *B = dyn_cast<ConstantPoolSDNode>(Other.Base)) {
  132   bool IsCV0 = isa<ConstantPoolSDNode>(BasePtr0.getBase());
  133   bool IsCV1 = isa<ConstantPoolSDNode>(BasePtr1.getBase());
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  598   } else if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(this)){
  598   } else if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(this)){
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 2604         !isa<ConstantPoolSDNode>(LN->getOperand(1)->getOperand(1)))
 2607     ConstantPoolSDNode *CN =
 2608         dyn_cast<ConstantPoolSDNode>(LN->getOperand(1)->getOperand(1));
lib/Target/AArch64/AArch64ISelLowering.cpp
 4291 SDValue AArch64TargetLowering::getTargetNode(ConstantPoolSDNode *N, EVT Ty,
 4306 SDValue AArch64TargetLowering::getGOT(NodeTy *N, SelectionDAG &DAG,
 4319 SDValue AArch64TargetLowering::getAddrLarge(NodeTy *N, SelectionDAG &DAG,
 4335 SDValue AArch64TargetLowering::getAddr(NodeTy *N, SelectionDAG &DAG,
 4349 SDValue AArch64TargetLowering::getAddrTiny(NodeTy *N, SelectionDAG &DAG,
 5286   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
 5286   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
lib/Target/AArch64/AArch64ISelLowering.h
  634   SDValue getTargetNode(ConstantPoolSDNode *N, EVT Ty, SelectionDAG &DAG,
lib/Target/ARM/ARMISelLowering.cpp
 2984   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
 2984   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
 4163       if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(WrapperOp))
 4163       if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(WrapperOp))
lib/Target/Hexagon/HexagonISelLowering.cpp
  919   ConstantPoolSDNode *CPN = cast<ConstantPoolSDNode>(Op);
  919   ConstantPoolSDNode *CPN = cast<ConstantPoolSDNode>(Op);
lib/Target/Lanai/LanaiISelLowering.cpp
 1128   ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
 1128   ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
  150   } else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(N0)) {
  150   } else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(N0)) {
lib/Target/Mips/Mips16ISelDAGToDAG.cpp
  154       if (isa<ConstantPoolSDNode>(Opnd0) || isa<GlobalAddressSDNode>(Opnd0) ||
lib/Target/Mips/MipsISelLowering.cpp
  175 SDValue MipsTargetLowering::getTargetNode(ConstantPoolSDNode *N, EVT Ty,
 2110   ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
 2110   ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
lib/Target/Mips/MipsISelLowering.h
  392     SDValue getAddrLocal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG,
  443     SDValue getAddrNonPIC(NodeTy *N, const SDLoc &DL, EVT Ty,
  460    SDValue getAddrNonPICSym64(NodeTy *N, const SDLoc &DL, EVT Ty,
  487     SDValue getAddrGPRel(NodeTy *N, const SDLoc &DL, EVT Ty,
  533     SDValue getTargetNode(ConstantPoolSDNode *N, EVT Ty, SelectionDAG &DAG,
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  346       if (isa<ConstantPoolSDNode>(Opnd0) || isa<GlobalAddressSDNode>(Opnd0) ||
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
 6560       } else if (ConstantPoolSDNode *CP =
 6561                  dyn_cast<ConstantPoolSDNode>(ImmOpnd)) {
lib/Target/PowerPC/PPCISelLowering.cpp
 1449     if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op.getOperand(1)))
 1449     if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op.getOperand(1)))
 2708   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
 2708   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
lib/Target/RISCV/RISCVISelLowering.cpp
  420 static SDValue getTargetNode(ConstantPoolSDNode *N, SDLoc DL, EVT Ty,
  427 SDValue RISCVTargetLowering::getAddr(NodeTy *N, SelectionDAG &DAG,
  498   ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
  498   ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
lib/Target/Sparc/SparcISelLowering.cpp
 1908   if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op))
 1908   if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op))
lib/Target/SystemZ/SystemZISelLowering.cpp
 3036 SDValue SystemZTargetLowering::lowerConstantPool(ConstantPoolSDNode *CP,
 4947     return lowerConstantPool(cast<ConstantPoolSDNode>(Op), DAG);
lib/Target/SystemZ/SystemZISelLowering.h
  551   SDValue lowerConstantPool(ConstantPoolSDNode *CP, SelectionDAG &DAG) const;
lib/Target/X86/X86ISelDAGToDAG.cpp
 1441   } else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(N0)) {
 1441   } else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(N0)) {
lib/Target/X86/X86ISelLowering.cpp
 5935   auto *CNode = dyn_cast<ConstantPoolSDNode>(Ptr);
 5935   auto *CNode = dyn_cast<ConstantPoolSDNode>(Ptr);
 6150     auto *CNode = dyn_cast<ConstantPoolSDNode>(Ptr);
 6150     auto *CNode = dyn_cast<ConstantPoolSDNode>(Ptr);
 8231           unsigned Alignment = cast<ConstantPoolSDNode>(CP)->getAlignment();
 8255           unsigned Alignment = cast<ConstantPoolSDNode>(CP)->getAlignment();
 8270           unsigned Alignment = cast<ConstantPoolSDNode>(VCP)->getAlignment();
 8338       unsigned Alignment = cast<ConstantPoolSDNode>(CP)->getAlignment();
17788   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
17788   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
lib/Target/XCore/XCoreISelLowering.cpp
  323   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
  323   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);