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/MSP430/
H A DMSP430ISelDAGToDAG.cpp43 int16_t Disp = 0; member
66 errs() << " Disp " << Disp << '\n'; in dump()
114 bool SelectAddr(SDValue Addr, SDValue &Base, SDValue &Disp);
151 AM.Disp += G->getOffset(); in MatchWrapper()
156 AM.Disp += CP->getOffset(); in MatchWrapper()
193 AM.Disp += Val; in MatchAddress()
236 AM.Disp += Offset; in MatchAddress()
251 SDValue &Base, SDValue &Disp) { in SelectAddr() argument
268 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(N), in SelectAddr()
269 MVT::i16, AM.Disp, in SelectAddr()
[all …]
H A DMSP430AsmPrinter.cpp107 const MachineOperand &Disp = MI->getOperand(OpNum+1); in printSrcMemOperand() local
112 if (Disp.isImm() && Base.getReg() == MSP430::SR) in printSrcMemOperand()
/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/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.h54 int Disp = 0; member
75 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); in getFullAddress()
77 MO.push_back(MachineOperand::CreateImm(Disp)); in getFullAddress()
108 AM.Disp = Op3.getImm(); in getAddressFromInstr()
182 MIB.addGlobalAddress(AM.GV, AM.Disp, AM.GVOpFlags); in addFullAddress()
184 MIB.addImm(AM.Disp); in addFullAddress()
H A DX86ISelDAGToDAG.cpp72 int32_t Disp = 0; member
128 dbgs() << " Disp " << Disp << '\n' in dump()
218 SDValue &Scale, SDValue &Index, SDValue &Disp,
222 SDValue &Index, SDValue &Disp, SDValue &Segment);
225 SDValue &Scale, SDValue &Index, SDValue &Disp,
228 SDValue &Index, SDValue &Disp, SDValue &Segment);
230 SDValue &Scale, SDValue &Index, SDValue &Disp,
236 SDValue &Index, SDValue &Disp,
242 SDValue &Index, SDValue &Disp, in tryFoldLoad() argument
244 return tryFoldLoad(P, P, N, Base, Scale, Index, Disp, Segment); in tryFoldLoad()
[all …]
H A DX86FixupLEAs.cpp556 const MachineOperand &Disp = MI.getOperand(1 + X86::AddrDisp); in optTwoAddrLEA() local
559 if (Segment.getReg().isValid() || !Disp.isImm() || Scale.getImm() > 1 || in optTwoAddrLEA()
585 if (BaseReg.isValid() && IndexReg.isValid() && Disp.getImm() == 0 && in optTwoAddrLEA()
609 if (OptIncDec && (Disp.getImm() == 1 || Disp.getImm() == -1)) { in optTwoAddrLEA()
610 bool IsINC = Disp.getImm() == 1; in optTwoAddrLEA()
622 unsigned NewOpcode = getADDriFromLEA(MI.getOpcode(), Disp); in optTwoAddrLEA()
626 .addReg(BaseReg).addImm(Disp.getImm()) in optTwoAddrLEA()
630 .addReg(BaseReg).addImm(Disp.getImm()); in optTwoAddrLEA()
633 } else if (BaseReg.isValid() && IndexReg.isValid() && Disp.getImm() == 0) { in optTwoAddrLEA()
H A DX86ExpandPseudo.cpp475 int64_t Disp = MBBI->getOperand(1 + X86::AddrDisp).getImm(); in expandMI() local
476 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in expandMI()
492 MIBHi.addImm(Disp + 2); in expandMI()
511 int64_t Disp = MBBI->getOperand(X86::AddrDisp).getImm(); in expandMI() local
512 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in expandMI()
526 MIBHi.addImm(Disp + 2); in expandMI()
653 int64_t Disp = MBBI->getOperand(1 + X86::AddrDisp).getImm(); in expandMI() local
670 MIBHi.addImm(Disp + TmmSize); in expandMI()
700 int64_t Disp = MBBI->getOperand(X86::AddrDisp).getImm(); in expandMI() local
715 MIBHi.addImm(Disp + TmmSize); in expandMI()
H A DX86AvoidStoreForwardingBlocks.cpp314 const MachineOperand &Disp = getDispOperand(MI); in isRelevantAddressingMode() local
321 if (!Disp.isImm()) in isRelevantAddressingMode()
654 for (auto Disp : DispSizeStack) in removeRedundantBlockingStores() local
655 BlockingStoresDispSizeMap.insert(Disp); in removeRedundantBlockingStores()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430InstPrinter.cpp72 const MCOperand &Disp = MI->getOperand(OpNo+1); in printSrcMemOperand() local
85 if (Disp.isExpr()) in printSrcMemOperand()
86 MAI.printExpr(O, *Disp.getExpr()); in printSrcMemOperand()
88 assert(Disp.isImm() && "Expected immediate in displacement field"); in printSrcMemOperand()
89 O << Disp.getImm(); in printSrcMemOperand()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DMSP430AttributeParser.cpp46 for (const DisplayHandler &Disp : DisplayRoutines) { in handler() local
47 if (uint64_t(Disp.Attribute) != Tag) in handler()
49 if (Error E = (this->*Disp.Routine)(static_cast<AttrType>(Tag))) in handler()
H A Draw_ostream.cpp566 sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access, in getFD() argument
582 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); in getFD()
584 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); in getFD()
596 sys::fs::CreationDisposition Disp) in raw_fd_ostream() argument
597 : raw_fd_ostream(Filename, EC, Disp, sys::fs::FA_Write, sys::fs::OF_None) {} in raw_fd_ostream()
610 sys::fs::CreationDisposition Disp, in raw_fd_ostream() argument
613 : 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.cpp302 const int64_t Disp = SignExtend64<7>((Imm & 0x3F) + 64) * 8; in decodeDispRIHashOperand() local
304 Inst.addOperand(MCOperand::createImm(Disp)); in decodeDispRIHashOperand()
321 uint64_t Disp = Imm & 0x1F; in decodeDispSPE8Operand() local
323 Inst.addOperand(MCOperand::createImm(Disp << 3)); in decodeDispSPE8Operand()
332 uint64_t Disp = Imm & 0x1F; in decodeDispSPE4Operand() local
334 Inst.addOperand(MCOperand::createImm(Disp << 2)); in decodeDispSPE4Operand()
343 uint64_t Disp = Imm & 0x1F; in decodeDispSPE2Operand() local
344 Inst.addOperand(MCOperand::createImm(Disp << 1)); in decodeDispSPE2Operand()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCCodeEmitter.cpp361 void emitImmediate(const MCOperand &Disp, SMLoc Loc, unsigned FixupKind,
620 const MCOperand &Disp = MI.getOperand(Op + X86::AddrDisp); in emitMemModRMByte() local
638 if (!(Disp.isExpr() && isa<MCSymbolRefExpr>(Disp.getExpr()))) in emitMemModRMByte()
694 int ImmSize = !Disp.isImm() && X86II::hasImm(TSFlags) in emitMemModRMByte()
698 emitImmediate(Disp, MI.getLoc(), FixupKind, true, StartByte, CB, Fixups, in emitMemModRMByte()
745 if (Disp.isImm() && isInt<8>(Disp.getImm())) { in emitMemModRMByte()
746 if (Disp.getImm() == 0 && RMfield != 6) { in emitMemModRMByte()
753 emitImmediate(Disp, MI.getLoc(), FK_Data_1, false, StartByte, CB, in emitMemModRMByte()
766 emitImmediate(Disp, MI.getLoc(), FK_Data_2, false, StartByte, CB, Fixups); in emitMemModRMByte()
784 emitImmediate(Disp, MI.getLoc(), FK_Data_4, false, StartByte, CB, Fixups); in emitMemModRMByte()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h64 const MCExpr *Disp; member
151 if (Mem.Disp) in print()
152 PrintImmValue(Mem.Disp, ",Disp="); in print()
186 return Mem.Disp; in getMemDisp()
745 CreateMem(unsigned ModeSize, const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc,
751 Res->Mem.Disp = Disp;
769 CreateMem(unsigned ModeSize, MCRegister SegReg, const MCExpr *Disp,
786 Res->Mem.Disp = Disp;
H A DX86AsmParser.cpp1170 bool ParseMemOperand(MCRegister SegReg, const MCExpr *Disp, SMLoc StartLoc,
1176 bool CreateMemForMSInlineAsm(MCRegister SegReg, const MCExpr *Disp,
1635 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemSIOperand() local
1636 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp, in DefaultMemSIOperand()
1645 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemDIOperand() local
1646 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp, in DefaultMemDIOperand()
1780 MCRegister SegReg, const MCExpr *Disp, MCRegister BaseReg, in CreateMemForMSInlineAsm() argument
1789 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start, in CreateMemForMSInlineAsm()
1810 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start, in CreateMemForMSInlineAsm()
1819 getPointerWidth(), SegReg, Disp, BaseReg, IndexReg, Scale, Start, End, in CreateMemForMSInlineAsm()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp129 const MCExpr *Disp; member
195 const MCExpr *Disp, unsigned Index, const MCExpr *LengthImm, in createMem() argument
202 Op->Mem.Disp = Disp; in createMem()
277 return isMem(MemKind, RegKind) && inRange(Mem.Disp, 0, 0xfff, true); in isMemDisp12()
280 return isMem(MemKind, RegKind) && inRange(Mem.Disp, -524288, 524287, true); in isMemDisp20()
317 addExpr(Inst, Mem.Disp); in addBDAddrOperands()
323 addExpr(Inst, Mem.Disp); in addBDXAddrOperands()
330 addExpr(Inst, Mem.Disp); in addBDLAddrOperands()
337 addExpr(Inst, Mem.Disp); in addBDRAddrOperands()
344 addExpr(Inst, Mem.Disp); in addBDVAddrOperands()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h970 CreationDisposition Disp, FileAccess Access,
988 CreationDisposition Disp,
1073 CreationDisposition Disp = CD_CreateAlways,
1075 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
1092 CreationDisposition Disp,
1095 return openNativeFile(Name, Disp, FA_Write, Flags, Mode);
1114 CreationDisposition Disp,
1117 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1134 CreationDisposition Disp,
1137 return openNativeFile(Name, Disp, FA_Write | FA_Read, Flags, Mode);
/freebsd/usr.sbin/ppp/
H A Dccp.h126 const char *(*Disp)(struct fsm_opt *); /* Use result immediately ! */ member
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp406 uint64_t Offset, uint32_t Disp) { in printCOFFSymbolAddress() argument
410 if (Disp > 0) in printCOFFSymbolAddress()
411 Out << format(" + 0x%04x", Disp); in printCOFFSymbolAddress()
413 Out << format("0x%04x", Disp); in printCOFFSymbolAddress()
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc973 static int nativeOpenFlags(CreationDisposition Disp, OpenFlags Flags,
986 Disp = CD_OpenAlways;
988 if (Disp == CD_CreateNew) {
991 } else if (Disp == CD_CreateAlways) {
994 } else if (Disp == CD_OpenAlways) {
996 } else if (Disp == CD_OpenExisting) {
1017 CreationDisposition Disp, FileAccess Access,
1019 int OpenFlags = nativeOpenFlags(Disp, Flags, Access);
1096 bool DoSetTag = (Access & FA_Write) && (Disp != CD_OpenExisting) &&
1120 Expected<int> openNativeFile(const Twine &Name, CreationDisposition Disp,
[all …]

12