Home
last modified time | relevance | path

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

123456789

/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp207 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass()
212 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass()
397 ConstantSDNode *C = cast<ConstantSDNode>(N); in Select()
436 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select()
440 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2)); in Select()
511 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) { in SelectGlobalValueConstantOffset()
521 if (!isa<ConstantSDNode>(Addr)) { in SelectGlobalValueVariableOffset()
531 ConstantSDNode *IMMOffset; in SelectADDRVTX_READ()
534 && (IMMOffset = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRVTX_READ()
542 } else if ((IMMOffset = dyn_cast<ConstantSDNode>(Addr)) in SelectADDRVTX_READ()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp295 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) in isInlineImmediate()
340 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass()
345 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass()
393 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) { in getConstantValue()
555 ConstantSDNode *C = cast<ConstantSDNode>(N); in Select()
593 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select()
597 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2)); in Select()
671 ConstantSDNode *C; in SelectADDRIndirect()
674 if ((C = dyn_cast<ConstantSDNode>(Addr))) { in SelectADDRIndirect()
678 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(0)))) { in SelectADDRIndirect()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARC/
DARCISelDAGToDAG.cpp53 const ConstantSDNode *CN = cast<ConstantSDNode>(N); in SelectCMOVPred()
106 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()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp511 cast<ConstantSDNode>(N.getOperand(2))->getAPIntValue() == 1 && in isSetCCEquivalent()
512 cast<ConstantSDNode>(N.getOperand(3))->isNullValue()) { in isSetCCEquivalent()
534 if (N0.getOpcode() == Opc && isa<ConstantSDNode>(N0.getOperand(1))) { in ReassociateOps()
535 if (isa<ConstantSDNode>(N1)) { in ReassociateOps()
539 cast<ConstantSDNode>(N0.getOperand(1)), in ReassociateOps()
540 cast<ConstantSDNode>(N1)); in ReassociateOps()
552 if (N1.getOpcode() == Opc && isa<ConstantSDNode>(N1.getOperand(1))) { in ReassociateOps()
553 if (isa<ConstantSDNode>(N0)) { in ReassociateOps()
557 cast<ConstantSDNode>(N1.getOperand(1)), in ReassociateOps()
558 cast<ConstantSDNode>(N0)); in ReassociateOps()
[all …]
DTargetLowering.cpp1133 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in ShrinkDemandedConstant()
1245 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue() & NewMask; in SimplifyDemandedBits()
1253 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
1380 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
1437 if (ConstantSDNode *SA = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
1449 isa<ConstantSDNode>(InOp.getOperand(1))) { in SimplifyDemandedBits()
1451 unsigned C1= cast<ConstantSDNode>(InOp.getOperand(1))->getZExtValue(); in SimplifyDemandedBits()
1500 if (ConstantSDNode *SA = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
1514 isa<ConstantSDNode>(InOp.getOperand(1))) { in SimplifyDemandedBits()
1516 unsigned C1= cast<ConstantSDNode>(InOp.getOperand(1))->getZExtValue(); in SimplifyDemandedBits()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp59 ConstantSDNode *N = cast<ConstantSDNode>(inN); in immMskBitp()
99 ConstantSDNode *CN = 0; in SelectADDRspii()
101 && (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRspii()
120 ConstantSDNode *CN = 0; in SelectADDRdpii()
122 && (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRdpii()
141 ConstantSDNode *CN = 0; in SelectADDRcpii()
143 && (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in SelectADDRcpii()
159 uint64_t Val = cast<ConstantSDNode>(N)->getZExtValue(); in Select()
214 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in Select()
266 unsigned IntNo = cast<ConstantSDNode>(Addr->getOperand(1))->getZExtValue(); in SelectBRIND()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
DLanaiISelDAGToDAG.cpp95 bool canBeRepresentedAsSls(const ConstantSDNode &CN) { in canBeRepresentedAsSls()
105 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectAddrSls()
127 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectAddrRiSpls()
173 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRiSpls()
228 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRr()
288 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node); in Select()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGAddressAnalysis.cpp90 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset())) in match()
95 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset())) in match()
106 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) in match()
114 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) { in match()
125 if (auto *C = dyn_cast<ConstantSDNode>(LSBase->getOffset())) { in match()
166 !isa<ConstantSDNode>(Index->getOperand(1))) in match()
169 Offset += cast<ConstantSDNode>(Index->getOperand(1))->getSExtValue(); in match()
DSelectionDAG.cpp176 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(NotZero)) { in isBuildVectorAllOnes()
215 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op)) { in isBuildVectorAllZeros()
238 if (!isa<ConstantSDNode>(Op)) in isBuildVectorOfConstantSDNodes()
272 std::function<bool(ConstantSDNode *)> Match) { in matchUnaryPredicate()
273 if (auto *Cst = dyn_cast<ConstantSDNode>(Op)) in matchUnaryPredicate()
281 auto *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(i)); in matchUnaryPredicate()
290 std::function<bool(ConstantSDNode *, ConstantSDNode *)> Match) { in matchBinaryPredicate() argument
294 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate()
295 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS)) in matchBinaryPredicate()
304 auto *LHSCst = dyn_cast<ConstantSDNode>(LHS.getOperand(i)); in matchBinaryPredicate()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp71 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedLoad()
192 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in LoadInstrForLoadIntrinsic()
207 auto Inc = cast<ConstantSDNode>(IntN->getOperand(5)); in LoadInstrForLoadIntrinsic()
284 switch (cast<ConstantSDNode>(C->getOperand(1))->getZExtValue()) { in tryLoadOfLoadIntrinsic()
325 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in SelectBrevLdIntrinsic()
367 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in SelectNewCircIntrinsic()
393 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3)); in SelectNewCircIntrinsic()
428 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3)); in SelectNewCircIntrinsic()
472 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedStore()
583 int32_t ShlConst = cast<ConstantSDNode>(Shl_1)->getSExtValue(); in SelectSHL()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUISelDAGToDAG.cpp43 isI32IntS10Immediate(ConstantSDNode *CN) in isI32IntS10Immediate()
50 isI32IntU10Immediate(ConstantSDNode *CN) in isI32IntU10Immediate()
57 isI16IntS10Immediate(ConstantSDNode *CN) in isI16IntS10Immediate()
64 isI16IntU10Immediate(ConstantSDNode *CN) in isI16IntU10Immediate()
79 isIntS16Immediate(ConstantSDNode *CN, short &Imm) in isIntS16Immediate()
206 ConstantSDNode *V = cast<ConstantSDNode > (bvNode->getOperand(i)); in emitBuildVector()
327 val = dyn_cast<ConstantSDNode>(N.getNode())->getSExtValue(); in SelectAFormAddr()
431 ConstantSDNode *CN = cast<ConstantSDNode>(Op1); in DFormAddressPredicate()
452 ConstantSDNode *CN = cast<ConstantSDNode>(Op0); in DFormAddressPredicate()
483 } else if (isa<ConstantSDNode>(Op0) || isa<ConstantSDNode>(Op1)) { in DFormAddressPredicate()
[all …]
/external/llvm/lib/Target/Lanai/
DLanaiISelDAGToDAG.cpp95 bool canBeRepresentedAsSls(const ConstantSDNode &CN) { in canBeRepresentedAsSls()
105 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectAddrSls()
127 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) { in selectAddrRiSpls()
173 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRiSpls()
228 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) in selectAddrRr()
/external/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp244 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedLoad()
364 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue(); in LoadInstrForLoadIntrinsic()
381 auto Inc = cast<ConstantSDNode>(IntN->getOperand(5)); in LoadInstrForLoadIntrinsic()
477 switch (cast<ConstantSDNode>(C->getOperand(1))->getZExtValue()) { in tryLoadOfLoadIntrinsic()
541 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedStore()
741 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue(); in SelectSHL()
743 cast<ConstantSDNode>(Mul_1.getNode())->getSExtValue(); in SelectSHL()
747 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Val.getNode())) in SelectSHL()
762 cast<ConstantSDNode>(Sub_0.getNode())->getSExtValue(); in SelectSHL()
769 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue(); in SelectSHL()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/PTX/
DPTXISelDAGToDAG.cpp228 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)); in SelectADDRri()
325 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)); in SelectADDRlocal()
338 return ConstantSDNode::classof(operand.getNode()); in isImm()
343 if (!ConstantSDNode::classof(node)) in SelectImm()
346 ConstantSDNode *CN = cast<ConstantSDNode>(node); in SelectImm()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64SelectionDAGInfo.cpp24 ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src); in EmitTargetCodeForMemset()
25 ConstantSDNode *SizeValue = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
/external/llvm/lib/Target/AArch64/
DAArch64SelectionDAGInfo.cpp24 ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src); in EmitTargetCodeForMemset()
25 ConstantSDNode *SizeValue = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86SelectionDAGInfo.cpp36 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
52 ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src); in EmitTargetCodeForMemset()
82 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Src); in EmitTargetCodeForMemset()
183 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
/external/llvm/lib/Target/BPF/
DBPFISelDAGToDAG.cpp73 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)); in SelectAddr()
101 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)); in SelectFIAddr()
146 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); in Select()
/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp130 const ConstantSDNode *CN = cast<ConstantSDNode>(N); in SelectCMOVPred()
293 Imm = cast<ConstantSDNode>(N)->getZExtValue(); in isInt32Immediate()
323 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Node); in isScaledConstantInRange()
503 ConstantSDNode *MulConst = dyn_cast<ConstantSDNode>(N.getOperand(1)); in canExtractShiftFromMul()
562 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectImmShifterOperand()
586 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectRegShifterOperand()
626 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectAddrModeImm12()
655 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectLdStSOReg()
702 if (ConstantSDNode *Sh = in SelectLdStSOReg()
703 dyn_cast<ConstantSDNode>(N.getOperand(1).getOperand(1))) { in SelectLdStSOReg()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelDAGToDAG.cpp292 Imm = cast<ConstantSDNode>(N)->getZExtValue(); in isInt32Immediate()
322 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Node); in isScaledConstantInRange()
405 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectImmShifterOperand()
429 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectRegShifterOperand()
467 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectAddrModeImm12()
495 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) { in SelectLdStSOReg()
542 if (ConstantSDNode *Sh = in SelectLdStSOReg()
543 dyn_cast<ConstantSDNode>(N.getOperand(1).getOperand(1))) { in SelectLdStSOReg()
563 if (ConstantSDNode *Sh = in SelectLdStSOReg()
564 dyn_cast<ConstantSDNode>(N.getOperand(0).getOperand(1))) { in SelectLdStSOReg()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp69 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
90 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val); in EmitTargetCodeForMemset()
126 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val); in EmitTargetCodeForMemset()
209 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp51 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemset()
72 ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src); in EmitTargetCodeForMemset()
105 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Src); in EmitTargetCodeForMemset()
202 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size); in EmitTargetCodeForMemcpy()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp335 SDValue visitShiftByConstant(SDNode *N, ConstantSDNode *Amt);
440 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN,
780 static ConstantSDNode *isConstOrConstSplat(SDValue N) { in isConstOrConstSplat()
781 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) in isConstOrConstSplat()
786 ConstantSDNode *CN = BV->getConstantSplatNode(&UndefElements); in isConstOrConstSplat()
1504 if (isa<ConstantSDNode>(N0) || !isa<ConstantSDNode>(N1)) { in combine()
1628 static ConstantSDNode *getAsNonOpaqueConstant(SDValue N) { in getAsNonOpaqueConstant()
1629 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N); in getAsNonOpaqueConstant()
1667 if (ConstantSDNode *N1C = getAsNonOpaqueConstant(N1)) { in visitADD()
1669 if (ConstantSDNode *N0C = getAsNonOpaqueConstant(N0.getOperand(0))) { in visitADD()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp54 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()
246 unsigned IntNo = cast<ConstantSDNode>(Addr->getOperand(1))->getZExtValue(); in tryBRIND()
/external/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp54 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()
246 unsigned IntNo = cast<ConstantSDNode>(Addr->getOperand(1))->getZExtValue(); in tryBRIND()

123456789