/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUISelDAGToDAG.cpp | 51 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V); in isNullConstantOrUndef() 63 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) { in getConstantValue() 321 if (ConstantSDNode *Idx = dyn_cast<ConstantSDNode>(In.getOperand(1))) { in isExtractHiElt() 334 if (ConstantSDNode *ShiftAmt = dyn_cast<ConstantSDNode>(Srl.getOperand(1))) { in isExtractHiElt() 349 if (ConstantSDNode *Idx = dyn_cast<ConstantSDNode>(In.getOperand(1))) { in stripExtractLoElt() 531 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) in isInlineImmediate() 538 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) in isInlineImmediate() 584 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass() 589 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass() 809 ConstantSDNode *C = cast<ConstantSDNode>(N); in Select() [all …]
|
H A D | R600ISelLowering.cpp | 477 cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue(); in LowerOperation() 502 cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue(); in LowerOperation() 693 if (isa<ConstantSDNode>(Index) || in LowerEXTRACT_VECTOR_ELT() 709 if (isa<ConstantSDNode>(Index) || in LowerINSERT_VECTOR_ELT() 829 if(ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) { in isZero() 1382 isa<ConstantSDNode>(Ptr)) { in LowerLOAD() 1655 unsigned Idx = cast<ConstantSDNode>(NewBldVec[i].getOperand(1)) in ReorganizeVector() 1664 unsigned Idx = cast<ConstantSDNode>(NewBldVec[i].getOperand(1)) in ReorganizeVector() 1687 unsigned Idx = cast<ConstantSDNode>(Swz[i])->getZExtValue(); in OptimizeSwizzle() 1695 unsigned Idx = cast<ConstantSDNode>(Swz[i])->getZExtValue(); in OptimizeSwizzle() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARC/ |
H A D | ARCISelDAGToDAG.cpp | 52 const ConstantSDNode *CN = cast<ConstantSDNode>(N); in SelectCMOVPred() 105 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) { in SelectAddrModeS9() 134 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) { in SelectAddrModeFar() 155 ConstantSDNode *CN = nullptr; in SelectFrameADDR_ri() 157 (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) && in SelectFrameADDR_ri() 172 uint64_t CVal = cast<ConstantSDNode>(N)->getZExtValue(); in Select()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/ |
H A D | LanaiISelDAGToDAG.cpp | 94 bool canBeRepresentedAsSls(const ConstantSDNode &CN) { in canBeRepresentedAsSls() 104 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectAddrSls() 126 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectAddrRiSpls() 172 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRiSpls() 227 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRr() 287 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node); in Select()
|
H A D | LanaiISelLowering.cpp | 297 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint() 307 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint() 315 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint() 324 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint() 333 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint() 342 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint() 813 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() 823 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() 831 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() 841 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() [all …]
|
H A D | LanaiSelectionDAGInfo.cpp | 27 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelDAGToDAG.cpp | 70 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedLoad() 190 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in LoadInstrForLoadIntrinsic() 205 auto Inc = cast<ConstantSDNode>(IntN->getOperand(5)); in LoadInstrForLoadIntrinsic() 282 switch (cast<ConstantSDNode>(C->getOperand(1))->getZExtValue()) { in tryLoadOfLoadIntrinsic() 323 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in SelectBrevLdIntrinsic() 364 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in SelectNewCircIntrinsic() 390 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3)); in SelectNewCircIntrinsic() 425 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3)); in SelectNewCircIntrinsic() 469 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedStore() 579 int32_t ShlConst = cast<ConstantSDNode>(Shl_1)->getSExtValue(); in SelectSHL() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGAddressAnalysis.cpp | 190 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset())) in matchLSNode() 195 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset())) in matchLSNode() 206 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) in matchLSNode() 214 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) { in matchLSNode() 225 if (auto *C = dyn_cast<ConstantSDNode>(LSBase->getOffset())) { in matchLSNode() 266 !isa<ConstantSDNode>(Index->getOperand(1))) in matchLSNode() 269 Offset += cast<ConstantSDNode>(Index->getOperand(1))->getSExtValue(); in matchLSNode()
|
H A D | SelectionDAG.cpp | 145 if (auto *Op0 = dyn_cast<ConstantSDNode>(N->getOperand(0))) { in isConstantSplatVector() 202 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(NotZero)) { in isConstantSplatVectorAllOnes() 246 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op)) { in isConstantSplatVectorAllZeros() 277 if (!isa<ConstantSDNode>(Op)) in isBuildVectorOfConstantSDNodes() 306 std::function<bool(ConstantSDNode *)> Match, in matchUnaryPredicate() 309 if (auto *Cst = dyn_cast<ConstantSDNode>(Op)) in matchUnaryPredicate() 325 auto *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(i)); in matchUnaryPredicate() 334 std::function<bool(ConstantSDNode *, ConstantSDNode *)> Match, in matchBinaryPredicate() argument 340 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate() 341 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS)) in matchBinaryPredicate() [all …]
|
H A D | DAGCombiner.cpp | 675 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, 686 ConstantSDNode *Mask, SDNode *&NodeToMask); 966 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N)) in isConstantOrConstantVector() 974 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(Op); in isConstantOrConstantVector() 995 !cast<ConstantSDNode>(LD->getOperand(2))->isOpaque()); in canSplitIdx() 1014 auto *C1 = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in reassociationCanBreakAddressingModePattern() 1015 auto *C2 = dyn_cast<ConstantSDNode>(N1); in reassociationCanBreakAddressingModePattern() 1801 if (N0 != N1 && (isa<ConstantSDNode>(N0) || !isa<ConstantSDNode>(N1))) { in combine() 2038 static ConstantSDNode *getAsNonOpaqueConstant(SDValue N) { in getAsNonOpaqueConstant() 2039 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N); in getAsNonOpaqueConstant() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/ |
H A D | BPFISelDAGToDAG.cpp | 115 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)); in SelectAddr() 144 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)); in SelectFIAddr() 206 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); in Select() 276 const ConstantSDNode *CDN = dyn_cast<ConstantSDNode>(OP2.getNode()); in PreprocessLoad() 468 ConstantSDNode *MaskN = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in PreprocessTrunc() 482 unsigned IntNo = cast<ConstantSDNode>(BaseV->getOperand(1))->getZExtValue(); in PreprocessTrunc()
|
H A D | BPFSelectionDAGInfo.cpp | 25 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64SelectionDAGInfo.cpp | 23 ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src); in EmitTargetCodeForMemset() 24 ConstantSDNode *SizeValue = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset() 113 uint64_t ObjSize = cast<ConstantSDNode>(Size)->getZExtValue(); in EmitTargetCodeForSetTag()
|
H A D | AArch64ISelDAGToDAG.cpp | 151 if (auto CN = dyn_cast<ConstantSDNode>(Opnd0)) in SelectDupZeroOrUndef() 171 if (auto CN = dyn_cast<ConstantSDNode>(Opnd0)) in SelectDupZero() 207 if (!isa<ConstantSDNode>(N)) in SelectCntImm() 210 int64_t MulImm = cast<ConstantSDNode>(N)->getSExtValue(); in SelectCntImm() 346 if (const ConstantSDNode *C = dyn_cast<const ConstantSDNode>(N)) { in isIntImmediate() 402 if (!isa<ConstantSDNode>(N.getNode())) in SelectArithImmed() 405 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue(); in SelectArithImmed() 432 if (!isa<ConstantSDNode>(N.getNode())) in SelectNegArithImmed() 436 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue(); in SelectNegArithImmed() 478 auto *CSD = dyn_cast<ConstantSDNode>(V.getOperand(1)); in isWorthFoldingSHL() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86SelectionDAGInfo.cpp | 51 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset() 72 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val); in EmitTargetCodeForMemset() 108 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val); in EmitTargetCodeForMemset() 314 if (ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size)) in EmitTargetCodeForMemcpy()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | ARMSelectionDAGInfo.cpp | 68 if (ConstantSDNode *ConstantSrc = dyn_cast<ConstantSDNode>(Src)) in EmitSpecializedLibcall() 144 ConstantSDNode *ConstantSize, in shouldGenerateInlineTPLoop() 175 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy() 305 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
|
H A D | ARMISelDAGToDAG.cpp | 110 const ConstantSDNode *CN = cast<ConstantSDNode>(N); in SelectCMOVPred() 356 Imm = cast<ConstantSDNode>(N)->getZExtValue(); in isInt32Immediate() 386 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Node); in isScaledConstantInRange() 549 ConstantSDNode *MulConst = dyn_cast<ConstantSDNode>(N.getOperand(1)); in canExtractShiftFromMul() 608 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectImmShifterOperand() 632 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectRegShifterOperand() 680 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectAddrModeImm12() 709 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectLdStSOReg() 756 if (ConstantSDNode *Sh = in SelectLdStSOReg() 757 dyn_cast<ConstantSDNode>(N.getOperand(1).getOperand(1))) { in SelectLdStSOReg() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/XCore/ |
H A D | XCoreISelDAGToDAG.cpp | 54 ConstantSDNode *N = cast<ConstantSDNode>(inN); in immMskBitp() 96 ConstantSDNode *CN = nullptr; in SelectADDRspii() 98 && (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRspii() 137 uint64_t Val = cast<ConstantSDNode>(N)->getZExtValue(); in Select() 245 unsigned IntNo = cast<ConstantSDNode>(Addr->getOperand(1))->getZExtValue(); in tryBRIND()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/ |
H A D | AVRISelDAGToDAG.cpp | 84 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectAddr() 136 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedLoad() 178 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedProgMemLoad() 242 ConstantSDNode *ImmNode = dyn_cast<ConstantSDNode>(ImmOp); in SelectInlineAsmMemoryOperand() 327 if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) || in select() 338 int CST = (int)cast<ConstantSDNode>(BasePtr.getOperand(1))->getZExtValue(); in select()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelDAGToDAG.cpp | 480 cast<ConstantSDNode>(Op0)->getSExtValue()); in expandAddress() 483 cast<ConstantSDNode>(Op1)->getSExtValue()); in expandAddress() 582 cast<ConstantSDNode>(Addr)->getSExtValue())) in selectAddress() 733 auto *MaskNode = dyn_cast<ConstantSDNode>(Op.getOperand(1).getNode()); in detectOrAndInsertion() 794 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG() 817 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG() 840 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG() 885 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG() 912 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG() 1181 auto *ElemN = dyn_cast<ConstantSDNode>(ElemV); in tryGather() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Sparc/ |
H A D | SparcISelDAGToDAG.cpp | 89 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) { in SelectADDRri() 128 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRrr() 183 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(i))) { in tryInlineAsm()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 382 auto *ConstNode = cast<ConstantSDNode>(Node); in Select() 409 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() 414 isa<ConstantSDNode>(N0.getOperand(1))) { in Select() 447 if (auto *C = dyn_cast<ConstantSDNode>(Src2)) { in Select() 516 if (auto *C = dyn_cast<ConstantSDNode>(Src2)) { in Select() 616 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); in Select() 648 if (auto *C = dyn_cast<ConstantSDNode>(VLOperand)) { in Select() 877 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); in Select() 1225 if (N.getOpcode() == ISD::AND && isa<ConstantSDNode>(N.getOperand(1))) { in selectShiftMask() 1274 auto *C = dyn_cast<ConstantSDNode>(N.getOperand(1)); in selectZExti32() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/VE/ |
H A D | VEISelDAGToDAG.cpp | 101 inline static uint64_t getImmVal(const ConstantSDNode *N) { in getImmVal() 230 if (auto *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectADDRzii() 261 if (auto *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectADDRzi() 313 ConstantSDNode *CN = cast<ConstantSDNode>(Addr.getOperand(1)); in matchADDRri()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyISelDAGToDAG.cpp | 93 cast<ConstantSDNode>(Node->getOperand(2).getNode())->getZExtValue(); in Select() 127 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(0))->getZExtValue(); in Select() 147 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); in Select()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/ |
H A D | PPCISelDAGToDAG.cpp | 546 Imm = cast<ConstantSDNode>(N)->getZExtValue(); in isInt32Immediate() 556 Imm = cast<ConstantSDNode>(N)->getZExtValue(); in isInt64Immediate() 1327 int64_t Imm = cast<ConstantSDNode>(N)->getZExtValue(); in selectI64Imm() 1462 if (isa<ConstantSDNode>(V.getOperand(1))) { in getValueBits() 1475 if (isa<ConstantSDNode>(V.getOperand(1))) { in getValueBits() 1491 if (isa<ConstantSDNode>(V.getOperand(1))) { in getValueBits() 1506 if (isa<ConstantSDNode>(V.getOperand(1))) { in getValueBits() 2994 ConstantSDNode *InputConst = dyn_cast<ConstantSDNode>(Input); in signExtendInputIfNeeded() 3024 ConstantSDNode *InputConst = dyn_cast<ConstantSDNode>(Input); in zeroExtendInputIfNeeded() 3192 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS); in get32BitZExtCompare() [all …]
|