Lines Matching refs:MF
37 bool runOnMachineFunction(MachineFunction &MF) override;
44 void replaceImageHandle(MachineOperand &Op, MachineFunction &MF);
45 bool findIndexForHandle(MachineOperand &Op, MachineFunction &MF,
55 bool NVPTXReplaceImageHandles::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument
59 for (MachineFunction::iterator BI = MF.begin(), BE = MF.end(); BI != BE; in runOnMachineFunction()
80 MachineFunction &MF = *MI.getParent()->getParent(); in processInstr() local
87 replaceImageHandle(TexHandle, MF); in processInstr()
91 replaceImageHandle(SampHandle, MF); in processInstr()
102 replaceImageHandle(SurfHandle, MF); in processInstr()
109 replaceImageHandle(SurfHandle, MF); in processInstr()
116 replaceImageHandle(Handle, MF); in processInstr()
125 replaceImageHandle(MachineOperand &Op, MachineFunction &MF) { in replaceImageHandle() argument
127 if (findIndexForHandle(Op, MF, Idx)) { in replaceImageHandle()
133 findIndexForHandle(MachineOperand &Op, MachineFunction &MF, unsigned &Idx) { in findIndexForHandle() argument
134 const MachineRegisterInfo &MRI = MF.getRegInfo(); in findIndexForHandle()
135 NVPTXMachineFunctionInfo *MFI = MF.getInfo<NVPTXMachineFunctionInfo>(); in findIndexForHandle()
147 static_cast<const NVPTXTargetMachine &>(MF.getTarget()); in findIndexForHandle()
155 std::string ParamBaseName = MF.getName(); in findIndexForHandle()
161 NewSymStr << MF.getFunction()->getName() << "_param_" << Param; in findIndexForHandle()
178 bool Res = findIndexForHandle(TexHandleDef.getOperand(1), MF, Idx); in findIndexForHandle()