mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Implement getConstraintType for PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -980,6 +980,23 @@ PPCTargetLowering::InsertAtEndOfBasicBlock(MachineInstr *MI,
|
|||||||
return BB;
|
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::
|
std::vector<unsigned> PPCTargetLowering::
|
||||||
getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
||||||
if (Constraint.size() == 1) {
|
if (Constraint.size() == 1) {
|
||||||
|
@@ -97,6 +97,7 @@ namespace llvm {
|
|||||||
virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI,
|
virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI,
|
||||||
MachineBasicBlock *MBB);
|
MachineBasicBlock *MBB);
|
||||||
|
|
||||||
|
ConstraintType getConstraintType(char ConstraintLetter) const;
|
||||||
std::vector<unsigned>
|
std::vector<unsigned>
|
||||||
getRegForInlineAsmConstraint(const std::string &Constraint) const;
|
getRegForInlineAsmConstraint(const std::string &Constraint) const;
|
||||||
bool isOperandValidForConstraint(SDOperand Op, char ConstraintLetter);
|
bool isOperandValidForConstraint(SDOperand Op, char ConstraintLetter);
|
||||||
|
Reference in New Issue
Block a user