mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Implement getConstraintType for PPC.
llvm-svn: 26042
This commit is contained in:
parent
478eb50b79
commit
abaa15898f
@ -980,6 +980,23 @@ PPCTargetLowering::InsertAtEndOfBasicBlock(MachineInstr *MI,
|
||||
return BB;
|
||||
}
|
||||
|
||||
/// getConstraintType - Given a constraint letter, return the type of
|
||||
/// constraint it is for this target.
|
||||
PPCTargetLowering::ConstraintType
|
||||
PPCTargetLowering::getConstraintType(char ConstraintLetter) const {
|
||||
switch (ConstraintLetter) {
|
||||
default: break;
|
||||
case 'b':
|
||||
case 'r':
|
||||
case 'f':
|
||||
case 'v':
|
||||
case 'y':
|
||||
return C_RegisterClass;
|
||||
}
|
||||
return TargetLowering::getConstraintType(ConstraintLetter);
|
||||
}
|
||||
|
||||
|
||||
std::vector<unsigned> PPCTargetLowering::
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
||||
if (Constraint.size() == 1) {
|
||||
|
@ -97,6 +97,7 @@ namespace llvm {
|
||||
virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI,
|
||||
MachineBasicBlock *MBB);
|
||||
|
||||
ConstraintType getConstraintType(char ConstraintLetter) const;
|
||||
std::vector<unsigned>
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint) const;
|
||||
bool isOperandValidForConstraint(SDOperand Op, char ConstraintLetter);
|
||||
|
Loading…
Reference in New Issue
Block a user