Home
last modified time | relevance | path

Searched refs:OffsetOp (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiInstPrinter.cpp227 const MCOperand &OffsetOp, in printMemoryImmediateOffset() argument
229 assert((OffsetOp.isImm() || OffsetOp.isExpr()) && "Immediate expected"); in printMemoryImmediateOffset()
230 if (OffsetOp.isImm()) { in printMemoryImmediateOffset()
231 assert(isInt<SizeInBits>(OffsetOp.getImm()) && "Constant value truncated"); in printMemoryImmediateOffset()
232 OS << OffsetOp.getImm(); in printMemoryImmediateOffset()
234 OffsetOp.getExpr()->print(OS, &MAI); in printMemoryImmediateOffset()
241 const MCOperand &OffsetOp = MI->getOperand(OpNo + 1); in printMemRiOperand() local
246 printMemoryImmediateOffset<16>(MAI, OffsetOp, OS); in printMemRiOperand()
256 const MCOperand &OffsetOp = MI->getOperand(OpNo + 1); in printMemRrOperand() local
259 assert(OffsetOp.isReg() && RegOp.isReg() && "Registers expected."); in printMemRrOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRInstPrinter.cpp178 const MCOperand &OffsetOp = MI->getOperand(OpNo + 1); in printMemri() local
184 if (OffsetOp.isImm()) { in printMemri()
185 int64_t Offset = OffsetOp.getImm(); in printMemri()
191 } else if (OffsetOp.isExpr()) { in printMemri()
192 O << *OffsetOp.getExpr(); in printMemri()
H A DAVRMCCodeEmitter.cpp141 auto OffsetOp = MI.getOperand(OpNo + 1); in encodeMemri() local
161 if (OffsetOp.isImm()) { in encodeMemri()
162 OffsetBits = OffsetOp.getImm(); in encodeMemri()
163 } else if (OffsetOp.isExpr()) { in encodeMemri()
165 Fixups.push_back(MCFixup::create(0, OffsetOp.getExpr(), in encodeMemri()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFInstPrinter.cpp73 const MCOperand &OffsetOp = MI->getOperand(OpNo + 1); in printMemOperand()
80 if (OffsetOp.isImm()) { in printMemOperand()
81 auto Imm = OffsetOp.getImm(); in printMemOperand()
70 const MCOperand &OffsetOp = MI->getOperand(OpNo + 1); printMemOperand() local
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegisterInfo.cpp123 Register OffsetOp = MRI.createVirtualRegister(PtrRC); in eliminateFrameIndex() local
126 OffsetOp) in eliminateFrameIndex()
133 .addReg(OffsetOp); in eliminateFrameIndex()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptAddrMode.cpp166 const MachineOperand &OffsetOp = MI.getOperand(3); in canRemoveAddasl() local
167 if (!OffsetOp.isImm() || OffsetOp.getImm() > 3) in canRemoveAddasl()
437 MachineOperand OffsetOp = MI->getOperand(getOffsetOpPosition(MI)); in processAddUses() local
438 if (!OffsetOp.isImm()) in processAddUses()
441 int64_t newOffset = OffsetOp.getImm() + AddMI->getOperand(2).getImm(); in processAddUses()
499 MachineOperand &OffsetOp = UseMI->getOperand(getOffsetOpPosition(UseMI)); in updateAddUses() local
503 OffsetOp.setImm(ImmOp.getImm() + OffsetOp.getImm()); in updateAddUses()
H A DHexagonInstrInfo.cpp2050 const MachineOperand &OffsetOp = MI.getOperand(OffsetPos); in getIncrementValue() local
2051 if (OffsetOp.isImm()) { in getIncrementValue()
2052 Value = OffsetOp.getImm(); in getIncrementValue()
3310 const MachineOperand &OffsetOp = MI.getOperand(OffsetPos); in getBaseAndOffset() local
3311 if (!OffsetOp.isImm()) in getBaseAndOffset()
3313 Offset = OffsetOp.getImm(); in getBaseAndOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIRegisterInfo.cpp899 MachineOperand *OffsetOp = TII->getNamedOperand(MI, AMDGPU::OpName::offset); in resolveFrameIndex() local
900 int64_t NewOffset = OffsetOp->getImm() + Offset; in resolveFrameIndex()
910 OffsetOp->setImm(NewOffset); in resolveFrameIndex()
922 OffsetOp->setImm(NewOffset); in resolveFrameIndex()
2287 MachineOperand *OffsetOp = in eliminateFrameIndex() local
2289 int64_t NewOffset = Offset + OffsetOp->getImm(); in eliminateFrameIndex()
2292 OffsetOp->setImm(NewOffset); in eliminateFrameIndex()
H A DSIInstrInfo.cpp365 const MachineOperand *BaseOp, *OffsetOp; in getMemOperandsWithOffsetWidth() local
370 OffsetOp = getNamedOperand(LdSt, AMDGPU::OpName::offset); in getMemOperandsWithOffsetWidth()
371 if (OffsetOp) { in getMemOperandsWithOffsetWidth()
379 Offset = OffsetOp->getImm(); in getMemOperandsWithOffsetWidth()
486 OffsetOp = getNamedOperand(LdSt, AMDGPU::OpName::offset); in getMemOperandsWithOffsetWidth()
487 Offset = OffsetOp ? OffsetOp->getImm() : 0; in getMemOperandsWithOffsetWidth()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h1833 OffsetOpTy OffsetOp; member
1835 PtrAdd_match(const PointerOpTy &PointerOp, const OffsetOpTy &OffsetOp) in PtrAdd_match()
1836 : PointerOp(PointerOp), OffsetOp(OffsetOp) {} in PtrAdd_match()
1842 OffsetOp.match(GEP->idx_begin()->get()); in match()
1882 m_PtrAdd(const PointerOpTy &PointerOp, const OffsetOpTy &OffsetOp) { in m_PtrAdd() argument
1883 return PtrAdd_match<PointerOpTy, OffsetOpTy>(PointerOp, OffsetOp); in m_PtrAdd()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1584 const MachineOperand &OffsetOp = MI->getOperand(2); in verifyPreISelGenericInstruction() local
1585 if (!OffsetOp.isImm()) { in verifyPreISelGenericInstruction()
1595 if (DstSize + OffsetOp.getImm() > SrcSize) in verifyPreISelGenericInstruction()
1606 const MachineOperand &OffsetOp = MI->getOperand(3); in verifyPreISelGenericInstruction() local
1607 if (!OffsetOp.isImm()) { in verifyPreISelGenericInstruction()
1618 if (SrcSize + OffsetOp.getImm() > DstSize) in verifyPreISelGenericInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp3757 const MCOperand &OffsetOp = Inst.getOperand(StartOp + 2); in expandMem16Inst() local
3787 if (OffsetOp.isImm()) { in expandMem16Inst()
3788 int64_t LoOffset = OffsetOp.getImm() & 0xffff; in expandMem16Inst()
3789 int64_t HiOffset = OffsetOp.getImm() & ~0xffff; in expandMem16Inst()
3799 bool Is32BitImm = isInt<32>(OffsetOp.getImm()); in expandMem16Inst()
3812 if (OffsetOp.isExpr()) { in expandMem16Inst()
3821 if (!OffsetOp.getExpr()->evaluateAsRelocatable(Res, nullptr, nullptr)) { in expandMem16Inst()
3839 const MCExpr *OffExpr = OffsetOp.getExpr(); in expandMem16Inst()
3884 const MCOperand &OffsetOp = Inst.getOperand(StartOp + 2); in expandMem9Inst() local
3915 if (OffsetOp.isImm()) { in expandMem9Inst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp2364 const MachineOperand &OffsetOp = Pop->getOperand(Pop->getNumOperands() - 1); in emitEpilogue() local
2368 if (OffsetOp.getImm() == 0 && AfterCSRPopSize >= 0) { in emitEpilogue()
H A DAArch64ISelDAGToDAG.cpp1647 ConstantSDNode *OffsetOp = cast<ConstantSDNode>(LD->getOffset()); in tryIndexedLoad() local
1648 int OffsetVal = (int)OffsetOp->getZExtValue(); in tryIndexedLoad()
H A DAArch64ISelLowering.cpp23059 SDValue OffsetOp = Add.getOperand(1); in foldIndexIntoBase() local
23061 if (auto Offset = DAG.getSplatValue(OffsetOp)) { in foldIndexIntoBase()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp8866 SDValue OffsetOp) { in InferPointerInfo() argument
8868 if (ConstantSDNode *OffsetNode = dyn_cast<ConstantSDNode>(OffsetOp)) in InferPointerInfo()
8870 if (OffsetOp.isUndef()) in InferPointerInfo()
H A DDAGCombiner.cpp8760 auto OffsetOp = dyn_cast<ConstantSDNode>(Op->getOperand(1)); in calculateByteProvider() local
8761 if (!OffsetOp) in calculateByteProvider()
8764 VectorIndex = OffsetOp->getZExtValue(); in calculateByteProvider()