22 auto ChooseMask = [&](PredBlockMask AddedThen, PredBlockMask AddedElse) {
27 case PredBlockMask::T:
28 return ChooseMask(PredBlockMask::TT, PredBlockMask::TE);
29 case PredBlockMask::TT:
30 return ChooseMask(PredBlockMask::TTT, PredBlockMask::TTE);
31 case PredBlockMask::TE:
32 return ChooseMask(PredBlockMask::TET, PredBlockMask::TEE);
33 case PredBlockMask::TTT:
34 return ChooseMask(PredBlockMask::TTTT, PredBlockMask::TTTE);
35 case PredBlockMask::TTE:
36 return ChooseMask(PredBlockMask::TTET, PredBlockMask::TTEE);
37 case PredBlockMask::TET:
38 return ChooseMask(PredBlockMask::TETT, PredBlockMask::TETE);
39 case PredBlockMask::TEE:
40 return ChooseMask(PredBlockMask::TEET, PredBlockMask::TEEE);
51 return lookupMClassSysRegByM1Encoding12(SYSm);
57 return lookupMClassSysRegByM2M3Encoding8((1<<9)|(SYSm & 0xFF));
62 return ARMSysReg::lookupMClassSysRegByM2M3Encoding8((1<<8)|(SYSm & 0xFF));
65#define GET_MCLASSSYSREG_IMPL
66#include "ARMGenSystemRegister.inc"
70namespace ARMBankedReg {
71#define GET_BANKEDREG_IMPL
72#include "ARMGenSystemRegister.inc"
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
const MClassSysReg * lookupMClassSysRegBy8bitSYSmValue(unsigned SYSm)
const MClassSysReg * lookupMClassSysRegAPSRNonDeprecated(unsigned SYSm)
const MClassSysReg * lookupMClassSysRegBy12bitSYSmValue(unsigned SYSm)
PredBlockMask
Mask values for IT and VPT Blocks, to be used by MCOperands.
This is an optimization pass for GlobalISel generic memory operations.
int countr_zero(T Val)
Count number of 0's from the least significant bit to the most stopping at the first 1.
ARM::PredBlockMask expandPredBlockMask(ARM::PredBlockMask BlockMask, ARMVCC::VPTCodes Kind)