/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCInstrDesc.h | 143 namespace MCID { 191 } // namespace MCID 255 bool isPreISelOpcode() const { return Flags & (1ULL << MCID::PreISelOpcode); } in isPreISelOpcode() 261 bool isVariadic() const { return Flags & (1ULL << MCID::Variadic); } in isVariadic() 265 bool hasOptionalDef() const { return Flags & (1ULL << MCID::HasOptionalDef); } in hasOptionalDef() 269 bool isPseudo() const { return Flags & (1ULL << MCID::Pseudo); } in isPseudo() 273 bool isMetaInstruction() const { return Flags & (1ULL << MCID::Meta); } in isMetaInstruction() 276 bool isReturn() const { return Flags & (1ULL << MCID::Return); } in isReturn() 279 bool isAdd() const { return Flags & (1ULL << MCID::Add); } in isAdd() 282 bool isTrap() const { return Flags & (1ULL << MCID [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCA/ |
H A D | AMDGPUCustomBehaviour.cpp | 249 const MCInstrDesc &MCID = MCII.get(Opcode); in generateWaitCntInfo() local 250 if ((MCID.TSFlags & SIInstrFlags::DS) && in generateWaitCntInfo() 251 (MCID.TSFlags & SIInstrFlags::LGKM_CNT)) { in generateWaitCntInfo() 255 } else if (MCID.TSFlags & SIInstrFlags::FLAT) { in generateWaitCntInfo() 263 else if (MCID.mayLoad() && !(MCID.TSFlags & SIInstrFlags::IsAtomicNoRet)) in generateWaitCntInfo() 267 } else if (isVMEM(MCID) && !AMDGPU::getMUBUFIsBufferInv(Opcode)) { in generateWaitCntInfo() 270 else if ((MCID.mayLoad() && in generateWaitCntInfo() 271 !(MCID.TSFlags & SIInstrFlags::IsAtomicNoRet)) || in generateWaitCntInfo() 272 ((MCID.TSFlags & SIInstrFlags::MIMG) && !MCID.mayLoad() && in generateWaitCntInfo() 273 !MCID.mayStore())) in generateWaitCntInfo() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCHazardRecognizers.cpp | 29 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in isLoadAfterStore() local 30 if (!MCID) in isLoadAfterStore() 33 if (!MCID->mayLoad()) in isLoadAfterStore() 55 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in isBCTRAfterSet() local 56 if (!MCID) in isBCTRAfterSet() 59 if (!MCID->isBranch()) in isBCTRAfterSet() 85 bool PPCDispatchGroupSBHazardRecognizer::mustComeFirst(const MCInstrDesc *MCID, in mustComeFirst() argument 90 unsigned IIC = MCID->getSchedClass(); in mustComeFirst() 123 if (NSlots == 1 && PPC::getNonRecordFormOpcode(MCID->getOpcode()) != -1) in mustComeFirst() 147 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in ShouldPreferAnother() local [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineInstrBuilder.h | 374 const MCInstrDesc &MCID) { in BuildMI() argument 375 return MachineInstrBuilder(MF, MF.CreateMachineInstr(MCID, MIMD.getDL())) in BuildMI() 383 const MCInstrDesc &MCID, Register DestReg) { in BuildMI() argument 384 return MachineInstrBuilder(MF, MF.CreateMachineInstr(MCID, MIMD.getDL())) in BuildMI() 396 const MCInstrDesc &MCID, Register DestReg) { in BuildMI() argument 398 MachineInstr *MI = MF.CreateMachineInstr(MCID, MIMD.getDL()); in BuildMI() 415 const MCInstrDesc &MCID, Register DestReg) { in BuildMI() argument 417 MachineInstr *MI = MF.CreateMachineInstr(MCID, MIMD.getDL()); in BuildMI() 427 const MCInstrDesc &MCID, Register DestReg) { in BuildMI() argument 431 return BuildMI(BB, MachineBasicBlock::instr_iterator(I), MIMD, MCID, in BuildMI() [all …]
|
H A D | MachineInstr.h | 125 const MCInstrDesc *MCID; // Instruction descriptor. 566 const MCInstrDesc &getDesc() const { return *MCID; } 639 return getNumExplicitDefs() + MCID->implicit_defs().size(); 911 return hasProperty(MCID::PreISelOpcode, Type); 919 return hasProperty(MCID::Variadic, Type); 925 return hasProperty(MCID::HasOptionalDef, Type); 931 return hasProperty(MCID::Pseudo, Type); 937 return hasProperty(MCID::Meta, Type); 941 return hasProperty(MCID::Return, Type); 947 return hasProperty(MCID::EHScopeReturn, Type); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kInstrBuilder.h | 63 const MCInstrDesc &MCID = MI->getDesc(); variable 65 if (MCID.mayLoad()) 67 if (MCID.mayStore()) 80 const MCInstrDesc &MCID = MI->getDesc(); variable 82 if (MCID.mayLoad()) 84 if (MCID.mayStore())
|
/freebsd/contrib/llvm-project/llvm/lib/MCA/ |
H A D | CodeEmitter.cpp | 18 CodeEmitter::EncodingInfo CodeEmitter::getOrCreateEncodingInfo(unsigned MCID) { in getOrCreateEncodingInfo() argument 19 EncodingInfo &EI = Encodings[MCID]; in getOrCreateEncodingInfo() 24 const MCInst &Inst = Sequence[MCID]; in getOrCreateEncodingInfo() 25 MCInst Relaxed(Sequence[MCID]); in getOrCreateEncodingInfo()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | Thumb2SizeReduction.cpp | 255 static bool HasImplicitCPSRDef(const MCInstrDesc &MCID) { in HasImplicitCPSRDef() argument 256 return is_contained(MCID.implicit_defs(), ARM::CPSR); in HasImplicitCPSRDef() 653 const MCInstrDesc &MCID = MI->getDesc(); in ReduceSpecial() local 654 if (MCID.hasOptionalDef() && in ReduceSpecial() 655 MI->getOperand(MCID.getNumOperands()-1).getReg() == ARM::CPSR) in ReduceSpecial() 813 const MCInstrDesc &MCID = MI->getDesc(); in ReduceTo2Addr() local 814 if (MCID.hasOptionalDef()) { in ReduceTo2Addr() 815 unsigned NumOps = MCID.getNumOperands(); in ReduceTo2Addr() 837 unsigned NumOps = MCID.getNumOperands(); in ReduceTo2Addr() 839 if (i < NumOps && MCID.operands()[i].isOptionalDef()) in ReduceTo2Addr() [all …]
|
H A D | ARMHazardRecognizer.cpp | 31 const MCInstrDesc &MCID = MI->getDesc(); in hasRAWHazard() local 32 unsigned Domain = MCID.TSFlags & ARMII::DomainMask; in hasRAWHazard() 35 unsigned Opcode = MCID.getOpcode(); in hasRAWHazard() 52 const MCInstrDesc &MCID = MI->getDesc(); in getHazardType() local 53 if (LastMI && (MCID.TSFlags & ARMII::DomainMask) != ARMII::DomainGeneral) { in getHazardType()
|
H A D | MLxExpansionPass.cpp | 184 const MCInstrDesc &MCID = MI->getDesc(); in hasRAWHazard() local 185 unsigned Domain = MCID.TSFlags & ARMII::DomainMask; in hasRAWHazard() 188 unsigned Opcode = MCID.getOpcode(); in hasRAWHazard() 339 const MCInstrDesc &MCID = MI->getDesc(); in ExpandFPMLxInstructions() local 346 unsigned Domain = MCID.TSFlags & ARMII::DomainMask; in ExpandFPMLxInstructions() 356 if (!TII->isFpMLxInstruction(MCID.getOpcode(), in ExpandFPMLxInstructions()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 88 unsigned MCID : 29; member 162 unsigned MCID); 166 unsigned MCID); 168 unsigned MCID); 169 void scheduleRemapFunction(Function &F, unsigned MCID); 924 CurrentMCID = E.MCID; in flush() 1119 unsigned MCID) { in scheduleMapGlobalInitializer() argument 1121 assert(MCID < MCs.size() && "Invalid mapping context"); in scheduleMapGlobalInitializer() 1125 WE.MCID = MCID; in scheduleMapGlobalInitializer() 1135 unsigned MCID) { in scheduleMapAppendingVariable() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ScoreboardHazardRecognizer.cpp | 122 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in getHazardType() local 123 if (!MCID) { in getHazardType() 127 unsigned idx = MCID->getSchedClass(); in getHazardType() 177 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in EmitInstruction() local 178 assert(MCID && "The scheduler must filter non-machineinstrs"); in EmitInstruction() 179 if (DAG->TII->isZeroCost(MCID->Opcode)) in EmitInstruction() 186 unsigned idx = MCID->getSchedClass(); in EmitInstruction()
|
H A D | MachineInstr.cpp | 89 for (MCPhysReg ImpDef : MCID->implicit_defs()) in addImplicitDefUseOperands() 91 for (MCPhysReg ImpUse : MCID->implicit_uses()) in addImplicitDefUseOperands() 100 : MCID(&TID), NumOperands(0), Flags(0), AsmPrinterFlags(0), in MachineInstr() 105 if (unsigned NumOps = MCID->getNumOperands() + MCID->implicit_defs().size() + in MachineInstr() 106 MCID->implicit_uses().size()) { in MachineInstr() 119 : MCID(&MI.getDesc()), NumOperands(0), Flags(0), AsmPrinterFlags(0), in MachineInstr() 146 MCID = &TID; in setDesc() 207 assert(MCID && "Cannot add operands before providing an instr descriptor"); in addOperand() 280 int DefIdx = MCID->getOperandConstraint(OpNo, MCOI::TIED_TO); in addOperand() 285 if (MCID->getOperandConstraint(OpNo, MCOI::EARLY_CLOBBER) != -1) in addOperand() [all …]
|
H A D | BreakFalseDeps.cpp | 192 const MCInstrDesc &MCID = MI->getDesc(); in processDefs() local 196 for (unsigned i = MCID.getNumDefs(), e = MCID.getNumOperands(); i != e; ++i) { in processDefs() 218 e = MI->isVariadic() ? MI->getNumOperands() : MCID.getNumDefs(); in processDefs()
|
H A D | MachineVerifier.cpp | 1067 const MCInstrDesc &MCID = MI->getDesc(); in verifyPreISelGenericInstruction() local 1089 for (unsigned I = 0, E = std::min(MCID.getNumOperands(), NumOps); in verifyPreISelGenericInstruction() 1091 if (!MCID.operands()[I].isGenericType()) in verifyPreISelGenericInstruction() 1095 size_t TypeIdx = MCID.operands()[I].getGenericTypeIndex(); in verifyPreISelGenericInstruction() 1128 if (MI->getNumOperands() < MCID.getNumOperands()) in verifyPreISelGenericInstruction() 1379 assert(MCID.getNumOperands() == 2 && "Expected 2 operands G_*{EXT,TRUNC}"); in verifyPreISelGenericInstruction() 2142 const MCInstrDesc &MCID = MI->getDesc(); in visitMachineInstrBefore() local 2143 if (MI->getNumOperands() < MCID.getNumOperands()) { in visitMachineInstrBefore() 2145 errs() << MCID.getNumOperands() << " operands expected, but " in visitMachineInstrBefore() 2149 if (MI->getFlag(MachineInstr::NoConvergent) && !MCID.isConvergent()) in visitMachineInstrBefore() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZInstrBuilder.h | 29 const MCInstrDesc &MCID = MI->getDesc(); in addFrameReference() local 31 if (MCID.mayLoad()) in addFrameReference() 33 if (MCID.mayStore()) in addFrameReference()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/ |
H A D | CodeEmitter.h | 49 EncodingInfo getOrCreateEncodingInfo(unsigned MCID); 56 StringRef getEncoding(unsigned MCID) { in getEncoding() argument 57 EncodingInfo EI = getOrCreateEncodingInfo(MCID); in getEncoding()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVVectorPeephole.cpp | 215 const MCInstrDesc &MCID = TII->get(Opc); in convertToUnmasked() local 217 RISCVII::hasVecPolicyOp(MCID.TSFlags); in convertToUnmasked() 218 const bool HasPassthru = RISCVII::isFirstDefTiedToFirstUse(MCID); in convertToUnmasked() 222 RISCVII::hasVecPolicyOp(MCID.TSFlags) && in convertToUnmasked() 228 MI.setDesc(MCID); in convertToUnmasked()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | LVLGen.cpp | 41 const MCInstrDesc &MCID = TII->get(Opcode); in getVLIndex() local 44 if (HAS_VLINDEX(MCID.TSFlags)) in getVLIndex() 45 return GET_VLINDEX(MCID.TSFlags); in getVLIndex()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | ScheduleDAGFast.cpp | 250 const MCInstrDesc &MCID = TII->get(N->getMachineOpcode()); in CopyAndMoveSuccessors() local 251 for (unsigned i = 0; i != MCID.getNumOperands(); ++i) { in CopyAndMoveSuccessors() 252 if (MCID.getOperandConstraint(i, MCOI::TIED_TO) != -1) { in CopyAndMoveSuccessors() 257 if (MCID.isCommutable()) in CopyAndMoveSuccessors() 424 const MCInstrDesc &MCID = TII->get(N->getMachineOpcode()); in getPhysicalRegisterVT() local 425 assert(!MCID.implicit_defs().empty() && in getPhysicalRegisterVT() 427 NumRes = MCID.getNumDefs(); in getPhysicalRegisterVT() 428 for (MCPhysReg ImpDef : MCID.implicit_defs()) { in getPhysicalRegisterVT() 524 const MCInstrDesc &MCID = TII->get(Node->getMachineOpcode()); in DelayForLiveRegsBottomUp() local 525 for (MCPhysReg Reg : MCID.implicit_defs()) in DelayForLiveRegsBottomUp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonMCChecker.cpp | 93 const MCInstrDesc &MCID = HexagonMCInstrInfo::getDesc(MCII, MCI); in init() local 98 for (unsigned i = MCID.getNumDefs(); i < MCID.getNumOperands(); ++i) in init() 101 for (MCPhysReg ImpUse : MCID.implicit_uses()) in init() 109 for (MCPhysReg R : MCID.implicit_defs()) { in init() 110 if (Hexagon::R31 != R && MCID.isCall()) in init() 135 for (unsigned i = 0; i < MCID.getNumDefs(); ++i) { in init() 188 for (unsigned i = MCID.getNumDefs(); i < MCID.getNumOperands(); ++i) in init()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ConditionalCompares.cpp | 630 const MCInstrDesc &MCID = TII->get(Opc); in convert() local 633 MRI->createVirtualRegister(TII->getRegClass(MCID, 0, TRI, *MF)); in convert() 635 BuildMI(*Head, Head->end(), TermDL, MCID) in convert() 642 TII->getRegClass(MCID, 1, TRI, *MF)); in convert() 687 const MCInstrDesc &MCID = TII->get(Opc); in convert() local 689 TII->getRegClass(MCID, 0, TRI, *MF)); in convert() 692 TII->getRegClass(MCID, 1, TRI, *MF)); in convert() 693 MachineInstrBuilder MIB = BuildMI(*Head, CmpMI, CmpMI->getDebugLoc(), MCID) in convert()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.cpp | 384 const MCInstrDesc &MCID = MII.get(Opcode); in verify() local 386 MCID.operands().begin(), MCID.operands().end(), 0U, in verify() 393 MCID.operands().begin(), MCID.operands().end(), 0U, in verify()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrBuilder.h | 202 const MCInstrDesc &MCID = MI->getDesc(); variable 204 if (MCID.mayLoad()) 206 if (MCID.mayStore())
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaInstrInfo.cpp | 32 const MCInstrDesc &MCID = MI->getDesc(); in addFrameReference() local 34 if (MCID.mayLoad()) in addFrameReference() 36 if (MCID.mayStore()) in addFrameReference()
|