Skip to content

Commit

Permalink
fixup! [AIE] Add architecture-specific files
Browse files Browse the repository at this point in the history
Fixup needed after 601e102
  • Loading branch information
konstantinschwarz committed Jul 29, 2024
1 parent d1afc3f commit 640f6c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AIE/AIE2InstructionSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ unsigned getLoadStoreSize(const MachineInstr &MI) {
// We are guaranteed to have MMOs during Instruction Selection.
// We need them to select the correct instruction when they depend on the
// size in memory and not on the register size. E.g.: part word stores.
return (*MI.memoperands_begin())->getSizeInBits();
return (*MI.memoperands_begin())->getSizeInBits().getValue();
}

template <unsigned MaxPow2, unsigned Step>
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AIE/AIEClusterBaseAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class AIEClusterBaseAddress : public MachineFunctionPass {
}

unsigned getLoadStoreSize(const MachineInstr &MI) {
return (*MI.memoperands_begin())->getSizeInBits();
return (*MI.memoperands_begin())->getSizeInBits().getValue();
}

// Get a set of all reachable MBBs from a given MBB.
Expand Down
5 changes: 3 additions & 2 deletions llvm/lib/Target/AIE/AIECombinerHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ bool llvm::matchGlobalValOffset(MachineInstr &MI, MachineRegisterInfo &MRI,
return false;
if (LdStMI) {
MachineMemOperand *MMO = *UseInstr.memoperands_begin();
OffsetElemSizePairSet.insert(std::make_pair(Offset, MMO->getSize()));
OffsetElemSizePairSet.insert(
std::make_pair(Offset, MMO->getSize().getValue()));
} else {
auto Cst = getIConstantVRegValWithLookThrough(
UseInstr.getOperand(2).getReg(), MRI);
Expand All @@ -454,7 +455,7 @@ bool llvm::matchGlobalValOffset(MachineInstr &MI, MachineRegisterInfo &MRI,
if (dyn_cast<GLoadStore>(&Use)) {
MachineMemOperand *MMO = *Use.memoperands_begin();
OffsetElemSizePairSet.insert(
std::make_pair(Val.getZExtValue(), MMO->getSize()));
std::make_pair(Val.getZExtValue(), MMO->getSize().getValue()));
}
}
}
Expand Down

0 comments on commit 640f6c9

Please sign in to comment.