Home
last modified time | relevance | path

Searched refs:RegMask (Results 1 – 25 of 84) sorted by relevance

1234

/external/llvm/lib/CodeGen/
DRegUsageInfoCollector.cpp62 void markRegClobbered(const TargetRegisterInfo *TRI, uint32_t *RegMask,
80 uint32_t *RegMask, unsigned PReg) { in markRegClobbered() argument
83 RegMask[*AI / 32] &= ~(1u << *AI % 32); in markRegClobbered()
101 std::vector<uint32_t> RegMask; in runOnMachineFunction() local
107 RegMask.resize(RegMaskSize, 0xFFFFFFFF); in runOnMachineFunction()
119 markRegClobbered(TRI, &RegMask[0], PReg); in runOnMachineFunction()
126 RegMask[i] = RegMask[i] | CallPreservedMask[i]; in runOnMachineFunction()
134 if (MachineOperand::clobbersPhysReg(&(RegMask[0]), PReg)) in runOnMachineFunction()
139 PRUI->storeUpdateRegUsageInfo(F, std::move(RegMask)); in runOnMachineFunction()
DRegUsageInfoPropagate.cpp64 static void setRegMask(MachineInstr &MI, const uint32_t *RegMask) { in setRegMask() argument
67 MO.setRegMask(RegMask); in setRegMask()
109 const auto *RegMask = PRUI->getRegUsageInfo(F); in runOnMachineFunction() local
110 if (!RegMask) in runOnMachineFunction()
112 setRegMask(MI, &(*RegMask)[0]); in runOnMachineFunction()
DMachineCopyPropagation.cpp100 const MachineOperand &RegMask) { in removeClobberedRegsFromMap() argument
105 if (RegMask.clobbersPhysReg(Reg)) in removeClobberedRegsFromMap()
256 const MachineOperand *RegMask = nullptr; in CopyPropagateBlock() local
259 RegMask = &MO; in CopyPropagateBlock()
296 if (RegMask) { in CopyPropagateBlock()
305 if (!RegMask->clobbersPhysReg(Reg)) { in CopyPropagateBlock()
321 removeClobberedRegsFromMap(AvailCopyMap, *RegMask); in CopyPropagateBlock()
322 removeClobberedRegsFromMap(CopyMap, *RegMask); in CopyPropagateBlock()
326 if (RegMask->clobbersPhysReg(I->first)) { in CopyPropagateBlock()
DRegisterUsageInfo.cpp50 const Function *FP, std::vector<uint32_t> RegMask) { in storeUpdateRegUsageInfo() argument
52 RegMasks[FP] = std::move(RegMask); in storeUpdateRegUsageInfo()
70 for (const auto &RegMask : RegMasks) in print() local
71 FPRMPairVector.push_back(&RegMask); in print()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DRegUsageInfoPropagate.cpp64 static void setRegMask(MachineInstr &MI, ArrayRef<uint32_t> RegMask) { in setRegMask() argument
65 assert(RegMask.size() == in setRegMask()
72 MO.setRegMask(RegMask.data()); in setRegMask()
125 const ArrayRef<uint32_t> RegMask = PRUI->getRegUsageInfo(F); in runOnMachineFunction() local
126 if (RegMask.empty()) in runOnMachineFunction()
128 setRegMask(MI, RegMask); in runOnMachineFunction()
DRegUsageInfoCollector.cpp123 std::vector<uint32_t> RegMask; in runOnMachineFunction() local
129 RegMask.resize(RegMaskSize, ~((uint32_t)0)); in runOnMachineFunction()
142 auto SetRegAsDefined = [&RegMask] (unsigned Reg) { in runOnMachineFunction()
143 RegMask[Reg / 32] &= ~(1u << Reg % 32); in runOnMachineFunction()
183 if (MachineOperand::clobbersPhysReg(&(RegMask[0]), PReg)) in runOnMachineFunction()
190 PRUI.storeUpdateRegUsageInfo(F, RegMask); in runOnMachineFunction()
DRegisterUsageInfo.cpp60 const Function &FP, ArrayRef<uint32_t> RegMask) { in storeUpdateRegUsageInfo() argument
61 RegMasks[&FP] = RegMask; in storeUpdateRegUsageInfo()
78 for (const auto &RegMask : RegMasks) in print() local
79 FPRMPairVector.push_back(&RegMask); in print()
DLiveRegUnits.cpp26 void LiveRegUnits::removeRegsNotPreserved(const uint32_t *RegMask) { in removeRegsNotPreserved() argument
29 if (MachineOperand::clobbersPhysReg(RegMask, *RootReg)) in removeRegsNotPreserved()
35 void LiveRegUnits::addRegsInMask(const uint32_t *RegMask) { in addRegsInMask() argument
38 if (MachineOperand::clobbersPhysReg(RegMask, *RootReg)) in addRegsInMask()
/external/llvm-project/llvm/lib/CodeGen/
DRegUsageInfoPropagate.cpp64 static void setRegMask(MachineInstr &MI, ArrayRef<uint32_t> RegMask) { in setRegMask() argument
65 assert(RegMask.size() == in setRegMask()
72 MO.setRegMask(RegMask.data()); in setRegMask()
125 const ArrayRef<uint32_t> RegMask = PRUI->getRegUsageInfo(F); in runOnMachineFunction() local
126 if (RegMask.empty()) in runOnMachineFunction()
128 setRegMask(MI, RegMask); in runOnMachineFunction()
DRegUsageInfoCollector.cpp123 std::vector<uint32_t> RegMask; in runOnMachineFunction() local
129 RegMask.resize(RegMaskSize, ~((uint32_t)0)); in runOnMachineFunction()
142 auto SetRegAsDefined = [&RegMask] (unsigned Reg) { in runOnMachineFunction()
143 RegMask[Reg / 32] &= ~(1u << Reg % 32); in runOnMachineFunction()
183 if (MachineOperand::clobbersPhysReg(&(RegMask[0]), PReg)) in runOnMachineFunction()
190 PRUI.storeUpdateRegUsageInfo(F, RegMask); in runOnMachineFunction()
DRegisterUsageInfo.cpp60 const Function &FP, ArrayRef<uint32_t> RegMask) { in storeUpdateRegUsageInfo() argument
61 RegMasks[&FP] = RegMask; in storeUpdateRegUsageInfo()
78 for (const auto &RegMask : RegMasks) in print() local
79 FPRMPairVector.push_back(&RegMask); in print()
DLiveRegUnits.cpp22 void LiveRegUnits::removeRegsNotPreserved(const uint32_t *RegMask) { in removeRegsNotPreserved() argument
25 if (MachineOperand::clobbersPhysReg(RegMask, *RootReg)) in removeRegsNotPreserved()
31 void LiveRegUnits::addRegsInMask(const uint32_t *RegMask) { in addRegsInMask() argument
34 if (MachineOperand::clobbersPhysReg(RegMask, *RootReg)) in addRegsInMask()
/external/llvm/include/llvm/CodeGen/
DMachineOperand.h159 const uint32_t *RegMask; // For MO_RegisterMask and MO_RegisterLiveOut. member
475 static bool clobbersPhysReg(const uint32_t *RegMask, unsigned PhysReg) { in clobbersPhysReg() argument
478 return !(RegMask[PhysReg / 32] & (1u << PhysReg % 32)); in clobbersPhysReg()
490 return Contents.RegMask; in getRegMask()
496 return Contents.RegMask; in getRegLiveOut()
543 Contents.RegMask = RegMaskPtr; in setRegMask()
705 Op.Contents.RegMask = Mask; in CreateRegMask()
711 Op.Contents.RegMask = Mask; in CreateRegLiveOut()
DRegisterUsageInfo.h57 std::vector<uint32_t> RegMask);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineOperand.h172 const uint32_t *RegMask; // For MO_RegisterMask and MO_RegisterLiveOut. member
615 static bool clobbersPhysReg(const uint32_t *RegMask, unsigned PhysReg) { in clobbersPhysReg() argument
618 return !(RegMask[PhysReg / 32] & (1u << PhysReg % 32)); in clobbersPhysReg()
630 return Contents.RegMask; in getRegMask()
641 return Contents.RegMask; in getRegLiveOut()
698 Contents.RegMask = RegMaskPtr; in setRegMask()
877 Op.Contents.RegMask = Mask; in CreateRegMask()
883 Op.Contents.RegMask = Mask; in CreateRegLiveOut()
DLiveRegUnits.h110 void removeRegsNotPreserved(const uint32_t *RegMask);
114 void addRegsInMask(const uint32_t *RegMask);
DRegisterUsageInfo.h52 ArrayRef<uint32_t> RegMask);
/external/llvm-project/llvm/include/llvm/CodeGen/
DMachineOperand.h172 const uint32_t *RegMask; // For MO_RegisterMask and MO_RegisterLiveOut. member
615 static bool clobbersPhysReg(const uint32_t *RegMask, MCRegister PhysReg) { in clobbersPhysReg() argument
618 return !(RegMask[PhysReg / 32] & (1u << PhysReg % 32)); in clobbersPhysReg()
630 return Contents.RegMask; in getRegMask()
641 return Contents.RegMask; in getRegLiveOut()
698 Contents.RegMask = RegMaskPtr; in setRegMask()
887 Op.Contents.RegMask = Mask; in CreateRegMask()
893 Op.Contents.RegMask = Mask; in CreateRegLiveOut()
DLiveRegUnits.h110 void removeRegsNotPreserved(const uint32_t *RegMask);
114 void addRegsInMask(const uint32_t *RegMask);
DRegisterUsageInfo.h52 ArrayRef<uint32_t> RegMask);
/external/swiftshader/third_party/subzero/src/
DIceRegAlloc.cpp87 const SmallBitVector &RegMask, in findMinWeightIndex() argument
90 for (RegNumT i : RegNumBVIter(RegMask)) { in findMinWeightIndex()
425 Iter.RegMask[RegAlias] = false; in addSpillFill()
434 const RegNumT RegNum = *RegNumBVIter(Iter.RegMask).begin(); in addSpillFill()
535 const int SrcReg = (Iter.RegMask & Aliases).find_first(); in findRegisterPreference()
690 int32_t MinWeightIndex = findMinWeightIndex(Iter.RegMask, Iter.Weights); in handleNoFreeRegisters()
856 Iter.RegMask = RegMaskFull & Target->getRegistersForVariable(Iter.Cur); in scan()
874 Iter.Free = Iter.RegMask; in scan()
876 for (SizeT i = 0; i < Iter.RegMask.size(); ++i) { in scan()
900 Iter.Weights.resize(Iter.RegMask.size()); in scan()
[all …]
DIceRegAlloc.h36 void scan(const SmallBitVector &RegMask);
66 SmallBitVector RegMask; variable
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64CollectLOH.cpp466 static void handleRegMaskClobber(const uint32_t *RegMask, MCPhysReg Reg, in handleRegMaskClobber() argument
468 if (!MachineOperand::clobbersPhysReg(RegMask, Reg)) in handleRegMaskClobber()
479 const uint32_t *RegMask = MO.getRegMask(); in handleNormalInst() local
481 handleRegMaskClobber(RegMask, Reg, LOHInfos); in handleNormalInst()
483 handleRegMaskClobber(RegMask, Reg, LOHInfos); in handleNormalInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64CollectLOH.cpp454 static void handleRegMaskClobber(const uint32_t *RegMask, MCPhysReg Reg, in handleRegMaskClobber() argument
456 if (!MachineOperand::clobbersPhysReg(RegMask, Reg)) in handleRegMaskClobber()
467 const uint32_t *RegMask = MO.getRegMask(); in handleNormalInst() local
469 handleRegMaskClobber(RegMask, Reg, LOHInfos); in handleNormalInst()
471 handleRegMaskClobber(RegMask, Reg, LOHInfos); in handleNormalInst()
/external/llvm/lib/Target/SystemZ/
DSystemZElimCompare.cpp422 const uint32_t *RegMask; in fuseCompareOperations() local
424 RegMask = MBBI->getOperand(2).getRegMask(); in fuseCompareOperations()
453 MIB.addRegMask(RegMask); in fuseCompareOperations()

1234