Lines Matching defs:Insts

125                                      SmallVectorImpl<uint32_t> &Insts) {
130 Insts.push_back(JMP_INST(0, LO10(Addr), scratch));
131 Insts.push_back(NOP_INST);
139 Insts.push_back(SETHI_INST(HI22(Addr), scratch));
140 Insts.push_back(JMP_INST(scratch, LO10(Addr), scratch));
141 Insts.push_back(SUB_INST(scratch, 4, scratch));
150 Insts.push_back(SETHI_INST(HIX22(Addr), scratch));
151 Insts.push_back(XOR_INST(scratch, LOX10(Addr), scratch));
152 Insts.push_back(JMP_INST(scratch, 0, scratch));
153 Insts.push_back(SUB_INST(scratch, 8, scratch));
162 Insts.push_back(RDPC_INST(scratch));
163 Insts.push_back(LDX_INST(scratch, 16, scratch));
164 Insts.push_back(JMP_INST(scratch, 0, scratch));
165 Insts.push_back(SUB_INST(scratch, 8, scratch));
166 Insts.push_back((uint32_t)(((int64_t)Addr) >> 32) & 0xffffffff);
167 Insts.push_back((uint32_t)(Addr & 0xffffffff));
178 // Insts.push_back(SETHI_INST(HH22(Addr), scratch));
179 // Insts.push_back(OR_INST_I(scratch, HM10(Addr), scratch));
180 // Insts.push_back(SLLX_INST(scratch, 32, scratch));
181 // Insts.push_back(SETHI_INST(HI22(Addr), scratch2));
182 // Insts.push_back(OR_INST_R(scratch, scratch2, scratch));
183 // Insts.push_back(JMP_INST(scratch, LO10(Addr), scratch));
184 // Insts.push_back(SUB_INST(scratch, 20, scratch));
195 SmallVector<uint32_t, 8> Insts;
199 Insts.push_back(BA_INST(diff));
200 Insts.push_back(NOP_INST);
203 emitInstrForIndirectJump(NewVal, 1, Insts);
206 for (unsigned i = 0, e = Insts.size(); i != e; ++i)
207 *(uint32_t *)(StubAddr + i*4) = Insts[i];
209 sys::Memory::InvalidateInstructionCache((void*) StubAddr, Insts.size() * 4);
235 SmallVector<uint32_t, 8> Insts;
240 Insts.push_back(BA_INST(diff));
241 Insts.push_back(NOP_INST);
247 if (Insts.size() == 0)
248 emitInstrForIndirectJump(EmittedAddr, 1, Insts);
251 if (!sys::Memory::setRangeWritable(Addr, 4 * Insts.size()))
254 for (unsigned i = 0, e = Insts.size(); i != e; ++i)
255 JCE.emitWordBE(Insts[i]);
257 sys::Memory::InvalidateInstructionCache(Addr, 4 * Insts.size());
258 if (!sys::Memory::setRangeExecutable(Addr, 4 * Insts.size()))