mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Updates to match change of getRegForInlineAsmConstraint prototype
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aba3b13fb3
commit
4217ca8dc1
@ -745,7 +745,8 @@ bool TargetLowering::isOperandValidForConstraint(SDOperand Op,
|
||||
|
||||
|
||||
std::vector<unsigned> TargetLowering::
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
MVT::ValueType VT) const {
|
||||
// Not a physreg, must not be a register reference or something.
|
||||
if (Constraint[0] != '{') return std::vector<unsigned>();
|
||||
assert(*(Constraint.end()-1) == '}' && "Not a brace enclosed constraint?");
|
||||
|
@ -999,7 +999,8 @@ PPCTargetLowering::getConstraintType(char ConstraintLetter) const {
|
||||
|
||||
|
||||
std::vector<unsigned> PPCTargetLowering::
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
MVT::ValueType VT) const {
|
||||
if (Constraint.size() == 1) {
|
||||
switch (Constraint[0]) { // GCC RS6000 Constraint Letters
|
||||
default: break; // Unknown constriant letter
|
||||
@ -1051,7 +1052,7 @@ getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
||||
}
|
||||
|
||||
// Handle explicit register names.
|
||||
return TargetLowering::getRegForInlineAsmConstraint(Constraint);
|
||||
return TargetLowering::getRegForInlineAsmConstraint(Constraint, VT);
|
||||
}
|
||||
|
||||
// isOperandValidForConstraint
|
||||
|
@ -99,7 +99,8 @@ namespace llvm {
|
||||
|
||||
ConstraintType getConstraintType(char ConstraintLetter) const;
|
||||
std::vector<unsigned>
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint) const;
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
MVT::ValueType VT) const;
|
||||
bool isOperandValidForConstraint(SDOperand Op, char ConstraintLetter);
|
||||
};
|
||||
}
|
||||
|
@ -1961,7 +1961,8 @@ void X86TargetLowering::computeMaskedBitsForTargetNode(const SDOperand Op,
|
||||
}
|
||||
|
||||
std::vector<unsigned> X86TargetLowering::
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
MVT::ValueType VT) const {
|
||||
if (Constraint.size() == 1) {
|
||||
// FIXME: not handling fp-stack yet!
|
||||
// FIXME: not handling MMX registers yet ('y' constraint).
|
||||
@ -1993,5 +1994,5 @@ getRegForInlineAsmConstraint(const std::string &Constraint) const {
|
||||
}
|
||||
|
||||
// Handle explicit register names.
|
||||
return TargetLowering::getRegForInlineAsmConstraint(Constraint);
|
||||
return TargetLowering::getRegForInlineAsmConstraint(Constraint, VT);
|
||||
}
|
||||
|
@ -224,7 +224,8 @@ namespace llvm {
|
||||
SDOperand getReturnAddressFrameIndex(SelectionDAG &DAG);
|
||||
|
||||
std::vector<unsigned>
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint) const;
|
||||
getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
MVT::ValueType VT) const;
|
||||
private:
|
||||
// C Calling Convention implementation.
|
||||
std::vector<SDOperand> LowerCCCArguments(Function &F, SelectionDAG &DAG);
|
||||
|
Loading…
x
Reference in New Issue
Block a user