Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DRegUsageInfoPropagate.cpp61 static void setRegMask(MachineInstr &MI, ArrayRef<uint32_t> RegMask) { in setRegMask() argument
62 assert(RegMask.size() == in setRegMask()
69 MO.setRegMask(RegMask.data()); in setRegMask()
122 const ArrayRef<uint32_t> RegMask = PRUI->getRegUsageInfo(F); in runOnMachineFunction() local
123 if (RegMask.empty()) in runOnMachineFunction()
125 setRegMask(MI, RegMask); in runOnMachineFunction()
H A DRegUsageInfoCollector.cpp122 std::vector<uint32_t> RegMask; in runOnMachineFunction() local
128 RegMask.resize(RegMaskSize, ~((uint32_t)0)); in runOnMachineFunction()
141 auto SetRegAsDefined = [&RegMask] (unsigned Reg) { in runOnMachineFunction()
142 RegMask[Reg / 32] &= ~(1u << Reg % 32); in runOnMachineFunction()
182 if (MachineOperand::clobbersPhysReg(&(RegMask[0]), PReg)) in runOnMachineFunction()
189 PRUI.storeUpdateRegUsageInfo(F, RegMask); in runOnMachineFunction()
H A DRegisterUsageInfo.cpp58 const Function &FP, ArrayRef<uint32_t> RegMask) { in storeUpdateRegUsageInfo() argument
59 RegMasks[&FP] = RegMask; in storeUpdateRegUsageInfo()
76 for (const auto &RegMask : RegMasks) in print() local
77 FPRMPairVector.push_back(&RegMask); in print()
H A DLiveRegUnits.cpp22 void LiveRegUnits::removeRegsNotPreserved(const uint32_t *RegMask) { in removeRegsNotPreserved() argument
25 if (MachineOperand::clobbersPhysReg(RegMask, *RootReg)) { in removeRegsNotPreserved()
33 void LiveRegUnits::addRegsInMask(const uint32_t *RegMask) { in addRegsInMask() argument
36 if (MachineOperand::clobbersPhysReg(RegMask, *RootReg)) { in addRegsInMask()
H A DMachineStableHash.cpp129 const uint32_t *RegMask = MO.getRegMask(); in stableHashValue() local
130 std::vector<llvm::stable_hash> RegMaskHashes(RegMask, in stableHashValue()
131 RegMask + RegMaskSize); in stableHashValue()
H A DMachineOperand.cpp336 const uint32_t *RegMask = getRegMask(); in isIdenticalTo() local
338 if (RegMask == OtherRegMask) in isIdenticalTo()
345 return std::equal(RegMask, RegMask + RegMaskSize, OtherRegMask); in isIdenticalTo()
406 const uint32_t *RegMask = MO.getRegMask(); in hash_value() local
407 std::vector<stable_hash> RegMaskHashes(RegMask, RegMask + RegMaskSize); in hash_value()
940 const uint32_t *RegMask = getRegLiveOut(); in print() local
947 if (RegMask[Reg / 32] & (1U << (Reg % 32))) { in print()
H A DMachineCopyPropagation.cpp754 const MachineOperand *RegMask = nullptr; in ForwardCopyPropagateBlock() local
757 RegMask = &MO; in ForwardCopyPropagateBlock()
777 if (RegMask) { in ForwardCopyPropagateBlock()
788 if (!RegMask->clobbersPhysReg(Reg)) { in ForwardCopyPropagateBlock()
H A DMIRPrinter.cpp261 static void printCustomRegMask(const uint32_t *RegMask, raw_ostream &OS, in printCustomRegMask() argument
263 assert(RegMask && "Can't print an empty register mask"); in printCustomRegMask()
269 if (RegMask[I / 32] & (1u << (I % 32))) { in printCustomRegMask()
/openbsd/gnu/llvm/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp85 RegMask, enumerator
113 uint16_t RegMask; member
265 case Kind::RegMask: in print()
358 if (MemOp.Op == M68kMemOp::Kind::RegMask) in isMoveMask()
373 uint16_t MoveMask = MemOp.RegMask; in addMoveMaskOperands()
837 M68kMemOp MemOp(M68kMemOp::Kind::RegMask); in parseRegOrMoveMask()
838 MemOp.RegMask = 0; in parseRegOrMoveMask()
842 (MemOp.Op == M68kMemOp::Kind::RegMask) && (MemOp.RegMask == 0); in parseRegOrMoveMask()
882 if (MemOp.RegMask == 0) { in parseRegOrMoveMask()
895 if (NewMaskBits & MemOp.RegMask) { in parseRegOrMoveMask()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineOperand.h174 const uint32_t *RegMask; // For MO_RegisterMask and MO_RegisterLiveOut. member
643 static bool clobbersPhysReg(const uint32_t *RegMask, MCRegister PhysReg) { in clobbersPhysReg() argument
646 return !(RegMask[PhysReg / 32] & (1u << PhysReg % 32)); in clobbersPhysReg()
658 return Contents.RegMask; in getRegMask()
669 return Contents.RegMask; in getRegLiveOut()
735 Contents.RegMask = RegMaskPtr; in setRegMask()
928 Op.Contents.RegMask = Mask; in CreateRegMask()
934 Op.Contents.RegMask = Mask; in CreateRegLiveOut()
H A DLiveRegUnits.h109 void removeRegsNotPreserved(const uint32_t *RegMask);
113 void addRegsInMask(const uint32_t *RegMask);
H A DRegisterUsageInfo.h52 ArrayRef<uint32_t> RegMask);
H A DMachineRegisterInfo.h895 void addPhysRegsUsedFromRegMask(const uint32_t *RegMask) { in addPhysRegsUsedFromRegMask() argument
896 UsedPhysRegMask.setBitsNotInMask(RegMask); in addPhysRegsUsedFromRegMask()
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64CollectLOH.cpp490 static void handleRegMaskClobber(const uint32_t *RegMask, MCPhysReg Reg, in handleRegMaskClobber() argument
492 if (!MachineOperand::clobbersPhysReg(RegMask, Reg)) in handleRegMaskClobber()
503 const uint32_t *RegMask = MO.getRegMask(); in handleNormalInst() local
505 handleRegMaskClobber(RegMask, Reg, LOHInfos); in handleNormalInst()
507 handleRegMaskClobber(RegMask, Reg, LOHInfos); in handleNormalInst()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUCallingConv.td216 // Trivial class to denote when a def is used only to get a RegMask, i.e.
219 class RegMask<dag mask> : CalleeSavedRegs<mask>;
221 def AMDGPU_AllVGPRs : RegMask<
225 def AMDGPU_AllAGPRs : RegMask<
229 def AMDGPU_AllVectorRegs : RegMask<
233 def AMDGPU_AllAllocatableSRegs : RegMask<
/openbsd/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kRegisterInfo.cpp153 const uint32_t *RegMask = getCallPreservedMask(MF, CC); in getReservedRegs() local
154 if (MachineOperand::clobbersPhysReg(RegMask, getBaseRegister())) in getReservedRegs()
H A DM68kFrameLowering.cpp178 [Reg](MachineBasicBlock::RegisterMaskPair RegMask) { in isRegLiveIn() argument
179 return RegMask.PhysReg == Reg; in isRegLiveIn()
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZElimCompare.cpp645 const uint32_t *RegMask; in fuseCompareOperations() local
647 RegMask = MBBI->getOperand(3).getRegMask(); in fuseCompareOperations()
685 MIB.addRegMask(RegMask); in fuseCompareOperations()
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MCCodeEmitter.cpp577 unsigned RegMask = MI.getOperand(OpIdx).getImm(); in EncodeMatrixTileListRegisterClass() local
578 assert(RegMask <= 0xFF && "Invalid register mask!"); in EncodeMatrixTileListRegisterClass()
579 return RegMask; in EncodeMatrixTileListRegisterClass()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DVectorUtils.cpp634 SmallVectorImpl<int> &RegMask = Dest[I]; in processShuffleMasks() local
635 if (RegMask.empty()) in processShuffleMasks()
640 FirstMask = RegMask; in processShuffleMasks()
644 SecondMask = RegMask; in processShuffleMasks()
648 RegMask.clear(); in processShuffleMasks()
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DScheduleDAGRRList.cpp1327 static void CheckForLiveRegDefMasked(SUnit *SU, const uint32_t *RegMask, in CheckForLiveRegDefMasked() argument
1335 if (!MachineOperand::clobbersPhysReg(RegMask, i)) continue; in CheckForLiveRegDefMasked()
1424 if (const uint32_t *RegMask = getNodeRegMask(Node)) in DelayForLiveRegsBottomUp() local
1425 CheckForLiveRegDefMasked(SU, RegMask, in DelayForLiveRegsBottomUp()
2870 const uint32_t *RegMask = getNodeRegMask(SU->getNode()); in canClobberReachingPhysRegUse() local
2871 if (ImpDefs.empty() && !RegMask) in canClobberReachingPhysRegUse()
2880 if (RegMask && in canClobberReachingPhysRegUse()
2881 MachineOperand::clobbersPhysReg(RegMask, SuccPred.getReg()) && in canClobberReachingPhysRegUse()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DARMLowOverheadLoops.cpp1039 for (const MachineBasicBlock::RegisterMaskPair &RegMask : ExitBB->liveins()) { in ValidateLiveOuts() local
1042 if (RegMask.PhysReg == ARM::VPR) { in ValidateLiveOuts()
1048 if (QPRs->contains(RegMask.PhysReg)) in ValidateLiveOuts()
1049 if (auto *MI = RDA.getLocalLiveOutMIDef(Header, RegMask.PhysReg)) in ValidateLiveOuts()
/openbsd/gnu/llvm/llvm/tools/llvm-reduce/
H A DReducerWorkItem.cpp310 if (auto *RegMask = TRI->getCustomEHPadPreservedMask(*DstMF)) in cloneMF() local
311 DstMRI->addPhysRegsUsedFromRegMask(RegMask); in cloneMF()
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86ExpandPseudo.cpp238 const uint32_t *RegMask = in expandCALL_RVMARKER() local
243 .addRegMask(RegMask) in expandCALL_RVMARKER()
H A DX86RegisterInfo.cpp564 const uint32_t *RegMask = getCallPreservedMask(MF, CC); in getReservedRegs() local
565 if (MachineOperand::clobbersPhysReg(RegMask, getBaseRegister())) in getReservedRegs()

12