mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
The hasMemory argument is irrelevant to how the argument
for an "i" constraint should get lowered; PR 6309. While this argument was passed around a lot, this is the only place it was used, so it goes away from a lot of other places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2383,7 +2383,6 @@ const char *TargetLowering::LowerXConstraint(EVT ConstraintVT) const{
|
||||
/// vector. If it is invalid, don't add anything to Ops.
|
||||
void TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
|
||||
char ConstraintLetter,
|
||||
bool hasMemory,
|
||||
std::vector<SDValue> &Ops,
|
||||
SelectionDAG &DAG) const {
|
||||
switch (ConstraintLetter) {
|
||||
@@ -2544,7 +2543,7 @@ static unsigned getConstraintGenerality(TargetLowering::ConstraintType CT) {
|
||||
/// 'm' over 'r', for example.
|
||||
///
|
||||
static void ChooseConstraint(TargetLowering::AsmOperandInfo &OpInfo,
|
||||
bool hasMemory, const TargetLowering &TLI,
|
||||
const TargetLowering &TLI,
|
||||
SDValue Op, SelectionDAG *DAG) {
|
||||
assert(OpInfo.Codes.size() > 1 && "Doesn't have multiple constraint options");
|
||||
unsigned BestIdx = 0;
|
||||
@@ -2564,7 +2563,7 @@ static void ChooseConstraint(TargetLowering::AsmOperandInfo &OpInfo,
|
||||
assert(OpInfo.Codes[i].size() == 1 &&
|
||||
"Unhandled multi-letter 'other' constraint");
|
||||
std::vector<SDValue> ResultOps;
|
||||
TLI.LowerAsmOperandForConstraint(Op, OpInfo.Codes[i][0], hasMemory,
|
||||
TLI.LowerAsmOperandForConstraint(Op, OpInfo.Codes[i][0],
|
||||
ResultOps, *DAG);
|
||||
if (!ResultOps.empty()) {
|
||||
BestType = CType;
|
||||
@@ -2591,7 +2590,6 @@ static void ChooseConstraint(TargetLowering::AsmOperandInfo &OpInfo,
|
||||
/// OpInfo.ConstraintCode and OpInfo.ConstraintType.
|
||||
void TargetLowering::ComputeConstraintToUse(AsmOperandInfo &OpInfo,
|
||||
SDValue Op,
|
||||
bool hasMemory,
|
||||
SelectionDAG *DAG) const {
|
||||
assert(!OpInfo.Codes.empty() && "Must have at least one constraint");
|
||||
|
||||
@@ -2600,7 +2598,7 @@ void TargetLowering::ComputeConstraintToUse(AsmOperandInfo &OpInfo,
|
||||
OpInfo.ConstraintCode = OpInfo.Codes[0];
|
||||
OpInfo.ConstraintType = getConstraintType(OpInfo.ConstraintCode);
|
||||
} else {
|
||||
ChooseConstraint(OpInfo, hasMemory, *this, Op, DAG);
|
||||
ChooseConstraint(OpInfo, *this, Op, DAG);
|
||||
}
|
||||
|
||||
// 'X' matches anything.
|
||||
|
||||
Reference in New Issue
Block a user