Home
last modified time | relevance | path

Searched refs:getInstSizeInBytes (Results 1 – 25 of 49) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/Target/AArch64/
H A DInstSizes.cpp96 EXPECT_EQ(4u, II.getInstSizeInBytes(*I)); in TEST()
130 EXPECT_EQ(16u, II.getInstSizeInBytes(*I)); in TEST()
132 EXPECT_EQ(32u, II.getInstSizeInBytes(*I)); in TEST()
145 EXPECT_EQ(16u, II.getInstSizeInBytes(*I)); in TEST()
147 EXPECT_EQ(32u, II.getInstSizeInBytes(*I)); in TEST()
160 EXPECT_EQ(4u, II.getInstSizeInBytes(*I)); in TEST()
189 EXPECT_EQ(16u, II.getInstSizeInBytes(*I)); in TEST()
203 EXPECT_EQ(20u, II.getInstSizeInBytes(*I)); in TEST()
217 EXPECT_EQ(8u, II.getInstSizeInBytes(*I)); in TEST()
231 EXPECT_EQ(4u, II.getInstSizeInBytes(*I)); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/MSP430/
H A DMSP430BranchSelector.cpp99 TotalSize += TII->getInstSizeInBytes(MI); in measureFunction()
121 MBBStartOffset += TII->getInstSizeInBytes(*MI); in expandBranches()
181 int InstrSizeDiff = -TII->getInstSizeInBytes(OldBranch); in expandBranches()
199 InstrSizeDiff += TII->getInstSizeInBytes(*MI); in expandBranches()
205 InstrSizeDiff += TII->getInstSizeInBytes(*MI); in expandBranches()
H A DMSP430InstrInfo.h54 unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.cpp55 BBI.Size += TII->getInstSizeInBytes(I); in computeBlockSize()
86 Offset += TII->getInstSizeInBytes(*I); in getOffsetOf()
H A DARMConstantIslandPass.cpp1442 UserOffset + TII->getInstSizeInBytes(*UserMI) + 1); in createNewWater()
1457 for (unsigned Offset = UserOffset + TII->getInstSizeInBytes(*UserMI); in createNewWater()
1460 Offset += TII->getInstSizeInBytes(*I), I = std::next(I)) { in createNewWater()
1474 for (unsigned Offset = UserOffset + TII->getInstSizeInBytes(*UserMI); in createNewWater()
1476 Offset += TII->getInstSizeInBytes(*MI), MI = std::next(MI)) { in createNewWater()
1785 int delta = TII->getInstSizeInBytes(MBB->back()); in fixupConditionalBr()
1807 BBUtils->adjustBBSize(MBB, TII->getInstSizeInBytes(MBB->back())); in fixupConditionalBr()
1814 BBUtils->adjustBBSize(MBB, TII->getInstSizeInBytes(MBB->back())); in fixupConditionalBr()
1819 BBUtils->adjustBBSize(MI->getParent(), -TII->getInstSizeInBytes(*MI)); in fixupConditionalBr()
2394 unsigned NewSize = TII->getInstSizeInBytes(*NewJTMI); in optimizeThumb2JumpTables()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZLongBranch.cpp214 static unsigned getInstSizeInBytes(const MachineInstr &MI, in getInstSizeInBytes() function
216 unsigned Size = TII->getInstSizeInBytes(MI); in getInstSizeInBytes()
231 Terminator.Size = getInstSizeInBytes(MI, TII); in describeTerminator()
306 Block.Size += getInstSizeInBytes(*MI, TII); in initMBBInfo()
H A DSystemZInstrInfo.h294 unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRInstrInfo.cpp420 *BytesAdded += getInstSizeInBytes(MI); in insertBranch()
430 *BytesAdded += getInstSizeInBytes(CondMI); in insertBranch()
437 *BytesAdded += getInstSizeInBytes(MI); in insertBranch()
466 *BytesRemoved += getInstSizeInBytes(*I); in removeBranch()
485 unsigned AVRInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const { in getInstSizeInBytes() function in llvm::AVRInstrInfo
H A DAVRInstrInfo.h72 unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp592 BBI.Size += TII->getInstSizeInBytes(MI); in computeBlockSize()
609 Offset += TII->getInstSizeInBytes(*I); in getOffsetOf()
1003 BBInfo[UserMBB->getNumber()].Size += TII->getInstSizeInBytes(*NewMI); in createNewWater()
1041 for (unsigned Offset = UserOffset + TII->getInstSizeInBytes(*UserMI); in createNewWater()
1043 Offset += TII->getInstSizeInBytes(*MI), MI = std::next(MI)) { in createNewWater()
1332 int Delta = TII->getInstSizeInBytes(MBB->back()); in fixupConditionalBr()
1356 BBInfo[MBB->getNumber()].Size += TII->getInstSizeInBytes(MBB->back()); in fixupConditionalBr()
1358 BBInfo[MBB->getNumber()].Size += TII->getInstSizeInBytes(MBB->back()); in fixupConditionalBr()
1363 BBInfo[MI->getParent()->getNumber()].Size -= TII->getInstSizeInBytes(*MI); in fixupConditionalBr()
H A DCSKYInstrInfo.cpp127 *BytesRemoved += getInstSizeInBytes(*I); in removeBranch()
140 *BytesRemoved += getInstSizeInBytes(*I); in removeBranch()
169 *BytesAdded += getInstSizeInBytes(MI); in insertBranch()
177 *BytesAdded += getInstSizeInBytes(CondMI); in insertBranch()
186 *BytesAdded += getInstSizeInBytes(MI); in insertBranch()
600 unsigned CSKYInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const { in getInstSizeInBytes() function in CSKYInstrInfo
H A DCSKYInstrInfo.h76 unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64CompressJumpTables.cpp82 Size += TII->getInstSizeInBytes(MI); in computeBlockSize()
179 Offset += TII->getInstSizeInBytes(MI); in runOnMachineFunction()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp789 BBI.Size += TII->getInstSizeInBytes(MI); in computeBlockSize()
806 Offset += TII->getInstSizeInBytes(*I); in getOffsetOf()
1276 for (unsigned Offset = UserOffset + TII->getInstSizeInBytes(*UserMI); in createNewWater()
1278 Offset += TII->getInstSizeInBytes(*MI), MI = std::next(MI)) { in createNewWater()
1597 int delta = TII->getInstSizeInBytes(MBB->back()); in fixupConditionalBr()
1619 BBInfo[MBB->getNumber()].Size += TII->getInstSizeInBytes(MBB->back()); in fixupConditionalBr()
1621 BBInfo[MBB->getNumber()].Size += TII->getInstSizeInBytes(MBB->back()); in fixupConditionalBr()
1626 BBInfo[MI->getParent()->getNumber()].Size -= TII->getInstSizeInBytes(*MI); in fixupConditionalBr()
H A DMipsInstrInfo.h134 unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DBranchRelaxation.cpp167 Size += TII->getInstSizeInBytes(MI); in computeBlockSize()
185 Offset += TII->getInstSizeInBytes(*I); in getInstrOffset()
435 unsigned OldBrSize = TII->getInstSizeInBytes(MI); in fixupUnconditionalBranch()
/llvm-project-15.0.7/llvm/lib/Target/ARC/
H A DARCInstrInfo.h51 unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
H A DARCBranchFinalize.cpp157 unsigned Size = TII->getInstSizeInBytes(MI); in runOnMachineFunction()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCBranchSelector.cpp139 unsigned MINumBytes = TII->getInstSizeInBytes(MI); in ComputeBlockSizes()
340 MBBStartOffset += TII->getInstSizeInBytes(*I); in runOnMachineFunction()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCCodeEmitter.h120 unsigned getInstSizeInBytes(const MCInst &MI) const;
H A DPPCMCCodeEmitter.cpp458 unsigned Size = getInstSizeInBytes(MI); in encodeInstruction()
480 unsigned PPCMCCodeEmitter::getInstSizeInBytes(const MCInst &MI) const { in getInstSizeInBytes() function in PPCMCCodeEmitter
/llvm-project-15.0.7/llvm/unittests/Target/ARM/
H A DInstSizes.cpp95 EXPECT_EQ(Expected, II.getInstSizeInBytes(*I)); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVInstrInfo.cpp897 *BytesRemoved += getInstSizeInBytes(*I); in removeBranch()
910 *BytesRemoved += getInstSizeInBytes(*I); in removeBranch()
932 *BytesAdded += getInstSizeInBytes(MI); in insertBranch()
941 *BytesAdded += getInstSizeInBytes(CondMI); in insertBranch()
950 *BytesAdded += getInstSizeInBytes(MI); in insertBranch()
1031 unsigned RISCVInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const { in getInstSizeInBytes() function in RISCVInstrInfo
1294 SequenceSize += getInstSizeInBytes(*I); in getOutliningCandidateInfo()
H A DRISCVInstrInfo.h85 unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCInstLower.cpp259 assert(CodeBytes.size() == STI.getInstrInfo()->getInstSizeInBytes(*MI)); in emitInstruction()

12