Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelDAGToDAG.cpp64 int64_t Disp; member
84 : AM(AT), BaseType(Base::RegBase), Disp(0), BaseFrameIndex(0), IndexReg(), in M68kISelAddressMode()
153 dbgs() << "\nDisp: " << Disp; in dump()
236 SDValue &Disp, SDValue &Base) { in getFrameIndexAddress() argument
238 Disp = getI32Imm(AM.Disp, DL); in getFrameIndexAddress()
251 Sym = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(), MVT::i32, AM.Disp, in getSymbolicDisplacement()
258 AM.Disp, AM.SymbolFlags); in getSymbolicDisplacement()
263 assert(!AM.Disp && "Non-zero displacement is ignored with ES."); in getSymbolicDisplacement()
269 assert(!AM.Disp && "Non-zero displacement is ignored with MCSym."); in getSymbolicDisplacement()
276 assert(!AM.Disp && "Non-zero displacement is ignored with JT."); in getSymbolicDisplacement()
[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/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp61 int64_t Disp; member
66 : Form(form), DR(dr), Disp(0), IncludesDynAlloc(false) {} in SystemZAddressingMode()
91 errs() << " Disp " << Disp; in dump()
159 SDValue &Base, SDValue &Disp) const;
161 SDValue &Base, SDValue &Disp, SDValue &Index) const;
167 SDValue &Base, SDValue &Disp) const;
173 SDValue &Base, SDValue &Disp) const;
180 SDValue &Base, SDValue &Disp, SDValue &Index) const;
192 bool selectBDAddr12Only(SDValue Addr, SDValue &Base, SDValue &Disp) const { in selectBDAddr12Only()
193 return selectBDAddr(SystemZAddressingMode::Disp12Only, Addr, Base, Disp); in selectBDAddr12Only()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp47 int16_t Disp = 0; member
70 errs() << " Disp " << Disp << '\n'; in dump()
118 bool SelectAddr(SDValue Addr, SDValue &Base, SDValue &Disp);
155 AM.Disp += G->getOffset(); in MatchWrapper()
160 AM.Disp += CP->getOffset(); in MatchWrapper()
197 AM.Disp += Val; in MatchAddress()
240 AM.Disp += Offset; in MatchAddress()
255 SDValue &Base, SDValue &Disp) { in SelectAddr() argument
272 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(N), in SelectAddr()
273 MVT::i16, 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/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 __anone2ec82570111::MemOpKey
136 assert(Val.Disp != PtrInfo::getEmptyKey() && "Cannot hash the empty key"); in getHashValue()
137 assert(Val.Disp != PtrInfo::getTombstoneKey() && in getHashValue()
147 switch (Val.Disp->getType()) { in getHashValue()
152 Hash = hash_combine(Hash, Val.Disp->getIndex()); in getHashValue()
155 Hash = hash_combine(Hash, Val.Disp->getSymbolName()); in getHashValue()
158 Hash = hash_combine(Hash, Val.Disp->getGlobal()); in getHashValue()
[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.cpp73 int32_t Disp = 0; member
129 dbgs() << " Disp " << Disp << '\n' in dump()
221 SDValue &Scale, SDValue &Index, SDValue &Disp,
225 SDValue &Index, SDValue &Disp, SDValue &Segment);
228 SDValue &Scale, SDValue &Index, SDValue &Disp,
231 SDValue &Scale, SDValue &Index, SDValue &Disp,
234 SDValue &Scale, SDValue &Index, SDValue &Disp,
240 SDValue &Index, SDValue &Disp,
246 SDValue &Index, SDValue &Disp, in tryFoldLoad() argument
248 return tryFoldLoad(P, P, N, Base, Scale, Index, Disp, Segment); in tryFoldLoad()
[all …]
H A DX86FixupLEAs.cpp557 const MachineOperand &Disp = MI.getOperand(1 + X86::AddrDisp); in optTwoAddrLEA()
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 in optTwoAddrLEA()
556 const MachineOperand &Disp = MI.getOperand(1 + X86::AddrDisp); optTwoAddrLEA() local
[all...]
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()
480 MIBHi.addImm(Disp + 2); in expandMI()
499 int64_t Disp = MBBI->getOperand(X86::AddrDisp).getImm(); in expandMI() local
500 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in expandMI()
514 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/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/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.cpp568 sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access, in getFD() argument
584 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); in getFD()
586 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); in getFD()
598 sys::fs::CreationDisposition Disp) in raw_fd_ostream() argument
599 : raw_fd_ostream(Filename, EC, Disp, sys::fs::FA_Write, sys::fs::OF_None) {} in raw_fd_ostream()
612 sys::fs::CreationDisposition Disp, in raw_fd_ostream() argument
615 : raw_fd_ostream(getFD(Filename, EC, Disp, Access, Flags), true) {} in raw_fd_ostream()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp39 bool SelectAddr(SDNode *Op, SDValue N, SDValue &Base, SDValue &Disp);
81 SDValue &Disp) { in SelectAddr() argument
89 Disp = CurDAG->getTargetConstant(0, dl, MVT::i8); in SelectAddr()
116 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr()
133 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
237 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local
239 if (SelectAddr(Op.getNode(), Op, Base, Disp)) { in SelectInlineAsmMemoryOperand()
241 OutOps.push_back(Disp); in SelectInlineAsmMemoryOperand()
272 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local
291 Disp = CurDAG->getTargetConstant(ImmNode->getZExtValue(), dl, MVT::i8); in SelectInlineAsmMemoryOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineInstrBuilder.h291 const MachineInstrBuilder &addDisp(const MachineOperand &Disp, int64_t off,
298 TargetFlags = Disp.getTargetFlags();
300 switch (Disp.getType()) {
304 return addImm(Disp.getImm() + off);
306 return addConstantPoolIndex(Disp.getIndex(), Disp.getOffset() + off,
309 return addGlobalAddress(Disp.getGlobal(), Disp.getOffset() + off,
312 return addBlockAddress(Disp.getBlockAddress(), Disp.getOffset() + off,
316 return addJumpTableIndex(Disp.getIndex(), TargetFlags);
/freebsd/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/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCCodeEmitter.cpp358 void emitImmediate(const MCOperand &Disp, SMLoc Loc, unsigned ImmSize,
612 const MCOperand &Disp = MI.getOperand(Op + X86::AddrDisp); in emitMemModRMByte() local
631 if (!(Disp.isExpr() && isa<MCSymbolRefExpr>(Disp.getExpr()))) in emitMemModRMByte()
683 int ImmSize = !Disp.isImm() && X86II::hasImm(TSFlags) in emitMemModRMByte()
687 emitImmediate(Disp, MI.getLoc(), 4, MCFixupKind(FixupKind), StartByte, CB, in emitMemModRMByte()
734 if (Disp.isImm() && isInt<8>(Disp.getImm())) { in emitMemModRMByte()
735 if (Disp.getImm() == 0 && RMfield != 6) { in emitMemModRMByte()
742 emitImmediate(Disp, MI.getLoc(), 1, FK_Data_1, StartByte, CB, Fixups); in emitMemModRMByte()
754 emitImmediate(Disp, MI.getLoc(), 2, FK_Data_2, StartByte, CB, Fixups); in emitMemModRMByte()
772 emitImmediate(Disp, MI.getLoc(), 4, FK_Data_4, StartByte, CB, Fixups); in emitMemModRMByte()
[all …]
/freebsd/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.cpp1148 bool ParseMemOperand(unsigned SegReg, const MCExpr *Disp, SMLoc StartLoc,
1154 bool CreateMemForMSInlineAsm(unsigned SegReg, const MCExpr *Disp,
1612 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemSIOperand() local
1613 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp, in DefaultMemSIOperand()
1621 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemDIOperand() local
1622 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp, in DefaultMemDIOperand()
1756 bool X86AsmParser::CreateMemForMSInlineAsm(unsigned SegReg, const MCExpr *Disp, in CreateMemForMSInlineAsm() argument
1768 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start, in CreateMemForMSInlineAsm()
1789 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start, in CreateMemForMSInlineAsm()
1798 getPointerWidth(), SegReg, Disp, BaseReg, IndexReg, Scale, Start, End, in CreateMemForMSInlineAsm()
[all …]
/freebsd/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()
272 return isMem(MemKind, RegKind) && inRange(Mem.Disp, 0, 0xfff, true); in isMemDisp12()
275 return isMem(MemKind, RegKind) && inRange(Mem.Disp, -524288, 524287, true); in isMemDisp20()
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()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h963 CreationDisposition Disp, FileAccess Access,
980 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp,
1063 CreationDisposition Disp = CD_CreateAlways,
1065 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
1082 CreationDisposition Disp,
1085 return openNativeFile(Name, Disp, FA_Write, Flags, Mode);
1104 CreationDisposition Disp,
1107 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1124 CreationDisposition Disp,
1127 return openNativeFile(Name, Disp, FA_Write | FA_Read, Flags, Mode);
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DXCOFFDump.cpp278 SmallVector<uint32_t, 8> Disp = *TbTable.getControlledStorageInfoDisp(); in dumpTracebackTable()
279 for (unsigned I = 0; I < Disp.size(); ++I) { in dumpTracebackTable() local
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/usr.sbin/ppp/
H A Dccp.h126 const char *(*Disp)(struct fsm_opt *); /* Use result immediately ! */ member

12