Lines Matching refs:TargetLowering

31 class GISelAsmOperandInfo : public TargetLowering::AsmOperandInfo {
37 explicit GISelAsmOperandInfo(const TargetLowering::AsmOperandInfo &Info) in GISelAsmOperandInfo()
38 : TargetLowering::AsmOperandInfo(Info) {} in GISelAsmOperandInfo()
58 void update(const TargetLowering::AsmOperandInfo &OpInfo) { in update()
63 if (OpInfo.ConstraintType == TargetLowering::C_Memory || in update()
64 OpInfo.ConstraintType == TargetLowering::C_Other) { in update()
85 const TargetLowering &TLI = *MF.getSubtarget().getTargetLowering(); in getRegistersForValue()
89 if (OpInfo.ConstraintType == TargetLowering::C_Memory) in getRegistersForValue()
137 static unsigned getConstraintGenerality(TargetLowering::ConstraintType CT) { in getConstraintGenerality()
139 case TargetLowering::C_Immediate: in getConstraintGenerality()
140 case TargetLowering::C_Other: in getConstraintGenerality()
141 case TargetLowering::C_Unknown: in getConstraintGenerality()
143 case TargetLowering::C_Register: in getConstraintGenerality()
145 case TargetLowering::C_RegisterClass: in getConstraintGenerality()
147 case TargetLowering::C_Memory: in getConstraintGenerality()
148 case TargetLowering::C_Address: in getConstraintGenerality()
154 static void chooseConstraint(TargetLowering::AsmOperandInfo &OpInfo, in chooseConstraint()
155 const TargetLowering *TLI) { in chooseConstraint()
158 TargetLowering::ConstraintType BestType = TargetLowering::C_Unknown; in chooseConstraint()
163 TargetLowering::ConstraintType CType = in chooseConstraint()
167 if (OpInfo.isIndirect && !(CType == TargetLowering::C_Memory || in chooseConstraint()
168 CType == TargetLowering::C_Register || in chooseConstraint()
169 CType == TargetLowering::C_RegisterClass)) in chooseConstraint()
176 if (CType == TargetLowering::C_Other || in chooseConstraint()
177 CType == TargetLowering::C_Immediate) { in chooseConstraint()
185 if (CType == TargetLowering::C_Memory && OpInfo.hasMatchingInput()) in chooseConstraint()
201 static void computeConstraintToUse(const TargetLowering *TLI, in computeConstraintToUse()
202 TargetLowering::AsmOperandInfo &OpInfo) { in computeConstraintToUse()
285 TargetLowering::AsmOperandInfoVector TargetConstraints = in lowerInlineAsm()
375 if (OpInfo.ConstraintType == TargetLowering::C_Memory) { in lowerInlineAsm()
395 assert(OpInfo.ConstraintType == TargetLowering::C_Register || in lowerInlineAsm()
396 OpInfo.ConstraintType == TargetLowering::C_RegisterClass); in lowerInlineAsm()
479 if (OpInfo.ConstraintType == TargetLowering::C_Other && in lowerInlineAsm()
486 if (OpInfo.ConstraintType == TargetLowering::C_Immediate || in lowerInlineAsm()
487 OpInfo.ConstraintType == TargetLowering::C_Other) { in lowerInlineAsm()
509 if (OpInfo.ConstraintType == TargetLowering::C_Memory) { in lowerInlineAsm()
533 assert((OpInfo.ConstraintType == TargetLowering::C_RegisterClass || in lowerInlineAsm()
534 OpInfo.ConstraintType == TargetLowering::C_Register) && in lowerInlineAsm()
615 case TargetLowering::C_Register: in lowerInlineAsm()
616 case TargetLowering::C_RegisterClass: { in lowerInlineAsm()
644 case TargetLowering::C_Immediate: in lowerInlineAsm()
645 case TargetLowering::C_Other: in lowerInlineAsm()
649 case TargetLowering::C_Memory: in lowerInlineAsm()
651 case TargetLowering::C_Address: in lowerInlineAsm()
653 case TargetLowering::C_Unknown: in lowerInlineAsm()