Home
last modified time | relevance | path

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

12

/external/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 …]
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()
666 RegNumT RegNum = RegNumT());
668 Variable *legalizeToVar(Operand *From, RegNumT RegNum = RegNumT());
670 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
[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 …]
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 …]
DIceTargetLoweringX8664Traits.h303 static const char *getRegName(RegNumT RegNum) { in getRegName()
316 static GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR()
330 static ByteRegister getEncodedByteReg(RegNumT RegNum) { in getEncodedByteReg()
344 static bool isXmm(RegNumT RegNum) { in isXmm()
356 static XmmRegister getEncodedXmm(RegNumT RegNum) { in getEncodedXmm()
370 static uint32_t getEncoding(RegNumT RegNum) { in getEncoding()
383 static inline RegNumT getBaseReg(RegNumT RegNum) { in getBaseReg()
384 static const RegNumT BaseRegs[RegisterSet::Reg_NUM] = { in getBaseReg()
397 static RegNumT getFirstGprForType(Type Ty) { in getFirstGprForType()
414 static RegNumT getGprForType(Type Ty, RegNumT RegNum) { in getGprForType()
[all …]
DIceTargetLoweringARM32.h94 Variable *getPhysicalRegister(RegNumT RegNum,
96 const char *getRegName(RegNumT RegNum, Type Ty) const override;
116 const SmallBitVector &getAliasesForRegister(RegNumT Reg) const override { in getAliasesForRegister()
121 RegNumT getStackReg() const override { return RegARM32::Reg_sp; } in getStackReg()
122 RegNumT getFrameReg() const override { return RegARM32::Reg_fp; } in getFrameReg()
123 RegNumT getFrameOrStackReg() const override { in getFrameOrStackReg()
126 RegNumT getReservedTmpReg() const { return RegARM32::Reg_ip; } in getReservedTmpReg()
186 Operand *legalizeUndef(Operand *From, RegNumT RegNum = RegNumT());
188 RegNumT RegNum = RegNumT());
189 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
[all …]
DIceTargetLoweringX8632Traits.h278 static const char *getRegName(RegNumT RegNum) { in getRegName()
291 static GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR()
305 static ByteRegister getEncodedByteReg(RegNumT RegNum) { in getEncodedByteReg()
319 static bool isXmm(RegNumT RegNum) { in isXmm()
331 static XmmRegister getEncodedXmm(RegNumT RegNum) { in getEncodedXmm()
345 static uint32_t getEncoding(RegNumT RegNum) { in getEncoding()
358 static RegNumT getBaseReg(RegNumT RegNum) { in getBaseReg()
359 static const RegNumT BaseRegs[RegisterSet::Reg_NUM] = { in getBaseReg()
388 static RegNumT getGprForType(Type Ty, RegNumT RegNum) { in getGprForType()
426 const RegNumT NewRegNum = \ in getGprForType()
[all …]
DIceTargetLoweringX86Base.h108 Variable *getPhysicalRegister(RegNumT RegNum,
110 const char *getRegName(RegNumT RegNum, Type Ty) const override;
146 const SmallBitVector &getAliasesForRegister(RegNumT Reg) const override { in getAliasesForRegister()
153 RegNumT getStackReg() const override { return Traits::StackPtr; } in getStackReg()
154 RegNumT getFrameReg() const override { return Traits::FramePtr; } in getFrameReg()
155 RegNumT getFrameOrStackReg() const override { in getFrameOrStackReg()
242 Operand *legalizeUndef(Operand *From, RegNumT RegNum = RegNumT());
421 RegNumT RegNum = RegNumT());
422 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
431 Variable *makeReg(Type Ty, 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;
391 std::function<std::string(RegNumT)> getRegName,
DIceTargetLoweringX8632.h55 void _push_reg(RegNumT RegNum);
56 void _pop_reg(RegNumT RegNum);
DIceTargetLoweringX8664.h58 void _push_reg(RegNumT RegNum);
59 void _pop_reg(RegNumT RegNum);
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;
146 RegNumT::setLimit(RegMIPS32::Reg_NUM); in staticInit()
174 GPRArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_A0 + i); in staticInit()
177 I64ArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_A0A1 + i); in staticInit()
180 FP32ArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_F12 + i * 2); in staticInit()
181 FP64ArgInitializer[i] = RegNumT::fixme(RegMIPS32::Reg_F12F13 + i); in staticInit()
226 RegNumT DummyReg; in getCallStackArgumentsSizeBytes()
[all …]
DIceTargetLoweringARM32.cpp253 std::array<RegNumT, NumGPRArgs> GPRArgInitializer;
262 std::array<RegNumT, NumI64Args> I64ArgInitializer;
271 std::array<RegNumT, NumFP32Args> FP32ArgInitializer;
280 std::array<RegNumT, NumFP64Args> FP64ArgInitializer;
289 std::array<RegNumT, NumVec128Args> Vec128ArgInitializer;
311 RegNumT::setLimit(RegARM32::Reg_NUM); in staticInit()
340 const auto RegNum = RegNumT::fromInt(i); in staticInit()
376 [](RegNumT RegNum) -> std::string { in staticInit()
406 RegNumT::fixme(RegARM32::getI64PairFirstGPRNum(Var->getRegNum())); in copyRegAllocFromInfWeightVariable64On32()
416 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()
DIceRegAlloc.h64 RegNumT PreferReg;
DIceOperand.cpp94 RegNumT::BaseType RegNumT::Limit = 0;
202 RegNumT NewRegNum) const { in asType()
DIceTargetLoweringX8664.cpp294 void TargetX8664::_push_reg(RegNumT RegNum) { in _push_reg()
312 void TargetX8664::_pop_reg(RegNumT RegNum) { in _pop_reg()
462 RegNumT RegNum, RegNum32; in _sandbox_mem_reference()
721 RegNumT TargetReg = {}; in emitCallToTarget()
DIceTargetLoweringX86BaseImpl.h423 RegNumT::setLimit(Traits::RegisterSet::Reg_NUM);
917 Variable *TargetX86Base<TraitsType>::getPhysicalRegister(RegNumT RegNum,
941 const char *TargetX86Base<TraitsType>::getRegName(RegNumT RegNum,
1102 for (RegNumT i : RegNumBVIter(CalleeSaves)) {
1109 for (RegNumT RegNum : RegNumBVIter(Pushed)) {
1225 RegNumT FrameOrStackReg = IsEbpBasedFrame ? getFrameReg() : getStackReg();
1399 const auto RegNum = RegNumT::fromInt(i);
1402 const RegNumT Canonical = Traits::getBaseReg(RegNum);
1410 const auto RegNum = RegNumT::fromInt(i);
1602 RegNumT RegNum;
[all …]
DIceTargetLoweringX8632.cpp232 void TargetX8632::_push_reg(RegNumT RegNum) { in _push_reg()
236 void TargetX8632::_pop_reg(RegNumT RegNum) { in _pop_reg()
DIceAssemblerARM32.h89 TargetInfo(bool HasFramePointer, RegNumT FrameOrStackReg) in TargetInfo()
95 const RegNumT FrameOrStackReg;
DIceInstARM32.h357 void setBaseRegNum(RegNumT RegNum) { BaseRegNum = RegNum; } in setBaseRegNum()
358 RegNumT getBaseRegNum() const override { return BaseRegNum; } in getBaseRegNum()
364 RegNumT BaseRegNum;
DIceInstX86BaseImpl.h931 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
932 SReg_t (*srcEnc)(RegNumT)>
958 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
959 SReg_t (*srcEnc)(RegNumT)>
2222 Src0Var->asType(Func, isVectorType(Ty) ? IceType_i32 : Ty, RegNumT()) in emit()
2263 RegNumT NewRegNum; in emit()
DIceInstX86Base.h523 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
524 SReg_t (*srcEnc)(RegNumT)>
530 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT),
531 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