Searched refs:TII (Results 1 - 25 of 403) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerBrUnless.cpp62 const auto &TII = *MF.getSubtarget<WebAssemblySubtarget>().getInstrInfo(); local
81 Def->setDesc(TII.get(NE_I32));
85 Def->setDesc(TII.get(EQ_I32));
89 Def->setDesc(TII.get(LE_S_I32));
93 Def->setDesc(TII.get(LT_S_I32));
97 Def->setDesc(TII.get(GE_S_I32));
101 Def->setDesc(TII.get(GT_S_I32));
105 Def->setDesc(TII.get(LE_U_I32));
109 Def->setDesc(TII.get(LT_U_I32));
113 Def->setDesc(TII
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DPseudoSourceValue.cpp27 PseudoSourceValue::PseudoSourceValue(unsigned Kind, const TargetInstrInfo &TII) argument
29 AddressSpace = TII.getAddressSpaceForPseudoSourceKind(Kind);
83 unsigned Kind, const TargetInstrInfo &TII)
84 : PseudoSourceValue(Kind, TII) {}
100 const TargetInstrInfo &TII)
101 : CallEntryPseudoSourceValue(GlobalValueCallEntry, TII), GV(GV) {}
103 const char *ES, const TargetInstrInfo &TII)
104 : CallEntryPseudoSourceValue(ExternalSymbolCallEntry, TII), ES(ES) {}
108 : TII(TIInfo),
109 StackPSV(PseudoSourceValue::Stack, TII),
82 CallEntryPseudoSourceValue( unsigned Kind, const TargetInstrInfo &TII) argument
98 GlobalValuePseudoSourceValue( const GlobalValue *GV, const TargetInstrInfo &TII) argument
102 ExternalSymbolPseudoSourceValue( const char *ES, const TargetInstrInfo &TII) argument
[all...]
H A DPostRAHazardRecognizer.cpp70 const TargetInstrInfo *TII = Fn.getSubtarget().getInstrInfo(); local
72 TII->CreateTargetPostRAHazardRecognizer(Fn));
87 TII->insertNoop(MBB, MachineBasicBlock::iterator(MI));
H A DFEntryInserter.cpp44 auto *TII = MF.getSubtarget().getInstrInfo(); local
46 TII->get(TargetOpcode::FENTRY_CALL));
H A DXRayInstrumentation.cpp70 const TargetInstrInfo *TII,
82 const TargetInstrInfo *TII,
89 MachineFunction &MF, const TargetInstrInfo *TII,
98 (op.HandleAllReturns || T.getOpcode() == TII->getReturnOpcode())) {
103 if (TII->isTailCall(T) && op.HandleTailcall) {
109 auto MIB = BuildMI(MBB, T, T.getDebugLoc(), TII->get(Opc))
125 MachineFunction &MF, const TargetInstrInfo *TII,
131 (op.HandleAllReturns || T.getOpcode() == TII->getReturnOpcode())) {
134 if (TII->isTailCall(T) && op.HandleTailcall) {
140 BuildMI(MBB, T, T.getDebugLoc(), TII
88 replaceRetWithPatchableRet( MachineFunction &MF, const TargetInstrInfo *TII, InstrumentationOptions op) argument
124 prependRetWithPatchableExit( MachineFunction &MF, const TargetInstrInfo *TII, InstrumentationOptions op) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600ExpandSpecialInstrs.cpp41 const R600InstrInfo *TII = nullptr; member in class:__anon3960::R600ExpandSpecialInstrsPass
75 int OpIdx = TII->getOperandIdx(*OldMI, Op);
78 TII->setImmOperand(*NewMI, Op, Val);
84 TII = ST.getInstrInfo();
86 const R600RegisterInfo &TRI = TII->getRegisterInfo();
97 if (TII->isLDSRetInstr(MI.getOpcode())) {
98 int DstIdx = TII->getOperandIdx(MI.getOpcode(), R600::OpName::dst);
101 MachineInstr *Mov = TII->buildMovInstr(&MBB, I,
104 int LDSPredSelIdx = TII->getOperandIdx(MI.getOpcode(),
106 int MovPredSelIdx = TII
[all...]
H A DSIAddIMGInit.cpp65 const SIInstrInfo *TII = ST.getInstrInfo(); local
78 if (TII->isMIMG(Opcode) && !MI.mayStore()) {
79 MachineOperand *TFE = TII->getNamedOperand(MI, AMDGPU::OpName::tfe);
80 MachineOperand *LWE = TII->getNamedOperand(MI, AMDGPU::OpName::lwe);
81 MachineOperand *D16 = TII->getNamedOperand(MI, AMDGPU::OpName::d16);
103 TII->getNamedOperand(MI, AMDGPU::OpName::dmask);
112 TII->isGather4(Opcode) ? 4 : countPopulation(dmask);
123 RI->getRegSizeInBits(*TII->getOpRegClass(MI, DstIdx)) / 32;
129 MRI.createVirtualRegister(TII->getOpRegClass(MI, DstIdx));
140 BuildMI(MBB, MI, DL, TII
[all...]
H A DSIPeepholeSDWA.cpp75 const SIInstrInfo *TII; member in class:__anon3989::SIPeepholeSDWA
121 virtual MachineInstr *potentialToConvert(const SIInstrInfo *TII) = 0;
122 virtual bool convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) = 0;
154 MachineInstr *potentialToConvert(const SIInstrInfo *TII) override;
155 bool convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) override;
162 uint64_t getSrcMods(const SIInstrInfo *TII,
181 MachineInstr *potentialToConvert(const SIInstrInfo *TII) override;
182 bool convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) override;
202 bool convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) override;
330 uint64_t SDWASrcOperand::getSrcMods(const SIInstrInfo *TII, argument
355 potentialToConvert(const SIInstrInfo *TII) argument
365 convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) argument
439 potentialToConvert(const SIInstrInfo *TII) argument
458 convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) argument
488 convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) argument
[all...]
H A DSIRemoveShortExecBranches.cpp39 const SIInstrInfo *TII = nullptr; member in class:__anon3993::SIRemoveShortExecBranches
70 if (TII->analyzeBranch(SrcMBB, TrueMBB, FalseMBB, Cond))
96 if (TII->hasUnwantedEffectsWhenEXECEmpty(*I))
99 if (TII->isKillTerminator(I->getOpcode()))
103 if (TII->isSMRD(*I) || TII->isVMEM(*I) || TII->isFLAT(*I) ||
140 TII = ST.getInstrInfo();
H A DR600Packetizer.cpp57 const R600InstrInfo *TII; member in class:__anon3964::R600PacketizerList
72 if (!TII->isALUInstr(I->getOpcode()) && !I->isBundle())
84 if (TII->isPredicated(*BI))
86 int OperandIdx = TII->getOperandIdx(BI->getOpcode(), R600::OpName::write);
89 int DstIdx = TII->getOperandIdx(BI->getOpcode(), R600::OpName::dst);
94 if (isTrans || TII->isTransOnly(*BI)) {
136 int OperandIdx = TII->getOperandIdx(MI.getOpcode(), Ops[i]);
150 TII(ST.getInstrInfo()),
151 TRI(TII->getRegisterInfo()) {
169 if (TII
327 const R600InstrInfo *TII = ST.getInstrInfo(); local
[all...]
H A DR600ClauseMergePass.cpp47 const R600InstrInfo *TII; member in class:__anon3957::R600ClauseMergePass
87 .getOperand(TII->getOperandIdx(MI.getOpcode(), R600::OpName::COUNT))
94 .getOperand(TII->getOperandIdx(MI.getOpcode(), R600::OpName::Enabled))
100 int CntIdx = TII->getOperandIdx(R600::CF_ALU, R600::OpName::COUNT);
119 int CntIdx = TII->getOperandIdx(R600::CF_ALU, R600::OpName::COUNT);
123 if (CumuledInsts >= TII->getMaxAlusPerClause()) {
131 TII->getOperandIdx(R600::CF_ALU, R600::OpName::KCACHE_MODE0);
133 TII->getOperandIdx(R600::CF_ALU, R600::OpName::KCACHE_BANK0);
135 TII->getOperandIdx(R600::CF_ALU, R600::OpName::KCACHE_ADDR0);
147 TII
[all...]
H A DSIFoldOperands.cpp89 const SIInstrInfo *TII; member in class:__anon3971::SIFoldOperands
134 static bool isInlineConstantIfFolded(const SIInstrInfo *TII, argument
138 if (TII->isInlineConstant(UseMI, OpNo, OpToFold))
159 const MCInstrDesc &MadDesc = TII->get(Opc);
160 return TII->isInlineConstant(OpToFold, MadDesc.OpInfo[OpNo].OperandType);
171 static bool frameIndexMayFold(const SIInstrInfo *TII, argument
176 (TII->isMUBUF(UseMI) || TII->isFLATScratch(UseMI)) &&
185 const SIInstrInfo &TII,
215 switch (TII
184 updateOperand(FoldCandidate &Fold, const SIInstrInfo &TII, const TargetRegisterInfo &TRI, const GCNSubtarget &ST) argument
331 tryAddToFoldList(SmallVectorImpl<FoldCandidate> &FoldList, MachineInstr *MI, unsigned OpNo, MachineOperand *OpToFold, const SIInstrInfo *TII) argument
463 isUseSafeToFold(const SIInstrInfo *TII, const MachineInstr &MI, const MachineOperand &UseMO) argument
473 getRegSeqInit( SmallVectorImpl<std::pair<MachineOperand*, unsigned>> &Defs, Register UseReg, uint8_t OpTy, const SIInstrInfo *TII, const MachineRegisterInfo &MRI) argument
506 tryToFoldACImm(const SIInstrInfo *TII, const MachineOperand &OpToFold, MachineInstr *UseMI, unsigned UseOpIdx, SmallVectorImpl<FoldCandidate> &FoldList) argument
1012 tryConstantFoldOp(MachineRegisterInfo &MRI, const SIInstrInfo *TII, MachineInstr *MI, MachineOperand *ImmOp) argument
1132 tryFoldInst(const SIInstrInfo *TII, MachineInstr *MI) argument
[all...]
H A DSIShrinkInstructions.cpp71 static bool foldImmediates(MachineInstr &MI, const SIInstrInfo *TII, argument
73 assert(TII->isVOP1(MI) || TII->isVOP2(MI) || TII->isVOPC(MI));
116 if (TII->commuteInstruction(MI)) {
117 if (foldImmediates(MI, TII, MRI, false))
121 TII->commuteInstruction(MI);
128 static bool isKImmOperand(const SIInstrInfo *TII, const MachineOperand &Src) { argument
130 !TII->isInlineConstant(*Src.getParent(),
134 static bool isKUImmOperand(const SIInstrInfo *TII, cons argument
140 isKImmOrKUImmOperand(const SIInstrInfo *TII, const MachineOperand &Src, bool &IsUnsigned) argument
158 isReverseInlineImm(const SIInstrInfo *TII, const MachineOperand &Src, int32_t &ReverseImm) argument
182 shrinkScalarCompare(const SIInstrInfo *TII, MachineInstr &MI) argument
233 const SIInstrInfo *TII = ST.getInstrInfo(); local
320 shrinkScalarLogicOp(const GCNSubtarget &ST, MachineRegisterInfo &MRI, const SIInstrInfo *TII, MachineInstr &MI) argument
460 matchSwap(MachineInstr &MovT, MachineRegisterInfo &MRI, const SIInstrInfo *TII) argument
564 const SIInstrInfo *TII = ST.getInstrInfo(); local
[all...]
H A DR600EmitClauseMarkers.cpp49 const R600InstrInfo *TII = nullptr; member in class:__anon3959::R600EmitClauseMarkers
67 if (TII->isLDSRetInstr(MI.getOpcode()))
70 if (TII->isVector(MI) || TII->isCubeOp(MI.getOpcode()) ||
71 TII->isReductionOp(MI.getOpcode()))
86 if (TII->isALUInstr(MI.getOpcode()))
88 if (TII->isVector(MI) || TII->isCubeOp(MI.getOpcode()))
134 if (!TII->isALUInstr(MI.getOpcode()) && MI.getOpcode() != R600::DOT_4)
138 TII
[all...]
H A DGCNHazardRecognizer.cpp45 TII(*ST.getInstrInfo()),
46 TRI(TII.getRegisterInfo()),
93 static bool isSendMsgTraceDataOrGDS(const SIInstrInfo &TII, argument
95 if (TII.isAlwaysGDS(MI.getOpcode()))
109 if (TII.isDS(MI.getOpcode())) {
125 static unsigned getHWReg(const SIInstrInfo *TII, const MachineInstr &RegInstr) { argument
126 const MachineOperand *RegOp = TII->getNamedOperand(RegInstr,
177 (TII.isVINTRP(*MI) || isSMovRel(MI->getOpcode())) &&
181 if (ST.hasReadM0SendMsgHazard() && isSendMsgTraceDataOrGDS(TII, *MI) &&
200 static void insertNoopInBundle(MachineInstr *MI, const SIInstrInfo &TII) { argument
608 const SIInstrInfo *TII = ST.getInstrInfo(); local
635 const SIInstrInfo *TII = ST.getInstrInfo(); local
648 const SIInstrInfo *TII = ST.getInstrInfo(); local
661 const SIInstrInfo *TII = ST.getInstrInfo(); local
676 const SIInstrInfo *TII = ST.getInstrInfo(); local
788 const SIInstrInfo *TII = ST.getInstrInfo(); local
813 const SIInstrInfo *TII = ST.getInstrInfo(); local
853 const SIInstrInfo *TII = ST.getInstrInfo(); local
874 const SIInstrInfo *TII = ST.getInstrInfo(); local
943 const SIInstrInfo *TII = ST.getInstrInfo(); local
967 const SIInstrInfo *TII = ST.getInstrInfo(); local
1050 const SIInstrInfo *TII = ST.getInstrInfo(); local
1130 const SIInstrInfo *TII = ST.getInstrInfo(); local
1148 const SIInstrInfo *TII = ST.getInstrInfo(); local
[all...]
H A DSIModeRegister.cpp148 void processBlockPhase1(MachineBasicBlock &MBB, const SIInstrInfo *TII);
150 void processBlockPhase2(MachineBasicBlock &MBB, const SIInstrInfo *TII);
152 void processBlockPhase3(MachineBasicBlock &MBB, const SIInstrInfo *TII);
154 Status getInstructionMode(MachineInstr &MI, const SIInstrInfo *TII);
157 const SIInstrInfo *TII, Status InstrMode);
175 const SIInstrInfo *TII) {
176 if (TII->usesFPDPRounding(MI)) {
197 const SIInstrInfo *TII, Status InstrMode) {
202 BuildMI(MBB, MI, 0, TII->get(AMDGPU::S_SETREG_IMM32_B32))
233 const SIInstrInfo *TII) {
174 getInstructionMode(MachineInstr &MI, const SIInstrInfo *TII) argument
196 insertSetreg(MachineBasicBlock &MBB, MachineInstr *MI, const SIInstrInfo *TII, Status InstrMode) argument
232 processBlockPhase1(MachineBasicBlock &MBB, const SIInstrInfo *TII) argument
331 processBlockPhase2(MachineBasicBlock &MBB, const SIInstrInfo *TII) argument
399 processBlockPhase3(MachineBasicBlock &MBB, const SIInstrInfo *TII) argument
415 const SIInstrInfo *TII = ST.getInstrInfo(); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64A53Fix835769.cpp80 const TargetInstrInfo *TII; member in class:__anon3832::AArch64A53Fix835769
120 TII = F.getSubtarget().getInstrInfo();
131 const TargetInstrInfo *TII) {
144 if (S == PrevBB && !TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) && !TBB &&
156 const TargetInstrInfo *TII) {
161 while ((FMBB = getBBFallenThrough(FMBB, TII))) {
172 const TargetInstrInfo *TII) {
176 MachineInstr *I = getLastNonPseudo(MBB, TII);
179 BuildMI(I->getParent(), DL, TII->get(AArch64::HINT)).addImm(0);
183 BuildMI(MBB, MI, DL, TII
130 getBBFallenThrough(MachineBasicBlock *MBB, const TargetInstrInfo *TII) argument
155 getLastNonPseudo(MachineBasicBlock &MBB, const TargetInstrInfo *TII) argument
171 insertNopBeforeInstruction(MachineBasicBlock &MBB, MachineInstr* MI, const TargetInstrInfo *TII) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp45 const MSP430InstrInfo &TII = local
66 BuildMI(MBB, MBBI, DL, TII.get(MSP430::PUSH16r))
70 BuildMI(MBB, MBBI, DL, TII.get(MSP430::MOV16rr), MSP430::R4)
98 BuildMI(MBB, MBBI, DL, TII.get(MSP430::SUB16ri), MSP430::SP)
110 const MSP430InstrInfo &TII = local
135 BuildMI(MBB, MBBI, DL, TII.get(MSP430::POP16r), MSP430::R4);
157 TII.get(MSP430::MOV16rr), MSP430::SP).addReg(MSP430::R4);
161 TII.get(MSP430::SUB16ri), MSP430::SP)
170 BuildMI(MBB, MBBI, DL, TII.get(MSP430::ADD16ri), MSP430::SP)
189 const TargetInstrInfo &TII local
213 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); local
224 const MSP430InstrInfo &TII = local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHazardRecognizer.cpp41 if (!MI || TII->isZeroCost(MI->getOpcode()))
47 if (TII->mayBeNewStore(*MI)) {
57 MF->CreateMachineInstr(TII->get(TII->getDotNewOp(*MI)),
119 if (TII->isZeroCost(MI->getOpcode()))
125 assert(TII->mayBeNewStore(*MI) && "Expecting .new store");
128 MF->CreateMachineInstr(TII->get(TII->getDotNewOp(*MI)),
142 if (TII->mayBeCurLoad(*MI))
157 if (TII
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineLoopUtils.h38 const TargetInstrInfo *TII);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips16FrameLowering.cpp45 const Mips16InstrInfo &TII = local
62 TII.makeFrame(Mips::SP, StackSize, MBB, MBBI);
67 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION))
82 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION))
87 BuildMI(MBB, MBBI, dl, TII.get(Mips::MoveR3216), Mips::S0)
95 const Mips16InstrInfo &TII = local
104 BuildMI(MBB, MBBI, dl, TII.get(Mips::Move32R16), Mips::SP)
109 TII.restoreFrame(Mips::SP, StackSize, MBB, MBBI);
163 const Mips16InstrInfo &TII = local
165 const MipsRegisterInfo &RI = TII
[all...]
H A DMipsInstructionSelector.cpp61 const MipsInstrInfo &TII; member in class:__anon4222::MipsInstructionSelector
83 : InstructionSelector(), TM(TM), STI(STI), TII(*STI.getInstrInfo()),
113 LLVM_DEBUG(dbgs() << "Failed to constrain " << TII.getName(I.getOpcode())
152 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI);
158 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI);
165 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI);
173 if (!constrainSelectedInstRegOperands(*LUi, TII, TRI, RBI))
175 if (!constrainSelectedInstRegOperands(*ORi, TII, TRI, RBI))
261 BuildMI(*I.getParent(), I, I.getDebugLoc(), TII.get(Opc))
266 if (!constrainSelectedInstRegOperands(*NewInst, TII, TR
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMHazardRecognizer.cpp47 const ARMBaseInstrInfo &TII = *static_cast<const ARMBaseInstrInfo *>( local
52 !(TII.getSubtarget().hasMuxedUnits() && LastMI->mayLoadOrStore()) &&
61 if (TII.isFpMLxInstruction(DefMI->getOpcode()) &&
62 (TII.canCauseFpMLxStall(MI->getOpcode()) ||
63 hasRAWHazard(DefMI, MI, TII.getRegisterInfo()))) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEFrameLowering.cpp43 const VEInstrInfo &TII = local
54 BuildMI(MBB, MBBI, dl, TII.get(VE::STrii))
59 BuildMI(MBB, MBBI, dl, TII.get(VE::STrii))
64 BuildMI(MBB, MBBI, dl, TII.get(VE::STrii))
69 BuildMI(MBB, MBBI, dl, TII.get(VE::STrii))
75 BuildMI(MBB, MBBI, dl, TII.get(VE::STrii))
80 BuildMI(MBB, MBBI, dl, TII.get(VE::ORri), VE::SX9)
92 const VEInstrInfo &TII = local
103 BuildMI(MBB, MBBI, dl, TII.get(VE::ORri), VE::SX11)
107 BuildMI(MBB, MBBI, dl, TII
135 const VEInstrInfo &TII = local
173 const VEInstrInfo &TII = local
210 const VEInstrInfo &TII = *STI.getInstrInfo(); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRFrameLowering.cpp57 const AVRInstrInfo &TII = *STI.getInstrInfo(); local
63 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs))
71 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr))
75 BuildMI(MBB, MBBI, DL, TII.get(AVR::INRdA), AVR::R0)
78 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr))
81 BuildMI(MBB, MBBI, DL, TII.get(AVR::EORRdRr))
104 BuildMI(MBB, MBBI, DL, TII.get(AVR::SPREAD), AVR::R29R28)
121 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(Opcode), AVR::R29R28)
129 BuildMI(MBB, MBBI, DL, TII.get(AVR::SPWRITE), AVR::SP)
152 const AVRInstrInfo &TII local
230 const TargetInstrInfo &TII = *STI.getInstrInfo(); local
269 const TargetInstrInfo &TII = *STI.getInstrInfo(); local
285 fixStackStores(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const TargetInstrInfo &TII, Register FP) argument
319 const AVRInstrInfo &TII = *STI.getInstrInfo(); local
483 const TargetInstrInfo &TII = *STI.getInstrInfo(); variable
[all...]

Completed in 212 milliseconds

1234567891011>>