• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/

Lines Matching refs:Builder

71                                  SelectionDAGBuilder &Builder, uint64_t Value) {
72 SDLoc L = Builder.getCurSDLoc();
73 Ops.push_back(Builder.DAG.getTargetConstant(StackMaps::ConstantOp, L,
75 Ops.push_back(Builder.DAG.getTargetConstant(Value, L, MVT::i64));
78 void StatepointLoweringState::startNewStatepoint(SelectionDAGBuilder &Builder) {
88 AllocatedStackSlots.resize(Builder.FuncInfo.StatepointStackSlots.size());
100 SelectionDAGBuilder &Builder) {
102 MachineFrameInfo &MFI = Builder.DAG.getMachineFunction().getFrameInfo();
115 Builder.FuncInfo.StatepointStackSlots.size() &&
120 const int FI = Builder.FuncInfo.StatepointStackSlots[NextSlotToAllocate];
124 return Builder.DAG.getFrameIndex(FI, ValueType);
131 SDValue SpillSlot = Builder.DAG.CreateStackTemporary(ValueType);
135 Builder.FuncInfo.StatepointStackSlots.push_back(FI);
138 Builder.FuncInfo.StatepointStackSlots.size() &&
142 Builder.FuncInfo.StatepointStackSlots.size());
151 SelectionDAGBuilder &Builder,
160 Builder.FuncInfo.StatepointSpillMaps[Relocate->getStatepoint()];
171 return findPreviousSpillSlot(Cast->getOperand(0), Builder, LookUpDepth - 1);
181 findPreviousSpillSlot(IncomingValue, Builder, LookUpDepth - 1);
252 SelectionDAGBuilder &Builder) {
253 SDValue Incoming = Builder.getValue(IncomingValue);
260 SDValue OldLocation = Builder.StatepointLowering.getLocation(Incoming);
267 findPreviousSpillSlot(IncomingValue, Builder, LookUpDepth);
271 const auto &StatepointSlots = Builder.FuncInfo.StatepointStackSlots;
279 if (Builder.StatepointLowering.isStackSlotAllocated(Offset)) {
289 Builder.StatepointLowering.reserveStackSlot(Offset);
294 Builder.DAG.getTargetFrameIndex(*Index, Builder.getFrameIndexTy());
295 Builder.StatepointLowering.setLocation(Incoming, Loc);
303 SelectionDAGBuilder &Builder, SmallVectorImpl<SDValue> &PendingExports) {
306 Builder.lowerInvokable(SI.CLI, SI.EHPadBB);
357 SelectionDAGBuilder &Builder) {
358 SDValue Loc = Builder.StatepointLowering.getLocation(Incoming);
363 Loc = Builder.StatepointLowering.allocateStackSlot(Incoming.getValueType(),
364 Builder);
367 Loc = Builder.DAG.getTargetFrameIndex(Index, Builder.getFrameIndexTy());
374 MachineFrameInfo &MFI = Builder.DAG.getMachineFunction().getFrameInfo();
382 auto &MF = Builder.DAG.getMachineFunction();
387 Chain = Builder.DAG.getStore(Chain, Builder.getCurSDLoc(), Incoming, Loc,
392 Builder.StatepointLowering.setLocation(Incoming, Loc);
406 SelectionDAGBuilder &Builder) {
413 assert(Incoming.getValueType() == Builder.getFrameIndexTy() &&
415 Ops.push_back(Builder.DAG.getTargetFrameIndex(FI->getIndex(),
416 Builder.getFrameIndexTy()));
418 auto &MF = Builder.DAG.getMachineFunction();
431 pushStackMapConstant(Ops, Builder, 0xFEFEFEFE);
440 pushStackMapConstant(Ops, Builder, C->getSExtValue());
443 pushStackMapConstant(Ops, Builder,
468 SDValue Chain = Builder.getRoot();
469 auto Res = spillIncomingStatepointValue(Incoming, Chain, Builder);
474 Builder.DAG.setRoot(Chain);
489 SelectionDAGBuilder &Builder) {
493 if (auto *GFI = Builder.GFI) {
538 if (auto *GFI = Builder.GFI)
555 reservePreviousStackSlotForValue(V, Builder);
558 reservePreviousStackSlotForValue(SI.Bases[i], Builder);
559 reservePreviousStackSlotForValue(SI.Ptrs[i], Builder);
566 pushStackMapConstant(Ops, Builder, NumVMSArgs);
575 int FI = Builder.FuncInfo.getArgumentFrameIndex(Arg);
577 Incoming = Builder.DAG.getFrameIndex(FI, Builder.getFrameIndexTy());
580 Incoming = Builder.getValue(V);
582 Builder);
592 lowerIncomingStatepointValue(Builder.getValue(Base),
594 Builder);
597 lowerIncomingStatepointValue(Builder.getValue(Ptr),
599 Builder);
608 SDValue Incoming = Builder.getValue(V);
611 assert(Incoming.getValueType() == Builder.getFrameIndexTy() &&
613 Ops.push_back(Builder.DAG.getTargetFrameIndex(FI->getIndex(),
614 Builder.getFrameIndexTy()));
616 auto &MF = Builder.DAG.getMachineFunction();
626 auto &SpillMap = Builder.FuncInfo.StatepointSpillMaps[StatepointInstr];
630 SDValue SDV = Builder.getValue(V);
631 SDValue Loc = Builder.StatepointLowering.getLocation(SDV);
651 Builder.ExportFromCurrentBlock(V);
1057 const SDValue Chain = DAG.getRoot(); // != Builder.getRoot()