Home
last modified time | relevance | path

Searched refs:MachineInstrBuilder (Results 1 – 25 of 146) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DMachineIRBuilder.h74 void addDefToMIB(MachineRegisterInfo &MRI, MachineInstrBuilder &MIB) const { in addDefToMIB()
122 MachineInstrBuilder SrcMIB;
132 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp()
142 void addSrcToMIB(MachineInstrBuilder &MIB) const { in addSrcToMIB()
333 MachineInstrBuilder buildInstr(unsigned Opcode);
340 MachineInstrBuilder buildInstrNoInsert(unsigned Opcode);
343 MachineInstrBuilder insertInstr(MachineInstrBuilder MIB);
347 MachineInstrBuilder buildDirectDbgValue(Register Reg, const MDNode *Variable,
353 MachineInstrBuilder buildIndirectDbgValue(Register Reg,
360 MachineInstrBuilder buildFIDbgValue(int FI, const MDNode *Variable,
[all …]
DCSEMIRBuilder.h50 MachineInstrBuilder getDominatingInstrForID(FoldingSetNodeID &ID,
78 MachineInstrBuilder memoizeMI(MachineInstrBuilder MIB, void *NodeInsertPos);
82 MachineInstrBuilder generateCopiesIfRequired(ArrayRef<DstOp> DstOps,
83 MachineInstrBuilder &MIB);
94 MachineInstrBuilder buildInstr(unsigned Opc, ArrayRef<DstOp> DstOps,
100 MachineInstrBuilder buildConstant(const DstOp &Res,
105 MachineInstrBuilder buildFConstant(const DstOp &Res,
DInstructionSelector.h36 class MachineInstrBuilder; variable
417 Optional<SmallVector<std::function<void(MachineInstrBuilder &)>, 4>>;
419 using NewMIVector = SmallVector<MachineInstrBuilder, 4>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineInstrBuilder.h60 class MachineInstrBuilder {
65 MachineInstrBuilder() = default;
69 MachineInstrBuilder(MachineFunction &F, MachineInstr *I) : MF(&F), MI(I) {} in MachineInstrBuilder() function
70 MachineInstrBuilder(MachineFunction &F, MachineBasicBlock::iterator I) in MachineInstrBuilder() function
88 const MachineInstrBuilder &addReg(Register RegNo, unsigned flags = 0,
107 const MachineInstrBuilder &addDef(Register RegNo, unsigned Flags = 0,
114 const MachineInstrBuilder &addUse(Register RegNo, unsigned Flags = 0,
122 const MachineInstrBuilder &addImm(int64_t Val) const { in addImm()
127 const MachineInstrBuilder &addCImm(const ConstantInt *Val) const { in addCImm()
132 const MachineInstrBuilder &addFPImm(const ConstantFP *Val) const { in addFPImm()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstrBuilder.h123 static inline const MachineInstrBuilder &
124 addDirectMem(const MachineInstrBuilder &MIB, unsigned Reg) { in addDirectMem()
142 static inline const MachineInstrBuilder &
143 addOffset(const MachineInstrBuilder &MIB, int Offset) { in addOffset()
147 static inline const MachineInstrBuilder &
148 addOffset(const MachineInstrBuilder &MIB, const MachineOperand& Offset) { in addOffset()
156 static inline const MachineInstrBuilder &
157 addRegOffset(const MachineInstrBuilder &MIB, in addRegOffset()
164 static inline const MachineInstrBuilder &addRegReg(const MachineInstrBuilder &MIB, in addRegReg()
171 static inline const MachineInstrBuilder &
[all …]
DX86FixupBWInsts.cpp298 MachineInstrBuilder MIB = in tryReplaceLoad()
333 MachineInstrBuilder MIB = in tryReplaceCopy()
361 MachineInstrBuilder MIB = in tryReplaceExtend()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DMachineIRBuilder.cpp74 MachineInstrBuilder MachineIRBuilder::buildInstr(unsigned Opcode) { in buildInstr()
78 MachineInstrBuilder MachineIRBuilder::buildInstrNoInsert(unsigned Opcode) { in buildInstrNoInsert()
79 MachineInstrBuilder MIB = BuildMI(getMF(), getDL(), getTII().get(Opcode)); in buildInstrNoInsert()
83 MachineInstrBuilder MachineIRBuilder::insertInstr(MachineInstrBuilder MIB) { in insertInstr()
89 MachineInstrBuilder
102 MachineInstrBuilder
115 MachineInstrBuilder MachineIRBuilder::buildFIDbgValue(int FI, in buildFIDbgValue()
130 MachineInstrBuilder MachineIRBuilder::buildConstDbgValue(const Constant &C, in buildConstDbgValue()
154 MachineInstrBuilder MachineIRBuilder::buildDbgLabel(const MDNode *Label) { in buildDbgLabel()
163 MachineInstrBuilder MachineIRBuilder::buildDynStackAlloc(const DstOp &Res, in buildDynStackAlloc()
[all …]
DCSEMIRBuilder.cpp33 MachineInstrBuilder
46 return MachineInstrBuilder(getMF(), MI); in getDominatingInstrForID()
48 return MachineInstrBuilder(); in getDominatingInstrForID()
105 MachineInstrBuilder CSEMIRBuilder::memoizeMI(MachineInstrBuilder MIB, in memoizeMI()
124 MachineInstrBuilder
126 MachineInstrBuilder &MIB) { in generateCopiesIfRequired()
137 MachineInstrBuilder CSEMIRBuilder::buildInstr(unsigned Opc, in buildInstr()
193 MachineInstrBuilder MIB = getDominatingInstrForID(ID, InsertPos); in buildInstr()
199 MachineInstrBuilder NewMIB = in buildInstr()
204 MachineInstrBuilder CSEMIRBuilder::buildConstant(const DstOp &Res, in buildConstant()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DInstrEmitter.h24 class MachineInstrBuilder; variable
46 MachineInstrBuilder &MIB,
59 void AddRegisterOperand(MachineInstrBuilder &MIB,
70 void AddOperand(MachineInstrBuilder &MIB,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp504 MachineInstrBuilder MIB = in selectG_MERGE_VALUES()
1004 MachineInstrBuilder MIB = B.buildInstr(Opc) in selectStoreIntrinsic()
1095 MachineInstrBuilder DS = in selectDSOrderedIntrinsic()
1868 [=](MachineInstrBuilder &MIB) { MIB.add(Root); } in selectVCSRC()
1899 [=](MachineInstrBuilder &MIB) { MIB.add(Root); } in selectVSRC0()
1910 [=](MachineInstrBuilder &MIB) { MIB.addReg(Src); }, in selectVOP3Mods0()
1911 [=](MachineInstrBuilder &MIB) { MIB.addImm(Mods); }, // src0_mods in selectVOP3Mods0()
1912 [=](MachineInstrBuilder &MIB) { MIB.addImm(0); }, // clamp in selectVOP3Mods0()
1913 [=](MachineInstrBuilder &MIB) { MIB.addImm(0); } // omod in selectVOP3Mods0()
1920 [=](MachineInstrBuilder &MIB) { MIB.add(Root); }, in selectVOP3OMods()
[all …]
DR600InstrInfo.h36 class MachineInstrBuilder; variable
48 MachineInstrBuilder buildIndirectRead(MachineBasicBlock *MBB,
54 MachineInstrBuilder buildIndirectWrite(MachineBasicBlock *MBB,
244 MachineInstrBuilder buildIndirectWrite(MachineBasicBlock *MBB,
252 MachineInstrBuilder buildIndirectRead(MachineBasicBlock *MBB,
266 MachineInstrBuilder buildDefaultInstruction(MachineBasicBlock &MBB,
DAMDGPUInstructionSelector.h173 void renderTruncImm32(MachineInstrBuilder &MIB, const MachineInstr &MI,
176 void renderTruncTImm(MachineInstrBuilder &MIB, const MachineInstr &MI,
179 void renderNegateImm(MachineInstrBuilder &MIB, const MachineInstr &MI,
182 void renderBitcastImm(MachineInstrBuilder &MIB, const MachineInstr &MI,
185 void renderPopcntImm(MachineInstrBuilder &MIB, const MachineInstr &MI,
DAMDGPUCallLowering.h23 class MachineInstrBuilder; variable
42 ArrayRef<Register> VRegs, MachineInstrBuilder &Ret) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCInstrBuilder.h31 static inline const MachineInstrBuilder&
32 addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMInstructionSelector.cpp47 bool selectCmp(CmpConstants Helper, MachineInstrBuilder &MIB,
60 bool selectGlobal(MachineInstrBuilder &MIB, MachineRegisterInfo &MRI) const;
61 bool selectSelect(MachineInstrBuilder &MIB, MachineRegisterInfo &MRI) const;
62 bool selectShift(unsigned ShiftOpc, MachineInstrBuilder &MIB) const;
141 void renderVFPF32Imm(MachineInstrBuilder &New, const MachineInstr &Old,
143 void renderVFPF64Imm(MachineInstrBuilder &New, const MachineInstr &Old,
233 static bool selectMergeValues(MachineInstrBuilder &MIB, in selectMergeValues()
264 static bool selectUnmergeValues(MachineInstrBuilder &MIB, in selectUnmergeValues()
485 InsertInfo(MachineInstrBuilder &MIB) in InsertInfo()
529 MachineInstrBuilder &MIB, in selectCmp()
[all …]
DARMCallLowering.h27 class MachineInstrBuilder; variable
47 MachineInstrBuilder &Ret) const;
DARMExpandPseudoInsts.cpp62 MachineInstrBuilder &UseMI, MachineInstrBuilder &DefMI);
92 MachineInstrBuilder &UseMI, in INITIALIZE_PASS()
93 MachineInstrBuilder &DefMI) { in INITIALIZE_PASS()
479 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, MI.getDebugLoc(), in ExpandVLD()
590 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, MI.getDebugLoc(), in ExpandVST()
667 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, MI.getDebugLoc(), in ExpandLaneOp()
752 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(Opc)); in ExpandVTBL()
837 MachineInstrBuilder LO16, HI16; in ExpandMOV32BitImm()
954 MachineInstrBuilder MIB = in ExpandCMP_SWAP()
967 MachineInstrBuilder MIB; in ExpandCMP_SWAP()
[all …]
DARMBaseInstrInfo.h233 const MachineInstrBuilder &AddDReg(MachineInstrBuilder &MIB, unsigned Reg,
735 void addUnpredicatedMveVpredNOp(MachineInstrBuilder &MIB);
736 void addUnpredicatedMveVpredROp(MachineInstrBuilder &MIB, unsigned DestReg);
738 void addPredicatedMveVpredNOp(MachineInstrBuilder &MIB, unsigned Cond);
739 void addPredicatedMveVpredROp(MachineInstrBuilder &MIB, unsigned Cond,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZInstrBuilder.h25 static inline const MachineInstrBuilder &
26 addFrameReference(const MachineInstrBuilder &MIB, int FI) { in addFrameReference()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMips16InstrInfo.cpp90 MachineInstrBuilder MIB = BuildMI(MBB, I, DL, get(Opc)); in copyPhysReg()
184 static void addSaveRestoreRegs(MachineInstrBuilder &MIB, in addSaveRestoreRegs()
218 MachineInstrBuilder MIB; in makeFrame()
248 MachineInstrBuilder MIB; in restoreFrame()
287 MachineInstrBuilder MIB1 = BuildMI(MBB, I, DL, get(Mips::LwConstant32), Reg1); in adjustStackPtrBig()
289 MachineInstrBuilder MIB2 = BuildMI(MBB, I, DL, get(Mips::MoveR3216), Reg2); in adjustStackPtrBig()
291 MachineInstrBuilder MIB3 = BuildMI(MBB, I, DL, get(Mips::AdduRxRyRz16), Reg1); in adjustStackPtrBig()
294 MachineInstrBuilder MIB4 = BuildMI(MBB, I, DL, get(Mips::Move32R16), in adjustStackPtrBig()
DMipsCallLowering.cpp123 MachineInstrBuilder &MIB) in CallReturnHandler()
131 MachineInstrBuilder &MIB;
228 MachineInstrBuilder &MIB) in OutgoingValueHandler()
246 MachineInstrBuilder &MIB;
417 MachineInstrBuilder Ret = MIRBuilder.buildInstrNoInsert(Mips::RetRA); in lowerReturn()
521 MachineInstrBuilder Copy = in lowerFormalArguments()
525 MachineInstrBuilder FrameIndex = in lowerFormalArguments()
563 MachineInstrBuilder CallSeqStart = in lowerCall()
569 MachineInstrBuilder MIB = MIRBuilder.buildInstrNoInsert( in lowerCall()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ExpandPseudoInsts.cpp92 static void transferImpOps(MachineInstr &OldMI, MachineInstrBuilder &UseMI, in transferImpOps()
93 MachineInstrBuilder &DefMI) { in transferImpOps()
128 SmallVector<MachineInstrBuilder, 4> MIBS; in expandMOVImm()
469 MachineInstrBuilder MIB1 = in expandMI()
488 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
504 MachineInstrBuilder MIB1 = in expandMI()
507 MachineInstrBuilder MIB2; in expandMI()
556 MachineInstrBuilder MIB1 = in expandMI()
577 MachineInstrBuilder MIB2 = in expandMI()
627 MachineInstrBuilder MIB = in expandMI()
[all …]
DAArch64InstructionSelector.cpp263 void renderTruncImm(MachineInstrBuilder &MIB, const MachineInstr &MI,
265 void renderLogicalImm32(MachineInstrBuilder &MIB, const MachineInstr &I,
267 void renderLogicalImm64(MachineInstrBuilder &MIB, const MachineInstr &I,
1715 MachineInstrBuilder(MF, I).addImm(I.getOperand(2).getImm() + in select()
1748 MachineInstrBuilder(MF, I).addImm(Width - 1); in select()
1805 MachineInstrBuilder MIB(MF, I); in select()
4163 return {{[=](MachineInstrBuilder &MIB) { MIB.addImm(Enc); }}}; in selectShiftA_32()
4172 return {{[=](MachineInstrBuilder &MIB) { MIB.addImm(Enc); }}}; in selectShiftB_32()
4181 return {{[=](MachineInstrBuilder &MIB) { MIB.addImm(Enc); }}}; in selectShiftA_64()
4190 return {{[=](MachineInstrBuilder &MIB) { MIB.addImm(Enc); }}}; in selectShiftB_64()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineSSAUpdater.cpp116 MachineInstrBuilder InsertNewDef(unsigned Opcode, in InsertNewDef()
189 MachineInstrBuilder InsertedPHI = InsertNewDef(TargetOpcode::PHI, BB, in GetValueInMiddleOfBlock()
316 MachineInstrBuilder(*Pred->getParent(), PHI).addReg(Val).addMBB(Pred); in AddPHIOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVCallLowering.cpp28 MachineInstrBuilder Ret = MIRBuilder.buildInstrNoInsert(RISCV::PseudoRET); in lowerReturn()

123456