Home
last modified time | relevance | path

Searched refs:RegNumT (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceRegistersMIPS32.h68 static inline GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR()
74 static inline bool isGPRReg(RegNumT RegNum) { in isGPRReg()
82 static inline FPRRegister getEncodedFPR(RegNumT RegNum) { in getEncodedFPR()
88 static inline bool isFPRReg(RegNumT RegNum) { in isFPRReg()
93 static inline FPRRegister getEncodedFPR64(RegNumT RegNum) { in getEncodedFPR64()
99 static inline bool isFPR64Reg(RegNumT RegNum) { in isFPR64Reg()
104 const char *getRegName(RegNumT RegNum);
106 static inline RegNumT get64PairFirstRegNum(RegNumT RegNum) { in get64PairFirstRegNum()
111 return RegNumT::fixme(((RegNum - Reg_F64PAIR_First) * 2) + in get64PairFirstRegNum()
114 return RegNumT::fixme(((RegNum - Reg_I64PAIR_First) * 2) + in get64PairFirstRegNum()
[all …]
DIceRegistersARM32.h105 static inline void assertValidRegNum(RegNumT RegNum) { in assertValidRegNum()
110 static inline bool isGPRegister(RegNumT RegNum) { in isGPRegister()
125 static inline GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR()
140 static inline bool isGPR(RegNumT RegNum) { in isGPR()
145 static inline GPRRegister getI64PairFirstGPRNum(RegNumT RegNum) { in getI64PairFirstGPRNum()
150 static inline GPRRegister getI64PairSecondGPRNum(RegNumT RegNum) { in getI64PairSecondGPRNum()
155 static inline bool isI64RegisterPair(RegNumT RegNum) { in isI64RegisterPair()
160 static inline bool isEncodedSReg(RegNumT RegNum) { in isEncodedSReg()
175 static inline SRegister getEncodedSReg(RegNumT RegNum) { in getEncodedSReg()
180 static inline bool isEncodedDReg(RegNumT RegNum) { in isEncodedDReg()
[all …]
DIceRegistersX8664.h80 static inline const char *getRegName(RegNumT RegNum) { in getRegName()
93 static inline GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR()
107 static inline ByteRegister getEncodedByteReg(RegNumT RegNum) { in getEncodedByteReg()
121 static inline bool isXmm(RegNumT RegNum) { in isXmm()
133 static inline XmmRegister getEncodedXmm(RegNumT RegNum) { in getEncodedXmm()
147 static inline uint32_t getEncoding(RegNumT RegNum) { in getEncoding()
160 static inline RegNumT getBaseReg(RegNumT RegNum) { in getBaseReg()
161 static const RegNumT BaseRegs[Reg_NUM] = { in getBaseReg()
174 static inline RegNumT getFirstGprForType(Type Ty) { in getFirstGprForType()
191 static inline RegNumT getGprForType(Type Ty, RegNumT RegNum) { in getGprForType()
[all …]
DIceTargetLoweringMIPS32.h67 Variable *getPhysicalRegister(RegNumT RegNum,
69 const char *getRegName(RegNumT RegNum, Type Ty) const override;
84 const SmallBitVector &getAliasesForRegister(RegNumT Reg) const override { in getAliasesForRegister()
89 RegNumT getStackReg() const override { return RegMIPS32::Reg_SP; } in getStackReg()
90 RegNumT getFrameReg() const override { return RegMIPS32::Reg_FP; } in getFrameReg()
91 RegNumT getFrameOrStackReg() const override { in getFrameOrStackReg()
94 RegNumT getReservedTmpReg() const { return RegMIPS32::Reg_AT; } in getReservedTmpReg()
634 RegNumT RegNum = RegNumT());
636 Variable *legalizeToVar(Operand *From, RegNumT RegNum = RegNumT());
638 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
[all …]
DIceRegistersX8632.h95 static inline const char *getRegName(RegNumT RegNum) { in getRegName()
108 static inline GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR()
122 static inline ByteRegister getEncodedByteReg(RegNumT RegNum) { in getEncodedByteReg()
136 static inline bool isXmm(RegNumT RegNum) { in isXmm()
148 static inline XmmRegister getEncodedXmm(RegNumT RegNum) { in getEncodedXmm()
162 static inline uint32_t getEncoding(RegNumT RegNum) { in getEncoding()
175 static inline RegNumT getBaseReg(RegNumT RegNum) { in getBaseReg()
176 static const RegNumT BaseRegs[Reg_NUM] = { in getBaseReg()
205 static inline RegNumT getGprForType(Type Ty, RegNumT RegNum) { in getGprForType()
240 const RegNumT NewRegNum = \ in getGprForType()
[all …]
DIceOperand.h457 class RegNumT {
460 RegNumT() = default;
461 RegNumT(const RegNumT &) = default;
463 RegNumT(AnyEnum Value,
468 RegNumT &operator=(const RegNumT &) = default;
473 static RegNumT fromInt(BaseType Value) { return RegNumT(Value); } in fromInt()
478 static RegNumT fixme(BaseType Value) { return RegNumT(Value); } in fixme()
498 RegNumT(BaseType Value) : Value(Value) { validate(Value); } in RegNumT() function
506 bool operator<(const RegNumT &) = delete;
507 bool operator<=(const RegNumT &) = delete;
[all …]
DIceTargetLoweringX8632.h147 Variable *getPhysicalRegister(RegNumT RegNum,
149 const char *getRegName(RegNumT RegNum, Type Ty) const override;
185 const SmallBitVector &getAliasesForRegister(RegNumT Reg) const override { in getAliasesForRegister()
192 RegNumT getStackReg() const override { return RegX8632::Reg_esp; } in getStackReg()
193 RegNumT getFrameReg() const override { return RegX8632::Reg_ebp; } in getFrameReg()
194 RegNumT getFrameOrStackReg() const override { in getFrameOrStackReg()
257 Operand *legalizeUndef(Operand *From, RegNumT RegNum = RegNumT());
396 RegNumT RegNum = RegNumT());
397 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
406 Variable *makeReg(Type Ty, RegNumT RegNum = RegNumT());
[all …]
DIceTargetLoweringX8664.h148 Variable *getPhysicalRegister(RegNumT RegNum,
150 const char *getRegName(RegNumT RegNum, Type Ty) const override;
186 const SmallBitVector &getAliasesForRegister(RegNumT Reg) const override { in getAliasesForRegister()
193 RegNumT getStackReg() const override { return RegX8664::Reg_rsp; } in getStackReg()
194 RegNumT getFrameReg() const override { return RegX8664::Reg_rbp; } in getFrameReg()
195 RegNumT getFrameOrStackReg() const override { in getFrameOrStackReg()
253 Operand *legalizeUndef(Operand *From, RegNumT RegNum = RegNumT());
392 RegNumT RegNum = RegNumT());
393 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
402 Variable *makeReg(Type Ty, RegNumT RegNum = RegNumT());
[all …]
DIceRegAlloc.cpp90 for (RegNumT i : RegNumBVIter(RegMask)) { in findMinWeightIndex()
342 RegAliases[Reg] = &Target->getAliasesForRegister(RegNumT::fromInt(Reg)); in init()
424 for (RegNumT RegAlias : RegNumBVIter(Aliases)) { in addSpillFill()
434 const RegNumT RegNum = *RegNumBVIter(Iter.RegMask).begin(); in addSpillFill()
469 for (RegNumT RegAlias : RegNumBVIter(Aliases)) { in handleActiveRangeExpiredOrInactive()
493 for (RegNumT RegAlias : RegNumBVIter(Aliases)) { in handleInactiveRangeExpiredOrReactivated()
512 Iter.PreferReg = RegNumT(); in findRegisterPreference()
546 Iter.PreferReg = RegNumT::fromInt(SrcReg); in findRegisterPreference()
572 for (RegNumT RegAlias : RegNumBVIter(Aliases)) { in filterFreeWithInactiveRanges()
605 for (RegNumT RegAlias : RegNumBVIter(Aliases)) { in filterFreeWithPrecoloredRanges()
[all …]
DIceTargetLoweringARM32.h93 Variable *getPhysicalRegister(RegNumT RegNum,
95 const char *getRegName(RegNumT RegNum, Type Ty) const override;
115 const SmallBitVector &getAliasesForRegister(RegNumT Reg) const override { in getAliasesForRegister()
120 RegNumT getStackReg() const override { return RegARM32::Reg_sp; } in getStackReg()
121 RegNumT getFrameReg() const override { return RegARM32::Reg_fp; } in getFrameReg()
122 RegNumT getFrameOrStackReg() const override { in getFrameOrStackReg()
125 RegNumT getReservedTmpReg() const { return RegARM32::Reg_ip; } in getReservedTmpReg()
185 Operand *legalizeUndef(Operand *From, RegNumT RegNum = RegNumT());
187 RegNumT RegNum = RegNumT());
188 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
[all …]
DIceTargetLowering.h239 virtual Variable *getPhysicalRegister(RegNumT RegNum,
242 virtual const char *getRegName(RegNumT RegNum, Type Ty) const = 0;
246 virtual RegNumT getStackReg() const = 0;
247 virtual RegNumT getFrameReg() const = 0;
248 virtual RegNumT getFrameOrStackReg() const = 0;
303 virtual const SmallBitVector &getAliasesForRegister(RegNumT) const = 0;
356 std::function<std::string(RegNumT)> getRegName,
DIceTargetLoweringMIPS32.cpp72 std::array<RegNumT, MIPS32_MAX_GPR_ARG> GPRArgInitializer;
73 std::array<RegNumT, MIPS32_MAX_GPR_ARG / 2> I64ArgInitializer;
77 std::array<RegNumT, MIPS32_MAX_FP_ARG> FP32ArgInitializer;
78 std::array<RegNumT, MIPS32_MAX_FP_ARG> FP64ArgInitializer;
145 RegNumT::setLimit(RegMIPS32::Reg_NUM); in staticInit()
173 GPRArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_A0 + i); in staticInit()
176 I64ArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_A0A1 + i); in staticInit()
179 FP32ArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_F12 + i * 2); in staticInit()
180 FP64ArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_F12F13 + i); in staticInit()
236 RegNumT RegNum; in getCallStackArgumentsSizeBytes()
[all …]
DIceTargetLoweringARM32.cpp245 std::array<RegNumT, NumGPRArgs> GPRArgInitializer;
254 std::array<RegNumT, NumI64Args> I64ArgInitializer;
263 std::array<RegNumT, NumFP32Args> FP32ArgInitializer;
272 std::array<RegNumT, NumFP64Args> FP64ArgInitializer;
281 std::array<RegNumT, NumVec128Args> Vec128ArgInitializer;
302 RegNumT::setLimit(RegARM32::Reg_NUM); in staticInit()
331 const auto RegNum = RegNumT::fromInt(i); in staticInit()
367 [](RegNumT RegNum) -> std::string { in staticInit()
397 RegNumT::fixme(RegARM32::getI64PairFirstGPRNum(Var->getRegNum())); in copyRegAllocFromInfWeightVariable64On32()
407 Hi->setRegNum(RegNumT::fixme(FirstReg + 1)); in copyRegAllocFromInfWeightVariable64On32()
[all …]
DIceTargetLowering.cpp131 std::function<std::string(RegNumT)> getRegName, in printRegisterSet()
135 for (RegNumT RegNum : RegNumBVIter(Bitset)) { in printRegisterSet()
176 std::function<std::string(RegNumT)> getRegName, in filterTypeToRegisterSet()
183 std::unordered_map<std::string, RegNumT> RegNameToIndex; in filterTypeToRegisterSet()
185 const auto RegNum = RegNumT::fromInt(RegIndex); in filterTypeToRegisterSet()
DIceOperand.cpp94 RegNumT::BaseType RegNumT::Limit = 0;
202 RegNumT NewRegNum) const { in asType()
DIceTargetLoweringX8664.cpp319 RegNumT::setLimit(RegX8664::Reg_NUM); in staticInit()
778 Variable *TargetX8664::getPhysicalRegister(RegNumT RegNum, Type Ty) { in getPhysicalRegister()
800 const char *TargetX8664::getRegName(RegNumT RegNum, Type Ty) const { in getRegName()
927 for (RegNumT i : RegNumBVIter(CalleeSaves)) { in addProlog()
934 for (RegNumT RegNum : RegNumBVIter(Pushed)) { in addProlog()
1017 RegNumT FrameOrStackReg = IsEbpBasedFrame ? getFrameReg() : getStackReg(); in addProlog()
1178 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
1181 const RegNumT Canonical = RegX8664::getBaseReg(RegNum); in addEpilog()
1189 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
1286 RegNumT RegNum; in lowerArguments()
[all …]
DIceRegAlloc.h64 RegNumT PreferReg;
DIceTargetLoweringX8632.cpp310 RegNumT::setLimit(RegX8632::Reg_NUM); in staticInit()
768 Variable *TargetX8632::getPhysicalRegister(RegNumT RegNum, Type Ty) { in getPhysicalRegister()
790 const char *TargetX8632::getRegName(RegNumT RegNum, Type Ty) const { in getRegName()
915 for (RegNumT i : RegNumBVIter(CalleeSaves)) { in addProlog()
922 for (RegNumT RegNum : RegNumBVIter(Pushed)) { in addProlog()
1032 RegNumT FrameOrStackReg = IsEbpBasedFrame ? getFrameReg() : getStackReg(); in addProlog()
1196 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
1199 const RegNumT Canonical = RegX8632::getBaseReg(RegNum); in addEpilog()
1207 const auto RegNum = RegNumT::fromInt(i); in addEpilog()
1370 RegNumT RegNum; in lowerArguments()
[all …]
DIceInstX8632.cpp843 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
844 SReg_t (*srcEnc)(RegNumT)>
869 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
870 SReg_t (*srcEnc)(RegNumT)>
2020 Src0Var->asType(Func, isVectorType(Ty) ? IceType_i32 : Ty, RegNumT()) in emit()
2082 RegNumT NewRegNum; in emit()
DIceInstX8664.cpp835 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
836 SReg_t (*srcEnc)(RegNumT)>
861 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
862 SReg_t (*srcEnc)(RegNumT)>
2022 Src0Var->asType(Func, isVectorType(Ty) ? IceType_i32 : Ty, RegNumT()) in emit()
2091 RegNumT NewRegNum; in emit()
DIceAssemblerARM32.h89 TargetInfo(bool HasFramePointer, RegNumT FrameOrStackReg) in TargetInfo()
95 const RegNumT FrameOrStackReg;
DIceInstARM32.h356 void setBaseRegNum(RegNumT RegNum) { BaseRegNum = RegNum; } in setBaseRegNum()
357 RegNumT getBaseRegNum() const override { return BaseRegNum; } in getBaseRegNum()
363 RegNumT BaseRegNum;
DIceInstX8664.h551 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
552 SReg_t (*srcEnc)(RegNumT)>
557 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
558 SReg_t (*srcEnc)(RegNumT)>
DIceInstX8632.h612 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
613 SReg_t (*srcEnc)(RegNumT)>
618 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
619 SReg_t (*srcEnc)(RegNumT)>
DIceInstARM32.cpp1369 Str << RegARM32::getRegName(RegNumT::fixme(Base + i)); in emitSRegsAsText()
1391 return RegNumT::fixme(Before->getRegNum() + 1) == After->getRegNum(); in isAssignedConsecutiveRegisters()

12