| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| H A D | SystemZMCCodeEmitter.cpp | 188 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 …]
|
| H A D | SystemZInstPrinter.cpp | 27 int64_t Disp, unsigned Index, in printAddress() argument 29 O << Disp; in printAddress() 211 uint64_t Disp = MI->getOperand(OpNum + 1).getImm(); in printBDLAddrOperand() local 213 O << Disp << '(' << Length; in printBDLAddrOperand() 224 uint64_t Disp = MI->getOperand(OpNum + 1).getImm(); in printBDRAddrOperand() local 226 O << Disp << "("; in printBDRAddrOperand()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kISelDAGToDAG.cpp | 63 int64_t Disp; member 152 dbgs() << "\nDisp: " << Disp; in dump() 234 Disp = getI32Imm(AM.Disp, DL); in getFrameIndexAddress() 356 AM.Disp = Val; in foldOffsetIntoAddress() 585 AM.Disp += G->getOffset(); in matchWrapper() 688 if (AM.Disp == 0) { in SelectARID() 694 Disp = getI16Imm(AM.Disp, SDLoc(N)); in SelectARID() 760 Disp = getI8Imm(AM.Disp, SDLoc(N)); in SelectARII() 795 if (AM.Disp) { in SelectAL() 828 Disp = getI16Imm(AM.Disp, SDLoc(N)); in SelectPCD() [all …]
|
| H A D | M68kRegisterInfo.cpp | 173 MachineOperand &Disp = MI.getOperand(FIOperandNum - 1); in eliminateFrameIndex() local 176 int Imm = (int)(Disp.getImm()); in eliminateFrameIndex() 209 Disp.ChangeToImmediate(FIOffset + Imm); in eliminateFrameIndex()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelDAGToDAG.cpp | 60 int64_t Disp; member 91 errs() << " Disp " << Disp; in dump() 449 AM.Disp = TestDisp; in expandDisp() 532 if (Disp) { in shouldUseLA() 539 if (isUInt<12>(Disp)) in shouldUseLA() 544 if (!isInt<16>(Disp)) in shouldUseLA() 652 Disp = CurDAG->getTargetConstant(AM.Disp, SDLoc(Base), VT); in getAddressOperands() 1197 SDValue Base, Disp, Index; in tryGather() local 1231 SDValue Base, Disp, Index; in tryScatter() local 1392 SDValue Base, Disp; in tryFoldLoadStoreIntoMemOperand() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/MSP430/ |
| H A D | MSP430ISelDAGToDAG.cpp | 47 int16_t Disp = 0; member 70 errs() << " Disp " << Disp << '\n'; in dump() 119 bool SelectAddr(SDValue Addr, SDValue &Base, SDValue &Disp); 145 AM.Disp += G->getOffset(); in MatchWrapper() 150 AM.Disp += CP->getOffset(); in MatchWrapper() 187 AM.Disp += Val; in MatchAddress() 230 AM.Disp += Offset; in MatchAddress() 262 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(N), in SelectAddr() 263 MVT::i16, AM.Disp, in SelectAddr() 266 Disp = CurDAG->getTargetConstantPool(AM.CP, MVT::i16, AM.Alignment, AM.Disp, in SelectAddr() [all …]
|
| H A D | MSP430AsmPrinter.cpp | 110 const MachineOperand &Disp = MI->getOperand(OpNum+1); in printSrcMemOperand() local 115 if (Disp.isImm() && Base.getReg() == MSP430::SR) in printSrcMemOperand()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/Disassembler/ |
| H A D | PPCDisassembler.cpp | 238 uint64_t Disp = Imm & 0xFFFF; in decodeMemRIOperands() local 273 uint64_t Disp = Imm & 0x3FFF; in decodeMemRIXOperands() local 300 Inst.addOperand(MCOperand::createImm(Disp)); in decodeMemRIHashOperands() 311 uint64_t Disp = Imm & 0xFFF; in decodeMemRIX16Operands() local 326 uint64_t Disp = Imm & 0x3FFFFFFFFUL; in decodeMemRI34PCRelOperands() local 340 uint64_t Disp = Imm & 0x3FFFFFFFFUL; in decodeMemRI34Operands() local 355 uint64_t Disp = Imm & 0x1F; in decodeSPE8Operands() local 359 Inst.addOperand(MCOperand::createImm(Disp << 3)); in decodeSPE8Operands() 370 uint64_t Disp = Imm & 0x1F; in decodeSPE4Operands() local 374 Inst.addOperand(MCOperand::createImm(Disp << 2)); in decodeSPE4Operands() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86OptimizeLEAs.cpp | 85 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 __anonc8cbbd0b0111::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 D | X86InstrBuilder.h | 55 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 D | X86ISelDAGToDAG.cpp | 70 int32_t Disp; member 129 dbgs() << " Disp " << Disp << '\n' in dump() 312 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp, in getAddressOperands() 315 Disp = CurDAG->getTargetConstant(AM.Disp, DL, MVT::i32); in getAddressOperands() 1595 int64_t Val = AM.Disp + Offset; in foldOffsetIntoAddress() 1613 AM.Disp = Val; in foldOffsetIntoAddress() 2327 ((AM.Disp != 0) && (Backup.Disp == 0)) + in matchAddressRecursively() 2699 if (AM.Disp) in selectLEAAddr() 2719 AM.Disp += GA->getOffset(); in selectTLSADDRAddr() 4640 Disp, in Select() [all …]
|
| H A D | X86FixupLEAs.cpp | 567 const MachineOperand &Disp = MI.getOperand(1 + X86::AddrDisp); in optTwoAddrLEA() local 570 if (Segment.getReg() != 0 || !Disp.isImm() || Scale.getImm() > 1 || in optTwoAddrLEA() 596 if (BaseReg != 0 && IndexReg != 0 && Disp.getImm() == 0 && in optTwoAddrLEA() 620 if (OptIncDec && (Disp.getImm() == 1 || Disp.getImm() == -1)) { in optTwoAddrLEA() 621 bool IsINC = Disp.getImm() == 1; in optTwoAddrLEA() 633 unsigned NewOpcode = getADDriFromLEA(MI.getOpcode(), Disp); in optTwoAddrLEA() 637 .addReg(BaseReg).addImm(Disp.getImm()) in optTwoAddrLEA() 641 .addReg(BaseReg).addImm(Disp.getImm()); in optTwoAddrLEA() 644 } else if (BaseReg != 0 && IndexReg != 0 && Disp.getImm() == 0) { in optTwoAddrLEA()
|
| H A D | X86ExpandPseudo.cpp | 463 int64_t Disp = MBBI->getOperand(1 + X86::AddrDisp).getImm(); in ExpandMI() local 464 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in ExpandMI() 478 MIBHi.addImm(Disp + 2); in ExpandMI() 497 int64_t Disp = MBBI->getOperand(X86::AddrDisp).getImm(); in ExpandMI() local 498 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in ExpandMI() 510 MIBHi.addImm(Disp + 2); in ExpandMI()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/Disassembler/ |
| H A D | SystemZDisassembler.cpp | 294 uint64_t Disp = Field & 0xfff; in decodeBDAddr12Operand() local 297 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDAddr12Operand() 315 uint64_t Disp = Field & 0xfff; in decodeBDXAddr12Operand() local 318 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDXAddr12Operand() 339 uint64_t Disp = Field & 0xfff; in decodeBDLAddr12Len4Operand() local 342 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDLAddr12Len4Operand() 351 uint64_t Disp = Field & 0xfff; in decodeBDLAddr12Len8Operand() local 354 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDLAddr12Len8Operand() 363 uint64_t Disp = Field & 0xfff; in decodeBDRAddr12Operand() local 366 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDRAddr12Operand() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/ |
| H A D | MSP430InstPrinter.cpp | 71 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-13.1/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRISelDAGToDAG.cpp | 38 bool SelectAddr(SDNode *Op, SDValue N, SDValue &Base, SDValue &Disp); 65 SDValue &Disp) { in SelectAddr() argument 73 Disp = CurDAG->getTargetConstant(0, dl, MVT::i8); in SelectAddr() 100 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr() 112 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr() 225 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local 227 if (SelectAddr(Op.getNode(), Op, Base, Disp)) { in SelectInlineAsmMemoryOperand() 229 OutOps.push_back(Disp); in SelectInlineAsmMemoryOperand() 260 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local 281 Disp = ImmOp; in SelectInlineAsmMemoryOperand() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineInstrBuilder.h | 284 const MachineInstrBuilder &addDisp(const MachineOperand &Disp, int64_t off, 291 TargetFlags = Disp.getTargetFlags(); 293 switch (Disp.getType()) { 297 return addImm(Disp.getImm() + off); 299 return addConstantPoolIndex(Disp.getIndex(), Disp.getOffset() + off, 302 return addGlobalAddress(Disp.getGlobal(), Disp.getOffset() + off, 305 return addBlockAddress(Disp.getBlockAddress(), Disp.getOffset() + off, 309 return addJumpTableIndex(Disp.getIndex(), TargetFlags);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MCCodeEmitter.cpp | 385 const MCOperand &Disp = MI.getOperand(Op + X86::AddrDisp); in emitMemModRMByte() local 404 if (!(Disp.isExpr() && isa<MCSymbolRefExpr>(Disp.getExpr()))) in emitMemModRMByte() 452 int ImmSize = !Disp.isImm() && X86II::hasImm(TSFlags) in emitMemModRMByte() 500 if (Disp.isImm() && isInt<8>(Disp.getImm())) { in emitMemModRMByte() 501 if (Disp.getImm() == 0 && RMfield != 6) { in emitMemModRMByte() 556 if (Disp.isImm() && Disp.getImm() == 0 && AllowNoDisp) { in emitMemModRMByte() 562 if (Disp.isExpr()) { in emitMemModRMByte() 563 auto *Sym = dyn_cast<MCSymbolRefExpr>(Disp.getExpr()); in emitMemModRMByte() 578 if (Disp.isImm() && AllowDisp8) { in emitMemModRMByte() 613 } else if (Disp.isImm() && Disp.getImm() == 0 && AllowNoDisp && in emitMemModRMByte() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86Operand.h | 59 const MCExpr *Disp; member 142 if (Mem.Disp) in print() 143 PrintImmValue(Mem.Disp, ",Disp="); in print() 177 return Mem.Disp; in getMemDisp() 665 CreateMem(unsigned ModeSize, const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc, 670 Res->Mem.Disp = Disp; 686 CreateMem(unsigned ModeSize, unsigned SegReg, const MCExpr *Disp, 702 Res->Mem.Disp = Disp;
|
| H A D | X86AsmParser.cpp | 1582 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemSIOperand() local 1591 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemDIOperand() local 2525 const MCExpr *Disp = SM.getSym(); in ParseIntelOperand() local 2527 if (Disp && Imm) in ParseIntelOperand() 2528 Disp = MCBinaryExpr::createAdd(Disp, ImmDisp, getContext()); in ParseIntelOperand() 2529 if (!Disp) in ParseIntelOperand() 2530 Disp = ImmDisp; in ParseIntelOperand() 2879 if (!Disp) { in ParseMemOperand() 2887 Disp = MCConstantExpr::create(0, Parser.getContext()); in ParseMemOperand() 2984 isa<MCConstantExpr>(Disp) && in ParseMemOperand() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
| H A D | SystemZAsmParser.cpp | 119 const MCExpr *Disp; member 192 Op->Mem.Disp = Disp; in createMem() 267 return isMem(MemKind, RegKind) && inRange(Mem.Disp, 0, 0xfff); in isMemDisp12() 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() 728 OS << "Mem:" << *cast<MCConstantExpr>(Op.Disp); in print() 994 if (getParser().parseExpression(Disp)) in parseAddress() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | FileSystem.h | 960 CreationDisposition Disp, FileAccess Access, 977 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp, 1041 CreationDisposition Disp = CD_CreateAlways, 1043 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode); 1060 CreationDisposition Disp, 1063 return openNativeFile(Name, Disp, FA_Write, Flags, Mode); 1082 CreationDisposition Disp, 1085 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode); 1102 CreationDisposition Disp, 1105 return openNativeFile(Name, Disp, FA_Write | FA_Read, Flags, Mode);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | raw_ostream.cpp | 568 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-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | COFFDump.cpp | 224 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-13.1/usr.sbin/ppp/ |
| H A D | ccp.h | 128 const char *(*Disp)(struct fsm_opt *); /* Use result immediately ! */ member
|