Home
last modified time | relevance | path

Searched refs:Disp (Results 1 – 25 of 48) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelDAGToDAG.cpp64 int64_t Disp; member
153 dbgs() << "\nDisp: " << Disp; in dump()
240 Disp = getI32Imm(AM.Disp, DL); in getFrameIndexAddress()
394 AM.Disp = Val; in foldOffsetIntoAddress()
630 AM.Disp += G->getOffset(); in matchWrapper()
744 if (AM.Disp == 0) { in SelectARID()
749 Disp = getI16Imm(AM.Disp, SDLoc(N)); in SelectARID()
815 Disp = getI8Imm(AM.Disp, SDLoc(N)); in SelectARII()
850 if (AM.Disp) { in SelectAL()
883 Disp = getI16Imm(AM.Disp, SDLoc(N)); in SelectPCD()
[all …]
H A DM68kRegisterInfo.cpp174 MachineOperand &Disp = MI.getOperand(FIOperandNum - 1); in eliminateFrameIndex() local
177 int Imm = (int)(Disp.getImm()); in eliminateFrameIndex()
210 Disp.ChangeToImmediate(FIOffset + Imm); in eliminateFrameIndex()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp61 int64_t Disp; member
91 errs() << " Disp " << Disp; in dump()
455 AM.Disp = TestDisp; in expandDisp()
539 if (Disp) { in shouldUseLA()
546 if (isUInt<12>(Disp)) in shouldUseLA()
551 if (!isInt<16>(Disp)) in shouldUseLA()
659 Disp = CurDAG->getTargetConstant(AM.Disp, SDLoc(Base), VT); in getAddressOperands()
1238 SDValue Base, Disp, Index; in tryGather() local
1272 SDValue Base, Disp, Index; in tryScatter() local
1433 SDValue Base, Disp; in tryFoldLoadStoreIntoMemOperand() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp47 int16_t Disp = 0; member
70 errs() << " Disp " << Disp << '\n'; in dump()
120 bool SelectAddr(SDValue Addr, SDValue &Base, SDValue &Disp);
149 AM.Disp += G->getOffset(); in MatchWrapper()
154 AM.Disp += CP->getOffset(); in MatchWrapper()
191 AM.Disp += Val; in MatchAddress()
234 AM.Disp += Offset; in MatchAddress()
266 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(N), in SelectAddr()
267 MVT::i16, AM.Disp, in SelectAddr()
270 Disp = CurDAG->getTargetConstantPool(AM.CP, MVT::i16, AM.Alignment, AM.Disp, in SelectAddr()
[all …]
H A DMSP430AsmPrinter.cpp110 const MachineOperand &Disp = MI->getOperand(OpNum+1); in printSrcMemOperand() local
115 if (Disp.isImm() && Base.getReg() == MSP430::SR) in printSrcMemOperand()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp85 const MachineOperand *Disp) in MemOpKey() argument
86 : Disp(Disp) { in MemOpKey()
103 return isSimilarDispOp(*Disp, *Other.Disp); in operator ==()
110 const MachineOperand *Disp; member in __anon05e1688d0111::MemOpKey
137 assert(Val.Disp != PtrInfo::getTombstoneKey() && in getHashValue()
147 switch (Val.Disp->getType()) { in getHashValue()
167 Hash = hash_combine(Hash, Val.Disp->getMBB()); in getHashValue()
179 if (RHS.Disp == PtrInfo::getEmptyKey()) in isEqual()
180 return LHS.Disp == PtrInfo::getEmptyKey(); in isEqual()
181 if (RHS.Disp == PtrInfo::getTombstoneKey()) in isEqual()
[all …]
H A DX86InstrBuilder.h55 int Disp; member
60 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode()
81 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); in getFullAddress()
83 MO.push_back(MachineOperand::CreateImm(Disp)); in getFullAddress()
114 AM.Disp = Op3.getImm(); in getAddressFromInstr()
185 MIB.addGlobalAddress(AM.GV, AM.Disp, AM.GVOpFlags); in addFullAddress()
187 MIB.addImm(AM.Disp); in addFullAddress()
H A DX86ISelDAGToDAG.cpp71 int32_t Disp = 0; member
127 dbgs() << " Disp " << Disp << '\n' in dump()
314 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp, in getAddressOperands()
317 Disp = CurDAG->getTargetConstant(AM.Disp, DL, MVT::i32); in getAddressOperands()
1733 int64_t Val = AM.Disp + Offset; in foldOffsetIntoAddress()
1770 AM.Disp = Val; in foldOffsetIntoAddress()
2600 ((AM.Disp != 0) && (Backup.Disp == 0)) + in matchAddressRecursively()
3073 if (AM.Disp) in selectLEAAddr()
3093 AM.Disp += GA->getOffset(); in selectTLSADDRAddr()
5074 Disp, in Select()
[all …]
H A DX86FixupLEAs.cpp557 const MachineOperand &Disp = MI.getOperand(1 + X86::AddrDisp); in optTwoAddrLEA() local
560 if (Segment.getReg() != 0 || !Disp.isImm() || Scale.getImm() > 1 || in optTwoAddrLEA()
586 if (BaseReg != 0 && IndexReg != 0 && Disp.getImm() == 0 && in optTwoAddrLEA()
610 if (OptIncDec && (Disp.getImm() == 1 || Disp.getImm() == -1)) { in optTwoAddrLEA()
611 bool IsINC = Disp.getImm() == 1; in optTwoAddrLEA()
623 unsigned NewOpcode = getADDriFromLEA(MI.getOpcode(), Disp); in optTwoAddrLEA()
627 .addReg(BaseReg).addImm(Disp.getImm()) in optTwoAddrLEA()
631 .addReg(BaseReg).addImm(Disp.getImm()); in optTwoAddrLEA()
634 } else if (BaseReg != 0 && IndexReg != 0 && Disp.getImm() == 0) { in optTwoAddrLEA()
H A DX86ExpandPseudo.cpp463 int64_t Disp = MBBI->getOperand(1 + X86::AddrDisp).getImm(); in ExpandMI() local
464 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in ExpandMI()
482 MIBHi.addImm(Disp + 2); in ExpandMI()
501 int64_t Disp = MBBI->getOperand(X86::AddrDisp).getImm(); in ExpandMI() local
502 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in ExpandMI()
516 MIBHi.addImm(Disp + 2); in ExpandMI()
H A DX86AvoidStoreForwardingBlocks.cpp315 const MachineOperand &Disp = getDispOperand(MI); in isRelevantAddressingMode() local
322 if (!Disp.isImm()) in isRelevantAddressingMode()
658 for (auto Disp : DispSizeStack) in removeRedundantBlockingStores() local
659 BlockingStoresDispSizeMap.insert(Disp); in removeRedundantBlockingStores()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430InstPrinter.cpp75 const MCOperand &Disp = MI->getOperand(OpNo+1); in printSrcMemOperand() local
88 if (Disp.isExpr()) in printSrcMemOperand()
89 Disp.getExpr()->print(O, &MAI); in printSrcMemOperand()
91 assert(Disp.isImm() && "Expected immediate in displacement field"); in printSrcMemOperand()
92 O << Disp.getImm(); in printSrcMemOperand()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DMSP430AttributeParser.cpp45 for (const DisplayHandler &Disp : DisplayRoutines) { in handler() local
46 if (uint64_t(Disp.Attribute) != Tag) in handler()
48 if (Error E = (this->*Disp.Routine)(static_cast<AttrType>(Tag))) in handler()
H A Draw_ostream.cpp574 sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access, in getFD() argument
590 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); in getFD()
592 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); in getFD()
604 sys::fs::CreationDisposition Disp) in raw_fd_ostream() argument
605 : raw_fd_ostream(Filename, EC, Disp, sys::fs::FA_Write, sys::fs::OF_None) {} in raw_fd_ostream()
618 sys::fs::CreationDisposition Disp, in raw_fd_ostream() argument
621 : raw_fd_ostream(getFD(Filename, EC, Disp, Access, Flags), true) {} in raw_fd_ostream()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp41 bool SelectAddr(SDNode *Op, SDValue N, SDValue &Base, SDValue &Disp);
75 SDValue &Disp) { in SelectAddr() argument
83 Disp = CurDAG->getTargetConstant(0, dl, MVT::i8); in SelectAddr()
110 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr()
122 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
226 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local
228 if (SelectAddr(Op.getNode(), Op, Base, Disp)) { in SelectInlineAsmMemoryOperand()
230 OutOps.push_back(Disp); in SelectInlineAsmMemoryOperand()
261 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local
282 Disp = ImmOp; in SelectInlineAsmMemoryOperand()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineInstrBuilder.h290 const MachineInstrBuilder &addDisp(const MachineOperand &Disp, int64_t off,
297 TargetFlags = Disp.getTargetFlags();
299 switch (Disp.getType()) {
303 return addImm(Disp.getImm() + off);
305 return addConstantPoolIndex(Disp.getIndex(), Disp.getOffset() + off,
308 return addGlobalAddress(Disp.getGlobal(), Disp.getOffset() + off,
311 return addBlockAddress(Disp.getBlockAddress(), Disp.getOffset() + off,
315 return addJumpTableIndex(Disp.getIndex(), TargetFlags);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/Disassembler/
H A DPPCDisassembler.cpp300 const int64_t Disp = SignExtend64<7>((Imm & 0x3F) + 64) * 8; in decodeDispRIHashOperand() local
302 Inst.addOperand(MCOperand::createImm(Disp)); in decodeDispRIHashOperand()
319 uint64_t Disp = Imm & 0x1F; in decodeDispSPE8Operand() local
321 Inst.addOperand(MCOperand::createImm(Disp << 3)); in decodeDispSPE8Operand()
330 uint64_t Disp = Imm & 0x1F; in decodeDispSPE4Operand() local
332 Inst.addOperand(MCOperand::createImm(Disp << 2)); in decodeDispSPE4Operand()
341 uint64_t Disp = Imm & 0x1F; in decodeDispSPE2Operand() local
342 Inst.addOperand(MCOperand::createImm(Disp << 1)); in decodeDispSPE2Operand()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCCodeEmitter.cpp603 const MCOperand &Disp = MI.getOperand(Op + X86::AddrDisp); in emitMemModRMByte() local
622 if (!(Disp.isExpr() && isa<MCSymbolRefExpr>(Disp.getExpr()))) in emitMemModRMByte()
674 int ImmSize = !Disp.isImm() && X86II::hasImm(TSFlags) in emitMemModRMByte()
722 if (Disp.isImm() && isInt<8>(Disp.getImm())) { in emitMemModRMByte()
723 if (Disp.getImm() == 0 && RMfield != 6) { in emitMemModRMByte()
779 if (Disp.isImm() && Disp.getImm() == 0 && AllowNoDisp) { in emitMemModRMByte()
785 if (Disp.isExpr()) { in emitMemModRMByte()
786 auto *Sym = dyn_cast<MCSymbolRefExpr>(Disp.getExpr()); in emitMemModRMByte()
801 if (Disp.isImm() && AllowDisp8) { in emitMemModRMByte()
836 } else if (Disp.isImm() && Disp.getImm() == 0 && AllowNoDisp && in emitMemModRMByte()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h64 const MCExpr *Disp; member
152 if (Mem.Disp) in print()
153 PrintImmValue(Mem.Disp, ",Disp="); in print()
187 return Mem.Disp; in getMemDisp()
716 CreateMem(unsigned ModeSize, const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc,
722 Res->Mem.Disp = Disp;
740 CreateMem(unsigned ModeSize, unsigned SegReg, const MCExpr *Disp,
757 Res->Mem.Disp = Disp;
H A DX86AsmParser.cpp2561 const MCExpr *Disp = SM.getSym(); in parseIntelOperand() local
2563 if (Disp && Imm) in parseIntelOperand()
2564 Disp = MCBinaryExpr::createAdd(Disp, ImmDisp, getContext()); in parseIntelOperand()
2565 if (!Disp) in parseIntelOperand()
2566 Disp = ImmDisp; in parseIntelOperand()
2652 } else if (!BaseReg && !IndexReg && Disp && in parseIntelOperand()
2653 Disp->getKind() == MCExpr::SymbolRef) { in parseIntelOperand()
2950 if (!Disp) { in ParseMemOperand()
3055 isa<MCConstantExpr>(Disp) && in ParseMemOperand()
3056 cast<MCConstantExpr>(Disp)->getValue() == 0) { in ParseMemOperand()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp124 const MCExpr *Disp; member
190 const MCExpr *Disp, unsigned Index, const MCExpr *LengthImm, in createMem() argument
197 Op->Mem.Disp = Disp; in createMem()
312 addExpr(Inst, Mem.Disp); in addBDAddrOperands()
318 addExpr(Inst, Mem.Disp); in addBDXAddrOperands()
325 addExpr(Inst, Mem.Disp); in addBDLAddrOperands()
332 addExpr(Inst, Mem.Disp); in addBDRAddrOperands()
339 addExpr(Inst, Mem.Disp); in addBDVAddrOperands()
739 OS << "Mem:" << *cast<MCConstantExpr>(Op.Disp); in print()
994 if (getParser().parseExpression(Disp)) in parseAddress()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h964 CreationDisposition Disp, FileAccess Access,
981 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp,
1064 CreationDisposition Disp = CD_CreateAlways,
1066 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
1083 CreationDisposition Disp,
1086 return openNativeFile(Name, Disp, FA_Write, Flags, Mode);
1105 CreationDisposition Disp,
1108 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1125 CreationDisposition Disp,
1128 return openNativeFile(Name, Disp, FA_Write | FA_Read, Flags, Mode);
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DXCOFFDump.cpp278 SmallVector<uint32_t, 8> Disp = *TbTable.getControlledStorageInfoDisp(); in dumpTracebackTable() local
279 for (unsigned I = 0; I < Disp.size(); ++I) { in dumpTracebackTable()
283 << "] = " << Disp[I]; in dumpTracebackTable()
H A DCOFFDump.cpp388 uint64_t Offset, uint32_t Disp) { in printCOFFSymbolAddress() argument
392 if (Disp > 0) in printCOFFSymbolAddress()
393 Out << format(" + 0x%04x", Disp); in printCOFFSymbolAddress()
395 Out << format("0x%04x", Disp); in printCOFFSymbolAddress()
/freebsd-14.2/usr.sbin/ppp/
H A Dccp.h126 const char *(*Disp)(struct fsm_opt *); /* Use result immediately ! */ member

12