/external/swiftshader/third_party/subzero/src/ |
D | IceRegistersMIPS32.h | 68 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 …]
|
D | IceRegistersARM32.h | 105 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 …]
|
D | IceTargetLoweringMIPS32.h | 67 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 …]
|
D | IceRegAlloc.cpp | 90 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 …]
|
D | IceOperand.h | 480 class RegNumT { 483 RegNumT() = default; 484 RegNumT(const RegNumT &) = default; 486 RegNumT(AnyEnum Value, 491 RegNumT &operator=(const RegNumT &) = default; 496 static RegNumT fromInt(BaseType Value) { return RegNumT(Value); } in fromInt() 501 static RegNumT fixme(BaseType Value) { return RegNumT(Value); } in fixme() 521 RegNumT(BaseType Value) : Value(Value) { validate(Value); } in RegNumT() function 529 bool operator<(const RegNumT &) = delete; 530 bool operator<=(const RegNumT &) = delete; [all …]
|
D | IceTargetLoweringX8664Traits.h | 304 static const char *getRegName(RegNumT RegNum) { in getRegName() 317 static GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR() 331 static ByteRegister getEncodedByteReg(RegNumT RegNum) { in getEncodedByteReg() 345 static XmmRegister getEncodedXmm(RegNumT RegNum) { in getEncodedXmm() 359 static uint32_t getEncoding(RegNumT RegNum) { in getEncoding() 372 static inline RegNumT getBaseReg(RegNumT RegNum) { in getBaseReg() 373 static const RegNumT BaseRegs[RegisterSet::Reg_NUM] = { in getBaseReg() 386 static RegNumT getFirstGprForType(Type Ty) { in getFirstGprForType() 403 static RegNumT getGprForType(Type Ty, RegNumT RegNum) { in getGprForType() 422 const RegNumT FirstGprForType = getFirstGprForType(Ty); in getGprForType() [all …]
|
D | IceTargetLoweringARM32.h | 94 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 …]
|
D | IceTargetLoweringX8632Traits.h | 279 static const char *getRegName(RegNumT RegNum) { in getRegName() 292 static GPRRegister getEncodedGPR(RegNumT RegNum) { in getEncodedGPR() 306 static ByteRegister getEncodedByteReg(RegNumT RegNum) { in getEncodedByteReg() 320 static XmmRegister getEncodedXmm(RegNumT RegNum) { in getEncodedXmm() 334 static uint32_t getEncoding(RegNumT RegNum) { in getEncoding() 347 static RegNumT getBaseReg(RegNumT RegNum) { in getBaseReg() 348 static const RegNumT BaseRegs[RegisterSet::Reg_NUM] = { in getBaseReg() 377 static RegNumT getGprForType(Type Ty, RegNumT RegNum) { in getGprForType() 415 const RegNumT NewRegNum = \ in getGprForType() 416 RegNumT::fixme(RegNum - FirstGprWithRegNumSize + FirstGprForType); \ in getGprForType() [all …]
|
D | IceTargetLoweringX86Base.h | 108 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()); 416 RegNumT RegNum = RegNumT()); 417 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT()); 426 Variable *makeReg(Type Ty, RegNumT RegNum = RegNumT()); [all …]
|
D | IceTargetLowering.h | 241 virtual Variable *getPhysicalRegister(RegNumT RegNum, 244 virtual const char *getRegName(RegNumT RegNum, Type Ty) const = 0; 248 virtual RegNumT getStackReg() const = 0; 249 virtual RegNumT getFrameReg() const = 0; 250 virtual RegNumT getFrameOrStackReg() const = 0; 305 virtual const SmallBitVector &getAliasesForRegister(RegNumT) const = 0; 311 makeRandomRegisterPermutation(llvm::SmallVectorImpl<RegNumT> &Permutation, 398 std::function<std::string(RegNumT)> getRegName,
|
D | IceTargetLoweringMIPS32.cpp | 72 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 …]
|
D | IceTargetLoweringARM32.cpp | 254 std::array<RegNumT, NumGPRArgs> GPRArgInitializer; 263 std::array<RegNumT, NumI64Args> I64ArgInitializer; 272 std::array<RegNumT, NumFP32Args> FP32ArgInitializer; 281 std::array<RegNumT, NumFP64Args> FP64ArgInitializer; 290 std::array<RegNumT, NumVec128Args> Vec128ArgInitializer; 312 RegNumT::setLimit(RegARM32::Reg_NUM); in staticInit() 341 const auto RegNum = RegNumT::fromInt(i); in staticInit() 376 [](RegNumT RegNum) -> std::string { in staticInit() 407 RegNumT::fixme(RegARM32::getI64PairFirstGPRNum(Var->getRegNum())); in copyRegAllocFromInfWeightVariable64On32() 417 Hi->setRegNum(RegNumT::fixme(FirstReg + 1)); in copyRegAllocFromInfWeightVariable64On32() [all …]
|
D | IceOperand.cpp | 94 RegNumT::BaseType RegNumT::Limit = 0; 202 RegNumT NewRegNum) const { in asType()
|
D | IceTargetLowering.cpp | 131 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()
|
D | IceRegAlloc.h | 64 RegNumT PreferReg;
|
D | IceTargetLoweringX86BaseImpl.h | 410 RegNumT::setLimit(Traits::RegisterSet::Reg_NUM); 915 Variable *TargetX86Base<TraitsType>::getPhysicalRegister(RegNumT RegNum, 939 const char *TargetX86Base<TraitsType>::getRegName(RegNumT RegNum, 1085 for (RegNumT i : RegNumBVIter(CalleeSaves)) { 1092 for (RegNumT RegNum : RegNumBVIter(Pushed)) { 1183 RegNumT FrameOrStackReg = IsEbpBasedFrame ? getFrameReg() : getStackReg(); 1349 const auto RegNum = RegNumT::fromInt(i); 1352 const RegNumT Canonical = Traits::getBaseReg(RegNum); 1360 const auto RegNum = RegNumT::fromInt(i); 1552 RegNumT RegNum; [all …]
|
D | IceAssemblerARM32.h | 89 TargetInfo(bool HasFramePointer, RegNumT FrameOrStackReg) in TargetInfo() 95 const RegNumT FrameOrStackReg;
|
D | IceInstARM32.h | 357 void setBaseRegNum(RegNumT RegNum) { BaseRegNum = RegNum; } in setBaseRegNum() 358 RegNumT getBaseRegNum() const override { return BaseRegNum; } in getBaseRegNum() 364 RegNumT BaseRegNum;
|
D | IceInstX86BaseImpl.h | 929 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT), 930 SReg_t (*srcEnc)(RegNumT)> 956 template <typename DReg_t, typename SReg_t, DReg_t (*destEnc)(RegNumT), 957 SReg_t (*srcEnc)(RegNumT)> 2207 Src0Var->asType(Func, isVectorType(Ty) ? IceType_i32 : Ty, RegNumT()) in emit() 2246 RegNumT NewRegNum; in emit()
|
D | IceTargetLoweringX8664.cpp | 439 RegNumT RegNum, RegNum32; in _sandbox_mem_reference()
|
D | IceInstX86Base.h | 523 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)>
|
D | IceInstARM32.cpp | 1374 Str << RegARM32::getRegName(RegNumT::fixme(Base + i)); in emitSRegsAsText() 1396 return RegNumT::fixme(Before->getRegNum() + 1) == After->getRegNum(); in isAssignedConsecutiveRegisters()
|
D | IceAssemblerARM32.cpp | 646 << RegARM32::getRegName(RegNumT::fixme((Inst >> kRdShift) & 0xF)) in emit()
|