Home
last modified time | relevance | path

Searched refs:CurDAG (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp64 UImm12 = CurDAG->getTargetConstant(CN->getZExtValue() / MemSize, MVT::i64); in SelectOffsetUImm12()
128 FixedPos = CurDAG->getTargetConstant(64 - FBits, MVT::i32); in SelectCVTFixedPosOperand()
158 Dummy = CurDAG->getTargetConstant(0, MVT::i32); in SelectFPZeroOperand()
172 Imm = CurDAG->getTargetConstant(Bits, MVT::i32); in SelectLogicalImm()
203 return CurDAG->getMachineNode(MOVOpcode, dl, DestType, in TrySelectToMoveImm()
204 CurDAG->getRegister(ZR, DestType), in TrySelectToMoveImm()
205 CurDAG->getTargetConstant(LogicalBits, MVT::i32)); in TrySelectToMoveImm()
212 ResNode = CurDAG->getMachineNode(MOVOpcode, dl, MOVType, in TrySelectToMoveImm()
213 CurDAG->getTargetConstant(UImm16, MVT::i32), in TrySelectToMoveImm()
214 CurDAG->getTargetConstant(Shift, MVT::i32)); in TrySelectToMoveImm()
[all …]
DAArch64InstrInfo.td573 return CurDAG->getTargetConstant(N->getSExtValue() >> 12, MVT::i32);
577 return CurDAG->getTargetConstant((-N->getSExtValue()) >> 12, MVT::i32);
581 return CurDAG->getTargetConstant(-N->getSExtValue(), MVT::i32);
1519 return CurDAG->getTargetConstant(A64InvertCondCode(CC), MVT::i32);
2380 return CurDAG->getTargetConstant(Imm8, MVT::i32);
2807 return CurDAG->getTargetConstant(N->getZExtValue() & 0x1ff, MVT::i32);
4526 return CurDAG->getTargetConstant((32 - N->getZExtValue()) % 32, MVT::i64);
4530 return CurDAG->getTargetConstant((64 - N->getZExtValue()) % 64, MVT::i64);
4534 return CurDAG->getTargetConstant(N->getZExtValue() - 1, MVT::i64);
4641 return CurDAG->isBaseWithConstantOffset(SDValue(N, 0));
[all …]
/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp87 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
340 for (SelectionDAG::allnodes_iterator I = CurDAG->allnodes_begin(), in PreprocessISelDAG()
341 E = CurDAG->allnodes_end(); I != E; ) { in PreprocessISelDAG()
405 Srl = CurDAG->getNode(ISD::SRL, Srl.getDebugLoc(), MVT::i32, in PreprocessISelDAG()
407 CurDAG->getConstant(Srl_imm+TZ, MVT::i32)); in PreprocessISelDAG()
408 N1 = CurDAG->getNode(ISD::AND, N1.getDebugLoc(), MVT::i32, in PreprocessISelDAG()
409 Srl, CurDAG->getConstant(And_imm, MVT::i32)); in PreprocessISelDAG()
410 N1 = CurDAG->getNode(ISD::SHL, N1.getDebugLoc(), MVT::i32, in PreprocessISelDAG()
411 N1, CurDAG->getConstant(TZ, MVT::i32)); in PreprocessISelDAG()
412 CurDAG->UpdateNodeOperands(N, N0, N1); in PreprocessISelDAG()
[all …]
DARMInstrThumb.td24 return CurDAG->getTargetConstant((Imm == 32 ? 0 : Imm), MVT::i32);
36 return CurDAG->getTargetConstant(~((uint32_t)N->getZExtValue()), MVT::i32);
64 return CurDAG->getTargetConstant(V, MVT::i32);
69 return CurDAG->getTargetConstant(V, MVT::i32);
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp75 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
81 return CurDAG->getTargetConstant(Imm, MVT::i64); in getI64Imm()
86 return CurDAG->getTargetConstant(Imm, PPCLowering.getPointerTy()); in getSmallIPtrImm()
119 return PPCLowering.SelectAddressRegImm(N, Disp, Base, *CurDAG); in SelectAddrImm()
151 return PPCLowering.SelectAddressRegReg(N, Base, Index, *CurDAG); in SelectAddrIdx()
157 return PPCLowering.SelectAddressRegRegOnly(N, Base, Index, *CurDAG); in SelectAddrIdxOnly()
164 return PPCLowering.SelectAddressRegImmShift(N, Disp, Base, *CurDAG); in SelectAddrImmShift()
279 return CurDAG->getRegister(GlobalBaseReg, in getGlobalBaseReg()
409 CurDAG->ComputeMaskedBits(Op0, LKZ, LKO); in SelectBitfieldInsert()
410 CurDAG->ComputeMaskedBits(Op1, RKZ, RKO); in SelectBitfieldInsert()
[all …]
DPPCInstrAltivec.td139 return PPC::get_VSPLTI_elt(N, 1, *CurDAG);
142 return PPC::get_VSPLTI_elt(N, 1, *CurDAG).getNode() != 0;
147 return PPC::get_VSPLTI_elt(N, 2, *CurDAG);
150 return PPC::get_VSPLTI_elt(N, 2, *CurDAG).getNode() != 0;
155 return PPC::get_VSPLTI_elt(N, 4, *CurDAG);
158 return PPC::get_VSPLTI_elt(N, 4, *CurDAG).getNode() != 0;
/external/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp55 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
95 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32); in SelectADDRspii()
96 Offset = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRspii()
105 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32); in SelectADDRspii()
106 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32); in SelectADDRspii()
117 Offset = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRdpii()
127 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32); in SelectADDRdpii()
138 Offset = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRcpii()
148 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32); in SelectADDRcpii()
165 return CurDAG->getMachineNode(XCore::MKMSK_rus, dl, in Select()
[all …]
/external/llvm/lib/Target/MBlaze/
DMBlazeISelDAGToDAG.cpp90 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
156 Disp = CurDAG->getTargetConstant(imm, MVT::i32); in SelectAddrRegImm()
158 Base = CurDAG->getTargetFrameIndex(FI->getIndex(), N.getValueType()); in SelectAddrRegImm()
167 Disp = CurDAG->getTargetConstant(Imm, CN->getValueType(0)); in SelectAddrRegImm()
168 Base = CurDAG->getRegister(MBlaze::R0, CN->getValueType(0)); in SelectAddrRegImm()
172 Disp = CurDAG->getTargetConstant(0, TM.getTargetLowering()->getPointerTy()); in SelectAddrRegImm()
174 Base = CurDAG->getTargetFrameIndex(FI->getIndex(), N.getValueType()); in SelectAddrRegImm()
184 return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode(); in getGlobalBaseReg()
209 SDValue imm = CurDAG->getTargetConstant(0, MVT::i32); in Select()
212 SDValue TFI = CurDAG->getTargetFrameIndex(FI, VT); in Select()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp120 return CurDAG->getTargetConstant(Imm - 1, MVT::i8); in XformU7ToU7M1Imm()
352 CurDAG->getTargetGlobalAddress(GV, dl, PointerTy, 0); in SelectBaseOffsetLoad()
353 SDNode* NewBase = CurDAG->getMachineNode(Hexagon::CONST32_set, in SelectBaseOffsetLoad()
364 SDValue TargetConstOff = CurDAG->getTargetConstant(Offset, PointerTy); in SelectBaseOffsetLoad()
365 SDNode* Result = CurDAG->getMachineNode(Opcode, dl, in SelectBaseOffsetLoad()
399 SDValue TargetConst = CurDAG->getTargetConstant(Val, MVT::i32); in SelectIndexedLoadSignExtend64()
400 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32, MVT::i32, in SelectIndexedLoadSignExtend64()
403 SDNode *Result_2 = CurDAG->getMachineNode(Hexagon::SXTW, dl, MVT::i64, in SelectIndexedLoadSignExtend64()
419 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32); in SelectIndexedLoadSignExtend64()
420 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32); in SelectIndexedLoadSignExtend64()
[all …]
/external/llvm/lib/Target/R600/
DAMDILISelDAGToDAG.cpp101 return CurDAG->getTargetConstant(Imm, MVT::i32); in getSmallIPtrImm()
109 R1 = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32); in SelectADDRParam()
110 R2 = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRParam()
113 R2 = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRParam()
120 R2 = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRParam()
142 R1 = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i64); in SelectADDR64()
143 R2 = CurDAG->getTargetConstant(0, MVT::i64); in SelectADDR64()
146 R2 = CurDAG->getTargetConstant(0, MVT::i64); in SelectADDR64()
153 R2 = CurDAG->getTargetConstant(0, MVT::i64); in SelectADDR64()
175 CurDAG->getTargetConstant(AMDGPU::R600_Reg128RegClassID, MVT::i32), in Select()
[all …]
DSIInstrInfo.td21 return CurDAG->getTargetConstant(N->getZExtValue() & 0xffffffff, MVT::i32);
26 return CurDAG->getTargetConstant(N->getZExtValue() >> 32, MVT::i32);
33 return CurDAG->getTargetConstant(
/external/llvm/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp70 return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode(); in getGlobalBaseReg()
76 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32); in SelectADDRri()
77 Offset = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRri()
90 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32); in SelectADDRri()
94 Offset = CurDAG->getTargetConstant(CN->getZExtValue(), MVT::i32); in SelectADDRri()
110 Offset = CurDAG->getTargetConstant(0, MVT::i32); in SelectADDRri()
133 R2 = CurDAG->getRegister(SP::G0, MVT::i32); in SelectADDRrr()
156 TopPart = SDValue(CurDAG->getMachineNode(SP::SRAri, dl, MVT::i32, DivLHS, in Select()
157 CurDAG->getTargetConstant(31, MVT::i32)), 0); in Select()
159 TopPart = CurDAG->getRegister(SP::G0, MVT::i32); in Select()
[all …]
DSparcInstrInfo.td51 return CurDAG->getTargetConstant((unsigned)N->getZExtValue() & 1023,
57 return CurDAG->getTargetConstant((unsigned)N->getZExtValue() >> 10, MVT::i32);
/external/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp232 CurDAG->getTargetFrameIndex(AM.Base_FrameIndex, TLI.getPointerTy()) : in getAddressOperands()
239 Disp = CurDAG->getTargetGlobalAddress(AM.GV, DebugLoc(), in getAddressOperands()
243 Disp = CurDAG->getTargetConstantPool(AM.CP, MVT::i32, in getAddressOperands()
247 Disp = CurDAG->getTargetExternalSymbol(AM.ES, MVT::i32, AM.SymbolFlags); in getAddressOperands()
250 Disp = CurDAG->getTargetJumpTable(AM.JT, MVT::i32, AM.SymbolFlags); in getAddressOperands()
252 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp, in getAddressOperands()
255 Disp = CurDAG->getTargetConstant(AM.Disp, MVT::i32); in getAddressOperands()
260 Segment = CurDAG->getRegister(0, MVT::i32); in getAddressOperands()
266 return CurDAG->getTargetConstant(Imm, MVT::i8); in getI8Imm()
272 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
[all …]
/external/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp185 SDNode *Mul = CurDAG->getMachineNode(Opc, DL, MVT::Glue, N->getOperand(0), in selectMULT()
191 Lo = CurDAG->getMachineNode(Opcode, DL, Ty, MVT::Glue, InFlag); in selectMULT()
196 Hi = CurDAG->getMachineNode(Opcode, DL, Ty, InFlag); in selectMULT()
214 SDNode *Carry = CurDAG->getMachineNode(Mips::SLTu, DL, VT, Ops, 2); in selectAddESubE()
215 SDNode *AddCarry = CurDAG->getMachineNode(Mips::ADDu, DL, VT, in selectAddESubE()
217 return CurDAG->SelectNodeTo(Node, MOp, VT, MVT::Glue, LHS, in selectAddESubE()
229 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), ValTy); in selectAddrRegImm()
230 Offset = CurDAG->getTargetConstant(0, ValTy); in selectAddrRegImm()
248 if (CurDAG->isBaseWithConstantOffset(Addr)) { in selectAddrRegImm()
255 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), ValTy); in selectAddrRegImm()
[all …]
DMips16ISelDAGToDAG.cpp43 SDNode *Mul = CurDAG->getMachineNode(Opc, DL, MVT::Glue, N->getOperand(0), in selectMULT()
49 Lo = CurDAG->getMachineNode(Opcode, DL, Ty, MVT::Glue, InFlag); in selectMULT()
54 Hi = CurDAG->getMachineNode(Opcode, DL, Ty, InFlag); in selectMULT()
116 return CurDAG->getRegister(Mips16SPAliasReg, TLI.getPointerTy()); in getMips16SPAliasReg()
120 SDValue AliasFPReg = CurDAG->getRegister(Mips::S0, TLI.getPointerTy()); in getMips16SPRefReg()
147 AliasReg = CurDAG->getRegister(Mips::SP, TLI.getPointerTy()); in getMips16SPRefReg()
157 Alias = CurDAG->getTargetConstant(0, ValTy); in selectAddr16()
161 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), ValTy); in selectAddr16()
162 Offset = CurDAG->getTargetConstant(0, ValTy); in selectAddr16()
178 if (CurDAG->isBaseWithConstantOffset(Addr)) { in selectAddr16()
[all …]
DMipsISelDAGToDAG.cpp61 return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode(); in getGlobalBaseReg()
96 DEBUG(errs() << "Selecting: "; Node->dump(CurDAG); errs() << "\n"); in Select()
100 DEBUG(errs() << "== "; Node->dump(CurDAG); errs() << "\n"); in Select()
132 DEBUG(Node->dump(CurDAG)); in Select()
134 DEBUG(ResNode->dump(CurDAG)); in Select()
DMipsISelDAGToDAG.h77 return CurDAG->getTargetConstant(Imm, Node->getValueType(0)); in getImm()
DMipsISelLowering.cpp419 static bool selectMADD(SDNode *ADDENode, SelectionDAG *CurDAG) { in selectMADD() argument
455 SDValue Chain = CurDAG->getEntryNode(); in selectMADD()
461 SDValue MAdd = CurDAG->getNode(MultOpc, DL, MVT::Glue, in selectMADD()
468 SDValue CopyFromLo = CurDAG->getCopyFromReg(Chain, DL, Mips::LO, MVT::i32, in selectMADD()
470 SDValue CopyFromHi = CurDAG->getCopyFromReg(CopyFromLo.getValue(1), DL, in selectMADD()
476 CurDAG->ReplaceAllUsesOfValueWith(SDValue(ADDCNode, 0), CopyFromLo); in selectMADD()
479 CurDAG->ReplaceAllUsesOfValueWith(SDValue(ADDENode, 0), CopyFromHi); in selectMADD()
492 static bool selectMSUB(SDNode *SUBENode, SelectionDAG *CurDAG) { in selectMSUB() argument
528 SDValue Chain = CurDAG->getEntryNode(); in selectMSUB()
534 SDValue MSub = CurDAG->getNode(MultOpc, DL, MVT::Glue, in selectMSUB()
[all …]
/external/llvm/lib/Target/MSP430/
DMSP430ISelDAGToDAG.cpp233 CurDAG->MaskedValueIsZero(N.getOperand(0), CN->getAPIntValue())) { in MatchAddress()
258 AM.Base.Reg = CurDAG->getRegister(0, VT); in SelectAddr()
262 CurDAG->getTargetFrameIndex(AM.Base.FrameIndex, TLI.getPointerTy()) : in SelectAddr()
266 Disp = CurDAG->getTargetGlobalAddress(AM.GV, N->getDebugLoc(), in SelectAddr()
270 Disp = CurDAG->getTargetConstantPool(AM.CP, MVT::i16, in SelectAddr()
273 Disp = CurDAG->getTargetExternalSymbol(AM.ES, MVT::i16, 0/*AM.SymbolFlags*/); in SelectAddr()
275 Disp = CurDAG->getTargetJumpTable(AM.JT, MVT::i16, 0/*AM.SymbolFlags*/); in SelectAddr()
277 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, 0, in SelectAddr()
280 Disp = CurDAG->getTargetConstant(AM.Disp, MVT::i16); in SelectAddr()
348 return CurDAG->getMachineNode(Opcode, N->getDebugLoc(), in SelectIndexedLoad()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGISel.cpp278 CurDAG(new SelectionDAG(tm, OL)), in SelectionDAGISel()
279 SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)), in SelectionDAGISel()
291 delete CurDAG; in ~SelectionDAGISel()
371 CurDAG->init(*MF, TTI); in runOnMachineFunction()
516 CurDAG->setRoot(SDB->getControlRoot()); in SelectBasicBlock()
528 Worklist.push_back(CurDAG->getRoot().getNode()); in ComputeLiveOutVRegInfo()
559 unsigned NumSignBits = CurDAG->ComputeNumSignBits(Src); in ComputeLiveOutVRegInfo()
560 CurDAG->ComputeMaskedBits(Src, KnownZero, KnownOne); in ComputeLiveOutVRegInfo()
583 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
585 if (ViewDAGCombine1) CurDAG->viewGraph("dag-combine1 input for " + BlockName); in CodeGenAndEmitDAG()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXISelDAGToDAG.cpp240 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, in SelectLoad()
260 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, in SelectLoad()
292 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, in SelectLoad()
323 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, in SelectLoad()
425 LD = CurDAG->getMachineNode(Opcode, DL, N->getVTList(), Ops, 7); in SelectLoadVector()
459 LD = CurDAG->getMachineNode(Opcode, DL, N->getVTList(), Ops, 8); in SelectLoadVector()
520 LD = CurDAG->getMachineNode(Opcode, DL, N->getVTList(), Ops, 8); in SelectLoadVector()
578 LD = CurDAG->getMachineNode(Opcode, DL, N->getVTList(), Ops, 7); in SelectLoadVector()
690 LD = CurDAG->getMachineNode(Opcode, DL, N->getVTList(), &Ops[0], 2); in SelectLDGLDUVector()
775 NVPTXST = CurDAG->getMachineNode(Opcode, dl, in SelectStore()
[all …]
DNVPTXISelDAGToDAG.h82 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
DNVPTXVector.td738 return CurDAG->getTargetConstant(SVOp->getMaskElt(0), MVT::i32);
742 return CurDAG->getTargetConstant(SVOp->getMaskElt(1), MVT::i32);
746 return CurDAG->getTargetConstant(SVOp->getMaskElt(2), MVT::i32);
750 return CurDAG->getTargetConstant(SVOp->getMaskElt(3), MVT::i32);
/external/llvm/include/llvm/CodeGen/
DSelectionDAGISel.h52 SelectionDAG *CurDAG; variable
180 CurDAG->ReplaceAllUsesOfValueWith(F, T); in ReplaceUses()
186 CurDAG->ReplaceAllUsesOfValuesWith(F, T, Num); in ReplaceUses()
192 CurDAG->ReplaceAllUsesWith(F, T); in ReplaceUses()

12