Lines Matching refs:RC

88 static unsigned getDropOpcode(const TargetRegisterClass *RC) {  in getDropOpcode()  argument
89 if (RC == &WebAssembly::I32RegClass) in getDropOpcode()
91 if (RC == &WebAssembly::I64RegClass) in getDropOpcode()
93 if (RC == &WebAssembly::F32RegClass) in getDropOpcode()
95 if (RC == &WebAssembly::F64RegClass) in getDropOpcode()
97 if (RC == &WebAssembly::V128RegClass) in getDropOpcode()
99 if (RC == &WebAssembly::FUNCREFRegClass) in getDropOpcode()
101 if (RC == &WebAssembly::EXTERNREFRegClass) in getDropOpcode()
103 if (RC == &WebAssembly::EXNREFRegClass) in getDropOpcode()
109 static unsigned getLocalGetOpcode(const TargetRegisterClass *RC) { in getLocalGetOpcode() argument
110 if (RC == &WebAssembly::I32RegClass) in getLocalGetOpcode()
112 if (RC == &WebAssembly::I64RegClass) in getLocalGetOpcode()
114 if (RC == &WebAssembly::F32RegClass) in getLocalGetOpcode()
116 if (RC == &WebAssembly::F64RegClass) in getLocalGetOpcode()
118 if (RC == &WebAssembly::V128RegClass) in getLocalGetOpcode()
120 if (RC == &WebAssembly::FUNCREFRegClass) in getLocalGetOpcode()
122 if (RC == &WebAssembly::EXTERNREFRegClass) in getLocalGetOpcode()
124 if (RC == &WebAssembly::EXNREFRegClass) in getLocalGetOpcode()
130 static unsigned getLocalSetOpcode(const TargetRegisterClass *RC) { in getLocalSetOpcode() argument
131 if (RC == &WebAssembly::I32RegClass) in getLocalSetOpcode()
133 if (RC == &WebAssembly::I64RegClass) in getLocalSetOpcode()
135 if (RC == &WebAssembly::F32RegClass) in getLocalSetOpcode()
137 if (RC == &WebAssembly::F64RegClass) in getLocalSetOpcode()
139 if (RC == &WebAssembly::V128RegClass) in getLocalSetOpcode()
141 if (RC == &WebAssembly::FUNCREFRegClass) in getLocalSetOpcode()
143 if (RC == &WebAssembly::EXTERNREFRegClass) in getLocalSetOpcode()
145 if (RC == &WebAssembly::EXNREFRegClass) in getLocalSetOpcode()
151 static unsigned getLocalTeeOpcode(const TargetRegisterClass *RC) { in getLocalTeeOpcode() argument
152 if (RC == &WebAssembly::I32RegClass) in getLocalTeeOpcode()
154 if (RC == &WebAssembly::I64RegClass) in getLocalTeeOpcode()
156 if (RC == &WebAssembly::F32RegClass) in getLocalTeeOpcode()
158 if (RC == &WebAssembly::F64RegClass) in getLocalTeeOpcode()
160 if (RC == &WebAssembly::V128RegClass) in getLocalTeeOpcode()
162 if (RC == &WebAssembly::FUNCREFRegClass) in getLocalTeeOpcode()
164 if (RC == &WebAssembly::EXTERNREFRegClass) in getLocalTeeOpcode()
166 if (RC == &WebAssembly::EXNREFRegClass) in getLocalTeeOpcode()
172 static MVT typeForRegClass(const TargetRegisterClass *RC) { in typeForRegClass() argument
173 if (RC == &WebAssembly::I32RegClass) in typeForRegClass()
175 if (RC == &WebAssembly::I64RegClass) in typeForRegClass()
177 if (RC == &WebAssembly::F32RegClass) in typeForRegClass()
179 if (RC == &WebAssembly::F64RegClass) in typeForRegClass()
181 if (RC == &WebAssembly::V128RegClass) in typeForRegClass()
183 if (RC == &WebAssembly::FUNCREFRegClass) in typeForRegClass()
185 if (RC == &WebAssembly::EXTERNREFRegClass) in typeForRegClass()
187 if (RC == &WebAssembly::EXNREFRegClass) in typeForRegClass()
311 const TargetRegisterClass *RC = MRI.getRegClass(DefReg); in runOnMachineFunction() local
316 Register NewReg = MRI.createVirtualRegister(RC); in runOnMachineFunction()
317 unsigned Opc = getLocalGetOpcode(RC); in runOnMachineFunction()
327 unsigned Opc = getLocalTeeOpcode(RC); in runOnMachineFunction()
344 const TargetRegisterClass *RC = MRI.getRegClass(OldReg); in runOnMachineFunction() local
345 Register NewReg = MRI.createVirtualRegister(RC); in runOnMachineFunction()
348 unsigned Opc = getDropOpcode(RC); in runOnMachineFunction()
358 unsigned Opc = getLocalSetOpcode(RC); in runOnMachineFunction()
416 const TargetRegisterClass *RC = MRI.getRegClass(OldReg); in runOnMachineFunction() local
417 Register NewReg = MRI.createVirtualRegister(RC); in runOnMachineFunction()
418 unsigned Opc = getLocalGetOpcode(RC); in runOnMachineFunction()