Home
last modified time | relevance | path

Searched refs:ConstantSDNode (Results 1 – 25 of 100) sorted by relevance

1234

/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DR600ISelDAGToDAG.cpp70 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) { in SelectGlobalValueConstantOffset()
81 if (!isa<ConstantSDNode>(Addr)) { in SelectGlobalValueVariableOffset()
132 ConstantSDNode *C; in SelectADDRIndirect()
135 if ((C = dyn_cast<ConstantSDNode>(Addr))) { in SelectADDRIndirect()
139 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(0)))) { in SelectADDRIndirect()
143 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))) { in SelectADDRIndirect()
156 ConstantSDNode *IMMOffset; in SelectADDRVTX_READ()
159 (IMMOffset = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) && in SelectADDRVTX_READ()
167 } else if ((IMMOffset = dyn_cast<ConstantSDNode>(Addr)) && in SelectADDRVTX_READ()
H A DAMDGPUISelDAGToDAG.cpp55 if (ConstantSDNode *Idx = dyn_cast<ConstantSDNode>(In.getOperand(1))) { in isExtractHiElt()
68 if (ConstantSDNode *ShiftAmt = dyn_cast<ConstantSDNode>(Srl.getOperand(1))) { in isExtractHiElt()
83 if (ConstantSDNode *Idx = dyn_cast<ConstantSDNode>(In.getOperand(1))) { in stripExtractLoElt()
325 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) in isInlineImmediate()
332 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) in isInlineImmediate()
378 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass()
383 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass()
603 ConstantSDNode *C = cast<ConstantSDNode>(N); in Select()
621 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select()
625 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2)); in Select()
[all …]
H A DR600ISelLowering.cpp428 cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue(); in LowerOperation()
453 cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue(); in LowerOperation()
644 if (isa<ConstantSDNode>(Index) || in LowerEXTRACT_VECTOR_ELT()
660 if (isa<ConstantSDNode>(Index) || in LowerINSERT_VECTOR_ELT()
780 if(ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) { in isZero()
956 if (auto *ConstSrc = dyn_cast<ConstantSDNode>(Op.getOperand(0))) { in lowerADDRSPACECAST()
1353 isa<ConstantSDNode>(Ptr)) { in LowerLOAD()
1626 unsigned Idx = cast<ConstantSDNode>(NewBldVec[i].getOperand(1)) in ReorganizeVector()
1635 unsigned Idx = cast<ConstantSDNode>(NewBldVec[i].getOperand(1)) in ReorganizeVector()
1658 unsigned Idx = cast<ConstantSDNode>(Swz[i])->getZExtValue(); in OptimizeSwizzle()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp47 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue(); in INITIALIZE_PASS()
101 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in SelectInlineAsmMemoryOperand()
115 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in SelectInlineAsmMemoryOperand()
154 if (N.getOpcode() == ISD::AND && isa<ConstantSDNode>(N.getOperand(1))) { in selectShiftMask()
178 assert(isa<ConstantSDNode>(N.getOperand(1)) && "Illegal msb operand!"); in selectShiftMask()
179 assert(isa<ConstantSDNode>(N.getOperand(2)) && "Illegal lsb operand!"); in selectShiftMask()
186 isa<ConstantSDNode>(N.getOperand(0))) { in selectShiftMask()
230 auto *C = dyn_cast<ConstantSDNode>(N.getOperand(1)); in selectZExti32()
H A DLoongArchISelLowering.cpp282 if (!isa<ConstantSDNode>(Op.getOperand(0))) { in lowerFRAMEADDR()
294 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue(); in lowerFRAMEADDR()
313 if (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() != 0) { in lowerRETURNADDR()
362 auto *C = dyn_cast<ConstantSDNode>(Op0.getOperand(1)); in lowerUINT_TO_FP()
637 unsigned Imm = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue(); in lowerINTRINSIC_W_CHAIN()
648 unsigned Imm = cast<ConstantSDNode>(Op.getOperand(3))->getZExtValue(); in lowerINTRINSIC_W_CHAIN()
659 unsigned Imm = cast<ConstantSDNode>(Op.getOperand(4))->getZExtValue(); in lowerINTRINSIC_W_CHAIN()
700 unsigned Imm = cast<ConstantSDNode>(Op.getOperand(3))->getZExtValue(); in lowerINTRINSIC_W_CHAIN()
716 unsigned Imm = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue(); in lowerINTRINSIC_W_CHAIN()
768 unsigned Imm1 = cast<ConstantSDNode>(Op2)->getZExtValue(); in lowerINTRINSIC_VOID()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiISelDAGToDAG.cpp94 bool canBeRepresentedAsSls(const ConstantSDNode &CN) { in canBeRepresentedAsSls()
108 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in INITIALIZE_PASS()
130 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectAddrRiSpls()
176 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRiSpls()
231 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRr()
291 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node); in Select()
H A DLanaiSelectionDAGInfo.cpp27 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
H A DLanaiISelLowering.cpp293 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint()
303 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint()
311 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint()
320 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint()
329 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint()
338 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { in LowerAsmOperandForConstraint()
814 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC()
824 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC()
832 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC()
842 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/ARC/
H A DARCISelDAGToDAG.cpp106 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) { in SelectAddrModeS9()
135 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) { in SelectAddrModeFar()
156 ConstantSDNode *CN = nullptr; in SelectFrameADDR_ri()
158 (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) && in SelectFrameADDR_ri()
173 uint64_t CVal = cast<ConstantSDNode>(N)->getZExtValue(); in Select()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp75 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in INITIALIZE_PASS()
195 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in LoadInstrForLoadIntrinsic()
210 auto Inc = cast<ConstantSDNode>(IntN->getOperand(5)); in LoadInstrForLoadIntrinsic()
287 switch (cast<ConstantSDNode>(C->getOperand(1))->getZExtValue()) { in tryLoadOfLoadIntrinsic()
328 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in SelectBrevLdIntrinsic()
369 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in SelectNewCircIntrinsic()
395 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3)); in SelectNewCircIntrinsic()
430 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3)); in SelectNewCircIntrinsic()
474 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedStore()
584 int32_t ShlConst = cast<ConstantSDNode>(Shl_1)->getSExtValue(); in SelectSHL()
[all …]
H A DHexagonSelectionDAGInfo.cpp23 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGAddressAnalysis.cpp205 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset())) in matchLSNode()
210 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset())) in matchLSNode()
221 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) in matchLSNode()
229 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) { in matchLSNode()
240 if (auto *C = dyn_cast<ConstantSDNode>(LSBase->getOffset())) { in matchLSNode()
281 !isa<ConstantSDNode>(Index->getOperand(1))) in matchLSNode()
284 Offset += cast<ConstantSDNode>(Index->getOperand(1))->getSExtValue(); in matchLSNode()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMSelectionDAGInfo.cpp68 if (ConstantSDNode *ConstantSrc = dyn_cast<ConstantSDNode>(Src)) in EmitSpecializedLibcall()
144 ConstantSDNode *ConstantSize, in shouldGenerateInlineTPLoop()
175 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
303 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
H A DARMISelDAGToDAG.cpp119 const ConstantSDNode *CN = cast<ConstantSDNode>(N); in SelectCMOVPred()
374 Imm = cast<ConstantSDNode>(N)->getZExtValue(); in INITIALIZE_PASS()
404 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Node); in isScaledConstantInRange()
565 ConstantSDNode *MulConst = dyn_cast<ConstantSDNode>(N.getOperand(1)); in canExtractShiftFromMul()
624 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectImmShifterOperand()
648 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectRegShifterOperand()
696 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectAddrModeImm12()
725 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectLdStSOReg()
772 if (ConstantSDNode *Sh = in SelectLdStSOReg()
773 dyn_cast<ConstantSDNode>(N.getOperand(1).getOperand(1))) { in SelectLdStSOReg()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreISelDAGToDAG.cpp61 ConstantSDNode *N = cast<ConstantSDNode>(inN); in immMskBitp()
103 ConstantSDNode *CN = nullptr; in SelectADDRspii()
105 && (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRspii()
144 uint64_t Val = cast<ConstantSDNode>(N)->getZExtValue(); in Select()
252 unsigned IntNo = cast<ConstantSDNode>(Addr->getOperand(1))->getZExtValue(); in tryBRIND()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.cpp578 if (auto *C = dyn_cast<ConstantSDNode>(VLOperand)) { in selectVSETVLI()
611 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1); in tryShrinkShlLogicImm()
636 ConstantSDNode *ShlCst = dyn_cast<ConstantSDNode>(Shift.getOperand(1)); in tryShrinkShlLogicImm()
694 auto *ConstNode = cast<ConstantSDNode>(Node); in Select()
716 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select()
721 !isa<ConstantSDNode>(N0.getOperand(1))) in Select()
746 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select()
750 if (N0.getOpcode() != ISD::AND || !isa<ConstantSDNode>(N0.getOperand(1))) in Select()
826 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select()
855 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelDAGToDAG.cpp312 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op)) { in SelectAddrAddOperands()
353 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectAddrOperands()
367 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) { in SelectAddrOperands()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp120 auto *CN = cast<ConstantSDNode>(Addr.getOperand(1)); in INITIALIZE_PASS()
147 auto *CN = cast<ConstantSDNode>(Addr.getOperand(1)); in SelectFIAddr()
208 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); in Select()
278 const ConstantSDNode *CDN = dyn_cast<ConstantSDNode>(OP2.getNode()); in PreprocessLoad()
470 ConstantSDNode *MaskN = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in PreprocessTrunc()
484 unsigned IntNo = cast<ConstantSDNode>(BaseV->getOperand(1))->getZExtValue(); in PreprocessTrunc()
H A DBPFSelectionDAGInfo.cpp25 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp140 if (auto *CI = dyn_cast<ConstantSDNode>(OffImm)) { in SelectAddrModeIndexedUImm()
169 !isa<ConstantSDNode>(N->getOperand(1))) in SelectExtractHigh()
196 isa<ConstantSDNode>(Op.getOperand(1).getOperand(0))) in SelectRoundingVLShr()
284 if (!isa<ConstantSDNode>(N)) in SelectCntImm()
287 int64_t MulImm = cast<ConstantSDNode>(N)->getSExtValue(); in SelectCntImm()
305 if (!isa<ConstantSDNode>(N)) in SelectEXTImm()
308 int64_t MulImm = cast<ConstantSDNode>(N)->getSExtValue(); in SelectEXTImm()
320 if (auto *CI = dyn_cast<ConstantSDNode>(N)) { in ImmToTile()
461 if (const ConstantSDNode *C = dyn_cast<const ConstantSDNode>(N)) { in INITIALIZE_PASS()
528 if (!isa<ConstantSDNode>(N.getNode())) in SelectArithImmed()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp483 cast<ConstantSDNode>(Op0)->getSExtValue()); in expandAddress()
486 cast<ConstantSDNode>(Op1)->getSExtValue()); in expandAddress()
585 cast<ConstantSDNode>(Addr)->getSExtValue())) in selectAddress()
736 auto *MaskNode = dyn_cast<ConstantSDNode>(Op.getOperand(1).getNode()); in detectOrAndInsertion()
797 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG()
820 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG()
843 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG()
888 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG()
915 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode()); in expandRxSBG()
975 if (Count == 0 || isa<ConstantSDNode>(RISBG.Input)) in tryRISBGZero()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcISelDAGToDAG.cpp96 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) { in SelectADDRri()
135 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRrr()
189 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(i))) { in tryInlineAsm()
/openbsd-src/gnu/llvm/llvm/lib/Target/VE/
H A DVEISelDAGToDAG.cpp150 if (auto *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectADDRzii()
181 if (auto *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectADDRzi()
233 ConstantSDNode *CN = cast<ConstantSDNode>(Addr.getOperand(1)); in matchADDRri()
271 auto BConst = dyn_cast<ConstantSDNode>(N->getOperand(0)); in Select()
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp93 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectAddr()
145 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedLoad()
189 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedProgMemLoad()
241 ConstantSDNode *ImmNode = dyn_cast<ConstantSDNode>(ImmOp); in SelectInlineAsmMemoryOperand()
326 if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) || in select()
337 int CST = (int)cast<ConstantSDNode>(BasePtr.getOperand(1))->getZExtValue(); in select()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp51 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
78 if (auto *ValC = dyn_cast<ConstantSDNode>(Val)) { in EmitTargetCodeForMemset()
283 if (ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size)) in EmitTargetCodeForMemcpy()

1234