• Home
  • Raw
  • Download

Lines Matching refs:PhysReg

369 struct PhysReg {  struct
370 constexpr PhysReg() = default;
371 explicit constexpr PhysReg(unsigned r) : reg_b(r << 2) {} in PhysReg() argument
375 constexpr bool operator==(PhysReg other) const { return reg_b == other.reg_b; } argument
376 constexpr bool operator!=(PhysReg other) const { return reg_b != other.reg_b; }
377 constexpr bool operator <(PhysReg other) const { return reg_b < other.reg_b; }
378 …constexpr PhysReg advance(int bytes) const { PhysReg res = *this; res.reg_b += bytes; return res; } in advance() argument
384 static constexpr PhysReg m0{124}; argument
385 static constexpr PhysReg vcc{106};
386 static constexpr PhysReg vcc_hi{107};
387 static constexpr PhysReg tba{108}; /* GFX6-GFX8 */
388 static constexpr PhysReg tma{110}; /* GFX6-GFX8 */
389 static constexpr PhysReg ttmp0{112};
390 static constexpr PhysReg ttmp1{113};
391 static constexpr PhysReg ttmp2{114};
392 static constexpr PhysReg ttmp3{115};
393 static constexpr PhysReg ttmp4{116};
394 static constexpr PhysReg ttmp5{117};
395 static constexpr PhysReg ttmp6{118};
396 static constexpr PhysReg ttmp7{119};
397 static constexpr PhysReg ttmp8{120};
398 static constexpr PhysReg ttmp9{121};
399 static constexpr PhysReg ttmp10{122};
400 static constexpr PhysReg ttmp11{123};
401 static constexpr PhysReg sgpr_null{125}; /* GFX10+ */
402 static constexpr PhysReg exec{126};
403 static constexpr PhysReg exec_lo{126};
404 static constexpr PhysReg exec_hi{127};
405 static constexpr PhysReg vccz{251};
406 static constexpr PhysReg execz{252};
407 static constexpr PhysReg scc{253};
421 : reg_(PhysReg{128}), isTemp_(false), isFixed_(true), isConstant_(false), in Operand()
432 setFixed(PhysReg{128}); in Operand()
443 setFixed(PhysReg{0u}); in Operand()
451 setFixed(PhysReg{128u + v}); in Operand()
453 setFixed(PhysReg{(unsigned)(192 - (int16_t)v)}); in Operand()
455 setFixed(PhysReg{240}); in Operand()
457 setFixed(PhysReg{241}); in Operand()
459 setFixed(PhysReg{242}); in Operand()
461 setFixed(PhysReg{243}); in Operand()
463 setFixed(PhysReg{244}); in Operand()
465 setFixed(PhysReg{245}); in Operand()
467 setFixed(PhysReg{246}); in Operand()
469 setFixed(PhysReg{247}); in Operand()
471 setFixed(PhysReg{248}); in Operand()
473 setFixed(PhysReg{255}); in Operand()
481 setFixed(PhysReg{128 + v});
483 setFixed(PhysReg{192 - v});
485 setFixed(PhysReg{240});
487 setFixed(PhysReg{241});
489 setFixed(PhysReg{242});
491 setFixed(PhysReg{243});
493 setFixed(PhysReg{244});
495 setFixed(PhysReg{245});
497 setFixed(PhysReg{246});
499 setFixed(PhysReg{247});
502 setFixed(PhysReg{255});
511 setFixed(PhysReg{128 + (uint32_t) v}); in Operand()
514 setFixed(PhysReg{192 - (uint32_t) v}); in Operand()
517 setFixed(PhysReg{240}); in Operand()
520 setFixed(PhysReg{241}); in Operand()
523 setFixed(PhysReg{242}); in Operand()
526 setFixed(PhysReg{243}); in Operand()
529 setFixed(PhysReg{244}); in Operand()
532 setFixed(PhysReg{245}); in Operand()
535 setFixed(PhysReg{246}); in Operand()
538 setFixed(PhysReg{247}); in Operand()
548 setFixed(PhysReg{128}); in Operand()
550 explicit Operand(PhysReg reg, RegClass type) noexcept in Operand()
608 constexpr PhysReg physReg() const noexcept in physReg()
613 constexpr void setFixed(PhysReg reg) noexcept in setFixed()
755 PhysReg reg_;
787 Definition(PhysReg reg, RegClass type) noexcept in Definition()
792 Definition(uint32_t tmpId, PhysReg reg, RegClass type) noexcept in Definition()
837 constexpr PhysReg physReg() const noexcept in physReg()
842 constexpr void setFixed(PhysReg reg) noexcept in setFixed()
848 constexpr void setHint(PhysReg reg) noexcept in setHint()
892 PhysReg reg_;
1263 PhysReg scratch_sgpr; /* might not be valid if it's not needed */
1497 PhysReg scratch_sgpr = PhysReg(); /* only needs to be valid if scc_live_out != false */