Lines Matching full:noexcept
163 bool canReplace(float_mode other) const noexcept in canReplace()
377 Temp() noexcept : id_(0), reg_class(0) {} in Temp()
378 constexpr Temp(uint32_t id, RegClass cls) noexcept : id_(id), reg_class(uint8_t(cls)) {} in Temp()
380 constexpr uint32_t id() const noexcept { return id_; } in id()
381 constexpr RegClass regClass() const noexcept { return (RegClass::RC)reg_class; } in regClass()
383 constexpr unsigned bytes() const noexcept { return regClass().bytes(); } in bytes()
384 constexpr unsigned size() const noexcept { return regClass().size(); } in size()
385 constexpr RegType type() const noexcept { return regClass().type(); } in type()
386 constexpr bool is_linear() const noexcept { return regClass().is_linear(); } in is_linear()
388 constexpr bool operator<(Temp other) const noexcept { return id() < other.id(); }
389 constexpr bool operator==(Temp other) const noexcept { return id() == other.id(); }
390 constexpr bool operator!=(Temp other) const noexcept { return id() != other.id(); }
467 explicit Operand(Temp r) noexcept in Operand()
477 explicit Operand(Temp r, PhysReg reg) noexcept in Operand()
486 static Operand c8(uint8_t v) noexcept in c8()
501 static Operand c16(uint16_t v) noexcept in c16()
536 static Operand c32(uint32_t v) noexcept { return c32_or_c64(v, false); } in c32()
539 static Operand c64(uint64_t v) noexcept in c64()
586 static Operand c32_or_c64(uint32_t v, bool is64bit) noexcept in c32_or_c64()
620 static Operand literal32(uint32_t v) noexcept in literal32()
631 explicit Operand(RegClass type) noexcept in Operand()
637 explicit Operand(PhysReg reg, RegClass type) noexcept in Operand()
643 static Operand zero(unsigned bytes = 4) noexcept
700 constexpr bool isTemp() const noexcept { return isTemp_; } in isTemp()
702 constexpr void setTemp(Temp t) noexcept in setTemp()
710 constexpr Temp getTemp() const noexcept { return data_.temp; } in getTemp()
712 constexpr uint32_t tempId() const noexcept { return data_.temp.id(); } in tempId()
714 constexpr bool hasRegClass() const noexcept { return !isConstant(); } in hasRegClass()
716 constexpr RegClass regClass() const noexcept { return data_.temp.regClass(); } in regClass()
718 constexpr unsigned bytes() const noexcept in bytes()
726 constexpr unsigned size() const noexcept in size()
734 constexpr bool isFixed() const noexcept { return isFixed_; } in isFixed()
736 constexpr PhysReg physReg() const noexcept { return reg_; } in physReg()
738 constexpr void setFixed(PhysReg reg) noexcept in setFixed()
744 constexpr bool isPrecolored() const noexcept { return isPrecolored_; } in isPrecolored()
745 constexpr void setPrecolored(PhysReg reg) noexcept in setPrecolored()
751 constexpr bool isConstant() const noexcept { return isConstant_; } in isConstant()
753 constexpr bool isLiteral() const noexcept { return isConstant() && reg_ == 255; } in isLiteral()
755 constexpr bool isUndefined() const noexcept { return isUndef_; } in isUndefined()
757 constexpr uint32_t constantValue() const noexcept { return data_.i; } in constantValue()
759 constexpr bool constantEquals(uint32_t cmp) const noexcept in constantEquals()
764 constexpr uint64_t constantValue64() const noexcept in constantValue64()
791 constexpr uint16_t constantValue16(bool opsel) const noexcept in constantValue16()
804 constexpr bool isOfType(RegType type) const noexcept in isOfType()
812 constexpr void setLateKill(bool flag) noexcept { isLateKill_ = flag; } in setLateKill()
814 constexpr bool isLateKill() const noexcept { return isLateKill_; } in isLateKill()
817 constexpr void setClobbered(bool flag) noexcept { isClobbered_ = flag; } in setClobbered()
818 constexpr bool isClobbered() const noexcept { return isClobbered_; } in isClobbered()
823 constexpr void setCopyKill(bool flag) noexcept in setCopyKill()
829 constexpr bool isCopyKill() const noexcept { return isCopyKill_; } in isCopyKill()
831 constexpr void setKill(bool flag) noexcept in setKill()
840 constexpr bool isKill() const noexcept { return isKill_ || isFirstKill(); } in isKill()
842 constexpr void setFirstKill(bool flag) noexcept in setFirstKill()
851 constexpr bool isFirstKill() const noexcept { return isFirstKill_; } in isFirstKill()
853 constexpr bool isKillBeforeDef() const noexcept { return isKill() && !isLateKill(); } in isKillBeforeDef()
855 constexpr bool isFirstKillBeforeDef() const noexcept { return isFirstKill() && !isLateKill(); } in isFirstKillBeforeDef()
857 constexpr bool operator==(Operand other) const noexcept
878 constexpr bool operator!=(Operand other) const noexcept { return !operator==(other); }
880 constexpr void set16bit(bool flag) noexcept { is16bit_ = flag; } in set16bit()
882 constexpr bool is16bit() const noexcept { return is16bit_; } in is16bit()
884 constexpr void set24bit(bool flag) noexcept { is24bit_ = flag; } in set24bit()
886 constexpr bool is24bit() const noexcept { return is24bit_; } in is24bit()
929 explicit Definition(Temp tmp) noexcept : temp(tmp) {} in Definition()
930 explicit Definition(PhysReg reg, RegClass type) noexcept : temp(Temp(0, type)) { setFixed(reg); } in Definition()
931 explicit Definition(Temp tmp, PhysReg reg) noexcept : temp(tmp) { setPrecolored(reg); } in Definition()
933 constexpr bool isTemp() const noexcept { return tempId() > 0; } in isTemp()
935 constexpr Temp getTemp() const noexcept { return temp; } in getTemp()
937 constexpr uint32_t tempId() const noexcept { return temp.id(); } in tempId()
939 constexpr void setTemp(Temp t) noexcept { temp = t; } in setTemp()
941 void swapTemp(Definition& other) noexcept { std::swap(temp, other.temp); } in swapTemp()
943 constexpr RegClass regClass() const noexcept { return temp.regClass(); } in regClass()
945 constexpr unsigned bytes() const noexcept { return temp.bytes(); } in bytes()
947 constexpr unsigned size() const noexcept { return temp.size(); } in size()
949 constexpr bool isFixed() const noexcept { return isFixed_; } in isFixed()
951 constexpr PhysReg physReg() const noexcept { return reg_; } in physReg()
953 constexpr void setFixed(PhysReg reg) noexcept in setFixed()
959 constexpr bool isPrecolored() const noexcept { return isPrecolored_; } in isPrecolored()
960 constexpr void setPrecolored(PhysReg reg) noexcept in setPrecolored()
966 constexpr void setKill(bool flag) noexcept { isKill_ = flag; } in setKill()
968 constexpr bool isKill() const noexcept { return isKill_; } in isKill()
970 constexpr void setPrecise(bool precise) noexcept { isPrecise_ = precise; } in setPrecise()
972 constexpr bool isPrecise() const noexcept { return isPrecise_; } in isPrecise()
974 constexpr void setInfPreserve(bool inf_preserve) noexcept { isInfPreserve_ = inf_preserve; } in setInfPreserve()
976 constexpr bool isInfPreserve() const noexcept { return isInfPreserve_; } in isInfPreserve()
978 constexpr void setNaNPreserve(bool nan_preserve) noexcept { isNaNPreserve_ = nan_preserve; } in setNaNPreserve()
980 constexpr bool isNaNPreserve() const noexcept { return isNaNPreserve_; } in isNaNPreserve()
982 constexpr void setSZPreserve(bool sz_preserve) noexcept { isSZPreserve_ = sz_preserve; } in setSZPreserve()
984 constexpr bool isSZPreserve() const noexcept { return isSZPreserve_; } in isSZPreserve()
987 constexpr void setNUW(bool nuw) noexcept { isNUW_ = nuw; } in setNUW()
989 constexpr bool isNUW() const noexcept { return isNUW_; } in isNUW()
991 constexpr void setNoCSE(bool noCSE) noexcept { isNoCSE_ = noCSE; } in setNoCSE()
993 constexpr bool isNoCSE() const noexcept { return isNoCSE_; } in isNoCSE()
1017 constexpr RegisterDemand(const int16_t v, const int16_t s) noexcept : vgpr{v}, sgpr{s} {} in RegisterDemand()
1021 constexpr friend bool operator==(const RegisterDemand a, const RegisterDemand b) noexcept
1026 constexpr bool exceeds(const RegisterDemand other) const noexcept in exceeds()
1031 constexpr RegisterDemand operator+(const Temp t) const noexcept
1039 constexpr RegisterDemand operator+(const RegisterDemand other) const noexcept
1044 constexpr RegisterDemand operator-(const RegisterDemand other) const noexcept
1049 constexpr RegisterDemand& operator+=(const RegisterDemand other) noexcept
1056 constexpr RegisterDemand& operator-=(const RegisterDemand other) noexcept
1063 constexpr RegisterDemand& operator+=(const Temp t) noexcept
1072 constexpr RegisterDemand& operator-=(const Temp t) noexcept
1081 constexpr void update(const RegisterDemand other) noexcept in update()
1122 constexpr bool usesModifiers() const noexcept;
1124 constexpr bool reads_exec() const noexcept in reads_exec()
1133 constexpr bool writes_exec() const noexcept in writes_exec()
1142 Pseudo_instruction& pseudo() noexcept in pseudo()
1147 const Pseudo_instruction& pseudo() const noexcept in pseudo()
1152 constexpr bool isPseudo() const noexcept { return format == Format::PSEUDO; } in isPseudo()
1154 constexpr bool isSOP1() const noexcept { return format == Format::SOP1; } in isSOP1()
1155 constexpr bool isSOP2() const noexcept { return format == Format::SOP2; } in isSOP2()
1156 constexpr bool isSOPK() const noexcept { return format == Format::SOPK; } in isSOPK()
1157 constexpr bool isSOPP() const noexcept { return format == Format::SOPP; } in isSOPP()
1158 constexpr bool isSOPC() const noexcept { return format == Format::SOPC; } in isSOPC()
1160 SMEM_instruction& smem() noexcept in smem()
1165 const SMEM_instruction& smem() const noexcept in smem()
1170 constexpr bool isSMEM() const noexcept { return format == Format::SMEM; } in isSMEM()
1171 DS_instruction& ds() noexcept in ds()
1176 const DS_instruction& ds() const noexcept in ds()
1181 constexpr bool isDS() const noexcept { return format == Format::DS; } in isDS()
1182 LDSDIR_instruction& ldsdir() noexcept in ldsdir()
1187 const LDSDIR_instruction& ldsdir() const noexcept in ldsdir()
1192 constexpr bool isLDSDIR() const noexcept { return format == Format::LDSDIR; } in isLDSDIR()
1193 MTBUF_instruction& mtbuf() noexcept in mtbuf()
1198 const MTBUF_instruction& mtbuf() const noexcept in mtbuf()
1203 constexpr bool isMTBUF() const noexcept { return format == Format::MTBUF; } in isMTBUF()
1204 MUBUF_instruction& mubuf() noexcept in mubuf()
1209 const MUBUF_instruction& mubuf() const noexcept in mubuf()
1214 constexpr bool isMUBUF() const noexcept { return format == Format::MUBUF; } in isMUBUF()
1215 MIMG_instruction& mimg() noexcept in mimg()
1220 const MIMG_instruction& mimg() const noexcept in mimg()
1225 constexpr bool isMIMG() const noexcept { return format == Format::MIMG; } in isMIMG()
1226 Export_instruction& exp() noexcept in exp()
1231 const Export_instruction& exp() const noexcept in exp()
1236 constexpr bool isEXP() const noexcept { return format == Format::EXP; } in isEXP()
1237 FLAT_instruction& flat() noexcept in flat()
1242 const FLAT_instruction& flat() const noexcept in flat()
1247 constexpr bool isFlat() const noexcept { return format == Format::FLAT; } in isFlat()
1248 FLAT_instruction& global() noexcept in global()
1253 const FLAT_instruction& global() const noexcept in global()
1258 constexpr bool isGlobal() const noexcept { return format == Format::GLOBAL; } in isGlobal()
1259 FLAT_instruction& scratch() noexcept in scratch()
1264 const FLAT_instruction& scratch() const noexcept in scratch()
1269 constexpr bool isScratch() const noexcept { return format == Format::SCRATCH; } in isScratch()
1270 Pseudo_branch_instruction& branch() noexcept in branch()
1275 const Pseudo_branch_instruction& branch() const noexcept in branch()
1280 constexpr bool isBranch() const noexcept { return format == Format::PSEUDO_BRANCH; } in isBranch()
1281 Pseudo_barrier_instruction& barrier() noexcept in barrier()
1286 const Pseudo_barrier_instruction& barrier() const noexcept in barrier()
1291 constexpr bool isBarrier() const noexcept { return format == Format::PSEUDO_BARRIER; } in isBarrier()
1292 Pseudo_reduction_instruction& reduction() noexcept in reduction()
1297 const Pseudo_reduction_instruction& reduction() const noexcept in reduction()
1302 constexpr bool isReduction() const noexcept { return format == Format::PSEUDO_REDUCTION; } in isReduction()
1303 constexpr bool isVOP3P() const noexcept { return (uint16_t)format & (uint16_t)Format::VOP3P; } in isVOP3P()
1304 VINTERP_inreg_instruction& vinterp_inreg() noexcept in vinterp_inreg()
1309 const VINTERP_inreg_instruction& vinterp_inreg() const noexcept in vinterp_inreg()
1314 constexpr bool isVINTERP_INREG() const noexcept { return format == Format::VINTERP_INREG; } in isVINTERP_INREG()
1315 VOPD_instruction& vopd() noexcept in vopd()
1320 const VOPD_instruction& vopd() const noexcept in vopd()
1325 constexpr bool isVOPD() const noexcept { return format == Format::VOPD; } in isVOPD()
1326 constexpr bool isVOP1() const noexcept { return (uint16_t)format & (uint16_t)Format::VOP1; } in isVOP1()
1327 constexpr bool isVOP2() const noexcept { return (uint16_t)format & (uint16_t)Format::VOP2; } in isVOP2()
1328 constexpr bool isVOPC() const noexcept { return (uint16_t)format & (uint16_t)Format::VOPC; } in isVOPC()
1329 constexpr bool isVOP3() const noexcept { return (uint16_t)format & (uint16_t)Format::VOP3; } in isVOP3()
1330 VINTRP_instruction& vintrp() noexcept in vintrp()
1335 const VINTRP_instruction& vintrp() const noexcept in vintrp()
1340 constexpr bool isVINTRP() const noexcept { return format == Format::VINTRP; } in isVINTRP()
1341 DPP16_instruction& dpp16() noexcept in dpp16()
1346 const DPP16_instruction& dpp16() const noexcept in dpp16()
1351 constexpr bool isDPP16() const noexcept { return (uint16_t)format & (uint16_t)Format::DPP16; } in isDPP16()
1352 DPP8_instruction& dpp8() noexcept in dpp8()
1357 const DPP8_instruction& dpp8() const noexcept in dpp8()
1362 constexpr bool isDPP8() const noexcept { return (uint16_t)format & (uint16_t)Format::DPP8; } in isDPP8()
1363 constexpr bool isDPP() const noexcept { return isDPP16() || isDPP8(); } in isDPP()
1364 SDWA_instruction& sdwa() noexcept in sdwa()
1369 const SDWA_instruction& sdwa() const noexcept in sdwa()
1374 constexpr bool isSDWA() const noexcept { return (uint16_t)format & (uint16_t)Format::SDWA; } in isSDWA()
1380 constexpr bool isFlatLike() const noexcept { return isFlat() || isGlobal() || isScratch(); } in isFlatLike()
1382 VALU_instruction& valu() noexcept in valu()
1387 const VALU_instruction& valu() const noexcept in valu()
1392 constexpr bool isVALU() const noexcept in isVALU()
1398 SALU_instruction& salu() noexcept in salu()
1403 const SALU_instruction& salu() const noexcept in salu()
1408 constexpr bool isSALU() const noexcept in isSALU()
1413 constexpr bool isVMEM() const noexcept { return isMTBUF() || isMUBUF() || isMIMG(); } in isVMEM()
1415 bool accessesLDS() const noexcept;
1416 bool isTrans() const noexcept;
1781 Instruction::accessesLDS() const noexcept in accessesLDS()
1817 Instruction::usesModifiers() const noexcept in usesModifiers()