Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCCodeEmitter.cpp188 assert(isUInt<4>(Base) && isUInt<12>(Disp)); in getBDAddr12Encoding()
189 return (Base << 12) | Disp; in getBDAddr12Encoding()
198 assert(isUInt<4>(Base) && isInt<20>(Disp)); in getBDAddr20Encoding()
199 return (Base << 20) | ((Disp & 0xfff) << 8) | ((Disp & 0xff000) >> 12); in getBDAddr20Encoding()
210 return (Index << 16) | (Base << 12) | Disp; in getBDXAddr12Encoding()
221 return (Index << 24) | (Base << 20) | ((Disp & 0xfff) << 8) in getBDXAddr20Encoding()
222 | ((Disp & 0xff000) >> 12); in getBDXAddr20Encoding()
233 return (Len << 16) | (Base << 12) | Disp; in getBDLAddr12Len4Encoding()
244 return (Len << 16) | (Base << 12) | Disp; in getBDLAddr12Len8Encoding()
255 return (Len << 16) | (Base << 12) | Disp; in getBDRAddr12Encoding()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp60 int64_t Disp; member
91 errs() << " Disp " << Disp; in dump()
434 AM.Disp = TestDisp; in expandDisp()
517 if (Disp) { in shouldUseLA()
524 if (isUInt<12>(Disp)) in shouldUseLA()
529 if (!isInt<16>(Disp)) in shouldUseLA()
637 Disp = CurDAG->getTargetConstant(AM.Disp, SDLoc(Base), VT); in getAddressOperands()
1153 SDValue Base, Disp, Index; in tryGather() local
1187 SDValue Base, Disp, Index; in tryScatter() local
1347 SDValue Base, Disp; in tryFoldLoadStoreIntoMemOperand() local
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp48 int16_t Disp; member
57 : BaseType(RegBase), Disp(0), GV(nullptr), CP(nullptr), in MSP430ISelAddressMode()
74 errs() << " Disp " << Disp << '\n'; in dump()
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, in SelectAddr()
[all …]
H A DMSP430AsmPrinter.cpp112 const MachineOperand &Disp = MI->getOperand(OpNum+1); in printSrcMemOperand() local
117 if (Disp.isImm() && !Base.getReg()) in printSrcMemOperand()
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp83 const MachineOperand *Disp) in MemOpKey() argument
84 : Disp(Disp) { in MemOpKey()
101 return isSimilarDispOp(*Disp, *Other.Disp); in operator ==()
108 const MachineOperand *Disp; member in __anon7703febc0111::MemOpKey
135 assert(Val.Disp != PtrInfo::getTombstoneKey() && in getHashValue()
145 switch (Val.Disp->getType()) { in getHashValue()
165 Hash = hash_combine(Hash, Val.Disp->getMBB()); in getHashValue()
177 if (RHS.Disp == PtrInfo::getEmptyKey()) in isEqual()
178 return LHS.Disp == PtrInfo::getEmptyKey(); in isEqual()
179 if (RHS.Disp == PtrInfo::getTombstoneKey()) in isEqual()
[all …]
H A DX86InstrBuilder.h56 int Disp; member
61 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode()
82 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); in getFullAddress()
84 MO.push_back(MachineOperand::CreateImm(Disp)); in getFullAddress()
115 AM.Disp = Op3.getImm(); in getAddressFromInstr()
186 MIB.addGlobalAddress(AM.GV, AM.Disp, AM.GVOpFlags); in addFullAddress()
188 MIB.addImm(AM.Disp); in addFullAddress()
H A DX86ISelDAGToDAG.cpp67 int32_t Disp; member
123 dbgs() << " Disp " << Disp << '\n' in dump()
236 SDValue &Index, SDValue &Disp,
285 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp, in getAddressOperands()
288 Disp = CurDAG->getTargetConstant(AM.Disp, DL, MVT::i32); in getAddressOperands()
1087 int64_t Val = AM.Disp + Offset; in foldOffsetIntoAddress()
1099 AM.Disp = Val; in foldOffsetIntoAddress()
1631 if (!foldOffsetIntoAddress(Disp, AM)) in matchAddressRecursively()
1755 ((AM.Disp != 0) && (Backup.Disp == 0)) + in matchAddressRecursively()
2190 AM.Disp += GA->getOffset(); in selectTLSADDRAddr()
[all …]
H A DX86AvoidStoreForwardingBlocks.cpp315 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-12.1/contrib/llvm/lib/Target/PowerPC/Disassembler/
H A DPPCDisassembler.cpp213 uint64_t Disp = Imm & 0xFFFF; in decodeMemRIOperands() local
237 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp))); in decodeMemRIOperands()
248 uint64_t Disp = Imm & 0x3FFF; in decodeMemRIXOperands() local
258 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp << 2))); in decodeMemRIXOperands()
269 uint64_t Disp = Imm & 0xFFF; in decodeMemRIX16Operands() local
284 uint64_t Disp = Imm & 0x1F; in decodeSPE8Operands() local
288 Inst.addOperand(MCOperand::createImm(Disp << 3)); in decodeSPE8Operands()
299 uint64_t Disp = Imm & 0x1F; in decodeSPE4Operands() local
303 Inst.addOperand(MCOperand::createImm(Disp << 2)); in decodeSPE4Operands()
314 uint64_t Disp = Imm & 0x1F; in decodeSPE2Operands() local
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/Disassembler/
H A DSystemZDisassembler.cpp295 uint64_t Disp = Field & 0xfff; in decodeBDAddr12Operand() local
298 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDAddr12Operand()
316 uint64_t Disp = Field & 0xfff; in decodeBDXAddr12Operand() local
319 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDXAddr12Operand()
340 uint64_t Disp = Field & 0xfff; in decodeBDLAddr12Len4Operand() local
343 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDLAddr12Len4Operand()
352 uint64_t Disp = Field & 0xfff; in decodeBDLAddr12Len8Operand() local
355 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDLAddr12Len8Operand()
364 uint64_t Disp = Field & 0xfff; in decodeBDRAddr12Operand() local
367 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDRAddr12Operand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/AsmParser/
H A DX86AsmInstrumentation.cpp323 const MCExpr *Disp = MCConstantExpr::create(0, Ctx); in InstrumentMOVSBase() local
332 const MCExpr *Disp = MCConstantExpr::create(-1, Ctx); in InstrumentMOVSBase() local
342 const MCExpr *Disp = MCConstantExpr::create(0, Ctx); in InstrumentMOVSBase() local
350 const MCExpr *Disp = MCConstantExpr::create(-1, Ctx); in InstrumentMOVSBase() local
468 const MCConstantExpr *Disp = in ComputeMemOperandAddress() local
474 Residue -= Disp->getValue(); in ComputeMemOperandAddress()
501 const MCExpr *Disp = MCConstantExpr::create(NewDisplacement, Ctx); in AddDisplacement() local
652 const MCExpr *Disp = MCConstantExpr::create(kShadowOffset, Ctx); in InstrumentMemOperandSmall() local
678 const MCExpr *Disp = MCConstantExpr::create(1, Ctx); in InstrumentMemOperandSmall() local
869 const MCExpr *Disp = MCConstantExpr::create(Offset, Ctx); in EmitAdjustRSP() local
[all …]
H A DX86Operand.h60 const MCExpr *Disp; member
141 if (Mem.Disp) in print()
142 PrintImmValue(Mem.Disp, ",Disp="); in print()
176 return Mem.Disp; in getMemDisp()
567 CreateMem(unsigned ModeSize, const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc,
572 Res->Mem.Disp = Disp;
587 CreateMem(unsigned ModeSize, unsigned SegReg, const MCExpr *Disp,
600 Res->Mem.Disp = Disp;
H A DX86AsmParser.cpp1203 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemSIOperand() local
1879 const MCExpr *Disp = SM.getSym(); in ParseIntelOperand() local
1881 if (Disp && Imm) in ParseIntelOperand()
1882 Disp = MCBinaryExpr::createAdd(Disp, ImmDisp, getContext()); in ParseIntelOperand()
1883 if (!Disp) in ParseIntelOperand()
1884 Disp = ImmDisp; in ParseIntelOperand()
1889 return X86Operand::CreateImm(Disp, Start, End); in ParseIntelOperand()
1936 return X86Operand::CreateMem(getPointerWidth(), RegNo, Disp, in ParseIntelOperand()
2169 if (!Disp) { in ParseMemOperand()
2177 Disp = MCConstantExpr::create(0, Parser.getContext()); in ParseMemOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/InstPrinter/
H A DMSP430InstPrinter.cpp71 const MCOperand &Disp = MI->getOperand(OpNo+1); in printSrcMemOperand() local
84 if (Disp.isExpr()) in printSrcMemOperand()
85 Disp.getExpr()->print(O, &MAI); in printSrcMemOperand()
87 assert(Disp.isImm() && "Expected immediate in displacement field"); in printSrcMemOperand()
88 O << Disp.getImm(); in printSrcMemOperand()
/freebsd-12.1/contrib/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCCodeEmitter.cpp73 Disp.isImm() && Disp.getImm() < 0x10000) in Is16BitMemOperand()
480 if (Disp.isImm() && isDisp8(Disp.getImm())) { in emitMemModRMByte()
481 if (Disp.getImm() == 0 && RMfield != 6) { in emitMemModRMByte()
528 if (Disp.isImm() && Disp.getImm() == 0 && BaseRegNo != N86::EBP) { in emitMemModRMByte()
534 if (Disp.isImm()) { in emitMemModRMByte()
535 if (!HasEVEX && isDisp8(Disp.getImm())) { in emitMemModRMByte()
546 CDisp8 - Disp.getImm()); in emitMemModRMByte()
574 } else if (!Disp.isImm()) { in emitMemModRMByte()
578 } else if (Disp.getImm() == 0 && in emitMemModRMByte()
592 ImmOffset = CDisp8 - Disp.getImm(); in emitMemModRMByte()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp39 bool SelectAddr(SDNode *Op, SDValue N, SDValue &Base, SDValue &Disp);
66 SDValue &Disp) { in SelectAddr() argument
74 Disp = CurDAG->getTargetConstant(0, dl, MVT::i8); in SelectAddr()
101 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr()
113 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()
264 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local
285 Disp = ImmOp; in SelectInlineAsmMemoryOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/InstPrinter/
H A DSystemZInstPrinter.cpp27 void SystemZInstPrinter::printAddress(unsigned Base, int64_t Disp, in printAddress() argument
29 O << Disp; in printAddress()
199 uint64_t Disp = MI->getOperand(OpNum + 1).getImm(); in printBDLAddrOperand() local
201 O << Disp << '(' << Length; in printBDLAddrOperand()
210 uint64_t Disp = MI->getOperand(OpNum + 1).getImm(); in printBDRAddrOperand() local
212 O << Disp << "(%" << getRegisterName(Length); in printBDRAddrOperand()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DMachineInstrBuilder.h266 const MachineInstrBuilder &addDisp(const MachineOperand &Disp, int64_t off,
273 TargetFlags = Disp.getTargetFlags();
275 switch (Disp.getType()) {
279 return addImm(Disp.getImm() + off);
281 return addConstantPoolIndex(Disp.getIndex(), Disp.getOffset() + off,
284 return addGlobalAddress(Disp.getGlobal(), Disp.getOffset() + off,
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp119 const MCExpr *Disp; member
192 Op->Mem.Disp = Disp; in createMem()
307 addExpr(Inst, Mem.Disp); in addBDAddrOperands()
313 addExpr(Inst, Mem.Disp); in addBDXAddrOperands()
320 addExpr(Inst, Mem.Disp); in addBDLAddrOperands()
327 addExpr(Inst, Mem.Disp); in addBDRAddrOperands()
334 addExpr(Inst, Mem.Disp); in addBDVAddrOperands()
675 OS << "Mem:" << *cast<MCConstantExpr>(Op.Disp); in print()
838 const MCExpr *&Disp, in parseAddress() argument
841 if (getParser().parseExpression(Disp)) in parseAddress()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DFileSystem.h914 CreationDisposition Disp, FileAccess Access,
931 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp,
952 CreationDisposition Disp = CD_CreateAlways,
954 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
971 CreationDisposition Disp,
974 return openNativeFile(Name, Disp, FA_Write, Flags, Mode);
993 CreationDisposition Disp,
996 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1013 CreationDisposition Disp,
1016 return openNativeFile(Name, Disp, FA_Write | FA_Read, Flags, Mode);
H A Draw_ostream.h410 sys::fs::CreationDisposition Disp);
416 sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access,
/freebsd-12.1/contrib/llvm/lib/Support/
H A Draw_ostream.cpp502 sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access, in getFD() argument
520 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); in getFD()
522 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); in getFD()
534 sys::fs::CreationDisposition Disp) in raw_fd_ostream() argument
535 : raw_fd_ostream(Filename, EC, Disp, sys::fs::FA_Write, sys::fs::OF_None) {} in raw_fd_ostream()
548 sys::fs::CreationDisposition Disp, in raw_fd_ostream() argument
551 : raw_fd_ostream(getFD(Filename, EC, Disp, Access, Flags), true) {} in raw_fd_ostream()
/freebsd-12.1/contrib/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp224 uint64_t Offset, uint32_t Disp) { in printCOFFSymbolAddress() argument
228 if (Disp > 0) in printCOFFSymbolAddress()
229 Out << format(" + 0x%04x", Disp); in printCOFFSymbolAddress()
231 Out << format("0x%04x", Disp); in printCOFFSymbolAddress()
/freebsd-12.1/contrib/llvm/lib/Support/Unix/
H A DPath.inc795 static int nativeOpenFlags(CreationDisposition Disp, OpenFlags Flags,
808 Disp = CD_OpenAlways;
810 if (Disp == CD_CreateNew) {
813 } else if (Disp == CD_CreateAlways) {
816 } else if (Disp == CD_OpenAlways) {
818 } else if (Disp == CD_OpenExisting) {
834 CreationDisposition Disp, FileAccess Access,
836 int OpenFlags = nativeOpenFlags(Disp, Flags, Access);
855 Expected<int> openNativeFile(const Twine &Name, CreationDisposition Disp,
860 std::error_code EC = openFile(Name, FD, Disp, Access, Flags, Mode);
/freebsd-12.1/usr.sbin/ppp/
H A Dccp.h128 const char *(*Disp)(struct fsm_opt *); /* Use result immediately ! */ member

12