Lines Matching refs:str
38 constexpr size_t ConstexprStrLen(char const* str, size_t count = 0) {
39 return ('\0' == str[0]) ? count : ConstexprStrLen(str+1, count+1);
211 std::string str; variable
227 str += base;
228 str += "\n";
232 return str;
246 std::string str; in RepeatTemplatedRegistersImmBits() local
264 str += base; in RepeatTemplatedRegistersImmBits()
265 str += "\n"; in RepeatTemplatedRegistersImmBits()
270 return str; in RepeatTemplatedRegistersImmBits()
285 std::string str; in RepeatTemplatedImmBitsRegisters() local
299 str += base; in RepeatTemplatedImmBitsRegisters()
300 str += "\n"; in RepeatTemplatedImmBitsRegisters()
304 return str; in RepeatTemplatedImmBitsRegisters()
314 std::string str; in RepeatTemplatedRegisterImmBits() local
328 str += base; in RepeatTemplatedRegisterImmBits()
329 str += "\n"; in RepeatTemplatedRegisterImmBits()
332 return str; in RepeatTemplatedRegisterImmBits()
344 std::string str; in RepeatTemplatedRegisterImmBitsShift() local
358 str += base; in RepeatTemplatedRegisterImmBitsShift()
359 str += "\n"; in RepeatTemplatedRegisterImmBitsShift()
362 return str; in RepeatTemplatedRegisterImmBitsShift()
372 std::string str; variable
383 str += base;
384 str += "\n";
386 return str;
401 std::string str; variable
417 str += base;
418 str += "\n";
422 return str;
668 std::string str; variable
682 str += base;
683 str += "\n";
685 return str;
1231 std::string str; in RepeatTemplatedMem() local
1240 str += base; in RepeatTemplatedMem()
1241 str += "\n"; in RepeatTemplatedMem()
1243 return str; in RepeatTemplatedMem()
1254 std::string str; in RepeatTemplatedMemImm() local
1266 str += base; in RepeatTemplatedMemImm()
1267 str += "\n"; in RepeatTemplatedMemImm()
1270 return str; in RepeatTemplatedMemImm()
1281 std::string str; in RepeatTemplatedRegMem() local
1292 str += base; in RepeatTemplatedRegMem()
1293 str += "\n"; in RepeatTemplatedRegMem()
1296 return str; in RepeatTemplatedRegMem()
1307 std::string str; in RepeatTemplatedMemReg() local
1318 str += base; in RepeatTemplatedMemReg()
1319 str += "\n"; in RepeatTemplatedMemReg()
1322 return str; in RepeatTemplatedMemReg()
1334 std::string str; in RepeatTemplatedRegister() local
1343 str += base; in RepeatTemplatedRegister()
1344 str += "\n"; in RepeatTemplatedRegister()
1346 return str; in RepeatTemplatedRegister()
1359 std::string str; variable
1378 str += base;
1379 str += "\n";
1382 return str;
1394 std::string str; in RepeatTemplatedRegistersNoDupes() local
1406 str += base; in RepeatTemplatedRegistersNoDupes()
1407 str += "\n"; in RepeatTemplatedRegistersNoDupes()
1410 return str; in RepeatTemplatedRegistersNoDupes()
1422 std::string str; in RepeatTemplatedRegisters() local
1435 str += base; in RepeatTemplatedRegisters()
1436 str += "\n"; in RepeatTemplatedRegisters()
1440 return str; in RepeatTemplatedRegisters()
1454 std::string str; in RepeatTemplatedRegisters() local
1469 str += base; in RepeatTemplatedRegisters()
1470 str += "\n"; in RepeatTemplatedRegisters()
1475 return str; in RepeatTemplatedRegisters()
1489 std::string str; in RepeatTemplatedRegistersImm() local
1503 str += base; in RepeatTemplatedRegistersImm()
1504 str += "\n"; in RepeatTemplatedRegistersImm()
1508 return str; in RepeatTemplatedRegistersImm()
1514 return saddr.str(); in GetAddrName()
1537 return sreg.str(); in GetRegName()
1543 return sreg.str(); in GetFPRegName()
1549 return sreg.str(); in GetVecRegName()
1560 /*inout*/ std::string* str) { in ReplaceReg() argument
1562 while ((reg_index = str->find(reg_token)) != std::string::npos) { in ReplaceReg()
1563 str->replace(reg_index, reg_token.length(), replacement); in ReplaceReg()
1570 /*inout*/ std::string* str) { in ReplaceImm() argument
1571 size_t imm_index = str->find(IMM_TOKEN); in ReplaceImm()
1575 std::string imm_string = sreg.str(); in ReplaceImm()
1576 str->replace(imm_index, ConstexprStrLen(IMM_TOKEN), imm_string); in ReplaceImm()
1580 static void ReplaceAddr(const std::string& replacement, /*inout*/ std::string* str) { in ReplaceAddr() argument
1582 if ((addr_index = str->find(ADDRESS_TOKEN)) != std::string::npos) { in ReplaceAddr()
1583 str->replace(addr_index, ConstexprStrLen(ADDRESS_TOKEN), replacement); in ReplaceAddr()
1601 std::string str; in RepeatRegisterImm() local
1617 str += base; in RepeatRegisterImm()
1618 str += "\n"; in RepeatRegisterImm()
1621 return str; in RepeatRegisterImm()