/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVInstPrinter.cpp | 94 markup(O, Markup::Immediate) << formatImm(MO.getImm()); in printOperand() 111 uint64_t Target = Address + MO.getImm(); in printBranchOperand() 116 markup(O, Markup::Target) << formatImm(MO.getImm()); in printBranchOperand() 123 unsigned Imm = MI->getOperand(OpNo).getImm(); in printCSRSystemRegister() 134 unsigned FenceArg = MI->getOperand(OpNo).getImm(); in printFenceArg() 152 static_cast<RISCVFPRndMode::RoundingMode>(MI->getOperand(OpNo).getImm()); in printFRMArg() 174 unsigned Imm = MI->getOperand(OpNo).getImm(); in printFPImmOperand() 207 unsigned Imm = MI->getOperand(OpNo).getImm(); in printVTypeI() 221 unsigned Imm = MI->getOperand(OpNo).getImm(); in printRlist() 297 int64_t Imm = MI->getOperand(OpNo).getImm(); in printSpimm() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonCopyToCombine.cpp | 652 int64_t V = HiOperand.getImm(); in emitConst64() 675 .addImm(HiOperand.getImm()) in emitCombineII() 691 .addImm(HiOperand.getImm()) in emitCombineII() 706 .addImm(HiOperand.getImm()) in emitCombineII() 721 .addImm(HiOperand.getImm()) in emitCombineII() 732 .addImm(HiOperand.getImm()) in emitCombineII() 740 .addImm(HiOperand.getImm()) in emitCombineII() 748 .addImm(HiOperand.getImm()) in emitCombineII() 749 .addImm(LoOperand.getImm()); in emitCombineII() 796 .addImm(HiOperand.getImm()) in emitCombineIR() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiMemAluCombiner.cpp | 177 return Op1.getImm() == Op2.getImm(); in isSameOperand() 185 (Op.isImm() && Op.getImm() == 0)); in isZeroOperand() 266 InstrBuilder.addImm(AluOffset.getImm()); in insertMergedInstruction() 310 ((Offset.getImm() == 0 && in isSuitableAluInstr() 313 ((IsSpls && isInt<10>(Op2.getImm())) || in isSuitableAluInstr() 314 (!IsSpls && isInt<16>(Op2.getImm())))) || in isSuitableAluInstr() 315 Offset.getImm() == Op2.getImm())) in isSuitableAluInstr() 375 LPAC::AluCode AluOpcode = static_cast<LPAC::AluCode>(AluOperand.getImm()); in combineMemAluInBasicBlock()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZInstrInfo.cpp | 142 OffsetMO.getImm()); in splitAdjDynAlloc() 198 MI.getOperand(2).getImm()); in expandRXYPseudo() 355 MI.getOperand(4).getImm() != 0) in isStackSlotCopy() 490 Cond[1].setImm(Cond[1].getImm() ^ Cond[0].getImm()); in reverseBranchCondition() 519 unsigned CCValid = Cond[0].getImm(); in insertBranch() 520 unsigned CCMask = Cond[1].getImm(); in insertBranch() 542 Value = MI.getOperand(1).getImm(); in analyzeCompare() 594 unsigned CCValid = Pred[0].getImm(); in insertSelect() 595 unsigned CCMask = Pred[1].getImm(); in insertSelect() 741 unsigned CCMask = Pred[1].getImm(); in PredicateInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/ |
H A D | BPFInstPrinter.cpp | 63 O << formatImm((int32_t)Op.getImm()); in printOperand() 81 auto Imm = OffsetOp.getImm(); in printMemOperand() 95 O << formatImm(Op.getImm()); in printImm64Operand() 107 int32_t Imm = Op.getImm(); in printBrTargetOperand() 110 int16_t Imm = Op.getImm(); in printBrTargetOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/MCTargetDesc/ |
H A D | ARCInstPrinter.cpp | 149 O << Op.getImm(); in printOperand() 164 O << "," << offset.getImm(); in printMemOperandRI() 172 O << ARCCondCodeToString((ARCCC::CondCode)Op.getImm()); in printPredicateOperand() 179 O << ARCBRCondCodeToString((ARCCC::BRCondCode)Op.getImm()); in printBRCCPredicateOperand() 184 O << ARCCondCodeToString((ARCCC::CondCode)MI->getOperand(OpNum).getImm()); in printCCOperand() 191 unsigned Value = MO.getImm(); in printU6ShiftedBy()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVOptWInstrs.cpp | 213 uint64_t Imm = UserMI->getOperand(2).getImm(); in hasAllNBitUsers() 220 uint64_t Imm = UserMI->getOperand(2).getImm(); in hasAllNBitUsers() 260 if (UserMI->getOperand(2).getImm() >= Bits) in hasAllNBitUsers() 352 return MI.getOperand(2).getImm() >= 32; in isSignExtendingOpW() 354 return MI.getOperand(2).getImm() > 32; in isSignExtendingOpW() 360 return isUInt<11>(MI.getOperand(2).getImm()); in isSignExtendingOpW() 363 return !isUInt<11>(MI.getOperand(2).getImm()); in isSignExtendingOpW() 366 return MI.getOperand(2).getImm() < 31 && in isSignExtendingOpW() 375 int64_t Log2SEW = MI.getOperand(2).getImm(); in isSignExtendingOpW() 485 if (MI->getOperand(2).getImm() >= 31) in isSignExtendedW() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64MachineScheduler.cpp | 48 ? AArch64InstrInfo::getLdStOffsetOp(MI0).getImm() in mayOverlapWrite() 49 : AArch64InstrInfo::getLdStOffsetOp(MI0).getImm() * StoreSize0; in mayOverlapWrite() 51 ? AArch64InstrInfo::getLdStOffsetOp(MI1).getImm() in mayOverlapWrite() 52 : AArch64InstrInfo::getLdStOffsetOp(MI1).getImm() * StoreSize1; in mayOverlapWrite()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCMIPeephole.cpp | 228 return MI->getOperand(3).getImm(); in getKnownLeadingZeroCount() 231 MI->getOperand(3).getImm() <= 63 - MI->getOperand(2).getImm()) in getKnownLeadingZeroCount() 232 return MI->getOperand(3).getImm(); in getKnownLeadingZeroCount() 237 MI->getOperand(3).getImm() <= MI->getOperand(4).getImm()) in getKnownLeadingZeroCount() 238 return 32 + MI->getOperand(3).getImm(); in getKnownLeadingZeroCount() 1896 uint64_t SHSrc = MOpSHSrc.getImm(); in emitRLDICWhenLoweringJumpTables() 1897 uint64_t MBSrc = MOpMBSrc.getImm(); in emitRLDICWhenLoweringJumpTables() 1898 uint64_t SHMI = MOpSHMI.getImm(); in emitRLDICWhenLoweringJumpTables() 1899 uint64_t MEMI = MOpMEMI.getImm(); in emitRLDICWhenLoweringJumpTables() 1963 uint64_t SHMI = MOpSHMI.getImm(); in combineSEXTAndSHL() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/ |
H A D | LoongArchAsmParser.cpp | 214 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm() 225 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm() 234 if (!isImm() || evaluateConstantImm(getImm(), Imm, VK)) in isBareSymbol() 467 const MCExpr *getImm() const { in getImm() function in __anon72291ea20111::LoongArchOperand 487 OS << *getImm(); in print() 538 addExpr(Inst, getImm()); in addImmOperands() 1114 int64_t Imm = Inst.getOperand(1).getImm(); in emitLoadImm() 1258 ? Inst.getOperand(3).getImm() in checkTargetMatchPredicate() 1259 : Inst.getOperand(2).getImm(); in checkTargetMatchPredicate() 1262 ? Inst.getOperand(4).getImm() in checkTargetMatchPredicate() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/ |
H A D | SparcInstPrinter.cpp | 74 MI->getOperand(2).getImm() == 8) { in printSparcAliasInstr() 130 O << (int)MO.getImm(); in printOperand() 140 O << ((int) MO.getImm() & 0x7f); in printOperand() 165 (Op2.isImm() && Op2.getImm() == 0)); in printMemOperand() 177 int CC = (int)MI->getOperand(opNum).getImm(); in printCCOperand() 231 unsigned Imm = MI->getOperand(opNum).getImm(); in printMembarTag() 249 unsigned Imm = MI->getOperand(opNum).getImm(); in printASITag()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMAsmPrinter.cpp | 248 O << MO.getImm(); in printOperand() 318 O << ~(MI->getOperand(OpNum).getImm()); in PrintAsmOperand() 364 InlineAsm::Flag F(FlagsOP.getImm()); in PrintAsmOperand() 1330 Offset = MI->getOperand(2).getImm(); in EmitUnwindingInstruction() 1389 Offset = MI->getOperand(1).getImm(); in EmitUnwindingInstruction() 1393 Offset = MI->getOperand(2).getImm(); in EmitUnwindingInstruction() 1397 Offset = MI->getOperand(2).getImm(); in EmitUnwindingInstruction() 1473 .addImm(MI->getOperand(2).getImm()) in emitInstruction() 1489 .addImm(MI->getOperand(2).getImm()) in emitInstruction() 1744 .addImm(MI->getOperand(3).getImm()) in emitInstruction() [all …]
|
H A D | ARMOptimizeBarriersPass.cpp | 71 if (MI.getOperand(0).getImm() == DMBType) { in runOnMachineFunction() 76 DMBType = MI.getOperand(0).getImm(); in runOnMachineFunction() 81 DMBType = MI.getOperand(0).getImm(); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/ |
H A D | NVPTXInstPrinter.cpp | 85 markup(O, Markup::Immediate) << formatImm(Op.getImm()); in printOperand() 95 int64_t Imm = MO.getImm(); in printCvtMode() 152 int64_t Imm = MO.getImm(); in printCmpMode() 226 int Imm = (int) MO.getImm(); in printLdStCode() 277 int Imm = (int)MO.getImm(); in printMmaCode() 297 MI->getOperand(OpNum + 1).getImm() == 0) in printMemOperand() 316 int64_t Imm = MO.getImm(); in printPrmtMode()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackMaps.cpp | 53 return MO.getImm(); in getConstMetaVal() 141 unsigned B = MI->getOperand(CurIdx++).getImm(); in getGCPointerMap() 142 unsigned D = MI->getOperand(CurIdx++).getImm(); in getGCPointerMap() 175 switch (MO.getImm()) { in getNextMetaArgIdx() 213 switch (MOI->getImm()) { in parseOperand() 223 int64_t Imm = (++MOI)->getImm(); in parseOperand() 229 int64_t Size = (++MOI)->getImm(); in parseOperand() 232 int64_t Imm = (++MOI)->getImm(); in parseOperand() 240 int64_t Imm = MOI->getImm(); in parseOperand() 446 unsigned NumGCPointers = MOI->getImm(); in parseStatepointOpers() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
H A D | WebAssemblyInstPrinter.cpp | 71 assert(MI->getOperand(TableOperand).getImm() == 0); in printInst() 92 NumVariadicDefs = MI->getOperand(0).getImm(); in printInst() 220 uint64_t Depth = MI->getOperand(0).getImm(); in printInst() 253 uint64_t Depth = MI->getOperand(I).getImm(); in printInst() 310 O << Op.getImm(); in printOperand() 336 O << MI->getOperand(I).getImm(); in printBrList() 344 int64_t Imm = MI->getOperand(OpNo).getImm(); in printWebAssemblyP2AlignOperand() 355 auto Imm = static_cast<unsigned>(Op.getImm()); in printWebAssemblySignatureOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/ |
H A D | SPIRVInstPrinter.cpp | 60 uint64_t Imm = MI->getOperand(StartIndex).getImm(); in printOpConstantVarOps() 64 Imm |= (MI->getOperand(StartIndex + 1).getImm() << 32); in printOpConstantVarOps() 197 if (MI->getOperand(i).getImm() & MemoryOperand::Aligned) { in printInst() 246 auto Dec = static_cast<Decoration::Decoration>(DecOp.getImm()); in printOpDecorate() 304 O << formatImm((int64_t)Op.getImm()); in printOperand() 338 MI->getOperand(1).getImm() == in printStringImm() 352 auto Op = MI->getOperand(OpNo).getImm(); in printExtension() 360 O << getSymbolicOperandMnemonic(category, MI->getOperand(OpNo).getImm()); in printSymbolicOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/ |
H A D | MipsMCCodeEmitter.cpp | 231 if (MO.isImm()) return MO.getImm() >> 2; in getBranchTargetOpValue() 253 if (MO.isImm()) return MO.getImm() >> 1; in getBranchTargetOpValue1SImm16() 276 return MO.getImm() >> 1; in getBranchTargetOpValueMMR6() 299 return MO.getImm() >> 2; in getBranchTargetOpValueLsl2MMR6() 451 return MO.getImm() >> 1; in getBranchTarget26OpValueMM() 472 if (MO.isImm()) return MO.getImm(); in getJumpOffset16OpValue() 493 if (MO.isImm()) return MO.getImm()>>2; in getJumpTargetOpValue() 545 int Value = MO.getImm(); in getSImm3Lsa2Value() 558 unsigned Value = MO.getImm(); in getUImm6Lsl2Encoding() 995 return MO.getImm() % 8; in getUImm3Mod8Encoding() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVModuleAnalysis.cpp | 274 auto Dec = MI.getOperand(1).getImm(); in collectFuncNames() 394 auto Set = MI.getOperand(2).getImm(); in numberRegistersGlobally() 634 int64_t ImgFormatOp = MI.getOperand(7).getImm(); in addOpTypeImageReqs() 644 switch (MI.getOperand(2).getImm()) { in addOpTypeImageReqs() 686 int64_t Addr = MI.getOperand(0).getImm(); in addInstrRequirements() 689 int64_t Mem = MI.getOperand(1).getImm(); in addInstrRequirements() 695 int64_t Exe = MI.getOperand(0).getImm(); in addInstrRequirements() 702 int64_t Exe = MI.getOperand(1).getImm(); in addInstrRequirements() 735 auto SC = MI.getOperand(1).getImm(); in addInstrRequirements() 746 TypeDef->getOperand(1).getImm() == 16) in addInstrRequirements() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
H A D | AVRMCCodeEmitter.cpp | 108 auto target = MO.getImm(); in encodeRelCondBrTarget() 162 OffsetBits = OffsetOp.getImm(); in encodeMemri() 180 auto Imm = MI.getOperand(OpNo).getImm(); in encodeComplement() 207 return MO.getImm(); in encodeImm() 223 auto Target = MO.getImm(); in encodeCallTarget() 262 return static_cast<unsigned>(MO.getImm()); in getMachineOpValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/ |
H A D | M68kInstPrinter.cpp | 78 O << '#' << MO.getImm(); in printImmediate() 88 unsigned Mask = MI->getOperand(opNum).getImm(); in printMoveMask() 143 O << Op.getImm(); in printDisp() 161 O << format("$%0" PRIx64, (uint64_t)MO.getImm()); in printAbsMem()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/ |
H A D | MSP430MCCodeEmitter.cpp | 112 return MO.getImm(); in getMachineOpValue() 132 return ((unsigned)MO2.getImm() << 4) | Reg; in getMemOpValue() 159 return MO.getImm(); in getPCRelImmOpValue() 173 int64_t Imm = MO.getImm(); in getCGImmOpValue() 191 switch (MO.getImm()) { in getCCOpValue()
|
H A D | MSP430InstPrinter.cpp | 45 int64_t Imm = Op.getImm() * 2 + 2; in printPCRelImmOperand() 63 O << '#' << Op.getImm(); in printOperand() 92 O << Disp.getImm(); in printSrcMemOperand() 115 unsigned CC = MI->getOperand(OpNo).getImm(); in printCCOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCA/ |
H A D | AMDGPUCustomBehaviour.cpp | 55 Op = MCAOperand::createImm(MCOp.getImm()); in processWaitCnt() 209 Expcnt = OpImm->getImm(); in computeWaitCnt() 212 Lgkmcnt = OpImm->getImm(); in computeWaitCnt() 215 Vmcnt = OpImm->getImm(); in computeWaitCnt() 218 Vscnt = OpImm->getImm(); in computeWaitCnt() 226 unsigned WaitCnt = Inst.getOperand(0)->getImm(); in computeWaitCnt() 318 if (Op == nullptr || !Op->isImm() || !Op->getImm()) in hasModifiersSet()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kCollapseMOVEMPass.cpp | 263 Mask = MI->getOperand(1).getImm(); in runOnMachineFunction() 269 Mask = MI->getOperand(2).getImm(); in runOnMachineFunction() 271 Offset = MI->getOperand(0).getImm(); in runOnMachineFunction() 275 Mask = MI->getOperand(0).getImm(); in runOnMachineFunction() 281 Mask = MI->getOperand(0).getImm(); in runOnMachineFunction() 283 Offset = MI->getOperand(1).getImm(); in runOnMachineFunction()
|