Home
last modified time | relevance | path

Searched refs:Opc (Results 1 – 25 of 159) sorted by relevance

1234567

/NextBSD/contrib/llvm/lib/Target/Mips/
HDMipsSEInstrInfo.cpp43 unsigned Opc = MI->getOpcode(); in isLoadFromStackSlot() local
45 if ((Opc == Mips::LW) || (Opc == Mips::LD) || in isLoadFromStackSlot()
46 (Opc == Mips::LWC1) || (Opc == Mips::LDC1) || (Opc == Mips::LDC164)) { in isLoadFromStackSlot()
65 unsigned Opc = MI->getOpcode(); in isStoreToStackSlot() local
67 if ((Opc == Mips::SW) || (Opc == Mips::SD) || in isStoreToStackSlot()
68 (Opc == Mips::SWC1) || (Opc == Mips::SDC1) || (Opc == Mips::SDC164)) { in isStoreToStackSlot()
83 unsigned Opc = 0, ZeroReg = 0; in copyPhysReg() local
89 Opc = Mips::MOVE16_MM; in copyPhysReg()
91 Opc = Mips::ADDu, ZeroReg = Mips::ZERO; in copyPhysReg()
93 Opc = Mips::CFC1; in copyPhysReg()
[all …]
HDMips16InstrInfo.cpp65 unsigned Opc = 0; in copyPhysReg() local
69 Opc = Mips::MoveR3216; in copyPhysReg()
72 Opc = Mips::Move32R16; in copyPhysReg()
75 Opc = Mips::Mfhi16, SrcReg = 0; in copyPhysReg()
79 Opc = Mips::Mflo16, SrcReg = 0; in copyPhysReg()
82 assert(Opc && "Cannot copy registers"); in copyPhysReg()
84 MachineInstrBuilder MIB = BuildMI(MBB, I, DL, get(Opc)); in copyPhysReg()
102 unsigned Opc = 0; in storeRegToStack() local
104 Opc = Mips::SwRxSpImmX16; in storeRegToStack()
105 assert(Opc && "Register class not handled!"); in storeRegToStack()
[all …]
HDMipsFastISel.cpp149 MachineInstrBuilder emitInst(unsigned Opc) { in emitInst() argument
150 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in emitInst()
152 MachineInstrBuilder emitInst(unsigned Opc, unsigned DstReg) { in emitInst() argument
153 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), in emitInst()
156 MachineInstrBuilder emitInstStore(unsigned Opc, unsigned SrcReg, in emitInstStore() argument
158 return emitInst(Opc).addReg(SrcReg).addReg(MemReg).addImm(MemOffset); in emitInstStore()
160 MachineInstrBuilder emitInstLoad(unsigned Opc, unsigned DstReg, in emitInstLoad() argument
162 return emitInst(Opc, DstReg).addReg(MemReg).addImm(MemOffset); in emitInstLoad()
238 unsigned Opc; in emitLogicalOp() local
240 Opc = Mips::AND; in emitLogicalOp()
[all …]
/NextBSD/contrib/llvm/lib/Target/Hexagon/
HDHexagonExpandPredSpillCode.cpp82 int Opc = MI->getOpcode(); in runOnMachineFunction() local
83 if (Opc == Hexagon::S2_storerb_pci_pseudo || in runOnMachineFunction()
84 Opc == Hexagon::S2_storerh_pci_pseudo || in runOnMachineFunction()
85 Opc == Hexagon::S2_storeri_pci_pseudo || in runOnMachineFunction()
86 Opc == Hexagon::S2_storerd_pci_pseudo || in runOnMachineFunction()
87 Opc == Hexagon::S2_storerf_pci_pseudo) { in runOnMachineFunction()
89 if (Opc == Hexagon::S2_storerd_pci_pseudo) in runOnMachineFunction()
91 else if (Opc == Hexagon::S2_storeri_pci_pseudo) in runOnMachineFunction()
93 else if (Opc == Hexagon::S2_storerh_pci_pseudo) in runOnMachineFunction()
95 else if (Opc == Hexagon::S2_storerf_pci_pseudo) in runOnMachineFunction()
[all …]
HDHexagonCFGOptimizer.cpp58 static bool IsConditionalBranch(int Opc) { in IsConditionalBranch() argument
59 return (Opc == Hexagon::J2_jumpt) || (Opc == Hexagon::J2_jumpf) in IsConditionalBranch()
60 || (Opc == Hexagon::J2_jumptnewpt) || (Opc == Hexagon::J2_jumpfnewpt); in IsConditionalBranch()
64 static bool IsUnconditionalJump(int Opc) { in IsUnconditionalJump() argument
65 return (Opc == Hexagon::J2_jump); in IsUnconditionalJump()
111 int Opc = MI->getOpcode(); in runOnMachineFunction() local
112 if (IsConditionalBranch(Opc)) { in runOnMachineFunction()
HDHexagonSplitConst32AndConst64.cpp90 int Opc = MI->getOpcode(); in runOnMachineFunction() local
91 if (Opc == Hexagon::CONST32_Int_Real && in runOnMachineFunction()
106 else if (Opc == Hexagon::CONST32_Int_Real || in runOnMachineFunction()
107 Opc == Hexagon::CONST32_Float_Real) { in runOnMachineFunction()
113 if (Opc == Hexagon::CONST32_Float_Real) { in runOnMachineFunction()
125 else if (Opc == Hexagon::CONST64_Int_Real || in runOnMachineFunction()
126 Opc == Hexagon::CONST64_Float_Real) { in runOnMachineFunction()
132 if (Opc == Hexagon::CONST64_Float_Real) { in runOnMachineFunction()
HDHexagonGenPredicate.cpp94 unsigned getPredForm(unsigned Opc);
96 bool isScalarCmp(unsigned Opc);
120 unsigned HexagonGenPredicate::getPredForm(unsigned Opc) { in getPredForm() argument
123 switch (Opc) { in getPredForm()
166 unsigned Opc = MI->getOpcode(); in isConvertibleToPredForm() local
167 if (getPredForm(Opc) != 0) in isConvertibleToPredForm()
174 switch (Opc) { in isConvertibleToPredForm()
190 unsigned Opc = MI->getOpcode(); in collectPredicateGPR() local
191 switch (Opc) { in collectPredicateGPR()
238 unsigned Opc = DefI->getOpcode(); in getPredRegFor() local
[all …]
/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXISelDAGToDAG.cpp576 unsigned Opc; in SelectAddrSpaceCast() local
580 Opc = TM.is64Bit() ? NVPTX::cvta_global_yes_64 : NVPTX::cvta_global_yes; in SelectAddrSpaceCast()
583 Opc = TM.is64Bit() ? NVPTX::cvta_shared_yes_64 : NVPTX::cvta_shared_yes; in SelectAddrSpaceCast()
586 Opc = TM.is64Bit() ? NVPTX::cvta_const_yes_64 : NVPTX::cvta_const_yes; in SelectAddrSpaceCast()
589 Opc = TM.is64Bit() ? NVPTX::cvta_local_yes_64 : NVPTX::cvta_local_yes; in SelectAddrSpaceCast()
592 return CurDAG->getMachineNode(Opc, SDLoc(N), N->getValueType(0), Src); in SelectAddrSpaceCast()
597 unsigned Opc; in SelectAddrSpaceCast() local
601 Opc = TM.is64Bit() ? NVPTX::cvta_to_global_yes_64 in SelectAddrSpaceCast()
605 Opc = TM.is64Bit() ? NVPTX::cvta_to_shared_yes_64 in SelectAddrSpaceCast()
609 Opc = in SelectAddrSpaceCast()
[all …]
/NextBSD/contrib/llvm/lib/Target/ARM/
HDARMBaseInstrInfo.h95 virtual unsigned getUnindexedOpcode(unsigned Opc) const =0;
405 bool isUncondBranchOpcode(int Opc) { in isUncondBranchOpcode() argument
406 return Opc == ARM::B || Opc == ARM::tB || Opc == ARM::t2B; in isUncondBranchOpcode()
410 bool isCondBranchOpcode(int Opc) { in isCondBranchOpcode() argument
411 return Opc == ARM::Bcc || Opc == ARM::tBcc || Opc == ARM::t2Bcc; in isCondBranchOpcode()
415 bool isJumpTableBranchOpcode(int Opc) { in isJumpTableBranchOpcode() argument
416 return Opc == ARM::BR_JTr || Opc == ARM::BR_JTm || Opc == ARM::BR_JTadd || in isJumpTableBranchOpcode()
417 Opc == ARM::tBR_JTr || Opc == ARM::t2BR_JT; in isJumpTableBranchOpcode()
421 bool isIndirectBranchOpcode(int Opc) { in isIndirectBranchOpcode() argument
422 return Opc == ARM::BX || Opc == ARM::MOVPCRX || Opc == ARM::tBRIND; in isIndirectBranchOpcode()
[all …]
HDARMFastISel.cpp474 unsigned Opc; in ARMMaterializeFP() local
477 Opc = ARM::FCONSTD; in ARMMaterializeFP()
480 Opc = ARM::FCONSTS; in ARMMaterializeFP()
484 TII.get(Opc), DestReg).addImm(Imm)); in ARMMaterializeFP()
499 unsigned Opc = is64bit ? ARM::VLDRD : ARM::VLDRS; in ARMMaterializeFP() local
503 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), DestReg) in ARMMaterializeFP()
518 unsigned Opc = isThumb2 ? ARM::t2MOVi16 : ARM::MOVi16; in ARMMaterializeInt() local
523 TII.get(Opc), ImmReg) in ARMMaterializeInt()
534 unsigned Opc = isThumb2 ? ARM::t2MVNi : ARM::MVNi; in ARMMaterializeInt() local
539 TII.get(Opc), ImmReg) in ARMMaterializeInt()
[all …]
HDARMInstrInfo.cpp52 unsigned ARMInstrInfo::getUnindexedOpcode(unsigned Opc) const { in getUnindexedOpcode()
53 switch (Opc) { in getUnindexedOpcode()
171 unsigned Opc = STI.isThumb2() ? ARM::t2LDRpci : ARM::LDRcp; in runOnMachineFunction() local
174 TII.get(Opc), TempReg) in runOnMachineFunction()
176 if (Opc == ARM::LDRcp) in runOnMachineFunction()
182 Opc = STI.isThumb2() ? ARM::tPICADD : ARM::PICADD; in runOnMachineFunction()
183 MIB = BuildMI(FirstMBB, MBBI, DL, TII.get(Opc), GlobalBaseReg) in runOnMachineFunction()
186 if (Opc == ARM::PICADD) in runOnMachineFunction()
HDARMISelDAGToDAG.cpp114 bool SelectLdStSOReg(SDValue N, SDValue &Base, SDValue &Offset, SDValue &Opc);
117 SDValue &Offset, SDValue &Opc);
119 SDValue &Opc) { in SelectAddrMode2Base() argument
120 return SelectAddrMode2Worker(N, Base, Offset, Opc) == AM2_BASE; in SelectAddrMode2Base()
124 SDValue &Opc) { in SelectAddrMode2ShOp() argument
125 return SelectAddrMode2Worker(N, Base, Offset, Opc) == AM2_SHOP; in SelectAddrMode2ShOp()
129 SDValue &Opc) { in SelectAddrMode2() argument
130 SelectAddrMode2Worker(N, Base, Offset, Opc); in SelectAddrMode2()
144 SDValue &Offset, SDValue &Opc);
146 SDValue &Offset, SDValue &Opc);
[all …]
HDARMLoadStoreOptimizer.cpp337 static bool isT1i32Load(unsigned Opc) { in isT1i32Load() argument
338 return Opc == ARM::tLDRi || Opc == ARM::tLDRspi; in isT1i32Load()
341 static bool isT2i32Load(unsigned Opc) { in isT2i32Load() argument
342 return Opc == ARM::t2LDRi12 || Opc == ARM::t2LDRi8; in isT2i32Load()
345 static bool isi32Load(unsigned Opc) { in isi32Load() argument
346 return Opc == ARM::LDRi12 || isT1i32Load(Opc) || isT2i32Load(Opc) ; in isi32Load()
349 static bool isT1i32Store(unsigned Opc) { in isT1i32Store() argument
350 return Opc == ARM::tSTRi || Opc == ARM::tSTRspi; in isT1i32Store()
353 static bool isT2i32Store(unsigned Opc) { in isT2i32Store() argument
354 return Opc == ARM::t2STRi12 || Opc == ARM::t2STRi8; in isT2i32Store()
[all …]
/NextBSD/contrib/llvm/lib/Target/PowerPC/
HDPPCFastISel.cpp113 unsigned fastEmit_i(MVT Ty, MVT RetTy, unsigned Opc, uint64_t Imm) override;
451 unsigned Opc; in PPCEmitLoad() local
475 Opc = Is32BitInt ? PPC::LBZ : PPC::LBZ8; in PPCEmitLoad()
478 Opc = (IsZExt ? in PPCEmitLoad()
483 Opc = (IsZExt ? in PPCEmitLoad()
486 if ((Opc == PPC::LWA || Opc == PPC::LWA_32) && ((Addr.Offset & 3) != 0)) in PPCEmitLoad()
490 Opc = PPC::LD; in PPCEmitLoad()
496 Opc = PPC::LFS; in PPCEmitLoad()
499 Opc = FP64LoadOpc; in PPCEmitLoad()
512 bool Is32VSXLoad = IsVSSRC && Opc == PPC::LFS; in PPCEmitLoad()
[all …]
/NextBSD/contrib/llvm/lib/Target/AArch64/
HDAArch64InstrInfo.cpp305 unsigned Opc = 0; in canFoldIntoCSel() local
321 Opc = Is64Bit ? AArch64::CSINCXr : AArch64::CSINCWr; in canFoldIntoCSel()
331 Opc = Is64Bit ? AArch64::CSINVXr : AArch64::CSINVWr; in canFoldIntoCSel()
348 Opc = Is64Bit ? AArch64::CSNEGXr : AArch64::CSNEGWr; in canFoldIntoCSel()
354 assert(Opc && SrcOpNum && "Missing parameters"); in canFoldIntoCSel()
358 return Opc; in canFoldIntoCSel()
486 unsigned Opc = 0; in insertSelect() local
491 Opc = AArch64::CSELXr; in insertSelect()
495 Opc = AArch64::CSELWr; in insertSelect()
499 Opc = AArch64::FCSELDrrr; in insertSelect()
[all …]
HDAArch64ConditionalCompares.cpp580 unsigned Opc = 0; in convert() local
584 Opc = AArch64::SUBSWri; in convert()
588 Opc = AArch64::SUBSXri; in convert()
593 const MCInstrDesc &MCID = TII->get(Opc); in convert()
612 unsigned Opc = 0; in convert() local
618 case AArch64::SUBSWri: Opc = AArch64::CCMPWi; break; in convert()
619 case AArch64::SUBSWrr: Opc = AArch64::CCMPWr; break; in convert()
620 case AArch64::SUBSXri: Opc = AArch64::CCMPXi; break; in convert()
621 case AArch64::SUBSXrr: Opc = AArch64::CCMPXr; break; in convert()
622 case AArch64::ADDSWri: Opc = AArch64::CCMNWi; break; in convert()
[all …]
HDAArch64ConditionOptimizer.cpp191 static int getComplementOpc(int Opc) { in getComplementOpc() argument
192 switch (Opc) { in getComplementOpc()
218 unsigned Opc = CmpMI->getOpcode(); in adjustCmp() local
222 bool Negative = (Opc == AArch64::ADDSWri || Opc == AArch64::ADDSXri); in adjustCmp()
237 Opc = getComplementOpc(Opc); in adjustCmp()
240 return CmpInfo(NewImm, Opc, getAdjustedCmp(Cmp)); in adjustCmp()
247 unsigned Opc; in modifyCmp() local
249 std::tie(Imm, Opc, Cmp) = Info; in modifyCmp()
254 BuildMI(*MBB, CmpMI, CmpMI->getDebugLoc(), TII->get(Opc)) in modifyCmp()
HDAArch64LoadStoreOptimizer.cpp123 static bool isUnscaledLdst(unsigned Opc) { in isUnscaledLdst() argument
124 switch (Opc) { in isUnscaledLdst()
193 static unsigned getMatchingNonSExtOpcode(unsigned Opc, in getMatchingNonSExtOpcode() argument
197 switch (Opc) { in getMatchingNonSExtOpcode()
222 return Opc; in getMatchingNonSExtOpcode()
230 static unsigned getMatchingPairOpcode(unsigned Opc) { in getMatchingPairOpcode() argument
231 switch (Opc) { in getMatchingPairOpcode()
270 static unsigned getPreIndexedOpcode(unsigned Opc) { in getPreIndexedOpcode() argument
271 switch (Opc) { in getPreIndexedOpcode()
299 static unsigned getPostIndexedOpcode(unsigned Opc) { in getPostIndexedOpcode() argument
[all …]
HDAArch64FastISel.cpp370 unsigned Opc = Is64Bit ? AArch64::FMOVDi : AArch64::FMOVSi; in materializeFP() local
371 return fastEmitInst_i(Opc, TLI.getRegClassFor(VT), Imm); in materializeFP()
403 unsigned Opc = Is64Bit ? AArch64::LDRDui : AArch64::LDRSui; in materializeFP() local
405 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in materializeFP()
491 unsigned Opc = Is64Bit ? AArch64::FMOVXDr : AArch64::FMOVWSr; in fastMaterializeFloatZero() local
492 return fastEmitInst_r(Opc, TLI.getRegClassFor(VT), ZReg, /*IsKill=*/true); in fastMaterializeFloatZero()
1252 unsigned Opc = OpcTable[SetFlags][UseAdd][Is64Bit]; in emitAddSub_rr() local
1261 const MCInstrDesc &II = TII.get(Opc); in emitAddSub_rr()
1294 unsigned Opc = OpcTable[SetFlags][UseAdd][Is64Bit]; in emitAddSub_ri() local
1306 const MCInstrDesc &II = TII.get(Opc); in emitAddSub_ri()
[all …]
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86FastISel.cpp96 bool X86FastEmitExtend(ISD::NodeType Opc, EVT DstVT, unsigned Src, EVT SrcVT,
128 bool X86SelectFPExtOrFPTrunc(const Instruction *I, unsigned Opc,
351 unsigned Opc = 0; in X86FastEmitLoad() local
357 Opc = X86::MOV8rm; in X86FastEmitLoad()
361 Opc = X86::MOV16rm; in X86FastEmitLoad()
365 Opc = X86::MOV32rm; in X86FastEmitLoad()
370 Opc = X86::MOV64rm; in X86FastEmitLoad()
375 Opc = Subtarget->hasAVX() ? X86::VMOVSSrm : X86::MOVSSrm; in X86FastEmitLoad()
378 Opc = X86::LD_Fp32m; in X86FastEmitLoad()
384 Opc = Subtarget->hasAVX() ? X86::VMOVSDrm : X86::MOVSDrm; in X86FastEmitLoad()
[all …]
HDX86FrameLowering.cpp167 unsigned Opc = MBBI->getOpcode(); in findDeadCallerSavedReg() local
168 switch (Opc) { in findDeadCallerSavedReg()
263 unsigned Opc = Is64Bit ? X86::MOV64ri : X86::MOV32ri; in emitSPUpdate() local
264 BuildMI(MBB, MBBI, DL, TII.get(Opc), Reg) in emitSPUpdate()
266 Opc = isSub in emitSPUpdate()
269 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in emitSPUpdate()
285 unsigned Opc = isSub in emitSPUpdate() local
288 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(Opc)) in emitSPUpdate()
340 unsigned Opc = IsSub ? getSUBriOpcode(Uses64BitFramePtr, AbsOffset) in BuildStackAdjustment() local
342 MI = BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in BuildStackAdjustment()
[all …]
HDX86ISelDAGToDAG.cpp199 SDNode *SelectGather(SDNode *N, unsigned Opc);
1870 unsigned Opc = 0; in SelectAtomicLoadArith() local
1875 Opc = AtomicOpcTbl[Op][ConstantI8]; in SelectAtomicLoadArith()
1877 Opc = AtomicOpcTbl[Op][I8]; in SelectAtomicLoadArith()
1882 Opc = AtomicOpcTbl[Op][SextConstantI16]; in SelectAtomicLoadArith()
1884 Opc = AtomicOpcTbl[Op][ConstantI16]; in SelectAtomicLoadArith()
1886 Opc = AtomicOpcTbl[Op][I16]; in SelectAtomicLoadArith()
1891 Opc = AtomicOpcTbl[Op][SextConstantI32]; in SelectAtomicLoadArith()
1893 Opc = AtomicOpcTbl[Op][ConstantI32]; in SelectAtomicLoadArith()
1895 Opc = AtomicOpcTbl[Op][I32]; in SelectAtomicLoadArith()
[all …]
/NextBSD/contrib/llvm/utils/TableGen/
HDFixedLenDecoderEmitter.cpp414 void SingletonExists(unsigned Opc) const;
432 unsigned Opc) const;
434 bool doesOpcodeNeedPredicate(unsigned Opc) const;
437 unsigned Opc) const;
440 unsigned Opc) const;
444 unsigned Opc) const;
453 void emitDecoder(raw_ostream &OS, unsigned Indentation, unsigned Opc) const;
454 unsigned getDecoderIndex(DecoderSet &Decoders, unsigned Opc) const;
790 unsigned Opc = decodeULEB128(Buffer); in emitTable() local
802 << NumberedInstructions->at(Opc)->TheDef->getName() << "\n"; in emitTable()
[all …]
/NextBSD/contrib/llvm/lib/Target/AMDGPU/
HDSILoadStoreOptimizer.cpp227 unsigned Opc = (EltSize == 4) ? AMDGPU::DS_READ2_B32 : AMDGPU::DS_READ2_B64; in mergeRead2Pair() local
235 Opc = (EltSize == 4) ? AMDGPU::DS_READ2ST64_B32 : AMDGPU::DS_READ2ST64_B64; in mergeRead2Pair()
242 const MCInstrDesc &Read2Desc = TII->get(Opc); in mergeRead2Pair()
323 unsigned Opc = (EltSize == 4) ? AMDGPU::DS_WRITE2_B32 : AMDGPU::DS_WRITE2_B64; in mergeWrite2Pair() local
331 Opc = (EltSize == 4) ? AMDGPU::DS_WRITE2ST64_B32 : AMDGPU::DS_WRITE2ST64_B64; in mergeWrite2Pair()
338 const MCInstrDesc &Write2Desc = TII->get(Opc); in mergeWrite2Pair()
394 unsigned Opc = MI.getOpcode(); in optimizeBlock() local
395 if (Opc == AMDGPU::DS_READ_B32 || Opc == AMDGPU::DS_READ_B64) { in optimizeBlock()
396 unsigned Size = (Opc == AMDGPU::DS_READ_B64) ? 8 : 4; in optimizeBlock()
406 } else if (Opc == AMDGPU::DS_WRITE_B32 || Opc == AMDGPU::DS_WRITE_B64) { in optimizeBlock()
[all …]
/NextBSD/contrib/llvm/include/llvm/IR/
HDInstrTypes.h194 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
196 BinaryOperator *BO = Create(Opc, V1, V2, Name);
200 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
202 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB);
206 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
208 BinaryOperator *BO = Create(Opc, V1, V2, Name, I);
213 static BinaryOperator *CreateNUW(BinaryOps Opc, Value *V1, Value *V2,
215 BinaryOperator *BO = Create(Opc, V1, V2, Name);
219 static BinaryOperator *CreateNUW(BinaryOps Opc, Value *V1, Value *V2,
221 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB);
[all …]

1234567